karamonjie/karamotech-agent-suite/blockchain-recon

Claude Code and agent skill by karamonjie/karamotech-agent-suite

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Install

npx vskill@latest install karamonjie/karamotech-agent-suite/blockchain-recon

SKILL.md

The same SKILL.md was published earlier as karamonjie/karamotech-agent-suite/blockchain-recon.

/blockchain-recon — Blockchain & Protocol Reconnaissance

Map the attack surface of a DeFi protocol, DAO, or smart contract system.

Usage

/blockchain-recon <contract_address>
/blockchain-recon <protocol_name> --chain mainnet
/blockchain-recon <deployer_address> --mode full

Phase 1 — On-Chain Fingerprinting

bash
TARGET="0xAbCd..."
RPC=$ETH_RPC_URL
# Get contract creation info
cast tx $(cast etherscan-source $TARGET --chain mainnet 2>&1 | grep "creation tx") --rpc-url $RPC
# Check if proxy
IMPL=$(cast storage $TARGET 0x360894a13ba1a3210667c828492db98dca3e2076 --rpc-url $RPC)
echo "EIP-1967 impl: $IMPL"
IMPL2=$(cast storage $TARGET 0x7050c9e0f4ca769c69bd3a8ef740bc37934f8e2f --rpc-url $RPC)
echo "EIP-897 impl: $IMPL2"
# Enumerate all public functions from ABI
cast abi $TARGET --chain mainnet | python3 -c "
import json,sys
abi=json.load(sys.stdin)
for item in abi:
if item.get('type') == 'function':
inputs = ','.join(i['type'] for i in item.get('inputs',[]))
mutability = item.get('stateMutability','?')
print(f\" {mutability:12} {item['name']}({inputs})\")
"
# Find deployer and all contracts deployed by same address
cast etherscan-source $TARGET --chain mainnet -d ./recon/
# Check admin/owner
cast call $TARGET "owner()(address)" --rpc-url $RPC
cast call $TARGET "admin()(address)" --rpc-url $RPC
cast call $TARGET "governance()(address)" --rpc-url $RPC

Phase 2 — Token & Treasury Mapping

bash
# Get ETH/token balances
cast balance $TARGET --rpc-url $RPC --ether
# ERC-20 held by contract
# Use Etherscan token tracker or:
curl "https://api.etherscan.io/api?module=account&action=tokenlist&address=$TARGET&apikey=$ETHERSCAN_API_KEY" | python3 -m json.tool
# TVL estimate
cast call $USDC_ADDRESS "balanceOf(address)(uint256)" $TARGET --rpc-url $RPC
cast call $WETH_ADDRESS "balanceOf(address)(uint256)" $TARGET --rpc-url $RPC

Phase 3 — Permission & Role Mapping

bash
# OpenZeppelin AccessControl: enumerate roles
# DEFAULT_ADMIN_ROLE = 0x00
cast call $TARGET "hasRole(bytes32,address)(bool)" \
0x0000000000000000000000000000000000000000000000000000000000000000 \
$SUSPECT_ADDRESS --rpc-url $RPC
# Common role hashes
MINTER_ROLE=$(cast keccak "MINTER_ROLE")
PAUSER_ROLE=$(cast keccak "PAUSER_ROLE")
UPGRADER_ROLE=$(cast keccak "UPGRADER_ROLE")
# Get role members from events
cast logs --from-block 0 --to-block latest \
--address $TARGET \
--topic0 $(cast keccak "RoleGranted(bytes32,address,address)") \
--rpc-url $RPC

Phase 4 — Historical Event Analysis

bash
# All admin-related events
cast logs --address $TARGET \
--topic0 $(cast keccak "OwnershipTransferred(address,address)") \
--rpc-url $RPC
# Large transfers out (possible drain signatures)
cast logs --address $TOKEN \
--topic0 $(cast keccak "Transfer(address,address,uint256)") \
--topic2 $TARGET \ # from contract
--rpc-url $RPC | python3 -c "
import sys, json
for line in sys.stdin:
log = json.loads(line)
value = int(log['data'], 16)
if value > 100_000 * 10**18:
print(f'Large transfer: {value/10**18:.2f} tokens in tx {log[\"transactionHash\"]}')
"

Phase 5 — Protocol Dependency Graph

bash
# Find all external contract calls (from Slither)
slither $TARGET --print call-graph --etherscan-apikey $ETHERSCAN_API_KEY
# Key dependencies to check
cast call $TARGET "oracle()(address)" --rpc-url $RPC # price oracle
cast call $TARGET "router()(address)" --rpc-url $RPC # swap router
cast call $TARGET "vault()(address)" --rpc-url $RPC # underlying vault
cast call $TARGET "timelock()(address)" --rpc-url $RPC # upgrade timelock

Phase 6 — Off-Chain Surface

bash
# GitHub recon
gh search repos "$PROTOCOL_NAME" --language solidity --sort stars
gh search code "PRIVATE_KEY" --owner "$ORG" 2>/dev/null
# NPM package analysis
npm info $PACKAGE_NAME versions --json
# Check for admin access or suspicious maintainers
curl -s "https://registry.npmjs.org/$PACKAGE_NAME" | python3 -c "
import json,sys
d=json.load(sys.stdin)
print('Maintainers:', [m['name'] for m in d.get('maintainers',[])])
print('Latest:', d['dist-tags']['latest'])
"
# DNS / infrastructure
dig $PROTOCOL_DOMAIN +short
nmap -sV -p 443,80,8545,8546,3000,4000 $DOMAIN
subfinder -d $DOMAIN -silent
# Exposed RPC endpoints
curl -s -X POST $RPC_URL \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_accounts","params":[],"id":1}'

Recon Output Template

Target: <Protocol Name>
Chain: Ethereum Mainnet / <chain>
Main Contract: <address>
Proxy: Yes/No (impl: <address>)
Deployer: <address>
TVL: ~$<amount>
Admin/Owner: <address> (EOA/multisig/timelock)
Upgrade Mechanism: <immediate/timelock Xh/immutable>
Oracle: <Chainlink/AMM spot/TWAP — address>
Dependencies: [list of external contracts]
Attack Surface Summary:
- Proxy: [upgradeable risk level]
- Oracle: [manipulation window]
- Access Control: [roles and holders]
- Flash Loan Exposure: [yes/no, which functions]
- Prior Audits: [auditor, date, findings count]

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/karamonjie/karamotech-agent-suite/blockchain-recon/badge)](https://verified-skill.com/skills/karamonjie/karamotech-agent-suite/blockchain-recon)

Something wrong with this skill or its page? Tell us.