Soroban Contract Audit
sickn33/agentic-awesome-skills
Soroban smart contract security audit register: authorization checks, panic pathways, integer overflows, and storage footprint verification for Stellar.
Trigger Pattern Always required for Soroban audits - Inject Into Breadth agents, depth agents
$ npx skills add PlamenTSV/plamen --skill auth-validation -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install PlamenTSV/plamen auth-validation --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/PlamenTSV/plamen.git skills-src && mkdir -p .claude/skills && cp -r skills-src/agents/skills/soroban/auth-validation .claude/skills/auth-validation && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "auth-validation" agent skill from https://github.com/PlamenTSV/plamen/tree/main/agents/skills/soroban/auth-validation into .claude/skills/auth-validation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "auth-validation", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/PlamenTSV/plamen/tree/main/agents/skills/soroban/auth-validationType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add PlamenTSV/plamen --skill auth-validation -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install PlamenTSV/plamen auth-validation --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PlamenTSV/plamen.git skills-src && mkdir -p .agents/skills && cp -r skills-src/agents/skills/soroban/auth-validation .agents/skills/auth-validation && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "auth-validation" agent skill from https://github.com/PlamenTSV/plamen/tree/main/agents/skills/soroban/auth-validation into .agents/skills/auth-validation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "auth-validation", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add PlamenTSV/plamen --skill auth-validation -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install PlamenTSV/plamen auth-validation --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PlamenTSV/plamen.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/agents/skills/soroban/auth-validation .cursor/skills/auth-validation && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "auth-validation" agent skill from https://github.com/PlamenTSV/plamen/tree/main/agents/skills/soroban/auth-validation into .cursor/skills/auth-validation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "auth-validation", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/PlamenTSV/plamen.git --path agents/skills/soroban/auth-validation--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add PlamenTSV/plamen --skill auth-validation -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install PlamenTSV/plamen auth-validation --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PlamenTSV/plamen.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/agents/skills/soroban/auth-validation .gemini/skills/auth-validation && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "auth-validation" agent skill from https://github.com/PlamenTSV/plamen/tree/main/agents/skills/soroban/auth-validation into .gemini/skills/auth-validation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "auth-validation", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install PlamenTSV/plamen auth-validationInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add PlamenTSV/plamen --skill auth-validation -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/PlamenTSV/plamen.git skills-src && mkdir -p .github/skills && cp -r skills-src/agents/skills/soroban/auth-validation .github/skills/auth-validation && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "auth-validation" agent skill from https://github.com/PlamenTSV/plamen/tree/main/agents/skills/soroban/auth-validation into .github/skills/auth-validation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "auth-validation", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add PlamenTSV/plamen --skill auth-validation -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install PlamenTSV/plamen auth-validation --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PlamenTSV/plamen.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/agents/skills/soroban/auth-validation .opencode/skills/auth-validation && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "auth-validation" agent skill from https://github.com/PlamenTSV/plamen/tree/main/agents/skills/soroban/auth-validation into .opencode/skills/auth-validation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "auth-validation", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
auth-validationTrigger Pattern Always required for Soroban audits - Inject Into Breadth agents, depth agents
Auth Validation is an agent skill from PlamenTSV/plamen. Trigger Pattern Always required for Soroban audits - Inject Into Breadth agents, depth agents
Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Security, covering Smart contract auditing. It works with Stellar. The repository describes itself as: Autonomous Web3 security audit agent for Claude Code. The licence is MIT.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 795962b. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are rust and markdown).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Auth Validation loads about 2.2k tokens when it runs. Until then it costs about 27 tokens; SKILL.md has 907 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from PlamenTSV/plamen at commit 795962b, republished under its MIT licence (© PlamenTSV). 907 words, ~2,180 tokens.
.claude/skills/auth-validation/SKILL.md (or your agent's skills folder).Trigger Pattern: Always required for Soroban audits Inject Into: Breadth agents, depth agents Finding prefix:
[AV-N]Rules referenced: R4, R6, R10, R13
Soroban's authorization model differs fundamentally from EVM: instead of msg.sender, callers invoke require_auth() or require_auth_for_args() on an Address. Missing or incorrectly scoped auth is the most common critical bug class on Soroban.
For EVERY pub fn in each contract, determine whether it modifies state and whether auth is present:
| Function | Modifies State? | Modifies Balance/Config/Ownership? | require_auth Present? | Auth Address | Missing? |
|---|---|---|---|---|---|
{fn_name} | YES/NO | YES/NO | YES/NO | {address_var or NONE} | FLAG if modifies state but NO auth |
Critical patterns to flag:
require_auth() callSoroban note: require_auth() panics if the address has not authorized the invocation. It does NOT return a bool — absence means the call proceeds without authorization.
When a contract calls another contract via invoke_contract, the auth context must propagate to sub-calls. Trace each cross-contract invocation:
| Calling Fn | Sub-Contract Invocation | Auth Expected in Sub-Call? | AuthorizedInvocation Provided? | Sub-Call Protected? |
|---|---|---|---|---|
{fn} | invoke_contract({contract}, {fn}) | YES/NO | YES/NO | YES/NO |
Attack surface: If a top-level function calls require_auth(user) but then invokes a sub-contract on behalf of the user without passing the correct AuthorizedInvocation tree, the sub-contract cannot verify the user actually authorized the sub-call.
Check for:
require_auth() at top level but no auth context propagated to sub-contract invocationsinvoke_contract_check_auth used as a bypass for normal require_auth flowtransfer(from = this_contract, ...), that nested frame is NOT auto-authorized by the direct-caller rule — verify the originating function pre-declares it (authorize_as_current_contract / equivalent). Differentially compare EVERY sibling that performs the same nested-pull pattern; if one sibling pre-authorizes and another does not, the omission is a finding.__check_auth)For any contract implementing the CustomAccountInterface (contains __check_auth):
| Check | Present? | Correct? | Notes |
|---|---|---|---|
| Signature verification against stored public keys | YES/NO | YES/NO | |
| Replay protection (nonce or sequence number) | YES/NO | YES/NO | |
| Signature threshold enforcement (multi-sig) | YES/NO | YES/NO | |
context.signature_payload used (not raw payload) | YES/NO | YES/NO | |
| Auth invocation tree validated against expected function | YES/NO | YES/NO |
Critical: __check_auth is called by the host to verify whether an address has authorized an invocation. Bugs here allow bypassing authorization for ALL operations that use this account contract.
Specific checks:
context.signature_payload (the canonical payload) rather than constructing its own hash>= not > (off-by-one)sub_invocations in the auth tree are validated, not just the top-level callrequire_auth argument sets in the same transaction, a custom auth contract that approves one call may inadvertently authorize both. Verify the __check_auth implementation distinguishes between different invocation contexts.require_auth_for_args)require_auth_for_args binds authorization to specific argument values. Verify the correct arguments are passed:
| Function | Uses require_auth_for_args? | Arguments Passed | Arguments That Should Be Bound | Mismatch? |
|---|---|---|---|---|
{fn} | YES/NO | {args list} | {expected critical args} | FLAG if mismatch |
Attack: If approve(spender, amount) calls require_auth_for_args(owner, (spender, wrong_amount)), an attacker can get the owner to authorize a small amount but then pass a larger amount in the actual call.
Pattern to check:
require_auth_for_args bind ALL security-critical parameters (amounts, recipients, token addresses)?require_auth_for_args computes its argument set from mutable state that could change between the user signing and the transaction executing, the auth can be bypassed or a different operation authorized than what was signed.Exhaustively check for state modifications without any form of auth:
| Pattern | Location | Auth Present? | Finding? |
|---|---|---|---|
Balance modification (token.transfer, token.mint, token.burn) | {file:line} | YES/NO | [AV-N] if NO |
Config update (admin, fee_rate, paused, whitelist) | {file:line} | YES/NO | [AV-N] if NO |
| Ownership transfer or role grant | {file:line} | YES/NO | [AV-N] if NO |
| Emergency/pause functions | {file:line} | YES/NO | [AV-N] if NO |
| Initialization functions (callable once) | {file:line} | YES/NO | [AV-N] if NO |
Init function special case: Soroban contracts frequently have an initialize() or init() function that stores the initial admin. If this function has no auth check AND no "already initialized" guard, anyone can reinitialize the contract and replace the admin.
Check the initialization guard pattern:
// SAFE: checks not-yet-initialized
if env.storage().instance().has(&DataKey::Admin) {
panic!("already initialized");
}
// UNSAFE: no guard → anyone can reinitialize**ID**: [AV-N]
**Severity**: [Critical if balance/ownership, High if config, Medium if view-only privileged]
**Step Execution**: ✓1,2,3,4,5 | ✗(reasons) | ?(uncertain)
**Rules Applied**: [R4:✓/✗, R6:✓/✗, R10:✓/✗, R13:✓/✗]
**Location**: src/{contract}.rs:LineN
**Title**: Missing `require_auth` on `{fn_name}` allows unauthorized {action}
**Description**: [Specific missing auth with code reference showing the unguarded state mutation]
**Impact**: [What attacker achieves: fund theft, admin takeover, config manipulation, unauthorized minting]| Section | Required | Completed? | Notes |
|---|---|---|---|
| 1. Auth Inventory | YES | ✓/✗/? | Every pub fn with state modification |
| 2. Auth Tree Propagation | IF cross-contract calls present | ✓/✗(N/A)/? | Every invoke_contract |
| 3. Custom Account Contracts | IF __check_auth present | ✓/✗(N/A)/? | Full check_auth implementation audit |
| 4. Auth Argument Matching | IF require_auth_for_args used | ✓/✗(N/A)/? | Verify all critical args bound |
| 5. Missing Auth Patterns | YES | ✓/✗/? | Balances, config, init functions |
© PlamenTSV, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in agents/skills/soroban/auth-validation of PlamenTSV/plamen.
Open the folder on GitHubat commit 795962b
Auth Validation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Auth Validation this skillPlamenTSV/plamen | 303 | — | ~2.2k | Automated safety check: Pass | MIT | |
| Soroban Contract Auditsickn33/agentic-awesome-skills | 47k | 1 repos | ~1.4k | Automated safety check: Pass | MIT | |
| Soroban Liquidity Poolsickn33/agentic-awesome-skills | 47k | 1 repos | ~1.3k | Automated safety check: Pass | MIT | |
| Soroban Storage Ttl Lifecyclesickn33/agentic-awesome-skills | 47k | 1 repos | ~1.3k | Automated safety check: Pass | MIT | |
| Soroban Token Mintersickn33/agentic-awesome-skills | 47k | 1 repos | ~1.3k | Automated safety check: Pass | MIT | |
| Stellar DevVelaPayments/vela-payments | 131 | — | ~1.8k | Automated safety check: Pass | MIT |
sickn33/agentic-awesome-skills
Soroban smart contract security audit register: authorization checks, panic pathways, integer overflows, and storage footprint verification for Stellar.
sickn33/agentic-awesome-skills
Automated market maker liquidity pool register: constant-product invariant curves, swap fee tiers, and LP token shares for Soroban DeFi.
sickn33/agentic-awesome-skills
Soroban ledger state rent and TTL extension register: live state tracking, bump thresholds, rent fee reserves, and archive boundaries.
sickn33/agentic-awesome-skills
Soroban SEP-41 token contract architecture register: admin control, supply caps, metadata standard, and transfer event emissions on Stellar.
VelaPayments/vela-payments
End-to-end Stellar development playbook. An agent skill from VelaPayments/vela-payments.
Soneso/stellar-ios-mac-sdk
Guides Stellar blockchain development in Swift using stellar-ios-mac-sdk.
PlamenTSV/plamen
Prepare Solidity projects for a security audit — test coverage, test quality, NatSpec docs, code hygiene, dependency health, best-practice enforcement, deployment readiness, and project…
PlamenTSV/plamen
Trigger Pattern Always (used by all verifier agents) - Inject Into security-verifier agents (Phase 5)
PlamenTSV/plamen
Trigger Pattern Always (Aptos Move) - foundational security check - Inject Into Breadth agents, depth agents
PlamenTSV/plamen
Trigger Pattern Always (Sui Move) -- foundational security check - Inject Into Breadth agents, depth agents
PlamenTSV/plamen
Trigger Pattern ACCOUNTCLOSING flag detected (close/CloseAccount usage) - Inject Into Breadth agents, depth agents
PlamenTSV/plamen
Trigger Pattern Always required for Solana audits - Inject Into Breadth agents, depth agents
Works with
Categories
Trigger Pattern Always required for Soroban audits - Inject Into Breadth agents, depth agents. Auth Validation is an agent skill from PlamenTSV/plamen.
Auth Validation fits situations like: pattern Always required for Soroban audits - Inject Into Breadth agents; tasks that involve Smart contract auditing.
Run `npx skills add PlamenTSV/plamen --skill auth-validation -a claude-code`. Or copy the skill folder (agents/skills/soroban/auth-validation in PlamenTSV/plamen) into .claude/skills/auth-validation in your project. Claude Code loads it when a task matches its description.
Run `npx skills add PlamenTSV/plamen --skill auth-validation -a codex`. Or copy the skill folder (agents/skills/soroban/auth-validation in PlamenTSV/plamen) into .agents/skills/auth-validation in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add PlamenTSV/plamen --skill auth-validation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/auth-validation, .gemini/skills/auth-validation, .github/skills/auth-validation and .opencode/skills/auth-validation in your project.
SKILL.md names no scripts, command-line tools or credentials: Auth Validation is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Auth Validation is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.2k tokens (SKILL.md is roughly 8.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Auth Validation: Soroban Contract Audit (sickn33/agentic-awesome-skills, 47k stars), Soroban Liquidity Pool (sickn33/agentic-awesome-skills, 47k stars), Soroban Storage Ttl Lifecycle (sickn33/agentic-awesome-skills, 47k stars) and Soroban Token Minter (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
PlamenTSV (a GitHub user) maintains it in PlamenTSV/plamen, which has 303 GitHub stars. The repository holds 87 skills in this directory. The repository was last updated on September 26, 2026.
Source: PlamenTSV/plamen on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.