Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/cortex/blob/main/SECURITY.md # cortex aien-dev/cortex Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `cortex / SECURITY.md` 57 lines ยท 2940 bytes Raw Blame History Rendered 1 # Security policy 2 3 ## Reporting a vulnerability 4 5 Report privately. Do not open a public issue, pull request or discussion about it. 6 7 1. GitHub: open this repository's Security tab and choose "Report a vulnerability". This 8 creates a private advisory that only the maintainers can see. If that option is not shown, 9 private vulnerability reporting has not been enabled for this repository yet; use email. 10 2. Email: drake@aienos.com with the subject `[cortex] security report`. 11 12 Include the commit or release you tested, the component (path), steps to reproduce, and what an 13 attacker gains. If the report involves a secret, say where it was exposed and do not send the 14 secret itself. Encrypted mail is not required; do not post proof-of-concept payloads publicly. 15 16 ## Response targets 17 18 This project has one maintainer; the targets below are best effort and stated honestly. 19 20 - Acknowledgement: within 3 working days. 21 - Triage and severity: within 7 days of acknowledgement. 22 - Fix or mitigation for confirmed issues: aim for 30 days for high and critical, 90 days 23 otherwise, with a status update at least every 14 days until closed. 24 - Disclosure: coordinated. An advisory is published with credit (unless you ask otherwise) 25 once the fix is on the default branch. Default embargo 90 days, negotiable. 26 27 ## Scope 28 29 `cortex` (the repository's default branch) is a re-implementation in seeded Omega of the Cortex memory 30 server `cortex-rs` 0.1.0, meant to be byte-for-byte compatible on the wire, plus `cortex-import`, 31 which converts a cortex-rs SQLite database into the server's append-only log (`CXLOG001`). 32 33 In scope: 34 35 - Access to `/api/cortex/*` without a valid bearer token, a token scope (`--tokens` file) that 36 reaches a space it does not cover, or a token comparison that leaks the token. 37 - Memory safety and trap behaviour of the HTTP parser in `om/http.om` (request line, headers, 38 `Content-Length`, chunked bodies, the 2,097,152-byte body limit, the 10 second read deadline). 39 - Corruption or loss of acknowledged writes in the log (`om/log.om`, `om/store.om`), or a crafted 40 log or SQLite file that makes `cortex` or `cortex-import` misbehave. 41 - CORS answers that allow an origin other than the loopback origin in `om/http.om`. 42 43 Out of scope: 44 45 - `cortex-rs` itself (the oracle, not in this repository), the embedding encoder reached through 46 `--encoder-url`, the pinned compiler, and the host operating system. 47 48 ## Supported versions 49 50 Only the head of the default branch (currently `wip/omega-cortex`; `main` once the port is merged 51 there); nothing is released. Reports against older commits are welcome but fixes land on the default branch only. 52 53 ## Status 54 55 Work in progress. Hosted CI compiles both units with the pinned compiler and produces an SBOM; the 56 differential and parity suites run locally (`check.sh`), not in CI. No certification, no 57 bug bounty. See AUDIT_SCOPE.md for what to review and how to build and test it.