# solana-security-standard

solana-security-standard is a Claude Code skill that detects 37 vulnerability classes in Solana and Anchor programs during development and CI.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 268 installs · ★ 13 repo stars
- Author: reason-machines
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/security-skills/tree/HEAD/skills/solana-security-standard/SKILL.md
- Updated: 2026-10-09
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/solana-security-standard

## What it does

This skill brings the SOL-0XX standard into your coding workflow, built around attack vectors responsible for over $514M in historical exploits. It targets common Solana flaws: spoofed clock values controlled by callers, missing signer and owner checks, wrapper drift from core program logic, and flawed PDA derivations.

Checks execute within assistant sessions, through MCP tools, or via a standalone command line runner. Because the CLI exits with a non-zero status on findings, security scans reliably gate pull requests in CI pipelines.

Coverage extends beyond Rust on-chain code into client-side TypeScript and JavaScript. It flags client-level arithmetic overflow risks, missing transaction pre-flight simulations, and hardcoded program keys.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/security-skills --skill solana-security-standard -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/solana-security-standard/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/solana-security-standard/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/security-skills --skill solana-security-standard -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/solana-security-standard/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/security-skills --skill solana-security-standard -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/solana-security-standard/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install reason-machines/security-skills skills/solana-security-standard
```

2. **Manually: put the files in place**
- File: `.github/skills/solana-security-standard/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/security-skills --skill solana-security-standard -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/reason-machines/security-skills --path skills/solana-security-standard
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/solana-security-standard/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/security-skills --skill solana-security-standard -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/reason-machines/security-skills/tree/HEAD/skills/solana-security-standard/SKILL.md

## When to use it
- detect caller-manipulated clock slots in Anchor instructions
- verify accounts for missing signer or ownership constraints
- flag client-side arithmetic bugs in TypeScript integration files
- run automated Solana vulnerability scans in pull request workflows

## Example prompts
- Scan my Solana program for security issues against SOL-0XX rules
- Check this Anchor account validation logic for missing signers
- Validate this PDA derivation logic against the Solana security standard

## Similar
- [Solana Security Standard](https://affpapa.org/en/nevibecode/mcp/solana-security-standard.md) — MCP server · ★ 38 repo stars
- [solana-vulnerability-scanner](https://affpapa.org/en/nevibecode/skills/solana-vulnerability-scanner.md) — skill · 6200 installs
- [solana-dev](https://affpapa.org/en/nevibecode/skills/solana-dev.md) — skill · 112300 installs
- [solana](https://affpapa.org/en/nevibecode/skills/solana.md) — skill · 768 installs
- [rust](https://affpapa.org/en/nevibecode/rules/patrickjs-rust.md) — rule · ★ 41178 repo stars
- [solidity-security](https://affpapa.org/en/nevibecode/skills/solidity-security.md) — skill · 15382 installs

From the same set: [reason-machines/security-skills](https://affpapa.org/en/nevibecode/by/reason-machines/security-skills.md) — 129 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
