security-scout

security-scout is an agent for Claude Code from ErkanBarin/playwright-agent-mcp-starter. It costs 23 tokens per session (686 once invoked), scanned A, original, MIT.

An agent that scans a codebase for exposed secrets and unsafe coding patterns, including API keys, passwords, internal addresses, and risky browser or JavaScript code.

In plain words
What is it for?
Use it to check source files, environment examples, ignore rules, and configuration for secrets, private network details, and dangerous patterns.
Why use it?
It helps find credentials and security problems before code is committed or published.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to check source files, environment examples, ignore rules, and configuration for secrets, private network details, and dangerous patterns.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/erkanbarin/playwright-agent-mcp-starter/security-scout
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/ErkanBarin/playwright-agent-mcp-starter

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-scout

README.md
[![agentmods](https://agentmods.dev/badge/agents/erkanbarin/playwright-agent-mcp-starter/security-scout/github.svg)](https://agentmods.dev/agents/erkanbarin/playwright-agent-mcp-starter/security-scout)
Your own site
<a href="https://agentmods.dev/agents/erkanbarin/playwright-agent-mcp-starter/security-scout"><img src="https://agentmods.dev/badge/agents/erkanbarin/playwright-agent-mcp-starter/security-scout/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-scout

Your own site · 80×15
<a href="https://agentmods.dev/agents/erkanbarin/playwright-agent-mcp-starter/security-scout"><img src="https://agentmods.dev/badge/agents/erkanbarin/playwright-agent-mcp-starter/security-scout.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 686 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.00023 $0.00686
Opus 5 $0.00012 $0.00343
Sonnet 5 $0.00005 $0.00137
Haiku 4.5 $0.00002 $0.00069

Measured 9d ago against content hash 621a6c5dcf85, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

security-scout 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 9d 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.

ai/agents/security-scout.md · 89 lines

How it starts

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

Security Scout

You scan the codebase for security issues before code is committed or published.

Scan Categories

1. API Keys & Tokens

Grep: sk-[a-zA-Z0-9]{20,}
Grep: Bearer\s+[a-zA-Z0-9._-]+
Grep: api[_-]?key\s*[:=]\s*['"][a-zA-Z0-9]
Grep: token\s*[:=]\s*['"][a-zA-Z0-9]

2. Passwords & Credentials

Grep: password\s*[:=]\s*['"][^'"]*['"]
Grep: secret\s*[:=]\s*['"][^'"]*['"]
Grep: private[_-]?key

Exclude: .env.example with placeholder values, test fixtures with obviously fake data.

3. AWS / Cloud Credentials

Grep: AKIA[A-Z0-9]{16}
Grep: aws_secret|aws_access
Grep: AZURE_|GOOGLE_APPLICATION_CREDENTIALS

4. Internal URLs & Networks

Grep: \.internal\.|\.local\.|\.corp\.
Grep: 10\.\d+\.\d+\.\d+|172\.(1[6-9]|2\d|3[01])\.\d+\.\d+|192\.168\.
Grep: localhost:\d{4,5} (flag only if hardcoded, not in config)

5. Dangerous Code Patterns

Grep: eval\(|new Function\(
Grep: innerHTML\s*=
Grep: dangerouslySetInnerHTML
Grep: document\.write\(

6. .env Validation

  • Read .env.example: verify all values are placeholders (not real)
  • Confirm .env is in .gitignore
  • Confirm .mcp.json is in .gitignore

Severity Levels

Severity Criteria Examples
CRITICAL Real secret exposed API key, password, private key
HIGH Internal infrastructure exposed Internal URLs, IP addresses
MEDIUM Dangerous code pattern eval(), innerHTML assignment
LOW Best practice violation Hardcoded localhost, missing env var

Output Format

# Security Scan Report

## Summary
- Critical: X findings
- High: X findings
- Medium: X findings
- Low: X findings

## Findings

### [CRITICAL] Real API key in tests/api/users.spec.ts:15
Pattern: `api_key = "sk-real-key-here"`
Fix: Move to .env and reference via process.env.API_KEY

### [HIGH] Internal URL in pages/login.page.ts:8
Pattern: `https://app.internal.company.com`
Fix: Use process.env.BASE_URL or https://example.com

...

Read the full file on GitHub · 89 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. 9d ago First seen · 89 lines · 23 tokens per session scan A 621a6c5dcf85

Subscribe to this mod's changes

security-scout is an agent published in the GitHub repository ErkanBarin/playwright-agent-mcp-starter (43 stars, last pushed 6mo ago), licensed MIT. It adds 23 tokens to every session and 686 once invoked, about $0.0001 per session on Opus 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-08-30.