Files
AiSOC/docs/security
Beenu Arora 3364706565 docs: correct the statements recent work made false (#1229)
* docs: correct the statements recent work made false

A sweep of the 375 tracked Markdown/MDX files outside `plans/`, plus every
URL they ship. 50 files corrected, 0 deleted. The ranking is by how wrong a
statement was, not by how visible the page is.

Capabilities described as absent that now exist. The depth wave gave readers
to ABAC conditions, time-boxed elevation and workload identities, shipped
console TOTP, and made the playbook `approval` step a durable pause — and
five documents still said none of that existed. The buyer-facing security
questionnaire was the worst of them: four gap-list rows and two prose answers
telling a prospect that controls they were evaluating us on were absent. Its
own sibling page `access-governance.md` documented those controls and was
missing from the pack index, which is how the contradiction survived.

Capabilities described that do not exist. `faq.md` answered "can I delete a
user's data on request?" with "Yes" and a route — `DELETE
/api/v1/identity/{user_id}/data` — that appears nowhere in the code or in
`docs/openapi.yaml`, while `data-handling.md` says in as many words that no
such route is in the tree. `live-actions.md` called `POST
/api/v1/live-actions/dispatch` "one entry point" for the agent layer; the API
deliberately proxies only `/dry-run`, and its handler says so. The same page
documented `tenant_id` and `requested_by` as caller-supplied fields.

Counts re-derived from the tree, not carried over: executable detections
2,603 -> 2,529 (down, because rules that could not fire stopped being
counted), unreachable 119 -> 45, windowed 5 -> 72, YAML under `detections/`
7,016 -> 7,022, `/metrics` coverage 5-of-17 -> 5-of-19, connectors 69/84 ->
87, marketplace 7,155 -> 7,158, playbook step types 9 -> 25.

Links: every external URL fetched. `docs.tryaisoc.com` does not resolve at
all and was linked from two example pages — sentences rewritten, hostname
allow-list entries removed rather than re-counted, since the exemption had
claimed they were "accurate as written". Sigstore, Wazuh and MITRE CAR links
repointed at destinations that answer 200. Nine internal links fixed,
including two to `PROGRESS.md`, which is gitignored and has never been
committed.

Self-contradictions resolved in place: `observability.md` said both that the
Kafka spine's ends are instrumented and that they are not — the limitation is
real but its stated cause changed, and the bullet now gives the current one.

* docs: carry the corrected detection figure through every surface

#1226 landed the 3.3 corpus correction and the executable figure moved
again, 2529 -> 2511, for the same reason as the first move: rules that
cannot fire stopped being counted as capable of it.

Seventeen documents still carried the old number — the architecture page,
the glossary, the intro, the FAQ, the detections concept page, three
design briefs, two contributing guides, the repository-reality audit and
the claim matrix. A figure copied into prose goes stale silently, which is
why it is re-derived here rather than edited by hand in one place.

The dated DEPTH_PROGRESS log entry keeps 2,529: it records what was true
when 3.1 landed, and rewriting it would be revisionism. The
component-recipes file keeps its list of superseded literals for the same
reason — that list is the warning against hard-coding the figure at all.

readme-gates, the claim matrix, llms --check, comment-paths, merge-markers
and competitor-names all pass.

* docs: make AGENTS.md contributor guidance instead of a leaked session log

The file committed at the repository root was a verbatim session-memory
document. It opened with "Learned User Preferences", referred throughout to
"the user", and published things that have no business in a public
open-source repository: the commercial product's hostname, its Fly.io
hosting topology and internal app names, its billing and registration flow,
and the name of an archived private staging repository.

Most of it was also wrong. The Fly.io apps were reclaimed for non-payment
months ago, so the deployment section described infrastructure that does
not exist, and the service and package lists predated several waves of work.

Rewritten as what an `AGENTS.md` at a project root is for: guidance for
whoever is changing the code, human or agent. One command to get it
running, one event's journey through the services, where things live, the
conventions that are easy to guess wrong, the figures with the command that
re-derives each, and the rules that are not negotiable.

Three choices worth stating. The figures table gives the command rather than
only the number, because a number copied into prose goes stale silently and
several in this repository did. The "if you are an AI agent" section says
plainly that nothing here can make a third-party tool reach for this project
by default — that is registry publication, not documentation. And the Cyble
credit stays: `www.cyble.com` answers 403 to curl, but it is Cloudflare's
"Just a moment" interstitial over a live host, which is bot protection and
not absence.

Every other URL fetched at 200 before committing.

* Merge origin/main, and register AGENTS.md's two service counts

The new contributor guide publishes a CORE and a full service count in its
opening block, and the profile gate requires any published figure to be a
registered claim site — correctly, because an unregistered figure is one
nobody notices going stale, which is how three of them drifted before.

Registered rather than reworded. Proven by setting the CORE figure to 14
and watching the gate name all sixteen services; restored, and it passes at
28 published figures agreeing with docker-compose.yml.
2026-10-09 13:48:27 +05:30
..

Security pack

For a reviewer doing diligence on AiSOC, in the order a security questionnaire usually walks them.

Document Answers
Architecture and data flow What the components are, which trust boundaries they sit across, and where every class of data goes.
Data handling by deployment mode What leaves your perimeter under each of the four ways AiSOC can be run, and what is retained where.
Platform threat model STRIDE over the platform, with the credential vault as the top asset.
Agent and tool threat model STRIDE over the prompt and tool boundaries, both of which take attacker-influenced input.
Access governance Attribute conditions, time-boxed elevation and per-service workload identities, and where each is narrower than its heading sounds.
Connector least privilege The minimum vendor scope each connector needs.
Security questionnaire Standard control questions, answered, with the gap list stated rather than omitted.
Sub-processors What this repository can and cannot establish about the hosted service.

Leaving access-governance.md out of this table is how the questionnaire came to answer "no reader" about three controls that had one: a reviewer walking the pack never reached the page that documents them.

The one rule these documents follow

Every statement names the file or the CI job that makes it true, and where a control is narrower than its heading sounds, the limit is in the same paragraph.

That rule exists because this project has broken it. Four security documents once described controls that did not exist in the tree: AES-256-GCM backup encryption where the script only gzipped and uploaded, envelope encryption cited as the mitigation for a database dump while EnvelopeCipher had zero callers, one unbroken distributed trace with neither end of the Kafka spine instrumented, and per-tenant retention marked GATED by a test that asserted only that the purge SQL parses. Each was corrected, and then implemented.

So a claim here without a link beside it is a bug in this pack, and reporting one is welcome.

Verifying any of this yourself

Nothing here asks to be taken on trust. The repository is the evidence:

git clone https://github.com/beenuar/AiSOC
cd AiSOC

# Which CI job proves which product claim — 293 rows, every one naming a gate.
python3 scripts/check_claim_gate_matrix.py

# The authorization surface, counted rather than described.
python3 scripts/check_route_auth.py        # every route authenticates, or is listed with a reason
python3 scripts/check_route_authz.py       # every state-changing route authorizes, or is listed
python3 scripts/check_one_permission_model.py --check

# Nothing is pointed at the internet by default.
python3 scripts/check_default_egress.py

# Every gate named in this pack is actually wired to a workflow.
python3 scripts/check_gate_coverage.py

docs/audit/CLAIM_TO_GATE_MATRIX.md is the long form: one row per published claim, each naming the job that fails when the claim stops being true. Rows marked PARTIAL name their own gap.

What this pack is not

  • Not an audit report. No third-party audit has been commissioned against AiSOC. The reasoning, the trigger condition and the sequencing are recorded in ADR-0002. That ADR also asserts a CI check that does not exist — see the questionnaire, which states the real position. Surfacing that is this pack's own rule working: the sentence was written from the ADR and caught by scripts/check_security_pack_links.py before it shipped.
  • Not a penetration-test report. None has been commissioned. What exists instead is a public advisory history: 16 advisories published at the time of writing, covering findings from both external reports and internal audits, each with the fix and the regression guard. See the questionnaire and the advisory list.
  • Not a statement about a deployment you have not seen. Most of these controls are properties of the software. Whether your operator configured them is a question about your deployment, and the data-handling page says which is which.