forgou37/threatcrush-defi-tvl-alert

GitHub: forgou37/threatcrush-defi-tvl-alert

ThreatCrush模块用于监控DeFiLlama TVL变化,及时发现潜在的安全威胁。

Stars: 0 | Forks: 0

# ThreatCrush DeFi TVL 警报 ThreatCrush 模块监控 DeFiLlama,以检测 DeFi 协议中 TVL 的突然下降——这是主动攻击的关键早期预警信号。 ## 功能 - 每 5 分钟轮询 DeFiLlama `/protocols` API - 将当前 TVL 与最后快照进行比较 - 当任何协议在单个轮询周期中下降 > **15%** 时发出 `ThreatEvent` - 包含协议名称、TVL 前后值、下降百分比和 DeFiLlama URL ## 安装 ``` threatcrush module install defi-tvl-alert ``` ## 配置 | 键 | 默认值 | 描述 | |-----|---------|-------------| | `threshold_pct` | `15` | 触发警报的最小 TVL 下降百分比 | | `min_tvl_usd` | `1000000` | 忽略 TVL 低于此值的协议(过滤噪音) | | `poll_interval_seconds` | `300` | 轮询 DeFiLlama 的频率 | ## 示例警报 ``` { "type": "defi-tvl-drop", "severity": "high", "protocol": "ExampleProtocol", "tvl_before": 45000000, "tvl_after": 28000000, "drop_pct": 37.8, "url": "https://defillama.com/protocol/exampleprotocol" } ``` ## 许可证 MIT
标签:API监控, DeFiLlama, MIT许可, TVL监控, 区块链安全, 去中心化金融, 安全预警, 异常检测, 日志审计, 智能合约监控, 模块化安全