Alert: FlashLoanAttemptBlocked#
Severity: CRITICAL#
Description#
The FlashLoanGuard has detected and blocked a potential flash loan attack. An attacker attempted to perform critical operations (purchase, mint, or stake) within the same block as obtaining a flash loan.
Immediate Actions (< 5 minutes)#
-
Assess the Situation
- Identify the attacker address from the event
- Check if any transactions succeeded before the block
- Verify the FlashLoanGuard is working correctly
-
Analyze Attack Vector
- Review the transaction trace
- Identify which function was targeted
- Check for any state changes despite the block
-
Protective Measures
- Consider temporarily pausing if attack is ongoing
- Monitor the attacker address for further attempts
- Review related transactions in the same block
Investigation Checklist#
- Attacker address identified and logged
- Transaction trace analyzed
- No funds were lost
- FlashLoanGuard functioning correctly
- Check for related addresses (attacker's other wallets)
- Review if attack pattern is known
Post-Incident Actions#
- Add attacker address to watchlist
- Analyze attack pattern for improvements
- Consider additional protections if new vector found
- Document the incident for future reference
- Update threat model if necessary
Technical Details#
The FlashLoanGuard tracks:
- Block number of user's last critical action
- Prevents same-block repeated actions
- Applies to: token purchases, license minting, staking
Recovery Actions (if bypass discovered)#
- IMMEDIATELY pause all contracts
- Alert security team
- Deploy patched FlashLoanGuard
- Review all transactions since vulnerability introduced
- Compensate affected users if necessary
Contacts#
- Security Lead: @security-lead
- Smart Contract Team: #smart-contracts
- DeFi Security: @defi-security