chain-guard

Catalog DeFi bug classes and pre-dive kill signals for Solidity and Rust audits.

1|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/mlvpatel/sentinel-ai-offensive --skill chain-guard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: chain-guard
Source: https://github.com/mlvpatel/sentinel-ai-offensive/tree/main/skills/chain-guard
Command: npx skills add https://github.com/mlvpatel/sentinel-ai-offensive --skill chain-guard

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Smart contract security audit framework catalogs DeFi bug classes and pre-dive kill signals to streamline vulnerability detection and decision-making for audits.

Core Features & Use Cases

  • 10 bug classes including accounting desync, access control, incomplete path, off-by-one, oracle, ERC4626, reentrancy, flash loan, signature replay, and proxy.
  • Pre-dive kill signals to guide go/no-go decisions before deep code review.
  • Foundry PoC templates and grep-pattern guidance for rapid pattern discovery and reproducible exploits; ideal for triaging Solidity/Rust targets and conducting educational security reviews.

Quick Start

Run a security audit on your Solidity project using chain-guard patterns and the Foundry PoC to produce a vulnerability report.

Frequently Asked Questions about chain-guard

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I start a smart contract security audit for DeFi protocols?

Start a smart contract security audit by using pre-dive kill signals to evaluate go/no-go decisions before deep code review. Apply grep-pattern guidance for rapid pattern discovery and use Foundry PoC templates to reproduce exploits across 10 common DeFi bug classes.

What are the most common DeFi smart contract vulnerability classes to check?

Common DeFi smart contract vulnerability classes include accounting desync, access control, incomplete path, off-by-one, oracle, ERC4626, reentrancy, flash loan, signature replay, and proxy flaws. Cataloging these bug classes streamlines vulnerability detection and decision-making during security reviews.

Can I use Foundry to create proof of concept exploits for Solidity vulnerabilities?

Yes, Foundry PoC templates enable rapid pattern discovery and reproducible exploit generation for Solidity vulnerabilities. The framework provides grep-pattern guidance to identify common flaws and generate structured audit outputs for triaging smart contract targets.

Does this security audit framework work with both Solidity and Rust targets?

Yes, the security audit framework is applicable to Solidity and Rust audits of DeFi protocols and smart contract targets. It enables rapid triage, pattern matching, and reproducible PoCs across both languages for educational security reviews.

What are pre-dive kill signals in a smart contract audit?

Pre-dive kill signals are indicators that guide go/no-go decisions before deep code review during a smart contract security audit. They help auditors streamline vulnerability detection and decision-making by identifying potential flaws early in the assessment process.

How do I identify reentrancy and flash loan vulnerabilities during a DeFi audit?

Identify reentrancy and flash loan vulnerabilities by applying grep-pattern guidance for rapid pattern discovery across smart contract code. Use the audit framework's 10 bug classes catalog to streamline pattern matching and generate reproducible Foundry PoCs for these common DeFi flaws.