Section 01
Overview
SigmaShake is a governance layer that enforces policy on AI agent tool calls before they execute. The system is designed around three principles: local-first evaluation, cryptographic integrity, and deterministic rule matching. This whitepaper provides a non-confidential overview of the architecture and security model. Code-level evidence and source-file references are available in the NDA-gated Controls Evidence Report.
Section 02
Security Pillars
Local-First Evaluation
Rule evaluation in the CLI makes no network call per tool call by default. Payloads leave the machine only with SIEM forwarding, opt-in telemetry, the opt-in BYOK Jev assist (sent to TypeSafe), or when a customer chooses remote evaluation (MCP, Hub eval).
Declared Dependencies
The ssg CLI is a single self-contained Go binary with up to 18 declared third-party components (see /sbom). It is not dependency-free. Bun is a build-time tool only.
Cryptographic Integrity
The fleet service signs rule bundles with Ed25519; the Go ssg does not verify that signature on load. ssg hub pull verifies the Ed25519 signature and hard-blocks unsigned rulesets; it checks the SHA-256 content hash only when a hash is stored. The Go ssg binary signs no governance audit rows today (the audit_log signature column is written empty); daily compliance evidence manifests SHA-256 hash-chained (a linear chain, not a Merkle tree) for tamper-evidence.
Enterprise-Grade Tenancy
SAML + OIDC SSO with interactive IdP selector. Custom RBAC, an opt-in per-org IP/CIDR allowlist, service accounts, a shared fleet D1 with a small pool of dedicated databases (no D1 location hint and no data-residency commitment).
Defense in Depth
Cloudflare Managed Free Ruleset (WAF), automatic L3/L4/L7 DDoS mitigation, Turnstile challenges, nonce-based CSP, AES-256 at rest, TLS 1.3 only at the Cloudflare edge on the custom Worker hostnames, the trust Worker sets HSTS (1 year, includeSubDomains).
Continuous Assurance
Threat model (THREAT_MODEL.md) provided on request. AI-assisted internal security reviews (last round 2026-06-18; no next round committed; not a human pentest firm; none engaged and none scheduled). Responsible disclosure: 72h acknowledgement target; remediation targets Critical 72h, High 7d, Medium 30d, Low next planned release.
Section 03
Architecture at a Glance
SigmaShake spans one compiled CLI and daemon (which run on customer machines), desktop apps, Elixir streaming services that run outside Workers, and a server-side API estate of edge-deployed Cloudflare Workers. The CLI is the enforcement point; workers provide optional cloud features (rule distribution, billing, SSO, observability).
- ssg — Compiled CLI binary. Intercepts agent tool calls via pre-tool-use hook. Local SQLite state. Rule evaluation makes no network call per tool call; enforcement needs a paid license refreshed about every 6 hours (up to 7 days of grace after the license token expires).
- Hub — Public registry of
.rules governance files. ssg hub pull verifies the Ed25519 signature and hard-blocks unsigned rulesets; it checks the SHA-256 content hash only when a hash is stored.
- Accounts — Identity service: GitHub/Google OAuth for self-service, SAML/OIDC for enterprise, RBAC enforcement, tenant isolation.
- Fleet — Enterprise MDM control plane (*.fleet.sigmashake.com). Workers for Platforms with per-tenant isolation. The fleet service signs rule bundles with Ed25519; the Go ssg does not verify the signature on load.
- MCP — Remote rule evaluation via SSE for hosts that cannot run the CLI locally.
- Trust — This center. NDA-gated evidence distribution with HMAC-signed download tokens.
Section 04
Threat Model Summary
SigmaShake maintains a threat model (THREAT_MODEL.md, provided on request) mapping the system to OWASP Top 10 Web, OWASP LLM Top 10, STRIDE, and SOC 2 TSC. Key in-scope threats:
- Supply chain attack on CLI dependencies — mitigated by a small declared dependency set in one Go binary (listed on /sbom). The set is not empty.
- Database compromise altering rule content — mitigated for Hub rulesets because
ssg hub pull verifies the Ed25519 signature and hard-blocks unsigned rulesets; it checks the SHA-256 content hash only when a hash is stored. Fleet bundles are signed by the fleet service, but the Go ssg does not verify that signature on load, so no client-side mitigation is claimed for fleet bundles.
- Cross-tenant data access — mitigated because org-scoped fleet routes use a per-request role and org guard (requireFleetRole) that rejects a URL org that does not match the resolved tenant.
- Brute-force on trust report OTPs — mitigated via a cap of 5 attempts per IP and 5 per email per 15 minutes, a single-use OTP, and a TTL (self-service OTPs expire in 1 hour; admin-issued OTPs live up to 30 days). A Durable Object counts the attempts and redeems the OTP in one step.
- ReDoS in rule patterns — mitigated by the NFA-based nfaregex matcher in the pure-Go engine, together with a catastrophic-pattern check on generated rules.
Out of scope by design: motivated adversarial agents with shell access. SigmaShake is a guardrail for honest agents; adversarial workloads must be paired with OS-level sandboxing (Docker/seccomp, Apple Sandbox, VM confinement). This scope boundary is documented in THREAT_MODEL.md, provided on request.
Section 05
Compliance Posture
- SOC 2 Type II: Self-assessed; observation window in progress. The 6-month observation window opened 2026-05-18 and closes 2026-11-17. No CPA firm is engaged and no engagement is committed; a Type II report is possible only after a CPA firm is engaged and completes its work (not before Q1 2027). SOC 2 is an attestation report, not a certification.
- ISO/IEC 27001:2022: Self-assessed. The Statement of Applicability maps all 93 Annex A controls: 74 are applicable, 15 are inherited from a vendor and 4 are not applicable. 71 of the 74 applicable controls have current evidence (as of 2026-10-09); the other 3 have none yet; SoA published at compliance.sigmashake.com/compliance/iso27001. A.7 Physical inherited from Cloudflare / GitHub, per each vendor's own published SOC 2 documentation.
- ISO/IEC 42001:2023: Self-assessed against ISO/IEC 42001:2023. Not certified and not audited. Most controls are open gaps. 1 of 65 catalog rows has an evidence collector. SoA: https://compliance.sigmashake.com/api/v1/soa.json?framework=iso42001
- NIST AI RMF 1.0: Self-assessed against NIST AI RMF 1.0. Not certified and not audited. Most controls are open gaps. 0 of 72 catalog rows have an evidence collector. SoA: https://compliance.sigmashake.com/api/v1/soa.json?framework=nist-ai-rmf
- NIST AI 600-1 (Generative AI Profile): Self-assessed against NIST AI 600-1 (Generative AI Profile). Not certified and not audited. Most controls are open gaps. 0 of 12 catalog rows have an evidence collector. SoA: https://compliance.sigmashake.com/api/v1/soa.json?framework=nist-ai-600-1
- GDPR (EU 2016/679): Self-assessed. 31 articles catalogued (Ch. II–V; 25 applicable, 6 documented not-applicable); 9 GDPR-specific collectors covering DSR pipeline, Article 30 RoPA, Article 28(2) sub-processor list, breach notification targets (36h to customer controllers, 72h to the supervisory authority), a TIA snapshot collector (no TIA records yet), DPIA register, privacy-notice currency, a consent-config collector (no consent records are written today), data-residency attestation. Public endpoints: POST /api/v1/dsr + GET /api/v1/sub-processors.json. Customer DPA template incorporates SCCs 2021/914 (Module Two).
- UK GDPR & Swiss FADP: In the self-assessment scope. No UK or Swiss transfer mechanism is recorded yet; a UK Addendum / IDTA and a Swiss addendum are targets.
- CCPA / CPRA: Self-assessed. No sale or share of personal information; right-to-delete is implemented for the accounts service only; other systems are handled by hand under the DSR procedure (docs/compliance/dsr-procedure.md section 4).
- HIPAA: Not applicable to the default product behaviour — SigmaShake does not collect PHI by design; payloads leave the machine only through opt-in paths (see the Local-First row).
- PCI DSS: Not applicable — cardholder data handled exclusively by Stripe (which states in its own published documentation that it is a PCI DSS Level 1 service provider).
Section 06
Responsible Disclosure
SigmaShake publishes a responsible disclosure policy with these acknowledgement and remediation targets:
- Acknowledgement target: within 72 hours (a target, not a guarantee).
- Triage: the ISMS owner confirms receipt by hand and assigns a CVSS v3.1 severity (reports arrive by email; no ticket routing exists)
- Remediation targets: Critical 72 hours, High 7 days, Medium 30 days, Low next planned release; the clock starts when the report passes triage. These are targets, not guarantees.
Report vulnerabilities at trust.sigmashake.com/vulnerability-report or via security@sigmashake.com. Safe-harbor language applies to good-faith research conducted under this policy.