Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Attack Chains

ASecurity

Detect multi-step exploit sequences where individual steps may appear benign but combine into critical vulnerabilities. Use when analyzing protocols for flash-loan-to-governance chains, oracle manipulation sequences, or cross-contract re-entrancy paths inspired by real-world exploits like Ronin, Wormhole, and Beanstalk.

61 stars
0 votes
0 copies
0 views
Added 9/19/2026
testingpythongobash

Security Analysis

A100/100

Scanned 9/19/2026

Install to Claude Code

$npx -y skills add 0x-Shashi/WEB3-AUDIT-SKILLS --skill attack-chains --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Attack Chains?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Attack Chains
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/0x-shashi-attack-chains/badge)](https://www.skillsdirectory.com/skills/0x-shashi-attack-chains)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
id: attack-chains
title: Attack Chains Skill
category: advanced
difficulty: advanced
triggers:
  - attack chain
  - multi-step exploit
  - exploit sequence
  - chain attack
  - combined vulnerabilities
related_skills:
  - advanced/context-detection/SKILL.md
  - patterns/SKILL.md
  - exploit-forensics/SKILL.md
tags:
  - attack-chains
  - exploits
  - multi-step
  - advanced
last_updated: 2026-02-26
description: >-
  Detect multi-step exploit sequences where individual steps may appear
  benign but combine into critical vulnerabilities. Use when analyzing
  protocols for flash-loan-to-governance chains, oracle manipulation
  sequences, or cross-contract re-entrancy paths inspired by real-world
  exploits like Ronin, Wormhole, and Beanstalk.
---

# Attack Chains Skill

## Purpose
Detect multi-step exploit sequences where individual steps may appear benign but combine into critical vulnerabilities. Real-world exploits rarely use a single vulnerability — they chain multiple issues together.

## Why Attack Chains Matter
- $624M Ronin Bridge: Social engineering → Key compromise → Validator threshold bypass → Fund drain
- $326M Wormhole: Signature verification bypass → Fake VAA → Unauthorized minting
- $182M Beanstalk: Flash loan → Governance vote → Proposal execution → Fund drain
- $130M Cream Finance: Flash loan → Oracle manipulation → Under-collateralized borrow → Drain

## Chain Types
| Chain | Description | File |
|-------|-------------|------|
| Flash Loan | Flash loan enables price/governance manipulation | [flash-loan-chains.md](flash-loan-chains.md) |
| Oracle | Oracle distortion enables economic exploits | [oracle-chains.md](oracle-chains.md) |
| Bridge | Cross-chain verification bypass chains | [bridge-chains.md](bridge-chains.md) |
| Governance | Vote manipulation and proposal hijacking | [governance-chains.md](governance-chains.md) |

## Detection Approach
1. **Identify entry points**: Flash loans, large token transfers, governance proposals
2. **Trace data flow**: Follow manipulated values through the system
3. **Check invariants**: Verify economic invariants hold under manipulation
4. **Simulate chains**: Walk through multi-step sequences mentally or in tests

## Severity
Attack chains are almost always **Critical** or **High** severity because they represent complete exploit paths.

## Prerequisites

Attack chain analysis requires familiarity with individual vulnerability types. The [Patterns](../../patterns/) skill MUST be loaded first. Flash loan chains additionally require understanding of DeFi composability.

## Validation

To verify attack chain detection, test against known exploit reproductions:

```solidity
// Example: Flash loan attack chain detection pattern
// Step 1: Flash loan entry
function attack() external {
    ILendingPool(pool).flashLoan(address(this), token, amount, "");
}
// Step 2: Price manipulation during callback
function executeOperation(address, uint256 amount, uint256 fee, bytes calldata) external {
    // Manipulate oracle price
    IOracle(oracle).update(manipulatedPrice);
    // Step 3: Exploit manipulated state
    IVault(vault).borrow(collateral, inflatedAmount);
    // Step 4: Restore and repay
    IERC20(token).transfer(pool, amount + fee);
}
```

```python
# Validate chain detection coverage
known_chains = ["flash-loan", "oracle", "bridge", "governance"]
for chain in known_chains:
    assert chain_detector.can_detect(chain), f"Missing detection for {chain}"
```

```bash
# Run chain pattern matching tests
python -m pytest tests/attack_chains/ -v
```

## Behavior Guidelines

- Chain analysis MUST consider all entry points (flash loans, large transfers, governance proposals)
- Auditors should optionally model economic profitability of detected chains
- Cross-contract interactions are **required** to be traced through all delegate calls

## References

- [Attack Chains References](references/README.md) - Historical exploit timelines and chain diagrams

Attribution

0x-Shashi0x-Shashi
View sourceMore from 0x-Shashi →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Screen Reader Testing

Practical guide to testing web applications with screen readers for comprehensive accessibility validation.

393431 votes

Python Testing

使用pytest、TDD方法、夹具、模拟、参数化和覆盖率要求的Python测试策略。

2456590 votes

Tdd Workflow

在编写新功能、修复错误或重构代码时使用此技能。强制执行测试驱动开发,包含单元测试、集成测试和端到端测试,覆盖率超过80%。

2456590 votes

Springboot Tdd

使用JUnit 5、Mockito、MockMvc、Testcontainers和JaCoCo进行Spring Boot的测试驱动开发。适用于添加功能、修复错误或重构时。

2456590 votes

Eval Harness

克劳德代码会话的正式评估框架,实施评估驱动开发(EDD)原则

2456590 votes
View all in testing →