agent-security-hardening
AFaffaan-m/ECC315k3,503 new stars in the last 7 days
目标含 Solidity/智能合约、Web3 DApp、链上资产相关系统时调用——常见合约漏洞(重入/预言机/权限/签名)、审计工具(slither/mythril)、链上验证与影响判定。
| 漏洞 | 特征 | 验证 |
|---|---|---|
| 重入 | 先转账后改状态;外部调用未加锁 | 构造攻击合约,本地 fork 主网复现 |
| 权限缺失 | onlyOwner 遗漏、initialize 可重复调用 | 直接调受限函数看是否成功 |
| 预言机操纵 | 现货价格做抵押定价 | 闪电贷操纵价格路径推演/本地复现 |
| 签名重放 | 无 nonce/链 ID/合约地址 | 同一签名用两次 |
| 越权转账 | transferFrom 缺 allowance 校验 | 本地复现 |
| 整数问题 | 未用 SafeMath(旧 Solidity)、精度损失 | 边界值测试 |
| 随机数可预测 | block.timestamp/blockhash 做随机 | 本地复现 |
| delegatecall | 代理模式存储布局冲突/任意地址 | 存储槽对比 |
slither .(静态快速):reentrancy-eth、arbitrary-send、controlled-delegatecall;mythril analyze(符号执行,慢);forge test(本地 fork 复现,最可信);heimdall/panoramix。cast call <addr> "balanceOf(address)(uint256)" <user>;cast logs/浏览器;eth_sendRawTransaction;eth_sign 任意消息)、permit 授权滥用;AFaffaan-m/ECC315k3,503 new stars in the last 7 days
Audit the whole repo: find bugs, security holes and performance bottlenecks. Get a ranked report in plain English.
DIDietrichGebert/ponytail203k4,226 new stars in the last 7 days
GAgarrytan/gstack143k524 new stars in the last 7 days
Harden code against the OWASP Top 10: input handling, authentication, sessions and dependencies.
ADaddyosmani/agent-skills122k1,421 new stars in the last 7 days
ADaddyosmani/agent-skills122k1,421 new stars in the last 7 days
RUruvnet/RuView106k596 new stars in the last 7 days