Sync from GitHub via hub-sync (part 3)
Browse files
skillforge/skills/defi-protocol-security-audit-playbook.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
### DeFi Protocol Security Audit Playbook
|
| 2 |
+
#### When to use:
|
| 3 |
+
This playbook is designed to be used when performing a security audit on DeFi protocols, particularly those built on the Base chain. It is essential to use this playbook when:
|
| 4 |
+
* A new protocol is being deployed
|
| 5 |
+
* An existing protocol is being updated
|
| 6 |
+
* A security incident has occurred
|
| 7 |
+
|
| 8 |
+
#### Step-by-Step Procedure:
|
| 9 |
+
1. **Gather Information**: Collect data on the protocol's TVL, dominance, and concentration risk using tools like `market_data` and `token_safety`.
|
| 10 |
+
2. **Identify Potential Vulnerabilities**: Use tools like `slither`, `mythril`, and `echidna` to identify potential vulnerabilities in the protocol's smart contracts.
|
| 11 |
+
3. **Analyze Security Incidents**: Review the `hack_feed` to identify repeatable attack patterns and defensive takeaways for holders and protocols.
|
| 12 |
+
4. **Assess Concentration Risk**: Evaluate the concentration risk of the protocol using data from `base_rpc` and `contract_recon`.
|
| 13 |
+
5. **Implement Robust Security Measures**: Based on the findings, implement robust security measures such as multi-sig wallets and regular smart contract audits using tools like `foundry` and `garak`.
|
| 14 |
+
6. **Monitor and Update**: Continuously monitor the protocol's security and update the playbook as needed to ensure the protocol remains secure.
|
| 15 |
+
|
| 16 |
+
#### Quality Gates:
|
| 17 |
+
* All smart contracts must be audited using at least two different tools (e.g., `slither` and `mythril`)
|
| 18 |
+
* All potential vulnerabilities must be addressed and fixed before deployment
|
| 19 |
+
* The protocol's concentration risk must be evaluated and mitigated
|
| 20 |
+
|
| 21 |
+
#### Limitations:
|
| 22 |
+
* This playbook is specific to DeFi protocols built on the Base chain and may not be applicable to other blockchain platforms
|
| 23 |
+
* The playbook relies on the accuracy and completeness of the data collected from various tools and sources
|
| 24 |
+
* The playbook is not a substitute for human judgment and expertise in security auditing and protocol development
|
| 25 |
+
|
| 26 |
+
#### Tools Used:
|
| 27 |
+
* `slither`
|
| 28 |
+
* `mythril`
|
| 29 |
+
* `echidna`
|
| 30 |
+
* `foundry`
|
| 31 |
+
* `garak`
|
| 32 |
+
* `market_data`
|
| 33 |
+
* `token_safety`
|
| 34 |
+
* `base_rpc`
|
| 35 |
+
* `contract_recon`
|
| 36 |
+
* `hack_feed`
|
| 37 |
+
|
| 38 |
+
_Distilled 2026-07-05T09:12:01Z from real SKILLFORGE memory._
|