Contract Details
Tech Stack
Python 3.10+
Chains
Any EVM
Description
Monitoring agent for detecting known exploit patterns in real time. Detects reentrancy, flash loan attacks, oracle manipulation, and sandwich attacks. Configurable alert pipeline with deduplication.
Features
- ✓ Four exploit detectors: reentrancy, flash loan, oracle, sandwich
- ✓ Pattern registry for extensible detection rules
- ✓ Configurable severity thresholds per pattern
- ✓ Multi-channel alerts: console, file, webhook
- ✓ Alert deduplication with cooldown windows
- ✓ Batch transaction processing
- ✓ Statistics tracking (detected, alerts sent, false positives)
- ✓ Pytest test suite for all patterns
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /// @title Exploit Monitor /// @notice Real-time exploit pattern detection for reentrancy, flash loans, oracle, sandwich. contract ExploitMonitor { address public immutable owner; uint256 public constant VERSION = 1; event Initialized(address indexed deployer); constructor() { owner = msg.sender; emit Initialized(msg.sender); } // ... full implementation in purchased package }