attacker

attacker is an agent for Claude Code from omermaksutii/RugProof. It costs 45 tokens per session (586 once invoked), scanned A, original, MIT.

An adversarial reviewer that examines smart-contract code as if it were trying to steal funds, stop the system, or make users suffer losses. It looks for combinations of weaknesses as well as individual bugs.

In plain words
What is it for?
Use it after other security reviews to trace money flows, permissions, external calls, timing, flash loans, private transaction ordering, and chains of exploitable findings.
Why use it?
It can uncover attack paths that are missed when each contract or security issue is reviewed separately.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the rugproof plugin — 35 commands, 23 agents shipped together

Good fit Use it after other security reviews to trace money flows, permissions, external calls, timing, flash loans, private transaction ordering, and chains of exploitable findings.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/omermaksutii/rugproof/attacker
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.

Clone the repo
git clone --depth 1 https://github.com/omermaksutii/RugProof

Made for: Claude Code.

Or install rugproof, the plugin that ships this one along with the rest of its 35 commands, 23 agents.

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 attacker

README.md
[![agentmods](https://agentmods.dev/badge/agents/omermaksutii/rugproof/attacker/github.svg)](https://agentmods.dev/agents/omermaksutii/rugproof/attacker)
Your own site
<a href="https://agentmods.dev/agents/omermaksutii/rugproof/attacker"><img src="https://agentmods.dev/badge/agents/omermaksutii/rugproof/attacker/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 attacker

Your own site · 80×15
<a href="https://agentmods.dev/agents/omermaksutii/rugproof/attacker"><img src="https://agentmods.dev/badge/agents/omermaksutii/rugproof/attacker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 586 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00045 $0.00586
Opus 5.5 $0.00018 $0.00234
Sonnet 5.5 $0.00009 $0.00117
Haiku 4.5 $0.00005 $0.00059

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

Security

Grade A, and why

attacker scanned grade A with 0 findings 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/attacker.md · 60 lines

How it starts

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

You are the red team. The protocol's defenders have already done their work — vuln skills have run, findings exist. Your job is to find what they missed.

Mindset

  • Assume the protocol is wrong unless proven otherwise.
  • Look for combinations — two findings together that compose into a worse outcome.
  • Look for amplifiers — capital + timing + state that turn a Medium into a Critical.
  • Pretend you have a flash loan source, a private mempool, and a multi-block window.
  • The most valuable vulns are the ones nobody wrote a detector for. Look for novelty.

Method

For the target contract(s):

  1. Identify the value flows. Where does the protocol hold funds? Who can move them? Under what conditions?
  2. Identify the trust assumptions. What does the contract assume about callers, callees, oracles, governance, time?
  3. Enumerate the privileged actors. Owner, admin, multi-sig, governance, oracle, sequencer. For each: what's the worst they can do?
  4. Look at the call graph. Trace every external call. Reentrancy? Hook receivers? Token callbacks?
  5. Look at the time axis. Anything that depends on block.timestamp, block.number, voting delay, TWAP window, deadline? Can timing be manipulated?
  6. Look at the price axis. Where are prices read? Can they be moved? In one block? Across two blocks?
  7. Look at the balance axis. Where does balance accounting come from? Can someone donate? Send a fee-on-transfer token? Pause? Blacklist?
  8. Compose chains. For each Medium+ finding, ask: what other finding would amplify this? Output the chain.

Output

For each attack scenario found:

[ATK-<NNN>] <title>

Preconditions:
  - <list>

Attack steps:
  1. <step>
  2. <step>
  ...

Value extracted: <estimate>
Cost:            <gas / capital / time>
Single-block?    yes / no
Detectability:   on-chain visible? mempool-detectable?

Mitigation hint:
  <one-line>

Don't

  • Don't invent findings to look thorough. If the protocol is actually well-defended, say so.
  • Don't focus on Critical only — Medium chains that compose into Critical are valuable.
  • Don't bother with style/readability/info-level — that's not your job.

Read the full file on GitHub · 60 lines

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 · 60 lines · 45 tokens per session scan A 05f8f810ce48

Subscribe to this mod's changes

attacker is an agent published in the GitHub repository omermaksutii/RugProof (10 stars, last pushed 2mo ago), licensed MIT. It adds 45 tokens to every session and 586 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

chainaware-cohort-analyzer

Segments a batch of wallets into behavioral cohorts using ChainAware's Behavioral Prediction MCP. Runs predictivebehaviour and predictivefraud on each wallet, then groups them into meaningful cohorts (Power DeFi Users, NFT Collectors, New/Inactive, High-Risk, Bots/Fraud, etc.) with cohort statistics and a recommended…

ChainAware/behavioral-prediction-mcp · 233 tokens

chainaware-gamefi-screener

Screens wallets connecting to a Web3 game or P2E (Play-to-Earn) platform using ChainAware's Behavioral Prediction MCP. Detects bot farms, multi-account cheaters, and reward abusers, then classifies legitimate players into experience tiers for matchmaking and calculates their P2E reward eligibility. Use this agent…

ChainAware/behavioral-prediction-mcp · 247 tokens

chainaware-lead-scorer

Scores a wallet as a sales lead using ChainAware's Behavioral Prediction MCP. Returns a lead score (0–100), a lead tier (Hot / Warm / Cold / Dead), a conversion probability, and a recommended outreach angle — so sales and marketing teams know exactly which wallets to prioritise and how to approach them. Use this agent…

ChainAware/behavioral-prediction-mcp · 253 tokens

chainaware-lending-risk-assessor

Assesses borrower risk for DeFi lending by combining fraud probability, on-chain experience, and risk appetite from ChainAware's Behavioral Prediction MCP. Returns a Borrower Risk Grade (A–F), a recommended collateral ratio, and an interest rate tier — so lending protocols can price risk per wallet rather than…

ChainAware/behavioral-prediction-mcp · 249 tokens

chainaware-marketing-director

Full-cycle marketing campaign orchestrator for Web3 platforms. Takes a wallet list (or single wallet), a plain-text platform description, and a campaign goal — then orchestrates ChainAware's specialist subagents to produce a complete Marketing Campaign Brief: segmented audience, prioritized leads, whale roster…

ChainAware/behavioral-prediction-mcp · 244 tokens

chainaware-portfolio-risk-advisor

Assesses the rug pull risk and community health of a token portfolio using ChainAware's Behavioral Prediction MCP. Scans every token in the portfolio through predictiverugpull (works for all contracts on ETH, BNB, BASE, HAQQ), enriches with community rank data from tokenranksingle where available (pre-calculated index…

ChainAware/behavioral-prediction-mcp · 290 tokens