Skip to content

Security: theofanis-tsakanikas/attestor

Security

SECURITY.md

Security

Reporting

Report a vulnerability by opening a private security advisory on this repository, or by email to theotsak90@gmail.com. Please do not open a public issue for anything exploitable.

This is a portfolio project maintained by one person outside working hours. Expect an acknowledgement within a week; there is no service level beyond that, and no bounty.

What is in scope

The controls this repository claims to enforce. If any of them can be defeated, that is a vulnerability even though no live system is affected:

  • Prompt injection reaching the narrative turn. A passage in evidence/ that carries an instruction and is neither flagged by src/attestor/security/ nor refused by the guardrail.
  • Cross-tenant leakage. Any route by which one tenant's data, memory, cache entry or session reaches another. The twelve routes already probed are in src/attestor/security/isolation.py, scored by attestor eval isolation; a thirteenth is the interesting report.
  • A number reaching a rendered artefact without a datapoint contract. Anything the provenance gate in src/attestor/gates/provenance.py scans past.
  • An override the system granted itself. No model, agent or service principal may request, approve or classify an override. A path that lets one do so is the most serious class of defect in this project.
  • A reason code laundered into a weaker one — in particular E_RESOLVER_ERROR being converted into an overridable finding.
  • A credential, account identifier or non-synthetic tenant datum committed to the repository.
  • Terraform that grants more than it needs, or a CI workflow that can be induced to assume the deploy role from an unintended ref.

What is not in scope

  • Every figure in this repository is synthetic, generated by pipelines/seed/generate.py. The three tenants are invented. Exposure of seed data is not a finding.
  • Denial of service, rate limiting and availability. Nothing here is a service.
  • The unauthenticated AWS estate: it does not exist. It is stood up inside a gated workflow and destroyed the same day.
  • Findings that depend on an attacker already holding the deploy role or repository write access.
  • Dependency CVEs with no demonstrated path through this code. Dependabot handles those.

Known limitations

Stated here rather than discovered later:

  • The evidence manifests declare more documents than exist on disk. helios declares 28 and ships 5; aegis declares 26 and ships none. The evidence check reads the manifest by design — content is untrusted, metadata is trusted — so the declared-versus-present gap is not currently caught by a gate.
  • The injection detector is scored on a corpus of 27 labelled passages (16 poisoned, 11 benign). 100% block and 0% false positives on that corpus is a real measurement of a small sample, not a general claim about prompt injection.
  • The guardrail is one layer, and it is not deterministic. Attestor treats a guardrail error as no output, but a guardrail miss is caught only by the scanner in front of it.
  • The live checks ran once, against one estate, on 12 August 2026. They are reproducible by redeploying, and the workflow is in this repository, but there is no standing environment.
  • No penetration test, no threat model review, no assurance engagement has been performed by anyone other than the author.

Credentials

There are no long-lived AWS access keys. Humans authenticate by SSO, CI by GitHub OIDC against a role whose trust policy is pinned to this repository and one environment, services by execution role, everything else by Secrets Manager. A gitleaks rule set (.gitleaks.toml) gates every push, including a custom rule for 12-digit account identifiers.

gitleaks reads text, not pixels, and the AWS console prints the account id in the corner of every page — so thirty-five committed screenshots carried it past that gate. scripts/mask_account_id.py finds the identity pill by its fill colour and covers it, and its --check mode is preflight check 40, so a screenshot that still shows the account id turns CI red rather than relying on somebody remembering. The account id is still legible in two earlier commits (7605ed4, dd9c581): an account id is not a credential, and rewriting history would invalidate every commit hash referenced by pull requests #12 onward, so it was left in place deliberately rather than overlooked.

There aren't any published security advisories