interplane.Get Omega
Read in your language

cortex

aien-dev/cortex

Brought by drakestapleton

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
5Report privately. Do not open a public issue, pull request or discussion about it.
6
71. 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.
102. Email: drake@aienos.com with the subject `[cortex] security report`.
11
12Include the commit or release you tested, the component (path), steps to reproduce, and what an
13attacker gains. If the report involves a secret, say where it was exposed and do not send the
14secret itself. Encrypted mail is not required; do not post proof-of-concept payloads publicly.
15
16## Response targets
17
18This 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
30server `cortex-rs` 0.1.0, meant to be byte-for-byte compatible on the wire, plus `cortex-import`,
31which converts a cortex-rs SQLite database into the server's append-only log (`CXLOG001`).
32
33In 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
43Out 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
50Only the head of the default branch (currently `wip/omega-cortex`; `main` once the port is merged
51there); nothing is released. Reports against older commits are welcome but fixes land on the default branch only.
52
53## Status
54
55Work in progress. Hosted CI compiles both units with the pinned compiler and produces an SBOM; the
56differential and parity suites run locally (`check.sh`), not in CI. No certification, no
57bug bounty. See AUDIT_SCOPE.md for what to review and how to build and test it.