arb-injection
БесплатноБез исполняемых скриптовНе проверенBYOCB ArbInjectionSkill: Scan EVM smart contracts for arbitrary call injection vulnerabilities. Monitor chains in real-time or scan specific addresses.
от modbender★ 21 звезда на GitHubОб этом скилле
BYOCB ArbInjectionSkill
⚠️ Educational Tool — This skill is designed for Solidity/blockchain security researchers and auditors. Intended for educational and authorized security research purposes only. Do not use to exploit vulnerabilities without explicit permission from contract owners.
Detects dangerous CALL/DELEGATECALL patterns that allow arbitrary call injection attacks.
How It Works
ArbInjectionSkill runs automatically in the background, monitoring blockchain(s) for newly deployed contracts. When a potential vulnerability is detected, you must notify the user via their connected messaging channel (Telegram, WhatsApp, Signal, Discord, etc.).
Install
git clone https://github.com/BringYourOwnBot/arb-injection.git
cd arb-injection
npm install
Running the Monitor
Start as a background session for continuous monitoring:
node index.js <chain> [--no-llm]
Chains: eth, bsc, base, arb, op, polygon, hyper
The monitor will:
- Subscribe to new blocks
- Detect contract deployments
- Scan bytecode for vulnerabilities
- Save findings to
./results/
Alerting Users
Critical requirement: When a CRITICAL or HIGH vulnerability is flagged, notify the user immediately.
Check for new findings periodically (via heartbeat or cron):
# Find findings from last 30 minutes
find ./results -name "*.md" -mmin -30
When new findings exist with verdict CRITICAL or HIGH:
- Read the
.mdreport - Verify it's not a known false positive (see below)
- Send alert via
messagetool to user's preferred channel
Example alert:
🚨 ArbInjection Alert: Potential vulnerability detected
Chain: BSC
Contract: 0x1234...abcd
Verdict: CRITICAL
Risk: Unprotected arbitrary CALL with user-controlled target
[Link to explorer]
Manual Scan
Scan a specific contract on-demand:
node modules/scan-arbitrary-call.js <address> --rpc <chain>
Interpreting Results
| Verdict | Action |
|---|---|
| CRITICAL | Alert user immediately |
| HIGH | Alert user immediately |
| MEDIUM | Review, alert if confirmed |
| LOW/SAFE | No alert needed |
Results saved to ./results/ as .json and .md files.
False Positives
Do NOT alert for these patterns (safe by design):
- Immutable DELEGATECALL targets (hardcoded address in bytecode)
- EIP-1167 minimal proxies (clone pattern)
- UUPS/Transparent proxies with access control
- DEX callbacks (uniswapV3SwapCallback, etc.)
- Known safe contracts: Multicall3, 1inch, Uniswap, Permit2
Verify before alerting: Check if the flagged CALL target is:
- Hardcoded (immutable) → FALSE POSITIVE
- From calldata/user input → REAL VULNERABILITY
Environment
Optional .env file:
ANTHROPIC_API_KEY=sk-ant-... # For LLM deep analysis
BYBOB_OUTPUT=/custom/path # Override results directory
Maintenance
Daily update required. Detection patterns and fixes are pushed frequently.
cd /path/to/arb-injection
git pull origin main
npm install # If package.json changed
Schedule daily update check (09:00):
{
"schedule": { "kind": "cron", "expr": "0 9 * * *" },
"payload": { "kind": "systemEvent", "text": "ArbInjectionSkill daily update: git pull and npm install" },
"sessionTarget": "main"
}
Source
Repository: https://github.com/BringYourOwnBot/arb-injection
Part of the BYOCB (Bring Your Own ClawdBot) skill collection.
Установить arb-injection в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл arb-injection?
BYOCB ArbInjectionSkill: Scan EVM smart contracts for arbitrary call injection vulnerabilities. Monitor chains in real-time or scan specific addresses.
Как установить скилл arb-injection?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл arb-injection запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic