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.

docs(changelog): reconcile v7.0.x osquery_live_query + aisoc-direct paths (#96)

Beenu Arora1dbb834f5246
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 669b30088..cb6da706c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -562,10 +562,20 @@ v7.0.0 baseline and the v7.0.1 hardening patch.
- **`services/actions/app/clients/osquery_allowlist.py`** — Strict allowlist
enforcing only safe SELECT-only queries against approved tables (no
`ATTACH`, no `INSERT`, no `pragma_*` introspection of secrets).
-- **`services/agents/app/playbook/steps/osquery_live_query.py`** — New
- `osquery_live_query` step type. Pushes allowlisted distributed queries to a
- single host or fleet-wide via osctrl / FleetDM / aisoc-direct with
- HMAC-signed ChatOps approval before execution.
+- **`services/agents/app/playbook/engine.py::_handle_osquery_live_query`** —
+ New `osquery_live_query` step type, registered in
+ `services/agents/app/playbook/models.py` as `StepType.OSQUERY_LIVE_QUERY` and
+ dispatched from the `STEP_HANDLERS` table at the bottom of `engine.py`.
+ Pushes allowlisted distributed queries to a single host or fleet-wide via
+ osctrl / FleetDM / aisoc-direct with HMAC-signed ChatOps approval before
+ execution. Tests live in
+ `services/agents/tests/test_osquery_live_query_step.py`.
+
+ > **v7.0.x reconciliation:** Earlier drafts of this CHANGELOG referenced a
+ > separate module at `services/agents/app/playbook/steps/osquery_live_query.py`.
+ > That module never landed on `main` — the handler is inlined in `engine.py`
+ > to keep the playbook engine's dispatch table in one place. The behaviour,
+ > tests, and CLI surface are identical to the originally documented design.
#### PR4 — `aisoc-osquery-tls` FastAPI service + `aisoc-direct` connector
@@ -575,10 +585,26 @@ v7.0.0 baseline and the v7.0.1 hardening patch.
Self-hosted osquery TLS plugin endpoints are FleetDM-compatible so any
off-the-shelf osquery agent can enroll without a third-party SaaS hop.
Uses dedicated SQLite + Alembic migrations under `services/osquery-tls/db/`.
-- **`services/connectors/app/connectors/aisoc_direct.py`** + matching
- `plugins/aisoc-direct/plugin.yaml` — Direct-from-agent ingest connector that
- consumes the osquery-tls log stream and normalises into the standard alert
- schema; bypasses third-party SaaS entirely.
+- **`services/osquery-tls/app/api/v1/endpoints/log.py`** + matching
+ `plugins/aisoc-direct/plugin.yaml` and
+ `services/actions/app/clients/aisoc_direct_client.py` — Direct-from-agent
+ ingest path that consumes the osquery-tls log stream and normalises into
+ the standard alert schema; bypasses third-party SaaS entirely. The
+ `aisoc-direct` connector is implemented as a **virtual connector**: agents
+ push events directly into `/api/v1/log` on the osquery-tls service, which
+ fans them out to the same ingest pipeline the polled connectors use. The
+ marketplace manifest lives at `plugins/aisoc-direct/plugin.yaml`; the
+ outbound client (used by playbooks to drive distributed queries) lives at
+ `services/actions/app/clients/aisoc_direct_client.py`.
+
+ > **v7.0.x reconciliation:** Earlier drafts of this CHANGELOG referenced a
+ > polled connector module at
+ > `services/connectors/app/connectors/aisoc_direct.py`. That module never
+ > landed on `main`. The connector is implemented as a push-based virtual
+ > connector (the `osquery-tls` service is itself the ingest endpoint), so
+ > there is nothing to register in `services/connectors/app/connectors/__init__.py`.
+ > Functionally the data path is identical to the originally documented
+ > design.
#### PR5 — Osquery packs + FIM endpoint + FIM dashboard