blockchain-security

blockchain-security is a skill for Claude Code from transilienceai/communitytools. It costs 58 tokens per session (1,154 once invoked), scanned A, original, MIT.

A security testing guide for blockchain applications, especially Solidity smart contracts and the Ethereum Virtual Machine. It also covers blockchain capture-the-flag challenges, which are practice exercises built around exploiting contracts.

In plain words
What is it for?
Use it to inspect contract source or bytecode, map storage, analyze attack paths, deploy test exploits, and verify challenge win conditions.
Why use it?
It helps identify and demonstrate contract flaws such as unsafe delegate calls, reentrancy, weak access controls, and predictable contract addresses.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the communitytools plugin — 48 skills, 5 commands, 9 agents, 1 hook shipped together

not rated 591repo +14 2mo ago A scan Socket: warnSnyk: warnSkillSpector: pass 58 tokens original MIT

Good fit Use it to inspect contract source or bytecode, map storage, analyze attack paths, deploy test exploits, and verify challenge win conditions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/transilienceai/communitytools/blockchain-security
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add transilienceai/communitytools --skill blockchain-security
Clone the repo
git clone --depth 1 https://github.com/transilienceai/communitytools

Made for: Claude Code.

Or install communitytools, the plugin that ships this one along with the rest of its 48 skills, 5 commands, 9 agents, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for blockchain-security

README.md
[![agentmods](https://agentmods.dev/badge/skills/transilienceai/communitytools/blockchain-security/github.svg)](https://agentmods.dev/skills/transilienceai/communitytools/blockchain-security)
Your own site
<a href="https://agentmods.dev/skills/transilienceai/communitytools/blockchain-security"><img src="https://agentmods.dev/badge/skills/transilienceai/communitytools/blockchain-security/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for blockchain-security

Your own site · 80×15
<a href="https://agentmods.dev/skills/transilienceai/communitytools/blockchain-security"><img src="https://agentmods.dev/badge/skills/transilienceai/communitytools/blockchain-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,154 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
  • Socket warn 15 Sept 2026
  • Snyk warn 15 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.01154
Opus 5.5 $0.00023 $0.00462
Sonnet 5.5 $0.00012 $0.00231
Haiku 4.5 $0.00006 $0.00115

Measured 1mo ago against content hash 003c426b7908, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

blockchain-security scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl http://$HOST:$PORT/connection_info # -> PrivateKey, Address, TargetAddress, setupAddress
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/blockchain-security/SKILL.md · 101 lines

How it starts

The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Blockchain Security

Quick Start

  1. Download and decompile contracts (source or bytecode)
  2. Map storage layout and identify privileged operations
  3. Check for delegatecall, CREATE address prediction, reentrancy, access control
  4. Deploy exploit contracts via web3.py or cast/forge
  5. Verify win condition (isSolved/flag endpoint)

Blockchain CTF Challenge Pattern

# Get connection info
curl http://$HOST:$PORT/connection_info  # -> PrivateKey, Address, TargetAddress, setupAddress
# RPC endpoint
RPC_URL="http://$HOST:$PORT/rpc"
# Win condition: Setup.isSolved() must return true

Key Attack Vectors

1. Delegatecall Storage Manipulation

When contract A does delegatecall to contract B, B's code runs with A's storage.

  • Deploy exploit contract that mirrors A's storage layout
  • Exploit contract writes to A's storage slots via delegatecall
  • Critical: Storage layout must match exactly (same slot ordering)
  • See reference/delegatecall-attacks.md

2. CREATE Address Prediction (Nonce Manipulation)

Contract addresses from CREATE are deterministic: keccak256(rlp([sender, nonce]))[12:]

  • Brute-force nonce to find which nonce produces target address
  • Send dummy transactions (self-transfers) to increment nonce
  • Deploy exploit contract at the exact nonce that hits target address
  • See reference/create-address-prediction.md

3. Storage Layout & Slot Computation

  • Mappings: keccak256(h(key) || uint256(slot_number))
    • Value types: h(k) = abi.encode(k) (left-padded to 32 bytes)
    • String/bytes: h(k) = keccak256(k)
  • Read private variables via eth_getStorageAt
  • See reference/storage-layout.md

4. Empty Array / Zero-Length Input Bypass

When a function loops over a user-supplied array to validate items (signatures, approvals, votes), passing an empty array skips the loop entirely. If there's no minimum-length check, validation is bypassed.

  • Check: for (uint i = 0; i < arr.length; i++) with no require(arr.length >= N)
  • Exploit: Call the function with [] to skip all validation

Read the full file on GitHub · 101 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 101 lines · 58 tokens per session scan A 003c426b7908

Subscribe to this mod's changes

blockchain-security is a skill published in the GitHub repository transilienceai/communitytools (591 stars, last pushed 2mo ago), licensed MIT. It adds 58 tokens to every session and 1,154 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

mobile-pentest

Mobile app pentest for bug bounty (Android APK + iOS IPA) — runtime-first workflow: install app, proxy through Burp/mitmproxy, drive the UI, capture packets, then test the API exactly like a web target; escalate to decompile (apktool/jadx) and Frida/objection only when traffic is SSL-pinned, encrypted, or absent.…

Awarexone/Agentic-Bug-Hunter · 205 tokens

web2-recon

Web2 recon pipeline — subdomain enumeration (subfinder, Chaos API, assetfinder), live host discovery (dnsx, httpx), URL crawling (katana, waybackurls, gau), directory fuzzing (ffuf), JS analysis (LinkFinder, SecretFinder), continuous monitoring (new subdomain alerts, JS change detection, GitHub commit watch). Use when…

Awarexone/Agentic-Bug-Hunter · 103 tokens

pentest

Supervised authorized pentest: scope, route, validate, report.

Strategic-Automation/violin · 17 tokens

llm-security

Test LLM prompt injection and MCP tool/agent surfaces.

Strategic-Automation/violin · 16 tokens

penthera

Offline cyber security agent for the user's own apps and AI coding tools, run locally with the Penthera CLI; open R&D, measured in public. Sets it up in one command ("set up penthera in this repo"). Scans the user's own live URL and repo (TLS, headers, auth, OpenAPI, secrets incl. AI keys, opt-in injection); checks…

danoszz/penthera · 235 tokens

gcp-workspace-pivot

A playbook for moving from Google Cloud Platform (GCP) into Google Workspace, the suite containing services such as Gmail, Drive, Calendar, and administration tools.

wgpsec/AboutSecurity · 105 tokens