chore(security): enhance environment configuration, CI workflows, and wallet daemon with security improvements
- Restructure .env.example with security-focused documentation, service-specific environment file references, and AWS Secrets Manager integration - Update CLI tests workflow to single Python 3.13 version, add pytest-mock dependency, and consolidate test execution with coverage - Add comprehensive security validation to package publishing workflow with manual approval gates, secret scanning, and release
This commit is contained in:
45
docs/12_issues/audit-gap-checklist.md
Normal file
45
docs/12_issues/audit-gap-checklist.md
Normal file
@@ -0,0 +1,45 @@
|
||||
# Smart Contract Audit Gap Checklist
|
||||
|
||||
## Status
|
||||
- **Coverage**: 4% (insufficient for mainnet)
|
||||
- **Critical Gap**: No formal verification or audit for escrow, GPU rental payments, DAO governance
|
||||
|
||||
## Immediate Actions (Blockers for Mainnet)
|
||||
|
||||
### 1. Static Analysis
|
||||
- [ ] Run Slither on all contracts (`npm run slither`)
|
||||
- [ ] Review and remediate all high/medium findings
|
||||
|
||||
### 2. Fuzz Testing
|
||||
- [ ] Add Foundry invariant fuzz tests for critical contracts
|
||||
- [ ] Target contracts: AIPowerRental, EscrowService, DynamicPricing, DAO Governor
|
||||
- [ ] Achieve >1000 runs per invariant with no failures
|
||||
|
||||
### 3. Formal Verification (Optional but Recommended)
|
||||
- [ ] Specify key invariants (e.g., escrow balance never exceeds total deposits)
|
||||
- [ ] Use SMT solvers or formal verification tools
|
||||
|
||||
### 4. External Audit
|
||||
- [ ] Engage a reputable audit firm
|
||||
- [ ] Provide full spec and threat model
|
||||
- [ ] Address all audit findings before mainnet
|
||||
|
||||
## CI Integration
|
||||
- Slither step added to `.github/workflows/contracts-ci.yml`
|
||||
- Fuzz tests added in `contracts/test/fuzz/`
|
||||
- Foundry config in `contracts/foundry.toml`
|
||||
|
||||
## Documentation
|
||||
- Document all assumptions and invariants
|
||||
- Maintain audit trail of fixes
|
||||
- Update security policy post-audit
|
||||
|
||||
## Risk Until Complete
|
||||
- **High**: Escrow and payment flows unaudited
|
||||
- **Medium**: DAO governance unaudited
|
||||
- **Medium**: Dynamic pricing logic unaudited
|
||||
|
||||
## Next Steps
|
||||
1. Run CI and review Slither findings
|
||||
2. Add more invariant tests
|
||||
3. Schedule external audit
|
||||
Reference in New Issue
Block a user