# theori-io/aipt-detections architecture

> Architecture diagram of the GitHub repository theori-io/aipt-detections, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/theori-io/aipt-detections
- Repository: https://github.com/theori-io/aipt-detections

## Overview

AIPT detection pack is a collection of fingerprint- and behavior-based detections for autonomous penetration-testing tools, expressed in Suricata, Sigma, YARA, ModSecurity, KQL, and SPL. Its principal workflow is telemetry at an observation point matching rules to produce alerts or triage signals; Sigma correlations and analytics queries cover behavioral patterns that individual fingerprints may miss. The README documents which rule families apply at each observation point and important deployment constraints. No source excerpts were supplied, so relationships below rely on those documented mappings, not inspected implementation.

Main entry points: [`sigma/web`](https://github.com/theori-io/aipt-detections/tree/main/sigma/web) (Web Sigma rules), [`sigma/pipelines`](https://github.com/theori-io/aipt-detections/tree/main/sigma/pipelines) (Sigma conversion pipelines), [`suricata/aipt-target-facing.rules`](https://github.com/theori-io/aipt-detections/blob/main/suricata/aipt-target-facing.rules) (Target-facing rules), [`modsecurity`](https://github.com/theori-io/aipt-detections/tree/main/modsecurity) (ModSecurity plugin)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_target["Target-side detection"]
  node_target_suricata["Target-facing rules"]
  node_web_sigma["Web Sigma rules"]
  node_modsecurity["ModSecurity plugin"]
end

subgraph group_network["Network detection"]
  node_egress_suricata["Operator egress rules"]
  node_proxy_sigma["Proxy Sigma rules"]
  node_zeek_sigma["Zeek Sigma rule"]
  node_console_suricata["Exposed-console rules"]
  node_llm_suricata["LLM-side rules"]
  node_generic_llm_sigma["Generic LLM-client rule"]
end

subgraph group_host["Host detection"]
  node_process_sigma["Process Sigma rules"]
  node_file_sigma["File-event Sigma rules"]
  node_connection_sigma["Network-connection Sigma rule"]
  node_yara["YARA rules"]
end

subgraph group_analytics["Behavior analytics"]
  node_correlation_inputs["Web base selectors"]
  node_sigma_correlations["Sigma correlations"]
  node_behavior_queries["Behavior triage queries<br/>[artex_behavior.kql]"]
  node_analytics_correlations["Sliding-window correlations<br/>[correlations.kql]"]
end

subgraph group_conversion["Rule conversion"]
  node_sigma_pipelines["Sigma conversion pipelines"]
end

node_web_logs(("Web and WAF logs"))
node_network_logs(("Egress and proxy telemetry"))
node_perimeter_logs(("Perimeter sensor telemetry"))
node_host_telemetry(("Host and file telemetry"))
node_llm_telemetry(("LLM provider telemetry"))

node_web_logs -->|"matches traffic"| node_target_suricata
node_web_logs -->|"matches logs"| node_web_sigma
node_web_logs -->|"inspects requests"| node_modsecurity
node_network_logs -->|"matches traffic"| node_egress_suricata
node_network_logs -->|"matches logs"| node_proxy_sigma
node_network_logs -->|"matches telemetry"| node_zeek_sigma
node_perimeter_logs -->|"matches traffic"| node_console_suricata
node_perimeter_logs -->|"matches logs"| node_web_sigma
node_host_telemetry -->|"matches events"| node_process_sigma
node_host_telemetry -->|"matches events"| node_file_sigma
node_host_telemetry -->|"matches connections"| node_connection_sigma
node_host_telemetry -->|"scans files or memory"| node_yara
node_llm_telemetry -->|"matches bodies"| node_llm_suricata
node_llm_telemetry -->|"matches logs"| node_generic_llm_sigma
node_correlation_inputs -->|"provides inputs"| node_sigma_correlations
node_sigma_pipelines -->|"converts rules"| node_web_sigma

click node_target_suricata "https://github.com/theori-io/aipt-detections/blob/main/suricata/aipt-target-facing.rules"
click node_web_sigma "https://github.com/theori-io/aipt-detections/tree/main/sigma/web"
click node_modsecurity "https://github.com/theori-io/aipt-detections/tree/main/modsecurity"
click node_egress_suricata "https://github.com/theori-io/aipt-detections/blob/main/suricata/aipt-operator-egress.rules"
click node_proxy_sigma "https://github.com/theori-io/aipt-detections/tree/main/sigma/proxy"
click node_zeek_sigma "https://github.com/theori-io/aipt-detections/blob/main/sigma/zeek/zeek_generic_go_mitmproxy_certificate.yml"
click node_console_suricata "https://github.com/theori-io/aipt-detections/blob/main/suricata/aipt-exposed-console.rules"
click node_process_sigma "https://github.com/theori-io/aipt-detections/tree/main/sigma/process_creation"
click node_file_sigma "https://github.com/theori-io/aipt-detections/tree/main/sigma/file_event"
click node_connection_sigma "https://github.com/theori-io/aipt-detections/blob/main/sigma/network_connection/net_connection_lnx_metasploitmcp_msfrpcd.yml"
click node_yara "https://github.com/theori-io/aipt-detections/tree/main/yara"
click node_llm_suricata "https://github.com/theori-io/aipt-detections/blob/main/suricata/aipt-llm-side.rules"
click node_generic_llm_sigma "https://github.com/theori-io/aipt-detections/blob/main/sigma/proxy/proxy_generic_llm_api_client.yml"
click node_correlation_inputs "https://github.com/theori-io/aipt-detections/tree/main/sigma/web"
click node_sigma_correlations "https://github.com/theori-io/aipt-detections/tree/main/sigma/correlation"
click node_behavior_queries "https://github.com/theori-io/aipt-detections/blob/main/analytics/artex_behavior.kql"
click node_analytics_correlations "https://github.com/theori-io/aipt-detections/blob/main/analytics/correlations.kql"
click node_sigma_pipelines "https://github.com/theori-io/aipt-detections/tree/main/sigma/pipelines"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_target_suricata,node_web_sigma,node_modsecurity toneBlue
class node_egress_suricata,node_proxy_sigma,node_zeek_sigma,node_console_suricata,node_llm_suricata,node_generic_llm_sigma toneAmber
class node_process_sigma,node_file_sigma,node_connection_sigma,node_yara toneMint
class node_correlation_inputs,node_sigma_correlations,node_behavior_queries,node_analytics_correlations toneRose
class node_sigma_pipelines,node_web_logs,node_network_logs,node_perimeter_logs,node_host_telemetry,node_llm_telemetry toneIndigo
```

## Components

### Target-side detection

- [Target-facing rules](https://github.com/theori-io/aipt-detections/blob/main/suricata/aipt-target-facing.rules): `suricata/aipt-target-facing.rules`
- [Web Sigma rules](https://github.com/theori-io/aipt-detections/tree/main/sigma/web): `sigma/web`
- [ModSecurity plugin](https://github.com/theori-io/aipt-detections/tree/main/modsecurity): `modsecurity`

### Network detection

- [Operator egress rules](https://github.com/theori-io/aipt-detections/blob/main/suricata/aipt-operator-egress.rules): `suricata/aipt-operator-egress.rules`
- [Proxy Sigma rules](https://github.com/theori-io/aipt-detections/tree/main/sigma/proxy): `sigma/proxy`
- [Zeek Sigma rule](https://github.com/theori-io/aipt-detections/blob/main/sigma/zeek/zeek_generic_go_mitmproxy_certificate.yml): `sigma/zeek/zeek_generic_go_mitmproxy_certificate.yml`
- [Exposed-console rules](https://github.com/theori-io/aipt-detections/blob/main/suricata/aipt-exposed-console.rules): `suricata/aipt-exposed-console.rules`
- [LLM-side rules](https://github.com/theori-io/aipt-detections/blob/main/suricata/aipt-llm-side.rules): `suricata/aipt-llm-side.rules`
- [Generic LLM-client rule](https://github.com/theori-io/aipt-detections/blob/main/sigma/proxy/proxy_generic_llm_api_client.yml): `sigma/proxy/proxy_generic_llm_api_client.yml`

### Host detection

- [Process Sigma rules](https://github.com/theori-io/aipt-detections/tree/main/sigma/process_creation): `sigma/process_creation`
- [File-event Sigma rules](https://github.com/theori-io/aipt-detections/tree/main/sigma/file_event): `sigma/file_event`
- [Network-connection Sigma rule](https://github.com/theori-io/aipt-detections/blob/main/sigma/network_connection/net_connection_lnx_metasploitmcp_msfrpcd.yml): `sigma/network_connection/net_connection_lnx_metasploitmcp_msfrpcd.yml`
- [YARA rules](https://github.com/theori-io/aipt-detections/tree/main/yara): `yara`

### Behavior analytics

- [Web base selectors](https://github.com/theori-io/aipt-detections/tree/main/sigma/web): `sigma/web`
- [Sigma correlations](https://github.com/theori-io/aipt-detections/tree/main/sigma/correlation): `sigma/correlation`
- [Behavior triage queries](https://github.com/theori-io/aipt-detections/blob/main/analytics/artex_behavior.kql): `analytics/artex_behavior.kql`
- [Sliding-window correlations](https://github.com/theori-io/aipt-detections/blob/main/analytics/correlations.kql): `analytics/correlations.kql`

### Rule conversion

- [Sigma conversion pipelines](https://github.com/theori-io/aipt-detections/tree/main/sigma/pipelines): `sigma/pipelines`

### Other components

- **Web and WAF logs**
- **Egress and proxy telemetry**
- **Perimeter sensor telemetry**
- **Host and file telemetry**
- **LLM provider telemetry**

## Connections

- Web and WAF logs → Target-facing rules: matches traffic (evidence: `README.md`)
- Web and WAF logs → Web Sigma rules: matches logs (evidence: `README.md`)
- Web and WAF logs → ModSecurity plugin: inspects requests (evidence: `README.md`)
- Egress and proxy telemetry → Operator egress rules: matches traffic (evidence: `README.md`)
- Egress and proxy telemetry → Proxy Sigma rules: matches logs (evidence: `README.md`)
- Egress and proxy telemetry → Zeek Sigma rule: matches telemetry (evidence: `README.md`)
- Perimeter sensor telemetry → Exposed-console rules: matches traffic (evidence: `README.md`)
- Perimeter sensor telemetry → Web Sigma rules: matches logs (evidence: `README.md`)
- Host and file telemetry → Process Sigma rules: matches events (evidence: `README.md`)
- Host and file telemetry → File-event Sigma rules: matches events (evidence: `README.md`)
- Host and file telemetry → Network-connection Sigma rule: matches connections (evidence: `README.md`)
- Host and file telemetry → YARA rules: scans files or memory (evidence: `README.md`)
- LLM provider telemetry → LLM-side rules: matches bodies (evidence: `README.md`)
- LLM provider telemetry → Generic LLM-client rule: matches logs (evidence: `README.md`)
- Web base selectors → Sigma correlations: provides inputs (evidence: `README.md`)
- Sigma conversion pipelines → Web Sigma rules: converts rules (evidence: `README.md`)
