synor/Dockerfile.security
Gulshan Yadav 1606776394 feat: Phase 7 critical tasks - security, formal verification, WASM crypto
## Formal Verification
- Add TLA+ specs for UTXO conservation (formal/tla/UTXOConservation.tla)
- Add TLA+ specs for GHOSTDAG ordering (formal/tla/GHOSTDAGOrdering.tla)
- Add mathematical proof of DAA convergence (formal/proofs/)
- Document Kani verification approach (formal/kani/)

## Bug Bounty Program
- Add SECURITY.md with vulnerability disclosure process
- Add docs/BUG_BOUNTY.md with $500-$100,000 reward tiers
- Define scope, rules, and response SLA

## Web Wallet Dilithium3 WASM Integration
- Build WASM module via Docker (498KB optimized)
- Add wasm-crypto.ts lazy loader for Dilithium3
- Add createHybridSignatureLocal() for full client-side signing
- Add createHybridSignatureSmart() for auto-mode selection
- Add Dockerfile.wasm and build scripts

## Security Review ($0 Approach)
- Add .github/workflows/security.yml CI workflow
- Add deny.toml for cargo-deny license/security checks
- Add Dockerfile.security for audit container
- Add scripts/security-audit.sh for local audits
- Configure cargo-audit, cargo-deny, cargo-geiger, gitleaks
2026-01-10 01:40:03 +05:30

44 lines
1.5 KiB
Text

# Dockerfile for security auditing tools
# Includes cargo-audit, cargo-deny, cargo-fuzz, and other security scanners
FROM rust:1.85-bookworm
# Install security tools (using versions compatible with Rust 1.85)
RUN cargo install cargo-audit --locked && \
cargo install cargo-deny@0.18.3 --locked && \
cargo install cargo-outdated --locked && \
cargo install cargo-geiger --locked
# Install additional build dependencies for full compilation
RUN apt-get update && apt-get install -y \
cmake \
clang \
libclang-dev \
pkg-config \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Default command runs full security audit
CMD ["sh", "-c", "\
echo '========================================' && \
echo 'Synor Security Audit Report' && \
echo '========================================' && \
echo '' && \
echo '=== 1. VULNERABILITY SCAN (cargo audit) ===' && \
cargo audit || true && \
echo '' && \
echo '=== 2. LICENSE & SECURITY CHECK (cargo deny) ===' && \
(cargo deny check 2>&1 || echo 'Note: Configure deny.toml for full check') && \
echo '' && \
echo '=== 3. OUTDATED DEPENDENCIES ===' && \
cargo outdated --root-deps-only 2>&1 || true && \
echo '' && \
echo '=== 4. UNSAFE CODE USAGE (cargo geiger) ===' && \
cargo geiger --output-format Ratio 2>&1 || true && \
echo '' && \
echo '========================================' && \
echo 'Security Audit Complete' && \
echo '========================================' \
"]