Verified against source code

Security is not a feature.
It's the foundation.

Every claim on this page maps to real code in the sh0 codebase. An internal audit on 17 March 2026 found 34 issues; the 6 critical ones were fixed by the report date.

Audit results

Internal security audit across authentication, cryptography, API surface and frontend.

34
Issues found
Internal audit, 17 March 2026
6/6
Critical issues fixed
On the report date
8/10
High issues fixed
On the report date
17/34
Issues fixed
On the report date

Internal audit of 17 March 2026: 34 issues found (6 critical, 10 high, 12 medium, 6 low). On the report date, the 6 critical issues and 8 of the 10 high ones were fixed; the others were scheduled for a hardening phase. From 5 October 2026, fixed vulnerabilities are published here.

What we protect

Six core security layers, each verified in the Rust source code.

sh0-auth

AES-256-GCM Encryption

All secrets, env vars, SSH keys, and API tokens -- and backup files when backup encryption is enabled -- encrypted with AES-256-GCM via the ring crate. Nonce format: nonce(12) || ciphertext || tag(16). Authenticated encryption ensures both confidentiality and integrity.

sh0-auth

Argon2id Password Hashing

OWASP-recommended Argon2id for all password storage. PHC-format hash output with unique random salt per password. TOTP backup codes also hashed with Argon2id.

sh0-api

HTTP-Only Cookie Auth

Access tokens (15 min) and refresh tokens (30 days) stored in HTTP-only cookies with SameSite=Strict. Secure flag auto-enabled in production. CSRF double-submit cookie pattern.

sh0-auth

API Key Security

Format: sh0_ prefix + 32 random chars. SHA-256 hashed storage, prefix-based lookup (first 8 chars). Constant-time comparison via the subtle crate to prevent timing attacks.

sh0-api

RBAC & Project Permissions

Owner, Admin, Developer, Viewer roles with per-project membership. Dedicated extractors (AuthUser, AdminUser, ProjectAccess) verify authorization on every API endpoint.

sh0-auth

TOTP Two-Factor Auth

RFC 6238 compliant, 6-digit codes, 30-second step, SHA-1 with +/-1 skew tolerance. 8 backup codes per user, each Argon2id-hashed. Provisioning URI for QR code setup.

Defense in depth

01

Encrypted at rest

Master key derived via PBKDF2-HMAC-SHA256 with 100,000 iterations and a 16-byte salt. Every secret -- env vars, SSH private keys, backup dumps, API tokens -- is AES-256-GCM encrypted before touching disk.

02

Authenticated at every layer

JWT (HS256) from Bearer header or HTTP-only cookie, with API key fallback. Refresh tokens SHA-256 hashed in the database. Expired tokens caught with specific error codes. Multi-strategy auth on every request.

03

Rate-limited and throttled

Per-IP sliding window: 10 login attempts/15 min, 5 TOTP attempts/5 min, 50 invitations/min. Global read/write rate limits with automatic cleanup. Health and webhook paths exempt.

04

Audited and traceable

Every significant action logged: user ID, action, resource type/ID, IP address (X-Forwarded-For aware), timestamp. Paginated queries with filtering by user, resource type, and resource ID.

The security stack

PBKDF2 (100k iter.)
AES-256-GCM
Argon2id
HTTP-Only Cookies
CSRF Double-Submit
RBAC (4 roles)
Audit Log
Rate Limiting

Every layer reinforces the next -- compromise one and the rest still hold

Cryptographic dependencies

No custom cryptography. Battle-tested Rust crates only.

ring 0.17
AES-GCM, PBKDF2, SHA-256, CSPRNG
argon2 0.5
Argon2id password hashing
subtle 2.6
Constant-time comparison
jsonwebtoken 9
JWT sign/verify (HS256)
totp-rs 5
RFC 6238 TOTP generation
rustls 0.23
TLS for remote connections

Verified in source code

Every finding mapped to the crate where it's implemented.

Argon2id password hashing with random salt per password (sh0-auth)
AES-256-GCM authenticated encryption for all secrets (sh0-auth)
PBKDF2-HMAC-SHA256 with 100,000 iterations for key derivation (sh0-auth)
Constant-time API key comparison (subtle crate) (sh0-auth)
Parameterized SQL queries throughout (zero SQL injection) (sh0-db)
Refresh token hashed with SHA-256, never stored in plaintext (sh0-db)
TOTP backup codes hashed with Argon2id (sh0-auth)
Docker socket communication via Unix socket only (sh0-docker)
Exec commands use array format, never shell interpolation (sh0-docker)
Foreign key constraints and WAL mode enforced on every connection (sh0-db)
Optional backup encryption with the master key before storage (sh0-backup)
SSH private keys encrypted at rest, loaded in-memory only (sh0-git)
Upload size capped at 500 MB, pagination clamped to 1-200 (sh0-api)
Input validation on database names, compose files, port strings (sh0-backup)

Without sh0

  • x Store tokens in localStorage (XSS-vulnerable)
  • x Write custom encryption per service
  • x Manage SSH keys in plaintext on disk
  • x Hope nobody SQL-injects your queries
  • x Share root credentials across team
  • x No audit trail of who did what

With sh0

  • HTTP-only cookies, SameSite=Strict, CSRF protection
  • AES-256-GCM for everything, master key with PBKDF2
  • SSH keys encrypted at rest, loaded in-memory only
  • Parameterized queries + input validation everywhere
  • RBAC with 4 roles + per-project permissions
  • Full audit log with IP, user, action, resource tracing

Questions & answers

Has sh0 been security audited? +
Yes, internally. A 3-part audit on 17 March 2026 (Auth/Crypto, API Surface, Frontend) found 34 issues: 6 critical, 10 high, 12 medium, 6 low. On the report date, the 6 critical issues and 8 of the 10 high ones were fixed; the rest were scheduled for a hardening phase. From 5 October 2026, fixed vulnerabilities are published as security advisories on this site.
How are secrets stored? +
All secrets (env vars, API tokens, SSH keys, backup credentials) are encrypted with AES-256-GCM using a master key derived via PBKDF2-HMAC-SHA256 with 100,000 iterations and a 16-byte salt. The master key file is generated once and encrypted at rest.
How does authentication work? +
JWT access tokens (15 min) in HTTP-only cookies with SameSite=Strict. Refresh tokens (30 days) SHA-256 hashed in the database. API key fallback with constant-time comparison. CSRF protection via double-submit cookie pattern. Bearer tokens supported for CLI.
What about two-factor authentication? +
TOTP (RFC 6238) with 6-digit codes, 30-second step, and +/-1 skew tolerance. 8 backup codes per user, each Argon2id-hashed. Rate-limited to 5 attempts per 5 minutes to prevent brute force.
Can one user access another user's containers? +
No. Every API endpoint that touches containers verifies project membership through the ProjectAccess extractor. Global owners/admins can access all projects, but developers and viewers must have explicit per-project membership.
What about container security? +
Docker Engine communication uses Unix socket only (no TCP exposure). All container commands use exec arrays, never shell interpolation. Compose files are structurally validated before deployment, including volume mounts, port strings, and dependency graphs.
Who is responsible for the security of one-click templates? +
It is shared. sh0 maintains the template definitions and fixes a template when a flaw is reported. The images are published by each upstream project, and keeping a deployed application secure (image version, application updates, its own users and passwords) is the responsibility of whoever operates the server.
Which cryptographic libraries do you use? +
ring 0.17 (hardware-accelerated AES-GCM, PBKDF2, SHA-256), argon2 0.5 (password hashing), subtle 2.6 (constant-time comparison), jsonwebtoken 9 (JWT), totp-rs 5 (TOTP), and rustls 0.23 (TLS). No custom cryptography.

Report a vulnerability

Write to us at the address below. Include the sh0 version, the steps to reproduce and the impact you observed. Please do not open a public issue.

[email protected]

If you get no reply, also use the contact form: sh0.dev/contact

Our commitments

  • Acknowledgement of your report within 72 hours.
  • Fix targeted within 7 days for a critical flaw, 30 days for a high one, 90 days otherwise.
  • For critical and high flaws, a pre-announcement 48 to 72 hours before the fix: date, severity and component only. Details are published with the fix.
  • Security fixes will ship as patch releases, not mixed with new features, so that automatic updates in patch mode can install them on their own.

Good-faith research

We will not take legal action against research carried out in good faith on your own sh0 instance: no access to other people's data, no disruption of a service you do not own, and reasonable time for us to fix the flaw before any publication.

Rewards

There is no cash bounty at launch: researchers are thanked publicly on this page, with their agreement. A bounty programme could follow the external penetration test.

Enterprise-grade security, built in

AES-256-GCM, Argon2id, TOTP 2FA, RBAC, audit logs, rate limiting. Security you can verify in the source, and vulnerabilities reported through a public disclosure policy.