Overview
Bastion is built with security as a foundational principle. We employ defense-in-depth strategies to protect your digital assets and ensure the integrity of every transaction. This document provides an overview of our security architecture.Architecture
Defense in depth
Bastion’s infrastructure implements multiple layers of security controls:- Network Isolation: All services operate within isolated network segments with strict ingress controls
- Authentication Gateway: Every API request is authenticated before reaching any backend system
- Least Privilege: Each component operates with minimal permissions required for its function
Request flow
Infrastructure security
Bastion runs on AWS with enterprise-grade security controls:- VPC Isolation: Services run in private subnets with no direct internet access
- WAF Protection: Web Application Firewall blocks common attack patterns
- DDoS Mitigation: AWS Shield protects against volumetric attacks
- Container Hardening: All services run as non-root with read-only filesystems
Secure hardware
AWS Nitro Enclaves
Bastion’s signing operations run inside AWS Nitro Enclaves, providing hardware-enforced isolation for cryptographic operations. What are Nitro Enclaves? Nitro Enclaves are isolated compute environments with:- No persistent storage — Secrets exist only in volatile memory
- No interactive access — No SSH, no shell, no debugging access—even for Bastion engineers
- No external networking — Access to the enclave is limited to secure virtual socket interface
- Cryptographic attestation — Hardware-signed proof that the enclave is running verified code
Hardware-level guarantees
Wallet key security
Key derivation
Bastion uses a hierarchical deterministic key derivation scheme. Private keys are never stored—they are mathematically derived on-demand from a master secret secured in AWS Key Management Service (KMS).Key security properties
Supported cryptography
API authentication
API keys
Bastion uses high-entropy API keys for authentication:Best practices
Request signing (enhanced security)
For high-security use cases, Bastion supports ECDSA request signing:- Generate a key pair: Create an ECDSA P-256 key pair
- Register your public key: Associate it with your API key via the Dashboard
- Sign each request: Include a signature header with your requests