Skip to content
SECURITY.md

SECURITY.md

github.com • November 28, 2026

Please do not open a public GitHub issue for a suspected vulnerability. Report it privately so it can be assessed and fixed before details are public.

Preferred: open a private GitHub Security Advisory . This keeps the report, discussion, and fix coordination in one private place tied directly to the repository.

If you'd rather not use GitHub, email @guardana.dev or use karauda.com/ instead.

A description of the vulnerability and its impact.

Steps to reproduce (a minimal artifact, rule, or profile that triggers it).

The Guardana version / commit and which package(s) are affected ( guardana-core , guardana-rules , guardana-cli , guardana-report , guardana-server ).

We will send a first response to every vulnerability report within 14 days of receiving it. Once a fix is available, we will coordinate a disclosure timeline with the reporter. Please allow us reasonable time to ship a fix before public disclosure.

The default disclosure window is 90 days: the advisory is published when the fix ships, and at the latest 90 days after the report, unless the reporter agrees otherwise.

An emailed report is moved into a draft GitHub advisory. The fix is prepared on the advisory's private fork; nothing it appears in a public branch, issue or PR before the release.

The advisory is published once all five distributions are on PyPI. It lists the affected distributions, affected versions ( exit 2 (indeterminate) rather than 0 when a restrictive --plugins mode leaves an empty rule list or a reference that no loaded catalogue defines. Neither is a clean result. pack validate and pack lock refuse before reading any manifest if plugin trust refused anything, an installed format or reporter included, or if two distributions install one output name. Reading a manifest imports its package, and both commands check or pin this build's own registrations. A registry that omitted extensions cannot determine that a pack "does not register" something it was not allowed to load. In CI, check the exit code when you restrict trust; do not rely only on a warning on stderr.

--no-plugins remains as a deprecated alias for --plugins disabled on scan and plan scan only.

What trust and a lock do not do

Trust is per distribution: admitting one for its output also admits every rule, evaluator and target it ships. Pack manifests and locks are not signed. A pack lock detects a changed rule declaration or version, but does not authenticate the publisher or pin the Python behind an evaluator, target or output. Code installed editable or from a direct URL can change under one version; only a recipe lock pins it by file digests. To pin installed code, use hash-checked installs ( pip --require-hashes , uv.lock ).

Running the collector ( guardana-server )

The optional collector requires a scoped API key on every route that carries a finding, keeps keys hashed at rest, and shows a key exactly once. Keys live in the database, so a collector with nowhere to keep one refuses to serve rather than serving openly. Each key is bound to one project and optionally to one environment , and every storage query is scoped to it — a cross-tenant read returns nothing.

Two switches, both of which have to be typed, produce a collector that authenticates nobody: GUARDANA_STORAGE=memory together with GUARDANA_ALLOW_UNAUTHENTICATED=1 . That configuration exists for evaluating Guardana on a laptop. Do not expose it to an untrusted network , and note that its store is bounded and lost on restart.

The optional dashboard ( GUARDANA_DASHBOARD=1 , off by default) is read-only and signs in with a read-scoped API key , kept in an HttpOnly , SameSite=Strict cookie the page cannot read. key revoke ends the session. The cookie authenticates reads and nothing else : ingest accepts a bearer header only, so a page on another origin cannot make a signed-in browser submit findings — enforced in the guard rather than left to one browser flag. The page is served with a Content-Security-Policy that runs only its own script and stylesheet, by hash, and it escapes every submitted value it renders ( threat model , T7).

Two limits bound what one caller can do: a request-body ceiling ( GUARDANA_MAX_BODY_BYTES , 8 MiB, 413 over it) and a per-caller rate limit ( GUARDANA_RATE_LIMIT_PER_MINUTE , 120, 429 with Retry-After ). Both refuse a value that is not a number at start-up rather than treating a typo as "no limit", and the rate limiter is per worker process — put a proxy in front for a global one.

Every submission is validated and a malformed one is rejected with a 422 rather than stored — input hardening, which is a different thing from access control and does not replace running the service inside your own perimeter.

How we hold ourselves to this

A security tool that doesn't scan itself is a marketing exercise. On every push, CI runs the bandit rule set over our own source ( ruff 's S family), audits our dependencies ( uv audit ), and runs guardana scan packages — Guardana against Guardana, which must stay at zero findings. The pre-commit gate refuses a commit that contains a private key ( detect-private-key ) before it ever leaves a contributor's machine. .github/workflows/fuzz.yml runs the Atheris targets for 120 seconds each. .github/workflows/scorecard.yml publishes OpenSSF Scorecard results to the OpenSSF API and GitHub code scanning, and retains the SARIF workflow artifact for 30 days.

What one maintainer cannot guarantee

One maintainer cannot provide independent review or release continuity.

The sole write collaborator is the sole guardana organization and @guardana/maintainers member, owning every path.

main requires pull requests, passing required checks on an up-to-date branch, resolved conversations and linear history; administrators follow these rules, and force pushes are refused. Required approving reviews: 0 .

The tag-pushing maintainer is the only pypi publish reviewer, holds the SSH tag-signing key and publishing approval, and approves every publish. Nobody else holds keys or can take over releases during unavailability.

DCO sign-off is optional and unenforced ( CONTRIBUTING.md § Sign-off).

Scorecard's Code-Review , Branch-Protection and Contributors scores reflect these limits and are expected to remain below maximum with one maintainer.

Required checks on every main change, signed and GitHub-verified release tags from v1.0.0rc3 ( v1.0.0rc2 , earlier tags and the moving Action pin vX.Y remain unsigned), trusted publishing without a long-lived token, build provenance, SBOMs and reproducible builds anyone can re-run still hold.

What a release publishes, and how to check it yourself

Every release publishes, alongside the five distributions:

a CycloneDX SBOM per distribution , attached to the GitHub Release as guardana- - .cdx.json — guardana-cli 's bill of materials is not guardana-server 's, and one merged document would tell a collector operator they had installed Typer;

build provenance for the distributions, signed keylessly through Sigstore, plus PyPI's own PEP 740 attestation from the trusted-publishing upload;

build-provenance bundles , attached to the GitHub Release as guardana- .sigstore.json for the five packages' wheels and sdists, and guardana-reference-pack- .sigstore.json for the reference pack's wheel and sdist. The pack uses its own version, independent of the release tag. The first release after 1.0.0rc5 carries these bundles; 1.0.0rc5 and earlier have none;

an SBOM and provenance attestation for each container image , pushed into the registry beside it, and from 0.33.0 a provenance statement per image digest signed keylessly through Sigstore, which is what gh attestation verify oci://… checks. Images before 0.33.0 carry the unsigned attestations only.

Check them without trusting this document:

For a downloaded file, use --bundle to check it against the build-provenance bundle attached to the GitHub Release:

Release tags from v1.0.0rc3 are signed with an SSH key registered to the maintainer's GitHub account and reported verified by GitHub; tags v1.0.0rc2 and earlier are not signed. The following command reads GitHub's verdict on a tag's signature and prints true for a verified signature.

The SBOMs are generated by uv export from the same uv.lock the tests and the release run against — one resolver, so the bill of materials cannot disagree with what was built — and scripts/generate_sbom.py reads each file back and checks it against that package's own metadata before the release keeps it. CI generates and verifies them on every push, so a tag is never the first time they are produced.

To check that PyPI's files match the release tag's build, rebuild them and compare byte for byte as described in Reproducible builds . The release controls are described in the threat model .

If a release is withdrawn

All five PyPI distributions are yanked, not deleted. An exact pin still installs the yanked release; a version range no longer picks it.

The ghcr image versions of both images are deleted, breaking digest pins to them. The moving X.Y image tag points back to the last good release.

The moving vX.Y Action tag moves back. vX.Y.Z never moves.

The GitHub Release is marked pre-release with the reason. A security advisory is published when the cause was a vulnerability or an artifact the project did not build.

Guardana supports major 1 (1.6.x). Security fixes land on the latest release; there is no LTS branch. Neither 0.41.x nor the 1.0.0 release candidates receive further releases. A plain install selects the latest stable release; pip install --upgrade --pre is needed only for a release candidate. Which versions stay compatible, how long a Python version is supported and how a name is deprecated before it is removed is stated in the compatibility policy .

Extracted Entities