# Signature validation audit

> Signature validation audit is an open-source agent skill for security. Audits EVM signature checks for ECDSA fallback and precompile shadowing bypasses. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/mtarcure/claude-vibe-squad/tree/main/.agents/skills/signature-validation-audit
- **Repository:** https://github.com/mtarcure/claude-vibe-squad
- **GitHub stars:** 227
- **License:** MIT
- **Skill name:** signature-validation-audit
- **Collection:** https://github.com/mtarcure/claude-vibe-squad
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-02

## About

This skill guides a security reviewer through an authorized audit of Solidity signature verification, focusing on two bypass patterns: a failed ecrecover returning the zero address that quietly falls through to an ERC-1271 contract check, and code-length checks that mistake precompiles at addresses 0x01 to 0x09 for externally owned accounts. It asks the agent to list every authorization entrypoint, such as validateUserOp, permit functions, meta-transaction relays and order settlement, and to record the recovery primitive each one uses.

The workflow combines static analysis with dynamic testing. The agent is directed to run slither and a custom semgrep rule to locate candidate paths, write Foundry boundary tests that feed precompile addresses in as signers, and reproduce suspected issues against a forked chain with anvil. Echidna or Medusa invariants are suggested for properties such as zero-address recovery never authorizing a call. Findings are framed as leads that must meet the same verification standard as other results, and the skill tells the agent to check them against known public advisories before reporting.

The skill assumes familiarity with Solidity, Foundry, anvil and fuzzing tools, and requires access to a fork of the target network. It names no bundled scripts, and it excludes the malicious-verifier return-data case, which is covered by a separate skill.

## When your agent uses it

> Use during an authorized EVM audit when signature verification may fall back from failed ECDSA recovery to ERC-1271 or may treat zero-code precompile addresses as EOAs—classify every auth entrypoint, then test zero-address fallback and 0x01–0x09 boundaries on a fork with negative controls and invariants. It excludes the malicious-verifier return-channel condition covered by erc1271-revert-data-check.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/signature-validation-audit)
- [License: MIT](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/signature-validation-audit)

## Features

- **Entrypoint classification:** Maps every signature-accepting function and the recovery primitive it relies on.
- **ECDSA fallback detection:** Flags paths where a failed recovery routes to an ERC-1271 check instead of reverting.
- **Precompile boundary tests:** Builds Foundry tests that supply addresses 0x01 to 0x09 as signers and expects rejection.
- **Fork-based proof of concept:** Reproduces suspected bypasses on an anvil fork with a correctly bound negative control.
- **Fuzzing invariants:** Defines Echidna or Medusa properties for zero-address recovery and code-length EOA checks.

## Good for

- Review a permit function for signature fallback bugs
- Check whether a meta-transaction relayer accepts precompile signers
- Map all signature verification paths in a DeFi protocol before an audit
- Write Foundry boundary tests for ecrecover failure handling
- Set up fuzzing invariants for an ERC-1271 signer configuration

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/signature-validation-audit` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/signature-validation-audit &&
cp -R "$tmp/.agents/skills/signature-validation-audit" ~/.claude/skills/signature-validation-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/signature-validation-audit` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/signature-validation-audit` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/signature-validation-audit &&
cp -R "$tmp/.agents/skills/signature-validation-audit" ~/.agents/skills/signature-validation-audit &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/signature-validation-audit` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/signature-validation-audit` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/signature-validation-audit &&
cp -R "$tmp/.agents/skills/signature-validation-audit" ~/.cursor/skills/signature-validation-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/signature-validation-audit` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/mtarcure/claude-vibe-squad.git --path .agents/skills/signature-validation-audit
```

Or copy the folder to `~/.gemini/skills/signature-validation-audit` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/signature-validation-audit`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/signature-validation-audit &&
cp -R "$tmp/.agents/skills/signature-validation-audit" ~/.copilot/skills/signature-validation-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/signature-validation-audit` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git
```

Then copy `claude-vibe-squad/.agents/skills/signature-validation-audit` into your agent's skills folder as `signature-validation-audit`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Signature validation audit need to run?

It expects a Solidity codebase to audit, along with slither, semgrep, Foundry (forge), anvil for forking, and Echidna or Medusa for fuzzing.

### Does Signature validation audit change any code in the project?

It describes writing boundary tests and fuzzing properties as part of the audit, but it does not modify contracts. Its outputs are leads for human review.

### Which vulnerability classes does Signature validation audit cover?

It covers ECDSA fallback to ERC-1271 after failed recovery and EOA detection via code length that lets precompiles pass. It excludes malicious verifier return-data issues, which belong to a separate skill.

### Is Signature validation audit meant for general developers?

The skill is written for specialist security auditors working on authorized engagements.

### How do I install Signature validation audit in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/signature-validation-audit to use it in all your projects, or to .claude/skills/signature-validation-audit in one project.

### Does Signature validation audit run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Signature validation audit?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Signature validation audit?

The closest alternatives to Signature validation audit are Erc1271 revert data check, Defi invariant check, Evm audit flow, Defi amm security and Pre audit threat model.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Erc1271 revert data check](https://ai-powered.com/skills/erc1271-revert-data-check): Erc1271 revert data check is an open-source agent skill for security.
- [Defi invariant check](https://ai-powered.com/skills/defi-invariant-check): Defi invariant check is an open-source agent skill for security.
- [Evm audit flow](https://ai-powered.com/skills/evm-audit-flow): Evm audit flow is an open-source agent skill for security.
- [Defi amm security](https://ai-powered.com/skills/defi-amm-security): Defi amm security is an open-source agent skill for security.
- [Pre audit threat model](https://ai-powered.com/skills/pre-audit-threat-model): Pre audit threat model is an open-source agent skill for security.
- [Read only reentrancy check](https://ai-powered.com/skills/read-only-reentrancy-check): Read only reentrancy check is an open-source agent skill for security.
- [Cross chain bridge audit](https://ai-powered.com/skills/cross-chain-bridge-audit): Cross chain bridge audit is an open-source agent skill for security.
- [Solana audit flow](https://ai-powered.com/skills/solana-audit-flow): Solana audit flow is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/signature-validation-audit
