security-scan

security-scan is a skill for Claude Code from chadixearth/graphyloop. It costs 47 tokens per session (1,116 once invoked), scanned A, a copy of security-scan, MIT.

A scanner for OpenCode configuration files that looks for security weaknesses, unsafe settings, exposed secrets, and prompt-injection risks.

In plain words
What is it for?
Use it to inspect AGENTS.md, settings, MCP server definitions, hooks, and agent files in an OpenCode project.
Why use it?
It can reveal dangerous permissions, risky integrations, command-injection paths, and other configuration problems before they are committed.

Skill for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: mentions AGENTS.md; mentions OpenCode.

Good fit Use it to inspect AGENTS.md, settings, MCP server definitions, hooks, and agent files in an OpenCode project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chadixearth/graphyloop/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.

Any agent
npx skills add chadixearth/graphyloop --skill security-scan
Clone the repo
git clone --depth 1 https://github.com/chadixearth/graphyloop

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/skills/chadixearth/graphyloop/security-scan/github.svg)](https://agentmods.dev/skills/chadixearth/graphyloop/security-scan)
Your own site
<a href="https://agentmods.dev/skills/chadixearth/graphyloop/security-scan"><img src="https://agentmods.dev/badge/skills/chadixearth/graphyloop/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/skills/chadixearth/graphyloop/security-scan"><img src="https://agentmods.dev/badge/skills/chadixearth/graphyloop/security-scan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,116 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 86% copy Near-identical to another mod 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.00047 $0.01116
Opus 5 $0.00023 $0.00558
Sonnet 5 $0.00009 $0.00223
Haiku 4.5 $0.00005 $0.00112

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

Security

Grade A, and why

security-scan scanned grade A with 1 finding 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 5d 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.

Reads MCP configurationlowAgent snooping

mcp.json carries server URLs and auth tokens; reading it lets a mod discover and abuse other integrations.

| `mcp.json` | Risky MCP servers, hardcoded env secrets, npx supply chain risks |

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Origin

This is a copy

86% identical to security-scan — 44 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/security-scan/SKILL.md · 168 lines

How it starts

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

Security Scan Skill

Audit your OpenCode configuration for security issues using AgentShield.

When to Activate

  • Setting up a new OpenCode project
  • After modifying .opencode/settings.json, AGENTS.md, or MCP configs
  • Before committing configuration changes
  • When onboarding to a new repository with existing OpenCode configs
  • Periodic security hygiene checks

What It Scans

File Checks
AGENTS.md Hardcoded secrets, auto-run instructions, prompt injection patterns
settings.json Overly permissive allow lists, missing deny lists, dangerous bypass flags
mcp.json Risky MCP servers, hardcoded env secrets, npx supply chain risks
hooks/ Command injection via interpolation, data exfiltration, silent error suppression
agents/*.md Unrestricted tool access, prompt injection surface, missing model specs

Prerequisites

AgentShield must be installed. Check and install if needed:

# Check if installed
npx ecc-agentshield --version

# Install globally (recommended)
npm install -g ecc-agentshield

# Or run directly via npx (no install needed)
npx ecc-agentshield scan .

Usage

Basic Scan

Run against the current project's .opencode/ directory:

# Scan current project
npx ecc-agentshield scan

# Scan a specific path
npx ecc-agentshield scan --path /path/to/.opencode

# Scan with minimum severity filter
npx ecc-agentshield scan --min-severity medium

Output Formats

# Terminal output (default) — colored report with grade
npx ecc-agentshield scan

# JSON — for CI/CD integration
npx ecc-agentshield scan --format json

# Markdown — for documentation
npx ecc-agentshield scan --format markdown

# HTML — self-contained dark-theme report
npx ecc-agentshield scan --format html > security-report.html

Auto-Fix

Apply safe fixes automatically (only fixes marked as auto-fixable):

npx ecc-agentshield scan --fix

Read the full file on GitHub · 168 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. 5d ago First seen · 168 lines · 47 tokens per session scan A 80e87e72d142

Subscribe to this mod's changes

security-scan is a skill published in the GitHub repository chadixearth/graphyloop (2 stars, last pushed 23d ago), licensed MIT. It adds 47 tokens to every session and 1,116 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (reads mcp configuration). It is 86% identical to security-scan, differing in 44 lines, and is treated as a copy.

Related

Other skills, from other repositories