Security Architecture · Zero SaaS · MIT License

Built for zero-trust infrastructure and security review.

Every component in Culprit SQL is architected around least privilege, bounded resource budgets, air-gapped self-hosting, and verifiable open-source builds.

Reference Production Topology · Collector -> ADX / ClickHouse -> Fleet 0 Inbound DB Ports · 0 SQL Drivers in Web Binary
ZONE 1 · PRIVATE DATABASE VPC / VNET Production Databases Zero host agents installed SQL Server & Azure SQL PostgreSQL & AWS RDS Timescale & YugabyteDB MySQL, MariaDB & ClickHouse READ-ONLY 1s stmt cap COLLECTOR culprit-collector Helm / K8s · 0-replica default Bounded Native Readers DMVs · pg_stat · Quiescence Pure Rust Diagnosis Engine Local synthesis · 0 DB load Durable Local Outbox Survives restarts & backfill HTTPS ZONE 2 · YOUR WAREHOUSE ADX or ClickHouse Synthesized Gold Streams • CulpritIncidentsV1 • CulpritFindingsV1 • CulpritChangesV1 + 13 typed raw evidence tables Azure Blob or AWS S3 Conditional-object recovery Sealed captures, plans & .xel Cryptographic EOF verification 0 DB DRIVERS COMPILED Culprit Fleet Web Entra OIDC · RBAC fleet.culpritsql.com Remote Audited MCP Claude · Codex · Cursor POST /mcp + audit log DRI On-Call Alerts ADX / Grafana / notify PagerDuty · Teams · Slack
Access Control

Read-Only by Construction

Scans query system views only. Production SQL editor requires explicit statement confirmation; fixes are suggested, never auto-applied.

Identity & Secrets

Keychain, Entra ID & IAM

Credentials live in macOS Keychain, Windows Credential Locker, Secret Service, Azure CLI / Entra OIDC, or AWS RDS IAM.

Network Topology

Air-Gapped & SSH Jump Hosts

Works fully offline inside private subnets or over OpenSSH jump hosts while preserving TLS verification.

AI Governance

Statement-Level MCP Policy

Per-connection agent policy (off, stats-only, or human-approved read-only queries rolled back with row/time caps) plus culprit audit.

Supply Chain

Signed & License-Verified

macOS builds are Apple-signed and notarized. Every release ships SHA256SUMS.txt and cargo-about verified THIRD-PARTY-LICENSES.txt.

Economics

Zero Per-Core or Per-Seat Fees

Replace $3k-$8k/instance/year legacy DBM licenses with MIT software and commodity ClickHouse or Azure Data Explorer storage.

Trust Boundaries

Component isolation & credential scope matrix.

ComponentNetwork PlacementCredentials HeldDatabase Write Capability
Culprit SQL Studio / CLIEngineer workstation / BastionOS Keychain, Entra CLI, AWS IAM (per-connection)Read-only scans; editor requires explicit human approval on prod
culprit collectPrivate VPC / AKS / EKS podScoped monitoring login + Outbox write tokenNone — catalog/stats readers only with 1 s statement timeout
Culprit Fleet WebInternal ingress / SSORead-only ADX or ClickHouse + Blob/S3 readerImpossible — zero SQL database drivers compiled into binary
Culprit ExplainBrowser tab (Wasm)NoneImpossible — zero network sockets or database drivers
@culpritsql/ciGitHub Actions / CI runnerNone (reads offline schema snapshot JSON)Impossible — offline static analysis only