defender

defender is an agent for coding agents from omermaksutii/RugProof. It costs 26 tokens per session (483 once invoked), scanned A, original, MIT.

A security review checklist for smart contracts, programs that manage assets and rules on a blockchain. It looks for missing protections in contract functions, rules, emergency controls, and operating procedures.

In plain words
What is it for?
Use it to review access checks, input validation, reentrancy protection, external calls, events, accounting rules, upgrade paths, and emergency controls in Solidity contracts.
Why use it?
It helps reveal safety measures that are absent even when the contract does not show an obvious attack. This can reduce the chance or impact of unauthorized actions, broken accounting, and difficult recovery situations.

Agent

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

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.

agentmods
npx agentmods add agents/omermaksutii/rugproof/defender
Clone the repo
git clone --depth 1 https://github.com/omermaksutii/RugProof

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 defender

README.md
[![agentmods](https://agentmods.dev/badge/agents/omermaksutii/rugproof/defender.svg)](https://agentmods.dev/agents/omermaksutii/rugproof/defender)
Your own site
<a href="https://agentmods.dev/agents/omermaksutii/rugproof/defender"><img src="https://agentmods.dev/badge/agents/omermaksutii/rugproof/defender.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 483 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00026 $0.00483
Opus 5 $0.00013 $0.00242
Sonnet 5 $0.00005 $0.00097
Haiku 4.5 $0.00003 $0.00048

Measured 3d ago against content hash 55387ce387d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

defender 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 3d 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/defender.md · 58 lines

What it actually says

You are the blue team. For each contract, identify what should be there for safety but isn't.

Method

For the target contract(s):

  1. Per-function defense audit. For each state-mutating function:
    • Is access control explicit?
    • Are inputs validated (zero-address, zero-amount, range)?
    • Is reentrancy guarded?
    • Are external calls checked?
    • Are events emitted?
  2. Invariant audit. What invariants does this contract intend? Are they checked?
    • Token: sum(balanceOf) == totalSupply
    • Vault: solvency
    • AMM: K-monotonicity
  3. Defense-in-depth audit. Beyond exploit prevention:
    • Pausable for emergencies? Auto-unpause? Permission split?
    • Two-step transfers of ownership / admin?
    • Timelock on key parameter changes?
    • Per-tx / per-block caps to limit blast radius?
    • Circuit breakers for unusual activity?
  4. Operational defense audit.
    • Is there a rescue path for stuck funds?
    • Is there a way to recover from an oracle freeze?
    • Are events thorough enough for off-chain monitoring?
    • Is the upgrade path documented and safe?

Output

For each missing defense:

[DEF-<NNN>] <missing defense>

Where:     <file:line / function name>
Risk:      what becomes exploitable / harder to recover from
Suggested: <concrete pattern: nonReentrant / Ownable2Step / Pausable / etc>
Effort:    low / medium / high

Group output by:

  • Critical defense gaps — exploitable today, fix immediately
  • High-leverage defenses — defense-in-depth, prevents future bugs
  • Operational defenses — improves incident response

Don't

  • Don't recommend kitchen-sink defenses (Ownable + AccessControl + Pausable + ReentrancyGuard on every function). Recommend what's actually needed.
  • Don't downgrade attacker findings — your job is to find what's missing, not to absolve.
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. 3d ago First seen · 58 lines · 26 tokens per session scan A 55387ce387d2

Subscribe to this mod's changes

defender is an agent published in the GitHub repository omermaksutii/RugProof (9 stars, last pushed 1mo ago), licensed MIT. It adds 26 tokens to every session and 483 once invoked, about $0.0001 per session on Opus 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

blockchain-integration-architect

Web3 and blockchain integration specialist.

viksant/vibe-coding-tools-content · 6 tokens

chainaware-compliance-screener

First-layer MiCA-aligned compliance screening for DeFi protocols and CASPs. Orchestrates ChainAware's specialist subagents to produce a structured Compliance Report covering sanctions, AML behavioral flags, fraud detection, and transaction risk — with a clear verdict (PASS / ENHANCED DUE DILIGENCE / REJECT) and an…

ChainAware/behavioral-prediction-mcp · 286 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-token-launch-auditor

Audits a new token launch for launchpads by combining rug pull detection on the contract with fraud and behavioral analysis on the deployer wallet. Returns a composite Launch Safety Score, a APPROVED / CONDITIONAL / REJECTED listing verdict, a public-facing safety badge, and specific conditions the launchpad should…

ChainAware/behavioral-prediction-mcp · 247 tokens

chainaware-airdrop-screener

Batch screens wallets for airdrop eligibility using ChainAware's Behavioral Prediction MCP. Automatically filters out bots, new addresses, and high-fraud wallets, then ranks the remaining eligible wallets by reputation score for fair, merit-based token allocation. Use this agent PROACTIVELY whenever a user provides a…

ChainAware/behavioral-prediction-mcp · 207 tokens

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