# Blockchain security

> Blockchain security is an open-source agent skill for security. Guides an agent through Solidity smart contract security testing and blockchain CTF. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/transilienceai/communitytools/tree/main/skills/blockchain-security
- **Repository:** https://github.com/transilienceai/communitytools
- **GitHub stars:** 641
- **License:** MIT
- **Skill name:** blockchain-security
- **Collection:** https://github.com/transilienceai/communitytools
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-02

## About

This skill gives an agent a structured approach to auditing Solidity contracts and working through blockchain capture-the-flag challenges. It walks through decompiling or fetching contract code, mapping storage layout, and checking for privileged operations before writing any exploit.

The guidance centers on specific vulnerability classes: delegatecall storage collisions, CREATE address prediction through nonce manipulation, storage slot computation for mappings and private variables, empty-array validation bypasses, ECDSA signature malleability, and a broader checklist covering reentrancy, access control, tx.origin authentication, selfdestruct, and weak randomness. Separate reference notes cover delegatecall attacks, CREATE address prediction and storage layout in more depth.

The workflow assumes a Python environment with web3.py and solcx for compiling and deploying exploit contracts, or alternatively Foundry's cast and forge. Challenge-style targets are expected to expose a connection endpoint and an on-chain win condition that the agent checks after the attack.

## When your agent uses it

> Smart contract security testing and blockchain CTF exploitation. Covers Solidity vulnerability analysis, EVM storage manipulation, delegatecall attacks, CREATE/CREATE2 address prediction, and common DeFi exploit patterns. Use when analyzing Solidity contracts, solving blockchain challenges, or testing smart contract security.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/transilienceai/communitytools/tree/HEAD/skills/blockchain-security)
- [License: MIT](https://github.com/transilienceai/communitytools/tree/HEAD/skills/blockchain-security)

## Features

- **Vulnerability checklist:** A table of common Solidity flaws with the specific code pattern to look for in each.
- **Delegatecall storage attacks:** Guidance on mirroring a target's storage layout so delegatecall writes land in the right slots.
- **CREATE address prediction:** Method for computing contract addresses from sender and nonce and targeting a specific deployment nonce.
- **Storage slot computation:** Formulas for locating mapping entries and reading private variables with eth_getStorageAt.
- **Signature malleability checks:** Explains how raw ecrecover without s-normalization allows a valid signature to be reshaped.
- **Deployment helpers:** web3.py snippets for compiling Solidity, signing and sending deployment transactions.

## Good for

- Audit a Solidity contract for reentrancy and missing access control
- Solve a blockchain CTF challenge that requires a delegatecall exploit
- Predict the address a contract will deploy to and reach a target nonce
- Read private state variables from a deployed contract's storage
- Check whether a signature-verifying contract is vulnerable to malleability

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/blockchain-security` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/blockchain-security &&
cp -R "$tmp/skills/blockchain-security" ~/.claude/skills/blockchain-security &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/blockchain-security` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/blockchain-security` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/blockchain-security &&
cp -R "$tmp/skills/blockchain-security" ~/.agents/skills/blockchain-security &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/blockchain-security` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/blockchain-security` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/blockchain-security &&
cp -R "$tmp/skills/blockchain-security" ~/.cursor/skills/blockchain-security &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/blockchain-security` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/transilienceai/communitytools.git --path skills/blockchain-security
```

Or copy the folder to `~/.gemini/skills/blockchain-security` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/blockchain-security`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/blockchain-security &&
cp -R "$tmp/skills/blockchain-security" ~/.copilot/skills/blockchain-security &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/blockchain-security` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/transilienceai/communitytools.git
```

Then copy `communitytools/skills/blockchain-security` into your agent's skills folder as `blockchain-security`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

The examples use Python with web3.py and solcx to compile and deploy, or Foundry's cast and forge. The skill includes no scripts of its own.

### When does the skill trigger?

When the agent is analyzing Solidity contracts, solving blockchain challenges, or testing smart contract security.

### Does Blockchain security include automated tooling?

No. It provides instructions, reference notes and code snippets; the agent writes and runs the exploit itself.

### How do I install Blockchain security in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/blockchain-security to use it in all your projects, or to .claude/skills/blockchain-security in one project.

### Does Blockchain security run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Blockchain security?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Blockchain security?

The closest alternatives to Blockchain security are Chain construct smart contract, Defi amm security, Secure workflow guide, Signature validation audit and Source code scanning.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Chain construct smart contract](https://ai-powered.com/skills/chain-construct-smart-contract): Chain construct smart contract is an open-source agent skill for security.
- [Defi amm security](https://ai-powered.com/skills/defi-amm-security): Defi amm security is an open-source agent skill for security.
- [Secure workflow guide](https://ai-powered.com/skills/secure-workflow-guide): Secure workflow guide is an open-source agent skill for security.
- [Signature validation audit](https://ai-powered.com/skills/signature-validation-audit): Signature validation audit is an open-source agent skill for security.
- [Source code scanning](https://ai-powered.com/skills/source-code-scanning): Source code scanning is an open-source agent skill for security.
- [Defi invariant check](https://ai-powered.com/skills/defi-invariant-check): Defi invariant check is an open-source agent skill for security.
- [Evm audit flow](https://ai-powered.com/skills/evm-audit-flow): Evm audit flow is an open-source agent skill for security.
- [Server side](https://ai-powered.com/skills/server-side): Server side is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/blockchain-security
