Docs / Security
If something goes wrong
What the project does when a vulnerability is reported, step by step.
What happens when something goes wrong with the project's security: a vulnerability in the code, a secret exposed, a bad release, or a compromised account. It is short on purpose, for a project with one maintainer, and is meant to be followed step by step under pressure.
SECURITY.md says what to report and where. This page says what the maintainers then do.
What counts
| Kind | Examples |
|---|---|
| A vulnerability | A sandbox escape, an egress bypass, a capture gap, a path from a world to the control plane, a real credential reaching a world |
| An exposed secret | A key or token in a commit, a log, an issue or a published file |
| A supply-chain problem | A dependency or an action known to be malicious; a release that is not what CI built |
| A compromised account | A maintainer's GitHub account, or a token of the project's, used by someone else |
A tell (a way an agent could notice the test) is not an incident: it is public, and goes in docs/tells.md.
Severity
| Level | Meaning | First response |
|---|---|---|
| Critical | The host or a real credential is reachable from a world, or main or a release has been tampered with |
Same day |
| High | Data can leave a world, or something an agent does is not recorded, in the default setup | 3 working days |
| Medium | The same, only in a setup the documents call weaker, or needing the owner's own mistake | 3 working days |
| Low | Hardening with no known way to use it | Next ordinary change |
The steps
- Acknowledge the report within 3 working days, in the private advisory it arrived in. Thank the reporter; say who is handling it.
- Confirm. Reproduce it on a fresh world. If it cannot be reproduced, say what was tried and ask for what is missing. Record what was found in the advisory, never in a public issue, commit message or pull request title.
- Contain, if it is live. For an exposed secret: revoke it first, then look for use. For a compromised account: remove its access, then review what it did. For a bad release: withdraw it. For a malicious dependency: pin back and remove.
- Fix in private. Use the advisory's private fork. The fix comes with a test that fails without it, and with the reconciliation or doctor check that would have caught it.
- Decide what users must do. Rebuild the engine? Rotate a key? Re-run results that a capture gap may have affected? Write it down in plain steps.
- Publish together: the fix merged, a release if releases exist, the advisory with affected versions and the steps for users, and the changelog entry. Credit the reporter unless they ask otherwise. The aim is within 90 days of the report, sooner for Critical, on a date agreed with the reporter.
- Look back within two weeks: what let it happen, what check now exists, what this page or the threat model got wrong. Record it in a decision record when a design choice changes.
If the maintainer cannot be reached
A report through private vulnerability reporting stays private and waits. There is no second person today who can act on one. This is a known gap, listed in the threat model; it closes when a second maintainer is added to the security advisory group.
Things to have ready before they are needed
- Private vulnerability reporting switched on, and tested with a trial report.
- The list of the project's own tokens and where each is used, so one can be revoked without searching.
- Branch rules that an attacker with one stolen token cannot change alone.
- This page read by whoever might have to follow it.
This page is docs/security/incident-response.md in the repository; improve it there.