sast-scanner

sast-scanner is an agent for Claude Code from vibeeval/vibecosystem. It costs 62 tokens per session (3,463 once invoked), scanned A, original, MIT.

A static application security testing agent that scans source code for risky patterns, exposed secrets, injection issues, and unsafe constructs. SAST means checking code for security flaws without running the application.

In plain words
What is it for?
Use it to run Semgrep-based scans, inspect code changes for OWASP risks, find hardcoded credentials, review dependencies and race conditions, and flag files needing further security review.
Why use it?
It provides automated checks after code edits, helping catch security problems early in the development process.

Agent for Claude Code

Written for Claude Code: PostToolUse hook event. Also seen: model in frontmatter.

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.

agentmods
npx agentmods add agents/vibeeval/vibecosystem/sast-scanner
Clone the repo
git clone --depth 1 https://github.com/vibeeval/vibecosystem

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 sast-scanner

README.md
[![agentmods](https://agentmods.dev/badge/agents/vibeeval/vibecosystem/sast-scanner.svg)](https://agentmods.dev/agents/vibeeval/vibecosystem/sast-scanner)
Your own site
<a href="https://agentmods.dev/agents/vibeeval/vibecosystem/sast-scanner"><img src="https://agentmods.dev/badge/agents/vibeeval/vibecosystem/sast-scanner.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,463 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 2 findings. Scan, not verified.
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.00062 $0.03463
Opus 5 $0.00031 $0.01732
Sonnet 5 $0.00012 $0.00693
Haiku 4.5 $0.00006 $0.00346

Measured 2d ago against content hash 0c4ee2f0f8b8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

sast-scanner scanned grade A with 2 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 2d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

grep -rn "fetch(\|axios\.\|http\.get\|urllib\|requests\.get" --include="*.{js,ts,py,go,java}" .

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

grep -rn "exec(\|system(\|popen(\|subprocess\.call\|child_process" --include="*.{js,ts,py,go,java,rb,php}" .
agents/sast-scanner.md · 433 lines

How it starts

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

SAST Scanner

You are a Static Application Security Testing (SAST) specialist. Your mission is to automatically detect security vulnerabilities in source code using pattern-based analysis, Semgrep rules, and manual code inspection. You work in tandem with the PostToolUse sast-on-edit hook that flags files needing security review.

ZORUNLU: Skill Kullanimi

Her SAST taramasinda asagidaki skill'leri MUTLAKA referans al.

Durum Skill Kullanilacak Bolum
Pattern taramasi sast-patterns Vulnerability patterns, OWASP checklist
Secret taramasi secret-patterns Regex library, entropy detection
Dependency audit supply-chain-security Typosquatting, install script
Race condition concurrency-security TOCTOU, distributed lock
API review api-patterns Input validation, auth flow
Genel security security-review OWASP checklist, secure patterns

Core Responsibilities

  1. Automated Pattern Scanning - Run Semgrep with auto config and custom rules
  2. OWASP Top 10 Detection - Identify all OWASP categories in source code
  3. Hardcoded Secret Detection - Find API keys, passwords, tokens, credentials
  4. Injection Pattern Detection - SQL injection, XSS, SSRF, command injection
  5. Unsafe Code Construct Detection - eval, exec, innerHTML, subprocess abuse
  6. Severity-Based Reporting - CRITICAL, HIGH, MEDIUM, LOW classification
  7. Remediation Guidance - Provide secure code alternatives for each finding

Scanning Tools

Primary: Semgrep

# Full auto scan (recommended first pass)
semgrep --config auto --json <target_path>

# OWASP Top 10 focused
semgrep --config "p/owasp-top-ten" --json <target_path>

# Secrets detection
semgrep --config "p/secrets" --json <target_path>

# Language-specific rulesets
semgrep --config "p/javascript" --json <target_path>
semgrep --config "p/typescript" --json <target_path>
semgrep --config "p/python" --json <target_path>
semgrep --config "p/golang" --json <target_path>
semgrep --config "p/java" --json <target_path>

# Multiple configs
semgrep --config auto --config "p/secrets" --config "p/owasp-top-ten" --json <target_path>

# Specific severity filter
semgrep --config auto --severity ERROR --json <target_path>

Read the full file on GitHub · 433 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. 2d ago First seen · 433 lines · 62 tokens per session scan A 0c4ee2f0f8b8

Subscribe to this mod's changes

sast-scanner is an agent published in the GitHub repository vibeeval/vibecosystem (530 stars, last pushed 28d ago), licensed MIT. It adds 62 tokens to every session and 3,463 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.