security-scan

security-scan is a command for Claude Code from muyen/vibe-to-prod. It costs 17 tokens per session (994 once invoked), scanned A, original, MIT.

A security-scan command checks Go, iOS, and Android projects for exposed secrets, unsafe database queries, missing input checks, authentication problems, vulnerable dependencies, and platform-specific risks.

In plain words
What is it for?
It is for scanning backend, iPhone, and Android code for credentials, injection risks, unsafe storage, insecure networking, and release-build issues.
Why use it?
It gives a focused way to look for common security weaknesses before they reach users or production systems.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Good fit It is for scanning backend, iPhone, and Android code for credentials, injection risks, unsafe storage, insecure networking, and release-build issues.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/muyen/vibe-to-prod/security-scan
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.

Clone the repo
git clone --depth 1 https://github.com/muyen/vibe-to-prod

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/muyen/vibe-to-prod/security-scan/github.svg)](https://agentmods.dev/commands/muyen/vibe-to-prod/security-scan)
Your own site
<a href="https://agentmods.dev/commands/muyen/vibe-to-prod/security-scan"><img src="https://agentmods.dev/badge/commands/muyen/vibe-to-prod/security-scan/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 security-scan

Your own site · 80×15
<a href="https://agentmods.dev/commands/muyen/vibe-to-prod/security-scan"><img src="https://agentmods.dev/badge/commands/muyen/vibe-to-prod/security-scan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 994 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.00017 $0.00994
Opus 5.5 $0.00007 $0.00398
Sonnet 5.5 $0.00003 $0.00199
Haiku 4.5 $0.00002 $0.00099

Measured 12d ago against content hash 31e1766d593d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

security-scan 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 12d 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.

.claude/commands/security-scan.md · 150 lines

How it starts

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

Security Scan

Security scan for: $ARGUMENTS


Scan Scope

Backend (Go) Security Checks

  1. Hardcoded Secrets: Search for API keys, tokens, passwords in code
  2. SQL/NoSQL Injection: Check database queries for unsafe inputs
  3. Auth Bypass: Verify authentication middleware on protected routes
  4. Input Validation: Check for missing validation at API boundaries
  5. Dependencies: Check for known vulnerabilities

iOS (Swift) Security Checks

  1. Hardcoded Secrets: Search for API keys in code
  2. Insecure Storage: Check for Keychain usage vs UserDefaults
  3. Network Security: Verify ATS settings in Info.plist
  4. Debug Code: Check for print statements with sensitive data

Android (Kotlin) Security Checks

  1. Hardcoded Secrets: Search for API keys in code
  2. Insecure Storage: Check for EncryptedSharedPreferences usage
  3. Network Security: Check for cleartext traffic settings
  4. ProGuard/R8: Verify obfuscation for release builds

Quick Scan Commands

Backend:

# Check for hardcoded secrets
grep -rn --include="*.go" -E "(api[_-]?key|secret|password|token)\s*[:=]\s*\"[^\"]+\"" backend/

# Check for potential SQL injection (if using raw queries)
grep -rn --include="*.go" "fmt.Sprintf.*SELECT\|fmt.Sprintf.*INSERT\|fmt.Sprintf.*UPDATE" backend/

iOS:

# Check for hardcoded secrets
grep -rn --include="*.swift" -E "(api[_-]?key|secret|password|token)\s*[:=]\s*\"[^\"]+\"" mobile/ios/

# Check for UserDefaults with sensitive data
grep -rn --include="*.swift" "UserDefaults.*password\|UserDefaults.*token\|UserDefaults.*key" mobile/ios/

Android:

# Check for hardcoded secrets
grep -rn --include="*.kt" -E "(api[_-]?key|secret|password|token)\s*[:=]\s*\"[^\"]+\"" mobile/android/

# Check for SharedPreferences with sensitive data
grep -rn --include="*.kt" "SharedPreferences.*password\|SharedPreferences.*token" mobile/android/

Instructions

  1. Run appropriate security checks based on argument (backend, ios, android, or all)
  2. Report findings by severity:
    • 🔴 Critical: Immediate action required
    • 🟠 High: Should fix before release
    • 🟡 Medium: Should fix soon
    • 🟢 Low: Consider fixing
  3. Provide specific file:line references
  4. Suggest remediations for each issue

Read the full file on GitHub · 150 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. 12d ago First seen · 150 lines · 17 tokens per session scan A 31e1766d593d

Subscribe to this mod's changes

security-scan is a command published in the GitHub repository muyen/vibe-to-prod (34 stars, last pushed 6mo ago), licensed MIT. It adds 17 tokens to every session and 994 once invoked, about $0.0001 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-10-04.