CLI Security & Credentials Manager
Published Updated
Security architecture of Aircada CLI, protecting session keys using localized AES-256-CBC platform-bound encryption.
Credentials Vault Architecture
The Aircada CLI features a zero-leak credentials manager designed to protect API tokens and cloud session states without exposing raw keys on the host machine. All authenticated sessions are written exclusively to ~/.aircada/credentials.lock.
Platform-Bound Encryption
To prevent credential theft and file cloning attacks, session keys are cryptographically locked to the host machine:
- Encryption Standard: Written using AES-256-CBC.
- Machine-Derived Key generation: The symmetric decryption key is generated dynamically at runtime using
crypto.scryptSyncmixed with a custom salt (aircada-cli-salt-v1) and bound directly to OS platform, username, hostname, and CPU architecture.
- Hardware Anti-Tampering: Even if the
credentials.lockfile is copied or leaked off-machine, it cannot be decrypted on any other computer.
- Filesystem Permissions: The lock file is restricted immediately upon creation using localized filesystem attributes, enforcing read/write restrictions solely to the owner account (applying a
chmod 600equivalent policy).