Skip to main content

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

All API requests pass through our authentication layer before any processing occurs. Unauthenticated or unauthorized requests are rejected at the gateway—they never reach backend systems.

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
Why this matters for you: Your private keys are generated and used inside this isolated environment. The keys cannot be extracted, copied, or accessed—even by Bastion. Only the enclave has access to the cryptographic material needed to sign transactions on your behalf.

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:
Security Properties:

Best practices

Request signing (enhanced security)

For high-security use cases, Bastion supports ECDSA request signing:
  1. Generate a key pair: Create an ECDSA P-256 key pair
  2. Register your public key: Associate it with your API key via the Dashboard
  3. Sign each request: Include a signature header with your requests
When request signing is enabled, every API call must include a valid signature. This protects against API key theft and provides request authenticity.

Data protection

Encryption at rest

All sensitive data is encrypted using AES-256 with keys managed through AWS KMS.

Encryption in transit

All communications are protected with modern TLS.

Summary