Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

Closes gap listed in #357. DNS — TXT-record requests >250 bytes from … (#394)

fishjoshb117f4049d7c
diff --git a/apps/docs/docs/detections/coverage.md b/apps/docs/docs/detections/coverage.md
index ff8b9e10e..d607c905b 100644
--- a/apps/docs/docs/detections/coverage.md
+++ b/apps/docs/docs/detections/coverage.md
@@ -11,12 +11,12 @@ sidebar_position: 2
# Detection Coverage
-Generated: `2026-07-06T01:46:29Z`
+Generated: `2026-07-11T13:45:01Z`
## Headline numbers
- **Curated v1.0 detections**: `416` (target: ≥ 300)
-- **Total rules considered**: `1053` (quality floor: 0.55)
+- **Total rules considered**: `1054` (quality floor: 0.55)
- **Unique MITRE techniques covered**: `117`
## Coverage by buyer family
diff --git a/apps/web/public/marketplace/curated.json b/apps/web/public/marketplace/curated.json
index 8fd41e35b..178dba9f0 100644
--- a/apps/web/public/marketplace/curated.json
+++ b/apps/web/public/marketplace/curated.json
@@ -1,15 +1,15 @@
{
"$schema": "https://aisoc.example.com/schemas/curated/v1.json",
"version": "1.0.0",
- "generated": "2026-05-14T12:28:25Z",
+ "generated": "2026-07-11T13:45:01Z",
"stats": {
- "considered": 1052,
- "eligible": 1048,
+ "considered": 1054,
+ "eligible": 1050,
"selected": 416,
"min_per_family": 25,
"min_total": 300,
"quality_floor": 0.55,
- "unique_techniques": 118,
+ "unique_techniques": 117,
"selected_by_tier": {
"imported": 42,
"native": 374
@@ -23,10 +23,10 @@
"selected_by_category": {
"_migrated": 1,
"application": 29,
- "cloud": 164,
+ "cloud": 165,
"data-exfil": 20,
"endpoint": 117,
- "identity": 73,
+ "identity": 72,
"network": 12
}
},
@@ -434,6 +434,7 @@
"det-cloud-208",
"det-cloud-209",
"det-cloud-213",
+ "det-cloud-226",
"det-endpoint-026",
"det-endpoint-027",
"det-endpoint-141",
@@ -457,7 +458,6 @@
"det-identity-003",
"det-identity-004",
"det-identity-006",
- "det-identity-008",
"det-identity-009",
"det-identity-020",
"det-identity-021",
@@ -656,7 +656,7 @@
"T1087": 1,
"T1087.004": 1,
"T1098": 16,
- "T1098.001": 13,
+ "T1098.001": 14,
"T1098.003": 7,
"T1098.004": 6,
"T1098.007": 1,
@@ -728,8 +728,7 @@
"T1609": 1,
"T1610": 11,
"T1611": 24,
- "T1612": 1,
- "T1621": 1
+ "T1612": 1
},
"items": [
{
@@ -5717,6 +5716,32 @@
"log_source_product": "m365",
"has_executable_body": true
},
+ {
+ "id": "det-cloud-226",
+ "name": "AWS IAM UpdateAccessKey On Privileged Principal",
+ "path": "detections/cloud/aws-iam-update-access-key-privileged.yaml",
+ "tier": "native",
+ "source": "core",
+ "category": "cloud",
+ "severity": "high",
+ "mitre_techniques": [
+ "T1098.001"
+ ],
+ "mitre_tactics": [],
+ "families": [
+ "cloud",
+ "identity"
+ ],
+ "quality_score": 0.977,
+ "quality_notes": [
+ "tier:native(+0.5)",
+ "mitre_techniques:1(+0.2)",
+ "severity:high(+0.128)",
+ "executable(+0.15)"
+ ],
+ "log_source_product": "aws",
+ "has_executable_body": true
+ },
{
"id": "det-data-exfil-001",
"name": "Large Outbound Transfer to Personal Cloud Storage",
@@ -8333,32 +8358,6 @@
"log_source_product": "okta",
"has_executable_body": true
},
- {
- "id": "det-identity-008",
- "name": "MFA Push Bombing (MFA Fatigue)",
- "path": "detections/identity/mfa-fatigue.yaml",
- "tier": "native",
- "source": "core",
- "category": "identity",
- "severity": "high",
- "mitre_techniques": [
- "T1621"
- ],
- "mitre_tactics": [],
- "families": [
- "cloud",
- "identity"
- ],
- "quality_score": 0.977,
- "quality_notes": [
- "tier:native(+0.5)",
- "mitre_techniques:1(+0.2)",
- "severity:high(+0.128)",
- "executable(+0.15)"
- ],
- "log_source_product": "okta",
- "has_executable_body": true
- },
{
"id": "det-identity-009",
"name": "MFA Requirement Removed from User Policy",
diff --git a/apps/web/public/marketplace/index.json b/apps/web/public/marketplace/index.json
index 65516818e..6179dbbb7 100644
--- a/apps/web/public/marketplace/index.json
+++ b/apps/web/public/marketplace/index.json
@@ -1,7 +1,7 @@
{
"$schema": "https://example.com/schemas/marketplace/v1.json",
"version": "1.0.0",
- "generated": "2026-06-28T09:43:41Z",
+ "generated": "2026-07-11T13:45:00Z",
"categories": [
{
"id": "playbooks",
@@ -20,22 +20,22 @@
}
],
"stats": {
- "total": 7127,
+ "total": 7129,
"playbooks": 62,
- "detections": 6998,
+ "detections": 7000,
"plugins": 67,
- "verified": 1006,
+ "verified": 1008,
"community": 1,
"by_tier": {
"beta": 7,
"community": 1,
"imported": 6113,
- "stable": 1006
+ "stable": 1008
},
"detections_by_tier": {
"community": 1,
"imported": 6113,
- "stable": 884
+ "stable": 886
},
"quarantined": 5921
},
@@ -106,7 +106,7 @@
"T1047": 72,
"T1048": 15,
"T1048.001": 1,
- "T1048.003": 19,
+ "T1048.003": 20,
"T1049": 16,
"T1052": 2,
"T1052.001": 1,
@@ -158,7 +158,7 @@
"T1071.001": 54,
"T1071.002": 1,
"T1071.003": 3,
- "T1071.004": 23,
+ "T1071.004": 24,
"T1072": 9,
"T1074": 3,
"T1074.001": 6,
@@ -180,7 +180,7 @@
"T1091": 5,
"T1095": 8,
"T1098": 88,
- "T1098.001": 26,
+ "T1098.001": 27,
"T1098.002": 6,
"T1098.003": 34,
"T1098.004": 12,
@@ -536,7 +536,7 @@
"T1690": 1
},
"unique_techniques": 493,
- "total_with_mitre": 5782,
+ "total_with_mitre": 5784,
"by_tier": {
"community": {
"T1078.004": 1
@@ -569,7 +569,7 @@
"T1046": 2,
"T1047": 3,
"T1048": 1,
- "T1048.003": 2,
+ "T1048.003": 3,
"T1052": 2,
"T1052.001": 1,
"T1053.001": 1,
@@ -593,7 +593,7 @@
"T1070.003": 2,
"T1071": 4,
"T1071.001": 10,
- "T1071.004": 5,
+ "T1071.004": 6,
"T1074.001": 1,
"T1078": 37,
"T1078.001": 4,
@@ -608,7 +608,7 @@
"T1090.003": 6,
"T1095": 3,
"T1098": 29,
- "T1098.001": 21,
+ "T1098.001": 22,
"T1098.003": 8,
"T1098.004": 8,
"T1098.007": 1,
@@ -35452,6 +35452,29 @@
"enabled": true,
"path": "detections/cloud/m365-unified-audit-log-disabled.yaml"
},
+ {
+ "id": "det-cloud-226",
+ "type": "detection",
+ "name": "AWS IAM UpdateAccessKey On Privileged Principal",
+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS IAM UpdateAccessKey On Privileged Principal'. Watch the 1 documented false-positive case before tuning.",
+ "version": "1.0.0",
+ "author": "AiSOC",
+ "tags": [
+ "tlp.white"
+ ],
+ "severity": "high",
+ "category": "cloud",
+ "mitre_techniques": [
+ "T1098.001"
+ ],
+ "log_source": "aws",
+ "playbook": "tpl-persistence",
+ "verified": true,
+ "source": "core",
+ "tier": "stable",
+ "enabled": true,
+ "path": "detections/cloud/aws-iam-update-access-key-privileged.yaml"
+ },
{
"id": "det-data-exfil-001",
"type": "detection",
@@ -48458,6 +48481,30 @@
"enabled": true,
"path": "detections/network/net-stp-topology-change-from-edge.yaml"
},
+ {
+ "id": "det-network-081",
+ "type": "detection",
+ "name": "DNS TXT Response Over 250 Bytes From Non-Resolver Host",
+ "description": "Triggers on the network signal described by 'DNS TXT Response Over 250 Bytes From Non-Resolver Host'. Watch the 1 documented false-positive case before tuning.",
+ "version": "1.0.0",
+ "author": "Josh Fishman",
+ "tags": [
+ "tlp.white"
+ ],
+ "severity": "medium",
+ "category": "network",
+ "mitre_techniques": [
+ "T1071.004",
+ "T1048.003"
+ ],
+ "log_source": "dns",
+ "playbook": "tpl-command-and-control",
+ "verified": true,
+ "source": "core",
+ "tier": "stable",
+ "enabled": true,
+ "path": "detections/network/dns-txt-record.yaml"
+ },
{
"id": "dlp-violation-response-v1",
"type": "detection",
diff --git a/detections/fixtures/negative/dns-txt-record.json b/detections/fixtures/negative/dns-txt-record.json
new file mode 100644
index 000000000..0b0345b6a
--- /dev/null
+++ b/detections/fixtures/negative/dns-txt-record.json
@@ -0,0 +1,6 @@
+{
+ "event_type": "not-dns_response",
+ "qtype": "TXT",
+ "response_size_bytes": 350.0,
+ "src_role": "__benign__"
+}
diff --git a/detections/fixtures/positive/dns-txt-record.json b/detections/fixtures/positive/dns-txt-record.json
new file mode 100644
index 000000000..e75368cd6
--- /dev/null
+++ b/detections/fixtures/positive/dns-txt-record.json
@@ -0,0 +1,6 @@
+{
+ "event_type": "dns_response",
+ "qtype": "TXT",
+ "response_size_bytes": 350.0,
+ "src_role": "__benign__"
+}
diff --git a/detections/network/dns-txt-record.yaml b/detections/network/dns-txt-record.yaml
new file mode 100644
index 000000000..8fa3357f7
--- /dev/null
+++ b/detections/network/dns-txt-record.yaml
@@ -0,0 +1,27 @@
+id: det-network-081
+name: DNS TXT Response Over 250 Bytes From Non-Resolver Host
+description: Triggers on the network signal described by 'DNS TXT Response
+ Over 250 Bytes From Non-Resolver Host'. Watch the 1 documented false-positive case before tuning.
+version: 1.0.0
+severity: medium
+tags:
+ - mitre.attack.t1071.004
+ - mitre.attack.t1048.003
+ - tlp.white
+category: network
+log_source:
+ product: dns
+ service: resolver
+detection:
+ condition: |
+ event_type == "dns_response"
+ AND qtype == "TXT"
+ AND response_size_bytes > 250
+ AND src_role NOT IN ["resolver"]
+false_positives:
+ - Approved DNS telemetry or resolver health checks
+playbook: tpl-command-and-control
+enabled: true
+author: Josh Fishman
+created: "2026-05-03"
+modified: "2026-05-03"
diff --git a/marketplace/curated.json b/marketplace/curated.json
index dc74c828c..178dba9f0 100644
--- a/marketplace/curated.json
+++ b/marketplace/curated.json
@@ -1,10 +1,10 @@
{
"$schema": "https://aisoc.example.com/schemas/curated/v1.json",
"version": "1.0.0",
- "generated": "2026-07-06T01:46:29Z",
+ "generated": "2026-07-11T13:45:01Z",
"stats": {
- "considered": 1053,
- "eligible": 1049,
+ "considered": 1054,
+ "eligible": 1050,
"selected": 416,
"min_per_family": 25,
"min_total": 300,
diff --git a/marketplace/index.json b/marketplace/index.json
index 65516818e..6179dbbb7 100644
--- a/marketplace/index.json
+++ b/marketplace/index.json
@@ -1,7 +1,7 @@
{
"$schema": "https://example.com/schemas/marketplace/v1.json",
"version": "1.0.0",
- "generated": "2026-06-28T09:43:41Z",
+ "generated": "2026-07-11T13:45:00Z",
"categories": [
{
"id": "playbooks",
@@ -20,22 +20,22 @@
}
],
"stats": {
- "total": 7127,
+ "total": 7129,
"playbooks": 62,
- "detections": 6998,
+ "detections": 7000,
"plugins": 67,
- "verified": 1006,
+ "verified": 1008,
"community": 1,
"by_tier": {
"beta": 7,
"community": 1,
"imported": 6113,
- "stable": 1006
+ "stable": 1008
},
"detections_by_tier": {
"community": 1,
"imported": 6113,
- "stable": 884
+ "stable": 886
},
"quarantined": 5921
},
@@ -106,7 +106,7 @@
"T1047": 72,
"T1048": 15,
"T1048.001": 1,
- "T1048.003": 19,
+ "T1048.003": 20,
"T1049": 16,
"T1052": 2,
"T1052.001": 1,
@@ -158,7 +158,7 @@
"T1071.001": 54,
"T1071.002": 1,
"T1071.003": 3,
- "T1071.004": 23,
+ "T1071.004": 24,
"T1072": 9,
"T1074": 3,
"T1074.001": 6,
@@ -180,7 +180,7 @@
"T1091": 5,
"T1095": 8,
"T1098": 88,
- "T1098.001": 26,
+ "T1098.001": 27,
"T1098.002": 6,
"T1098.003": 34,
"T1098.004": 12,
@@ -536,7 +536,7 @@
"T1690": 1
},
"unique_techniques": 493,
- "total_with_mitre": 5782,
+ "total_with_mitre": 5784,
"by_tier": {
"community": {
"T1078.004": 1
@@ -569,7 +569,7 @@
"T1046": 2,
"T1047": 3,
"T1048": 1,
- "T1048.003": 2,
+ "T1048.003": 3,
"T1052": 2,
"T1052.001": 1,
"T1053.001": 1,
@@ -593,7 +593,7 @@
"T1070.003": 2,
"T1071": 4,
"T1071.001": 10,
- "T1071.004": 5,
+ "T1071.004": 6,
"T1074.001": 1,
"T1078": 37,
"T1078.001": 4,
@@ -608,7 +608,7 @@
"T1090.003": 6,
"T1095": 3,
"T1098": 29,
- "T1098.001": 21,
+ "T1098.001": 22,
"T1098.003": 8,
"T1098.004": 8,
"T1098.007": 1,
@@ -35452,6 +35452,29 @@
"enabled": true,
"path": "detections/cloud/m365-unified-audit-log-disabled.yaml"
},
+ {
+ "id": "det-cloud-226",
+ "type": "detection",
+ "name": "AWS IAM UpdateAccessKey On Privileged Principal",
+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS IAM UpdateAccessKey On Privileged Principal'. Watch the 1 documented false-positive case before tuning.",
+ "version": "1.0.0",
+ "author": "AiSOC",
+ "tags": [
+ "tlp.white"
+ ],
+ "severity": "high",
+ "category": "cloud",
+ "mitre_techniques": [
+ "T1098.001"
+ ],
+ "log_source": "aws",
+ "playbook": "tpl-persistence",
+ "verified": true,
+ "source": "core",
+ "tier": "stable",
+ "enabled": true,
+ "path": "detections/cloud/aws-iam-update-access-key-privileged.yaml"
+ },
{
"id": "det-data-exfil-001",
"type": "detection",
@@ -48458,6 +48481,30 @@
"enabled": true,
"path": "detections/network/net-stp-topology-change-from-edge.yaml"
},
+ {
+ "id": "det-network-081",
+ "type": "detection",
+ "name": "DNS TXT Response Over 250 Bytes From Non-Resolver Host",
+ "description": "Triggers on the network signal described by 'DNS TXT Response Over 250 Bytes From Non-Resolver Host'. Watch the 1 documented false-positive case before tuning.",
+ "version": "1.0.0",
+ "author": "Josh Fishman",
+ "tags": [
+ "tlp.white"
+ ],
+ "severity": "medium",
+ "category": "network",
+ "mitre_techniques": [
+ "T1071.004",
+ "T1048.003"
+ ],
+ "log_source": "dns",
+ "playbook": "tpl-command-and-control",
+ "verified": true,
+ "source": "core",
+ "tier": "stable",
+ "enabled": true,
+ "path": "detections/network/dns-txt-record.yaml"
+ },
{
"id": "dlp-violation-response-v1",
"type": "detection",
diff --git a/scripts/detection_specs_part3_network.py b/scripts/detection_specs_part3_network.py
index 8bad25e35..375940fc8 100644
--- a/scripts/detection_specs_part3_network.py
+++ b/scripts/detection_specs_part3_network.py
@@ -43,6 +43,10 @@ DNS_RULES: list[dict] = [
severity="high", mitre=["t1071.004"], product="dns", service="resolver",
when={"event_type": "dns_response", "qtype": "TXT", "response_size_bytes_gt": 512},
fp=["DKIM/SPF audit"], playbook="tpl-command-and-control"),
+ S(slug="dns-txt-record", name="DNS TXT Response Over 250 Bytes From Non-Resolver Host",
+ severity="medium", mitre=["t1071.004", "t1048.003"], product="dns", service="resolver",
+ when={"event_type": "dns_response", "qtype": "TXT", "response_size_bytes_gt": 250, "src_role_not_in": ["resolver"]},
+ fp=["Approved DNS telemetry or resolver health checks"], playbook="tpl-command-and-control"),
S(slug="net-dns-tunnel-pattern-len", name="DNS Tunnel Indicator: Long Hex Subdomain Sequence",
severity="high", mitre=["t1071.004"], product="dns", service="resolver",
when={"event_type": "dns_query", "subdomain_hex_ratio_gt": 0.9, "subdomain_length_gt": 30},