Files
Beenu AroraandBeenu 5e473739ff chore: relicense from MIT to AGPL-3.0 (#2098)
Relicenses AiSOC from MIT to the GNU Affero General Public License v3.0.

## How the change is shaped, and why

`LICENSE` is the full AGPL-3.0 text, unmodified, so GitHub's detector
and every tool that reads it report `AGPL-3.0-only`. `LICENSE.MIT`
retains the original permission notice **verbatim** — byte-identical to
what was there before.

That second file is not decoration. MIT permits sublicensing, which is
what makes this change possible at all, and it requires the notice be
preserved. Contributions were received under MIT from **36
contributors** with no CLA and no DCO, and their copyright stands.
Releases up to and including **v23.9.0** stay under the terms they were
published with; nothing is withdrawn from anyone who already has a copy.

## Generators before outputs

Several generators emit the licence string and the repo gates their
output with `--check`. Editing an output alone is reverted on the next
run, so the generators moved first: **18** `sync_vendored_*.py` scripts
and the 63 files carrying their header, `generate_llms_txt.py`, the PDF
footer in `render_white_paper.py`, `generate_p0_manifests.py`, and the
five CLI plugin scaffolds. Everything was then regenerated and committed
alongside.

## Third-party terms are untouched — the part worth checking

The marketplace index holds **6,205 licence keys and only 92 are ours.**
A blanket find-and-replace would have purported to relicense several
thousand detection rules belonging to other projects. Counted before and
after:

| | before | after |
| --- | ---: | ---: |
| SigmaHQ rules (`DRL-1.1`) | 3,132 | **3,132** |
| MITRE CAR / Splunk / Chronicle (`Apache-2.0`) | 2,981 | **2,981** |
| AiSOC plugins | 92 MIT | **92 AGPL-3.0-only** |

Identical across all three synced copies. Also left alone: Aceternity
UI's components keep their upstream MIT notice, Atomic Red Team's row in
`LICENSES.md` keeps its own licence, and the verdict-corpus allowlist
keeps every permissive entry — another project's MIT data is still
redistributable here and our licence does not retract anyone else's
grant. `AGPL-3.0-only` was *added* to that allowlist because the
project's own hand-authored corpus now carries it.

**ADRs and audit records are not rewritten.** They describe decisions in
the context they were made; editing them to read as though the project
was always AGPL would be revisionism.

## Surface covered

308 files. The declarations: 11 `package.json`, 17 `pyproject.toml`, 5
trove classifiers (plus one **added** to `aisoc-sdk`, which is live on
PyPI and had none), 92 `plugin.yaml`, and the MCP descriptors. Five
manifests that declared no licence at all now do. The prose: README
badge and footer, the Cyble funder credit — kept exactly as prominent,
only the licence name moves — the console footer and the test pinning
it, the docs config and footer, the SEO keyword, two social cards, the
compose and Terraform headers, the papers, blogs and press kit.

## Verified

| Check | Result |
| --- | --- |
| All 18 `sync_vendored_*.py --check` | pass |
| `build_marketplace --check`, `generate_llms_txt --check` | OK |
| `render_white_paper --check` + extracted PDF text | both PDFs carry
AGPL-3.0, no MIT claim remains |
| `readme_gates`, `check_verdict_corpus`, `check_competitor_names`,
`check_attribution --all` | OK |
| `export_openapi --check`, `project_stats --check`,
`detection_truth_table --check` | OK |
| `apps/web` suite | 1,411 passed (140 files) |
| Repo-root suite | 1,739 passed, 35 skipped |
| `tsc --noEmit`, `ruff format --check`, `ruff check` | clean |

Pre-existing and unrelated: `packages/aisoc-cli` shows 7 failures and 8
errors from a Python 3.14 monkeypatch incompatibility, reproducing
identically on clean `main`.

## What this PR does not do

The five packages already on PyPI (`aisoc-sdk`, `aisoc-cli`,
`aisoc-sandbox`, `aisoc-plugin-sdk`, `aisoc-detections`) **still carry
MIT in their published registry metadata** and will until a release
re-publishes them. Nothing is on npm yet, so those are unaffected. The
registries do not update themselves and this PR does not pretend
otherwise.

Worth recording as a decision rather than discovering later: AGPL
applies to the client SDKs too, which is a stronger obligation than a
client library usually carries. That follows from relicensing the whole
product.

Co-authored-by: Beenu <beenuar@users.noreply.github.com>
2026-11-29 15:50:14 -08:00
..

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.