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.

chore(depth): merge 6.2 forward, keeping both lanes' item-log rows

Beenu Arorac77368ac86d5
diff --cc CHANGELOG.md
index adae0ecb8,2e93a0080..25ed8634b
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -231,8 -191,34 +231,34 @@@ and this project adheres to [Semantic V
### Added
+ - **Endpoint discovery of the AI estate, with no new agent** (depth plan 6.2).
+ `packs/aisoc-ai-estate.yaml` finds coding agents and MCP server processes,
+ the configuration files the popular MCP clients read, AI IDE extensions and
+ model-provider credential files, through the osquery agent a fleet already
+ runs. `apps/docs/docs/concepts/ai-estate-discovery.md` records what each
+ source can **and cannot** see, which is the half that makes an empty column
+ readable: a device missing from a provider-audit row is not a finding,
+ because no provider audit log has ever carried one.
+
+ The finding that made this a fix as well as a feature: the endpoint branch
+ of the recorder read `process.name` off the OCSF event, and the canonical
+ OCSF profile carries `title`, `external_id` and the identity aliases and
+ nothing else. `fleetdm`, `osctrl`, `auditd` and `windows_event` all put
+ their process fields in the connector payload under `raw_data`, so that
+ branch found `None` on every endpoint source this product has and could
+ never have produced one row — while its own tests passed, because they
+ built events in the shape the module expected. It now reconstructs the same
+ flat namespace `DetectionEngine._raw_fields` does, and
+ `scripts/check_ai_endpoint_discovery.py` makes reading it a rule.
+
+ Recorded rather than implied: `crowdstrike`, `sentinelone` and
+ `azure_defender` poll the vendor's own **detections**, not raw process
+ telemetry, so they cannot supply a process start. An operator running an
+ EDR and nothing else has a coverage gap here, not a quiet estate, and the
+ documentation says so in a callout.
+
- **An AI-estate inventory built from observation rather than registration**
- (depth plan 6.1). `aisoc_ai_assets` (migration `105`, tenant-scoped with
+ (depth plan 6.1). `aisoc_ai_assets` (migration `110`, tenant-scoped with
forced row-level security) holds every AI app, coding agent, MCP server,
IDE extension, model-provider key and OAuth grant AiSOC has seen, with the
person and device behind each. The gap it closes is that `aisoc_mcp_servers`
diff --cc DEPTH_PROGRESS.md
index 7deca27e2,1ac499a4e..c5eb6b0bc
--- a/DEPTH_PROGRESS.md
+++ b/DEPTH_PROGRESS.md
@@@ -503,5 -526,7 +547,6 @@@ invented fields on the first run of th
| 2026-10-09 | 3.3 | Identity privilege (18 rules) and a per-tenant first-seen store (2) built; 5 rules were never unreachable (gate operator drift, D9); 18 retired with a reason (D10). `MAX_UNREACHABLE` 45 → 2, the two remaining both needing the 3.4 baseline. Two matcher operators three shipped rules already used were implemented. |
| 2026-10-09 | 3.2 | Ordered and unordered sequences in the windowed engine; all four translatable Sigma correlation types compile, seven refusal reasons recorded. No upstream correlation rule exists in this tree to import (D8), so the corpus is first-party and labelled as such. |
| 2026-10-09 | 4.1 | Reproduced: `check_cloud_native_collection.py` on the unmodified tree reported all three collection paths absent. Implemented `aws_cloudtrail_s3` (SQS-notified S3 objects; management events, data events and VPC flow logs; delete-after-emit), `gcp_pubsub` (REST pull on a log-sink subscription; ack-after-read) and `azure_event_hubs` (Capture blobs over the Data Lake Gen2 JSON API, with a focused Avro OCF reader). Negative controls recorded in the PR: deleting the SQS message before the object is read, acknowledging the Pub/Sub batch before it is built, ignoring the Avro union branch index, and ignoring the flow-log header line each fail a named test, and all were restored. Connectors suite 1014 -> 1098 passed. |
+ | 2026-10-11 | 6.2 | Reproduced: 13 of 16 new cases failed, driving the shapes the four endpoint connectors actually emit. Root cause was 6.1's endpoint branch reading `process.name` off OCSF, which the canonical profile never populates — it found `None` on every real source while its own tests passed. Fixed by reconstructing the connector namespace. Shipped the osquery pack (5 queries, packs 5 -> 6), the source-capability table, the operator doc and a 6-rule gate. Fusion suite 683 -> 700. Claim row is PARTIAL: no osquery agent runs in CI, and the EDR connectors return vendor detections rather than process telemetry, so the plan's "CrowdStrike, Defender, SentinelOne" wording is not satisfiable with these connectors. |
-| 2026-10-11 | 6.2 | Reproduced: 13 of 16 new cases failed, driving the shapes the four endpoint connectors actually emit. Root cause was 6.1's endpoint branch reading `process.name` off OCSF, which the canonical profile never populates — it found `None` on every real source while its own tests passed. Fixed by reconstructing the connector namespace. Shipped the osquery pack (5 queries, packs 5 -> 6), the source-capability table, the operator doc and a 6-rule gate. Fusion suite 683 -> 700. Claim row is PARTIAL: no osquery agent runs in CI, and the EDR connectors return vendor detections rather than process telemetry, so the plan's "CrowdStrike, Defender, SentinelOne" wording is not satisfiable with these connectors. |
-| 2026-10-11 | 6.1 | Reproduced: the new gate reported nine problems across five of eight rules on the unmodified tree. Built `aisoc_ai_assets` (migration 105), its routes behind a new `ai_estate:*` permission pair, the fusion recorder that writes it on the default profile, the `AIAsset` graph label with `OPERATES`/`HOSTS` edges, and the `/ai-estate` page. Two negative controls against a real PostgreSQL: reverting `NULLS NOT DISTINCT` turns one provider-key row into three, and a `USING (true)` policy leaks across tenants. Claim matrix 302 -> 303 rows, 300 GATED. Writing the gate found two blind spots in the gate itself. |
+| 2026-10-11 | 6.1 | Reproduced: the new gate reported nine problems across five of eight rules on the unmodified tree. Built `aisoc_ai_assets` (migration 110), its routes behind a new `ai_estate:*` permission pair, the fusion recorder that writes it on the default profile, the `AIAsset` graph label with `OPERATES`/`HOSTS` edges, and the `/ai-estate` page. Two negative controls against a real PostgreSQL: reverting `NULLS NOT DISTINCT` turns one provider-key row into three, and a `USING (true)` policy leaks across tenants. Claim matrix 302 -> 303 rows, 300 GATED. Writing the gate found two blind spots in the gate itself. |
| 2026-10-09 | 3.1 | All 74 decided. 50 translated into `wd-*` rules derived from each original's own clauses and replayed through the real engine (162 assertions); 24 refused with a reason across five kinds. `MAX_UNREACHABLE` 119 → 45, published executable 2,603 → 2,529, windowed 18 → 68. Three findings recorded as D4–D6 below. |