Reference

Security overview

What runs where, what leaves your network (no telemetry, no customer data), identity and access, request handling, audit, secrets, licensing and supply chain, for a procurement or security review.

SectionReference
UpdatedOctober 23, 2026
EditionSelf-hosted Enterprise, public beta

Applies to self-hosted ShakerScan Enterprise 0.2.0-beta.45 (public beta, October 2026). Every statement below describes behaviour that exists in the product and was exercised in acceptance testing. Items marked not yet are not claimed.

What runs where

Everything runs inside the customer's environment on a Docker host the customer operates.

ComponentSourceNetwork positionData it holds
Public engine (api, worker, ui, postgres, redis)Open-source ShakerScan images, digest-pinned, AGPL-3.0Private Compose networks; no published portsTargets, credentials for authorized targets, findings, evidence, HTTP transactions
Enterprise gatewayPrivate image from the vendor registry, digest-pinned and signedThe only service reachable from the customer network, behind Caddy TLSIdentities, sessions, service tokens, audit metadata, MFA secrets (sealed), licensed-slot ledger
CaddyPublic image, digest-pinnedPorts 80/443TLS certificates

The gateway proxies every request to the engine. Workers cannot reach the API directly; the API and workers use separate database-facing networks; the storage initializer runs with no network. No container mounts the Docker socket. The gateway runs read-only as an unprivileged user with all capabilities dropped.

Data that leaves the environment

No customer data is sent anywhere by the Enterprise gateway: no telemetry, no license activation or check-in, no usage reporting. Apart from sign-in calls to the identity provider the customer configures, the running gateway makes two requests of its own, both read-only and both only for an administrator's browser session in the console (the routes refuse service tokens and other roles):

  • The public engine release catalog from GitHub: the latest main commit of andriyze/shakerscan, install/STABLE_VERSION at that commit and the published release list. Read when an administrator's console loads (on any view), each time the administrator switches to the Overview, every five seconds while an engine update is requested or running, and afresh, bypassing the cache, when an administrator requests an engine update.
  • The vendor's signed gateway release channel from shakerscan.com (https://shakerscan.com/enterprise/gateway-channel.jwt). Read each time an administrator switches to the console's Overview from another view (the console's first load does not read it), every five seconds while a gateway update is requested or running, and afresh when an administrator requests a gateway update.

A successful answer is kept for ten minutes and reused; a failed one is not kept, so the next read tries again. Both are plain HTTPS GET requests with no credentials, cookies, licence or installation identifier: the server sees the host's address and the generic client name python-httpx. The channel request goes through the outbound proxy when one is configured and follows no redirects; the catalog requests go directly. The gateway accepts the channel only with the vendor's signature and lists only the releases it names (each pinned by digest in ghcr.io/andriyze/shakerscan-enterprise) that are newer than the running gateway; nothing is applied until an administrator requests it. Without that egress, the gateway is upgraded with upgrade.sh (install guide).

The host updater, started every 30 seconds by its systemd timer, only asks the local gateway whether an update was requested; it contacts nothing outside the host until an administrator has requested one. Applying an engine update, it reads that release's publication record (certification receipt and image lock) from GitHub through the gateway's command line, downloads the release's installer from raw.githubusercontent.com at the exact source commit, runs it (the installer downloads the release's files from GitHub) and pulls the engine images from Docker Hub. Applying a gateway update, it verifies the image's signature and SBOM attestation with cosign and pulls the image from ghcr.io.

The public engine's own outbound behaviour (target traffic, optional AI providers configured by the customer, model endpoints) is the customer's configuration and network policy. The generated deployment disables automatic retesting, attack-surface discovery defaults and the AI operations router unless the customer turns them on.

The complete outbound list for a generated deployment, for an egress allowlist:

DestinationComponentWhen
registry-1.docker.io, auth.docker.io, production.cloudflare.docker.com (Docker Hub)host Dockerpulling the pinned public engine images at install, at upgrade and when the host updater applies an engine update
ghcr.io, pkg-containers.githubusercontent.comhost Docker, cosign on the hostpulling the Enterprise gateway image with the customer's read token at install, at upgrade and when the host updater applies an update; cosign reads the image's signature and SBOM attestation there at install and before the host updater applies a gateway update
api.github.com, raw.githubusercontent.com (repository andriyze/shakerscan)gatewayread-only fetch of the public engine release catalog, only for an administrator's console as described above: when it loads, on each switch to the Overview, every five seconds during an engine update, and afresh on an engine update request; a successful answer is reused for ten minutes
api.github.com, raw.githubusercontent.com, github.com, release-assets.githubusercontent.com (repository andriyze/shakerscan)gateway command line (run by install.sh and the host updater), the public engine installerread-only fetches at install (the release catalog, to choose the stable release) and, at install and when the host updater applies an engine update an administrator requested, that release's publication record, its installer at the exact source commit and the release's files
shakerscan.com (/enterprise/gateway-channel.jwt)gateway, through the outbound proxy when one is configuredread-only fetch of the vendor's signed gateway release channel, only for an administrator's console as described above: on each switch to the Overview, every five seconds during a gateway update, and afresh on a gateway update request; a successful answer is reused for ten minutes, a failed one is not kept
install.shakerscan.comhostthe public engine installer, only on the manual install, upgrade and restore paths
api.github.com and the Sigstore public-good services (Rekor transparency log, TUF root)cosign and gh on the hostverifying the gateway signature, SBOM attestation and engine build attestations at install (install.sh), and the gateway signature and SBOM attestation (cosign only) before the host updater applies a gateway update
acme-v02.api.letsencrypt.org and the ACME HTTP challenge inbound on port 80Caddyonly when no customer certificate was given to prepare
the OIDC issuer's discovery, authorization, token, JWKS and userinfo endpointsgatewaysign-in, when OIDC is configured (SHAKERSCAN_ENTERPRISE_OIDC_ENDPOINT_HOSTS pins them)
the scan targets the customer authorizesengine workersscanning; the workers pin each target's resolved addresses for the run
AI provider or model endpoints the customer configuresengineonly if configured; off in the generated deployment
a private interactsh server the customer configuresengineonly if configured; the tools run with -no-interactsh otherwise

The scanner tools run with update checks disabled; templates and vulnerability databases are baked into the pinned images, so nothing is fetched at scan time. Proxy environment variables are ignored by design (trust_env=False) by the engine's HTTP clients and by the gateway's clients for the engine, the identity provider and the gateway release channel, so no proxy can ever sit between the gateway and the engine. A corporate proxy is configured explicitly instead (prepare --outbound-proxy): Caddy's ACME client, the gateway's calls to the identity provider and its gateway release channel read go through it; the gateway reads the engine release catalog directly (the rendered deployment gives its container no proxy variables); the engine's target traffic does not go through it and must be allowed directly at the firewall; image pulls follow the Docker daemon's proxy configuration.

Identity and access

  • Single sign-on: OpenID Connect authorization code with PKCE, one-use state bound to the browser, nonce check, signed ID-token validation (RS256, ES256), exact issuer match, HTTPS-only provider endpoints restricted to reviewed hosts. Requires the authorization-code flow with S256 PKCE, RS256 or ES256 ID tokens, and client_secret_basic or client_secret_post. Validated with Okta and Keycloak (Okta guide); other providers, such as Microsoft Entra ID, use the same standard flow. Two-step verification for provider accounts is the provider's policy. An administrator configures single sign-on in the console (issuer, client, sealed client secret, group-to-role table) and runs a test sign-in at the provider before saving; saved settings apply without a restart and are audited.
  • Single sign-on required (optional): an administrator can require single sign-on for browser sign-in, terminal approvals and pre-authorizations, keeping one named local break-glass administrator, who must hold a passkey or an authenticator app; break-glass sign-ins are audited. Turning it on ends other local sessions and withdraws open invitations. Five failed password attempts for a username within fifteen minutes lock that username's password sign-in unless the same request carries a valid authenticator or recovery code; passkey sign-in is not locked. Local sign-in can also be turned off entirely.
  • Re-authentication (step-up): decisions such as accepting Hunt-written guidance, dismissing findings or revealing a discovered secret need fresh proof for that one decision: a passkey or authenticator code for local accounts; for single sign-on accounts a fresh provider sign-in (prompt=login, max_age=0), accepted only if auth_time is after the request began, it names the same person and session, and its acr matches when configured. The grant covers that decision, once, for two minutes.
  • Admission: an identity is admitted by its exact subject or by a deliberate first-sign-in group-to-role mapping. Local role changes are authoritative; removing an IdP group does not remove local access (disable the identity in the console). No SCIM (not yet).
  • Roles: viewer (read findings, evidence, scans, targets), operator (start scans, manage credentials and collections), admin (identities, tokens, audit, license). Enforced per request by method and path allowlists; unreviewed engine routes are denied. Everyone can read what each role may do under My account.
  • Local accounts: Argon2id password hashing, minimum 14 characters, throttled sign-in, authenticator-app two-step verification with per-code replay protection. Policy can require two-step verification for administrators or all local users; a required-but-unenrolled session can reach only the enrollment screen. Ten single-use recovery codes, shown once, replace a lost passkey or authenticator; the operator's server-side reset-mfa and reset-password commands remain the break-glass path. Accounts can be created by one-time invitation links, so the person chooses their own password; an administrator can issue a one-time password-reset code (shown once, valid for an hour) without ever choosing or learning the password.
  • Passkeys for local accounts: WebAuthn, user verification required, bound to the gateway's hostname, signature counters checked, single-use server-side challenges. A passkey satisfies the two-step policy on its own; an account with a passkey and no authenticator app cannot sign in with its password alone.
  • Service tokens: issued to service identities, shown once, stored hashed, viewer or operator scope, at most 90 days, revocable individually, never able to administer or open the UI.
  • Sessions: opaque server-side sessions, __Host- secure cookies, one-hour absolute and fifteen-minute idle limits by default, bound to the password credential verified at sign-in. Role, password or factor changes revoke sessions. No provider back-channel logout (not yet).

Request handling

  • Only reviewed request headers are forwarded; cookies, bearer tokens and forwarded-host headers never cross the gateway boundary. Upstream cookies are dropped.
  • Browser mutations require a same-origin Origin header; Enterprise administration also requires a CSRF token. Engine mutations must be JSON.
  • Evidence and other engine responses are served with a sandboxing Content-Security-Policy and an attachment disposition for non-JSON media, so downloaded evidence cannot execute as a page.
  • Streaming responses re-check the session or service token every two seconds (configurable, 1-60) and stop when it is revoked.
  • Engine API requests are rate-limited per person and per service token (heavy reads more tightly; 429 with Retry-After), and long-running work (Hunt actions, streams, exports) can hold only part of the gateway's engine connections, so it cannot starve ordinary requests.
  • Request and response sizes and upstream timeouts are bounded.
  • Active work needs a target authorization on the engine. The gateway records it on the submitter's behalf, once per target, naming the operator or administrator; the audit shows who authorized which target and when. The engine's own gate still decides, and the gateway never fabricates a receipt id.

Audit

Administrative actions, sign-in outcomes, engine requests and responses (method and path, never bodies, query strings, tokens or passwords) are recorded with actor and timestamp, viewable in the console and exportable as NDJSON, in full or for a date range. Retention is configurable: by default per-request engine read rows are kept 30 days and security events are kept forever (SHAKERSCAN_ENTERPRISE_AUDIT_SECURITY_RETENTION_DAYS, at least 90, removes older ones); administrative rows are never removed, and expired rows are first counted per day. The audit store is on the host and is not tamper-proof against a host administrator (remote streaming not yet).

Secrets and keys

SecretWhereProtection
PasswordsGateway state volumeArgon2id hashes only
Sessions, service tokensGateway state volumeSHA-256 digests only
Authenticator secretsGateway state volumeAES-GCM sealed with a 32-byte key kept on the read-only secrets mount, outside the state volume
OIDC client secret, CA bundle, licenseCustomer secrets mount, read-onlyFile permissions for the gateway user only
Target credentials, evidencePublic engine (PostgreSQL, results directory)The public engine's own controls

Identity backups are AES-GCM encrypted under a passphrase-derived key (scrypt) and include the MFA sealing key; restores are create-only and revoke every session and token.

Licensing

Offline. A license is an Ed25519-signed token bound to the installation id and verified against the vendor key embedded in the package. It limits concurrent scans; the gateway reserves a slot before each scan and refuses submissions beyond the allowance. Expiry blocks new scans only; sign-in, administration, existing results and cancellation continue. A customer-attested usage summary can be exported for renewal. No network licensing, no phone-home.

Supply chain

Enterprise images are built from a version tag by a CI workflow that runs the test suite, start-tests the exact image, pushes it to a private registry, signs the digest with Sigstore keyless signing and attaches an SPDX SBOM attestation. Publication fails before anything is pushed or signed if the image has a fixed high or critical vulnerability (Trivy). Customers deploy by digest and can verify the signature and SBOM with cosign before starting anything; the kit's verify.sh runs these checks and the engine images' build attestations in one command, and the installer runs it. Engine images are pulled by digest from the public release lock file.

Operations

Create-only deployment generation, an upgrade command that keeps data and refuses downgrades, versioned state with pre-migration snapshots, and scripted backup and restore covering the engine database, evidence, encrypted identity metadata and deployment files (restore drill executed on 2026-09-12). Single-process gateway; high availability (not yet). Kubernetes packaging (not yet). An ECS Fargate evaluation layout exists and was exercised; it is not the supported deployment.

Known limitations to state in a questionnaire

One organization per installation, no project-level isolation between teams; no SCIM or SAML; no provider logout; audit is local only; HA and Kubernetes are not delivered; a single Linux Compose host (Ubuntu 24.04 LTS or 26.04, x86_64) is the supported target.