Skip to content

ISO/IEC 27001:2022 — BatleHub controls ​

This page maps the Annex A controls of ISO/IEC 27001:2022 that a package proxy serves to the controls BatleHub implements. An operator whose ISMS covers a BatleHub instance can hand it to the auditor as the starting point for the statement of applicability.

A mapping, not a certificate

The certificate belongs to your ISMS, not to the software. "Implemented" means the control exists in the code, at the place named in the Evidence column; it says nothing about whether it is enabled in your deployment or operating over the audit period. See Compliance.

Scope: the BatleHub server, its CLI, its scan worker and the project's own development and vulnerability process. The organisational controls (5.1–5.14, 6.x people controls, 7.x physical controls) are yours and are not listed.


5 — Organisational controls ​

ControlBatleHub controlStatusEvidence
5.15 – Access controlGrants of verbs on the registry → package → version hierarchy; a decision is deny unless a grant allows itImplementedAccess control, POST /api/v1/admin/access-check
5.16 – Identity managementIdentities come from your IdP (OIDC), Kubernetes service accounts, CI OIDC or static tokens; provider names are uniqueImplemented[[auth]] in configuration, crates/adapters/src/auth/
5.17 – Authentication informationPersonal access tokens stored as SHA-256 hashes, with expiry; the value is shown onceImplementedcrates/adapters/src/db/auth/user_tokens.rs, crates/adapters/src/auth/user_token.rs
5.18 – Access rightsRevoke a token, block a user, list and remove grantsImplementedDELETE /api/v1/auth/tokens/{id}, POST /api/v1/admin/users/{user_id}/block, batlehub-cli grant list
5.18 – Periodic access reviewReviewing grants and tokens on a scheduleManual processbatlehub-cli grant list, GET /api/v1/admin/audit-log?action=sign_in
5.21 – ICT supply chainEvery proxied artifact can be scanned (SBOM, CVE, verdicts), flagged by your SOC, held by a release-age gate or blockedImplementedSBOM, Scan worker, crates/core/src/rules/
5.21 – BatleHub's own supply chaincargo audit, cargo deny, pnpm audit, postmortem, Trivy; no suppressionsImplemented.github/workflows/back-dep-audit.yaml, .github/workflows/image-scan.yaml, deny.toml
5.24–5.27 – Incident managementPlaybook: severity, detection, containment, eradication, recovery, post-mortemDocumentedIncident response
5.28 – Collection of evidenceAudit log export, and a signed seal chain whose verify proves the exported window was not alteredImplementedbatlehub-cli audit export, batlehub-cli audit verify
5.33 – Protection of recordsSecurity-class rows are removed by their retention and by nothing else — a manual purge reaches access rows only, so a purge's own record survives later purgesImplementedDELETE /api/v1/admin/audit-log?before=, [audit] security_retention_days
5.34 – Privacy and PIIRetention classes, pseudonymisation, erasure and access exportImplementedGDPR mapping

8 — Technological controls ​

ControlBatleHub controlStatusEvidence
8.2 – Privileged access rightsAdmin actions need admin verbs; gdpr:erase is its own verb, not implied by audit:purgeImplementedAccess control § verbs
8.5 – Secure authenticationOIDC sign-in; every sign-in, failure, token creation and revocation and refused credential is an audit eventImplementedsign_in, sign_in_failed, token_create, token_revoke, credential_rejected in SIEM integration
8.5 – MFAEnforced at your IdP; BatleHub does not yet check the acr/amr claimsManual processNIS2 and DORA
8.7 – Protection against malwareScan worker in a sandbox (GuardDog, Trivy, operator-supplied YARA rules); a match is a finding the policy can block onImplementedScan worker, [scanners.yara] rules_dir in configuration
8.8 – Technical vulnerabilities (yours)CVE scanning of proxied artifacts; exposure report of who pulled a flagged versionImplementedIncident response § who pulled a flagged version
8.8 – Technical vulnerabilities (the project's)Private reporting, stated targets, advisories with a CVE, VEXDocumentedSECURITY.md, CRA mapping
8.9 – Configuration managementEvery applied or rejected reload is recorded with its actor and diff; validation warnings are listedImplementedGET /api/v1/admin/config/changes, GET /api/v1/admin/config/warnings
8.10 – Information deletionRetention expiry by class; erasure of one subjectImplemented[audit], batlehub-cli gdpr erase
8.11 – Data maskingAccess-class rows pseudonymised after a set ageImplemented[audit] pseudonymise_after_days
8.13 – Information backupPostgres and object-storage backup and restore runbooksDocumentedDisaster recovery
8.15 – LoggingEvery download, publish, block, grant, purge, config change and authentication event in access_events, with user, time, IP and user agentImplementedGET /api/v1/admin/audit-log
8.15 – Logs protected from tamperingSigned hash chain over closed windows; truncation detected against the SIEM's last audit_seal lineImplemented[audit] seal_interval_secs, batlehub-cli audit verify --head <digest>, deploy/siem/sigma/audit_chain_gap.yml
8.15 – A copy off the hostThe JSON audit stream on stdout, for a collectorImplemented[logging] format = "json", SIEM integration
8.15 – Write-once storageImmutable storage for the shipped copy (S3 Object Lock, a WORM bucket)Manual processyour collector's sink
8.16 – Monitoring activitiesSigma rules over the stream; Prometheus alertsImplementeddeploy/siem/sigma/, deploy/prometheus-alerts.yaml
8.16 – Watching the alertsSomeone reading themManual process—
8.20 – Network securityIP blocking, rate limiting, trusted-proxy rulesImplementedcrates/web/src/middleware/ip_block.rs, Production hardening
8.24 – Use of cryptographyEd25519 publish and seal signatures; HMAC-signed flag pushes; TLS at the ingressImplementedcrates/core/src/services/signature.rs, [audit] seal_signing_key
8.24 – Key managementHolding signing keys in a KMS and rotating themManual processNIS2 and DORA
8.25–8.28 – Secure developmentRequired review, clippy with -D warnings, CodeQL, Semgrep, gitleaks, fuzz targetsImplemented.github/workflows/codeql.yaml, .github/workflows/semgrep.yaml, .github/workflows/secret-scan.yaml, Change management
8.32 – Change managementPull-request review, migrations, config change logDocumentedChange management

Gaps ​

GapPlan
MFA is not checked by BatleHub itselfRFC 0036 phase 7 — NIS2 and DORA
Signing keys are files or environment variables, not KMS-heldRFC 0036 phase 7

Released under the Apache 2.0 License. Made with care and too much coffee.