A specialized frontend application for security auditors to test and validate DeFAI Solana programs.
- Program Testing: Run automated tests against all DeFAI programs
- Security Checklist: Visual representation of implemented security features
- Test Scenarios: Comprehensive test coverage for each program
- Real-time Results: Instant feedback on test execution
- Wallet Integration: Connect and test with your Solana wallet
-
DeFAI Swap (9.5/10 Ready)
- Token swap functionality
- NFT exchange with vesting
- VRF randomness integration
- Referral system
-
DeFAI Staking (9.5/10 Ready)
- Tiered staking system
- Compound rewards
- APY calculations
- Escrow management
-
DeFAI Estate (9.5/10 Ready)
- Digital estate management
- Multi-signature operations
- Inheritance features
- AI trading capabilities
-
DeFAI App Factory (7/10 Needs Testing)
- Application registration
- SFT creation and management
- Usage tracking
- Monetization features
# Navigate to the security auditor directory
cd security-auditor
# Install dependencies
yarn
# Run the development server
yarn devThe application will be available at http://localhost:3002
- Connect Wallet: Connect your Solana wallet (Phantom recommended)
- Select Program: Choose a program to test from the dashboard
- Run Tests: Click "Run Security Tests" to execute the test suite
- Review Results: Analyze the test results in the popup modal
- Check Security: Review the security checklist for each program
- Program deployment verification
- IDL availability check
- Program size validation
- State initialization checks
- Account validation
- Transaction simulation
- Error handling verification
- Access control implementation
- Input validation
- Overflow protection
- Event emissions
- Admin timelocks
- Multi-signature support
To add new test scenarios:
- Update
src/utils/constants.tswith new test scenarios - Implement test logic in
src/utils/program-test.ts - Add visual indicators in the UI components
Modify the SECURITY_CHECKS array in src/utils/constants.ts to add or update security requirements.
- This tool performs read-only operations and simulations
- Actual security audits require manual code review
- Test results should be verified independently
- Always use devnet for testing
# Build the application
yarn build
# Start the production server
yarn startWhen contributing to the security auditor:
- Ensure all tests pass
- Update documentation
- Follow the existing code style
- Test on devnet before submitting PRs