pump-security

pump-security is a skill for Claude Code, Codex from x402agent/solana-clawd. It costs 52 tokens per session (879 once invoked), scanned A, original, MIT.

A security guide for the Pump SDK covering secret keys, memory handling, files, inputs, permissions, and dependencies across Rust, TypeScript, and Bash.

In plain words
What is it for?
Use it to review or implement secure key handling, memory cleanup, file permissions, input checks, privilege controls, and dependency audits.
Why use it?
It helps reduce common security mistakes when handling wallets, private keys, user input, and software dependencies.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to review or implement secure key handling, memory cleanup, file permissions, input checks, privilege controls, and dependency audits.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/x402agent/solana-clawd/pump-security
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.

Any agent
npx skills add x402agent/solana-clawd --skill pump-security
Clone the repo
git clone --depth 1 https://github.com/x402agent/solana-clawd

Made for: Claude Code, Codex.

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 pump-security

README.md
[![agentmods](https://agentmods.dev/badge/skills/x402agent/solana-clawd/pump-security/github.svg)](https://agentmods.dev/skills/x402agent/solana-clawd/pump-security)
Your own site
<a href="https://agentmods.dev/skills/x402agent/solana-clawd/pump-security"><img src="https://agentmods.dev/badge/skills/x402agent/solana-clawd/pump-security/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 pump-security

Your own site · 80×15
<a href="https://agentmods.dev/skills/x402agent/solana-clawd/pump-security"><img src="https://agentmods.dev/badge/skills/x402agent/solana-clawd/pump-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 879 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.00052 $0.00879
Opus 5.5 $0.00021 $0.00352
Sonnet 5.5 $0.00010 $0.00176
Haiku 4.5 $0.00005 $0.00088

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

Security

Grade A, and why

pump-security 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 3mo 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/skills/pump-security/SKILL.md · 115 lines

How it starts

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

Security Practices — Cryptographic Safety, Memory Zeroization & Hardened I/O

Defense-in-depth security across Rust, TypeScript, and Bash: key handling, memory zeroization, secure file I/O, input validation, privilege management, and dependency auditing.

Memory Zeroization

Rust

use zeroize::Zeroize;

struct SecureBytes(Vec<u8>);

impl Drop for SecureBytes {
    fn drop(&mut self) {
        self.0.zeroize();
    }
}

TypeScript

try {
    // ... use secretKey
} finally {
    secretKey.fill(0);
    // Best-effort: GC may have copied the buffer
}

Shell

shred -u "$keypair_file" 2>/dev/null || rm -P "$keypair_file"

RNG Quality

Language Source Verification
Rust OsRng Verify via solana-sdk internals
TypeScript crypto.getRandomValues Node.js built-in CSPRNG
Shell solana-keygen Delegates to Rust OsRng

Keypair Integrity Verification

  1. Re-derive public key from secret key
  2. Compare derived key with stored public key
  3. Sign a test message with the keypair
  4. Verify the signature with the public key
  5. Validate Base58 encoding roundtrip

Secure File I/O

  • Set permissions to 0o600 before writing content (race-free on Unix)
  • Use O_CREAT | O_EXCL to prevent overwrites
  • Write to temp file + atomic rename for crash safety
  • Never write secret keys to stdout unless explicitly requested

Input Validation

Input Validation
Base58 address Regex: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
File paths Reject .., prevent traversal
Tool inputs Zod schemas in MCP server
Shell arguments Quoted variables, no eval

Security Checklist Summary (60+ items)

Key categories:

  • Cryptographic library allowlist
  • Memory zeroization in all code paths
  • File permission enforcement
  • Input validation and sanitization
  • Error message information leakage prevention
  • Dependency auditing (cargo audit, npm audit)
  • No network calls during key generation
  • Secret key never in logs, error messages, or telemetry

Read the full file on GitHub · 115 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. 3mo ago First seen · 115 lines · 52 tokens per session scan A a64d9e1224a7

Subscribe to this mod's changes

pump-security is a skill published in the GitHub repository x402agent/solana-clawd (26 stars, last pushed 6mo ago), licensed MIT. It adds 52 tokens to every session and 879 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-09-03.

Related

pump-security compared with skills from other repositories

pump-security next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pump-securityx402agent/solana-clawdSkill266mo agoMITA52Claude Code, Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill332k5d agoMITA21Claude Code