Skip to content

Security: Entropy-Foundation/compliancekit

Security

SECURITY.md

Security Policy

compliancekit is a security tool. Vulnerabilities in it directly weaken the posture of every organisation that runs it, so we take reports seriously and respond quickly.

Supported versions

Version Status Security fixes
1.0.x active yes
0.22.x last pre-1.0 minor yes (until 2026-11-18)
< 0.22 unsupported no

Two-year compatibility commitment (v1.0+)

Once a release reaches v1.0, security patches land on the last two minor versions for at least two years from that minor's release date. For the v1.x line this means:

  • The active minor always receives security patches.
  • The previous minor receives security patches for two years after its own release.
  • Behavioural changes that break the public API surface (pkg/compliancekit) require a major-version bump per SemVer 2.0; they cannot ship as a patch or minor.

The two-year window is a floor, not a ceiling — minors with active embedders may be extended on request. Pre-v1.0 versions did not carry a stability promise; the table above reflects the actual end-of-support dates the project commits to.

Public API stability

pkg/compliancekit is the SemVer-stable surface. The contract is machine-enforced by go run ./cmd/genapi -check in CI — adding, renaming, or removing any exported identifier under that package requires a paired diff to pkg/compliancekit/api.txt. Anything under internal/ is explicitly NOT covered by the SemVer promise and may change in any release; consumers who reach across that boundary do so at their own risk. See ADR-014 for the full scope rationale.

What counts as a vulnerability

The non-exhaustive list:

  • Code execution in the compliancekit binary triggered by attacker-controlled input (a malformed findings.json, a malicious inventory.yaml, a poisoned godo response).
  • Path traversal or directory escape from the evidence pack writer.
  • Disclosure of secrets in scan output, logs, or evidence packs that the redactor should have masked.
  • Bypasses of the framework / severity gating in CI -- e.g. a finding that should produce exit code 2 but does not.
  • SSH transport flaws that downgrade host-key verification or accept unauthenticated connections.
  • Supply-chain issues: a release with a tampered binary, a broken cosign signature, an SBOM that omits a real dependency.

Bug-bounty-style findings outside the scope above (general DoS via large inputs, slow loris on serve mode (v1.3+), etc.) are valid bug reports but go to the public issue tracker, not the disclosure channel below.

How to report

Use GitHub Private Vulnerability Reporting at:

https://github.com/darpanzope/compliancekit/security/advisories/new

Or, if you cannot use GitHub: email darpanzope@gmail.com with the subject prefix [compliancekit-security]. We do not run a separate security mailbox at this time.

Please include:

  1. The compliancekit version (compliancekit version).
  2. A minimal reproducer -- a script, a sample input file, exact CLI flags.
  3. Your assessment of impact and a CVSSv3.1 score if you have one (we will compute one ourselves either way).
  4. Whether you intend to publish, and on what timeline.

Do not open a public issue, do not include the reproducer in a public PR, and do not post on the project's Discussions tab before coordinated disclosure.

Our response process

When What
within 3 working days acknowledge receipt, assign a tracking ID
within 7 working days confirm or dispute the vulnerability
within 14 working days propose a fix and a disclosure timeline
at coordinated disclosure publish a security advisory, ship a patch release, credit reporter

The default disclosure window is 45 days from confirmation. We will ask for an extension on findings that need an upstream fix (a Go stdlib issue, a godo change) and proactively cut it short when the bug is already being exploited in the wild.

Credit

We credit every researcher who reports a confirmed vulnerability in the release notes and in the relevant security advisory. If you would prefer to remain anonymous, say so in your initial report.

Out of scope

  • The Homebrew tap, GitHub Action, and Docker image at ghcr.io/darpanzope/ compliancekit are first-party but are released by the same goreleaser pipeline as the binaries; report issues against them here.
  • Misconfigurations in your compliancekit deployment (an unprotected evidence pack served from a public S3 bucket, say) are operational issues, not vulnerabilities -- unless the misconfiguration is the documented default.

Hardening defaults we already ship

  • The evidence pack redacts AWS access keys, GitHub PATs, Slack tokens, bearer headers, and email addresses by default; --include-raw is the documented opt-out.
  • MANIFEST.sha256 covers every file in the pack; tampering after the fact is detectable with sha256sum -c MANIFEST.sha256.
  • Releases are cosign-signed (keyless via GitHub OIDC) and ship with a Syft-generated SBOM.
  • The binary is CGO_ENABLED=0-built and statically linked, eliminating an entire class of dynamic-linker attacks.
  • govulncheck runs on every CI build against the call graph; vulnerable stdlib paths block merge.

Hardening defaults for serve mode (v1.3+)

  • Session cookies default to __Host-ck_session with Secure, HttpOnly, SameSite=Lax, and Path=/. The __Host- prefix is browser-enforced (no Domain, no insecure transport). Plain-HTTP dev deploys (e.g. behind a TLS-terminating proxy on a private network) can opt in to a non-__Host- cookie via compliancekit serve --insecure-cookies — production must never set this flag (v1.5.1 F17).
  • CSRF: every cookie-auth POST/PUT/DELETE on the API + every mutating UI form is gated by a double-submit-cookie check. Forms render <input type="hidden" name="csrf_token" value="...">; fetch-based callers mirror the readable ck_csrf cookie into the X-CSRF-Token header. Bearer-token callers skip CSRF since the token isn't a browser-resident credential (v1.5.1 F16).
  • Session-auth scope gate: non-admin local users created via compliancekit serve users create (no --admin flag) only have read scopes against the v1 API. Write actions (POST scans, PUT providers, DELETE waivers, etc.) require IsAdmin = true (v1.5.1 F18).
  • OIDC: Google / Okta / GitHub / custom upstreams are wired via CK_OIDC_<PROVIDER>_{CLIENT_ID,CLIENT_SECRET,REDIRECT_URL, ISSUER_URL} env vars. Partial config is logged + skipped; the daemon never refuses to boot for a malformed OIDC config (v1.5.1 F15).
  • Content Security Policy: default-src 'self'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; frame-ancestors 'none'; .... 'unsafe-eval' is required for Alpine 3's expression evaluator (see ADR-018); 'unsafe-inline' is required for Tailwind's compiled utility classes. Inline <script> blocks are forbidden — both extracted in v1.5.1.
  • Webhook signing secrets are stored plaintext at-rest in the daemon's database file. Operators secure the DB at rest; the v1.6 hardening track adds encryption-at-rest with a daemon-side KEK. The v1.3-era secret_hash (bcrypt) design was unusable as an HMAC key and was renamed in v1.5.1 (F19, migration 0006).

There aren't any published security advisories