A production-ready, air-gapped payment processing backend that meets PCI DSS 3.2.1 compliance requirements.
This system implements a completely isolated payment processing environment with:
- ✅ Zero network connectivity (true air-gap)
- ✅ Hardware Security Module (HSM) integration
- ✅ Multi-factor authentication
- ✅ Blockchain-based audit trail
- ✅ Secure media transfer station
- ✅ Full PCI DSS compliance
We've added enterprise-grade enhancements in the src/enhancements/ directory:
- HSM Integration - Production-ready Hardware Security Module support
- Data Retention Manager - Automated lifecycle management with secure wiping
- Incident Response Plan - Complete procedures for security incidents
- Air-Gap Validator - Automated network isolation verification
- Compliance Automation - Automated PCI DSS compliance checking
See Enhancement Documentation for details.
┌─────────────────────────────────────────┐
│ Air-Gapped Environment │
│ │
│ ┌──────────┐ ┌──────────┐ ┌──────┐ │
│ │ Core │ │ Audit │ │ HSM │ │
│ │ Backend │ │ Processor│ │ │ │
│ └──────────┘ └──────────┘ └──────┘ │
│ │
│ ┌────────────────────────────────────┐│
│ │ Secure Transfer Station ││
│ └────────────────────────────────────┘│
└─────────────────────────────────────────┘
Want to see it in action? Run the demo:
# Run the automated demo setup
cd demo/
chmod +x setup_demo.sh
./setup_demo.sh
# Start the demo
cd pci-backend-demo/
./run_demo.sh- AES-256-GCM for data encryption
- RSA-4096 for key wrapping
- PBKDF2-SHA256 for key derivation
- Hardware Security Module (HSM) for key management
- Multi-factor authentication (MFA)
- Biometric verification
- Hardware token support
- Role-based access control (RBAC)
- Blockchain-based immutable logging
- Cryptographic integrity verification
- 7-year retention policy
- Write-once media archival
This system addresses all 12 PCI DSS requirements:
- ✓ Firewall configuration (physical isolation)
- ✓ No default passwords
- ✓ Cardholder data protection
- ✓ Encrypted transmission
- ✓ Antivirus (read-only system)
- ✓ Secure development
- ✓ Access control
- ✓ User authentication
- ✓ Physical access controls
- ✓ Logging and monitoring
- ✓ Security testing
- ✓ Security policy
- RHEL 8+ or Ubuntu 20.04+
- HSM device (e.g., Thales Luna, Utimaco)
- Biometric readers
- Secure facility
- Write-once optical media drives
-
Prepare the air-gapped system
sudo ./scripts/setup.sh
-
Validate air-gap integrity
sudo ./src/enhancements/airgap_validator.sh
-
Build containers
make build
-
Run security validation
make security-scan
-
Deploy
make deploy-prod
.
├── src/ # Core application source
│ ├── pci_backend.py # Main backend implementation
│ └── enhancements/ # Enterprise enhancements
│ ├── hsm_integration.py
│ ├── data_retention_manager.py
│ ├── incident_response_plan.md
│ ├── airgap_validator.sh
│ └── compliance_automation.py
├── demo/ # Demo environment
│ └── setup_demo.sh # Automated demo setup
├── docker/ # Container configurations
│ ├── Dockerfile.secure # Hardened container
│ └── docker-compose.yml # Orchestration
├── config/ # Configuration files
│ └── pci-config.yaml # Application config
├── scripts/ # Deployment scripts
│ ├── setup.sh # System setup
│ └── security_validator.py # Security validation
├── tests/ # Test suites
│ └── compliance_tests.py # PCI compliance tests
├── terraform/ # Infrastructure as Code
├── ansible/ # Configuration management
└── docs/ # Documentation
- Architecture Documentation
- Security Guide
- Deployment Guide
- API Reference
- Compliance Documentation
- Enhancement Guide
Run the complete test suite:
make testRun compliance tests only:
python -m pytest tests/compliance_tests.py -vRun automated compliance check:
python src/enhancements/compliance_automation.py --executive-summary- Never connect to any network
- All data transfers via encrypted media only
- Minimum two-person integrity for all operations
- Regular security audits required
- Physical security is paramount
This software is provided for demonstration and educational purposes.
For PCI compliance questions, consult your QSA (Qualified Security Assessor).
Remember: The security of this system depends on maintaining complete physical and logical isolation.