An enterprise-grade, end-to-end zero-knowledge secret orchestration engine designed to eliminate credential sprawl in corporate communications. Built with client-side WebCrypto AES-GCM-256, RFC 3986 URL-hash key isolation, and an atomic single-view burn-on-read ephemeral engine.
π Support Open Source Privacy: If you find this project valuable, please consider giving it a Star β on GitHub! It takes 1 second and motivates future cryptographic and privacy tooling.
In the Uber 2022 Breach, an attacker compromised the entire corporate AWS infrastructure and VPN network simply because a DevOps engineer shared admin credentials in an internal Slack channel. The attacker ran a simple search query: search "AWS_SECRET_ACCESS_KEY" and gained root access.
Corporate chats (Slack, WhatsApp, Teams, Emails) are permanent, indexed, searchable databases. Credentials shared there remain vulnerable indefinitely.
Most pastebins encrypt on the server side or hold plaintext credentials in memory. If the server is compromised or an admin goes rogue, all secrets are leaked.
ZeroTrace-Vault guarantees that even the system owner or cloud hosting provider CANNOT read the shared secrets.
- Alice's browser/CLI generates a 256-bit AES-GCM key locally.
- The secret is encrypted on the client machine.
- The server receives ONLY the ciphertext and 96-bit IV. The key is NEVER sent over the wire.
- A unique URL is generated:
https://vault.domain.com/v/c0ed7d19...#knN2IeVIVu... - According to RFC 3986, web browsers never transmit the hash fragment (
#...) in HTTP requests. The key remains strictly in Bob's browser memory.
[ Alice Browser/CLI ] ββ(AES-GCM-256 + IV)ββ> Ciphertext ββ> [ ZeroTrace Server ] ββ> [ Ephemeral RAM ]
β β²
βββββββ> URL: https://vault.dev/v/{UUID}#{Key} β
β β
[ Bob Browser ] <βββββββββββ΄ββββββββ (Fetch Ciphertext & Burn) βββββββββββββββββββββββββββ
(Decrypts locally using #Key)
- Pre-flight Crawl Protection (
/api/v1/secret/:id/meta):
Social link crawlers (Slackbot, WhatsApp, Discord) fetching link previews will NOT destroy the secret. - Atomic Burn Execution (
/api/v1/secret/:id/burn):
When Bob clicks "Reveal Secret", the server retrieves the payload and instantly purges it from RAM. - Second Attempt Defense:
Any subsequent request with the same UUID immediately yields404 Not Found.
| Layer | Technologies | Description |
|---|---|---|
| Cryptography | Browser Native WebCrypto API (SubtleCrypto) | AES-GCM-256 bit encryption, 96-bit unique IVs, 0 external crypto dependencies |
| Backend Core | Node.js, Express.js | High-throughput REST API, bounded ephemeral in-memory storage map |
| Security Hardening | Helmet.js, Custom Sliding-Window Rate Limiter, Strict CORS | Strict CSP (no unsafe-inline), Anti-Clickjacking, no-store caching, IP sliding-window rate limit (30 req/min) |
| Frontend UI | Modern HTML5, Responsive CSS3, Vanilla JS | Dark cyber glassmorphic operations console, real-time TTL burn countdown |
| CLI Client | Node.js CLI Script (zerotrace-cli.js) |
Direct HTTP/HTTPS secret sharing and UNIX pipeline integration (cat file | node cli) |
| Containerization | Docker, Docker Compose, Render Blueprint | Production non-root container & 1-click render.yaml deployment |
π Live Website: https://zerotrace-vault.onrender.com
π GitHub Repository: https://github.com/Atulkumar5772/ZeroTrace-Vault
ZeroTrace-Vault/
βββ assets/
β βββ zerotrace-preview.svg # End-to-end cryptographic architecture diagram
βββ backend/
β βββ package.json # Dependencies: express, helmet, cors
β βββ src/
β βββ server.js # Daemon entry point & graceful store cleanup
β βββ routes.js # REST API endpoints (/create, /meta, /burn)
β βββ vaultStore.js # Bounded ephemeral RAM store, UUID & Base64URL validation, TTL sweeper
β βββ rateLimiter.js # Sliding-window IP rate limiter
βββ cli/
β βββ zerotrace-cli.js # Terminal pipe tool for developers (HTTP & HTTPS)
βββ frontend/
β βββ public/
β βββ index.html # Web vault interface
β βββ style.css # Cyber glassmorphic styling
β βββ crypto.js # Client-side WebCrypto AES-GCM-256 implementation
β βββ app.js # DOM handling, burn triggers, clipboard copy
βββ tests/
β βββ comprehensive_test.js # 8/8 automated security & lifecycle verification tests
βββ docker-compose.yml # One-click Docker deployment
βββ Dockerfile # Production Node.js container
βββ test_verification.js # Quick end-to-end test script
βββ LICENSE # MIT License
βββ README.md # Comprehensive engineering documentation
cd backend
npm install
npm startServer opens at:
http://localhost:3000
# Share a direct string against local server
node cli/zerotrace-cli.js "my-production-token"
# Or pipe output from any command:
cat ~/.ssh/id_rsa | node cli/zerotrace-cli.js
# Or target a remote HTTPS deployment (e.g. Render):
ZEROTRACE_URL=https://zerotrace-vault.onrender.com node cli/zerotrace-cli.js "my-production-token"Run the end-to-end cryptographic and burn test suite:
node test_verification.jsOr run the full production security & adversarial test suite (starts an isolated test server automatically or targets PORT):
node tests/comprehensive_test.jsExpected checks:
- β Backend Daemon Healthcheck & No Active-Count Leak
- β Reject Malformed / Non-Base64URL & Invalid IV/Tag Lengths
- β Reject Oversized Secret Payload (> 512 KB)
- β End-to-End Cryptographic Secret Lifecycle & Whitespace Preservation
- β Preflight Metadata Check (Preview Bot Anti-Burn Verification)
- β Atomic Burn-on-Read & 20-Way Concurrent Race Condition Test
- β
Replay Attack Prevention (
404after Burn) - β
Strict CORS Rejection,
X-Forwarded-ForSpoof Immunity, Error Status Codes (400/413),Cache-Control: no-store, and CLI End-to-End Test
This project is licensed under the MIT License.