security-scan

security-scan is a command for Claude Code from smithdak/claude-marketplace. It costs 18 tokens per session (829 once invoked), scanned A, original, MIT.

A safety preview for an Optimizely CMS project review. It lists the files that would be inspected and looks for files that may contain passwords, connection details, certificates, or private keys.

In plain words
What is it for?
Use it before a full Optimizely analysis to preview files, flag sensitive content, check exclusion rules, and get recommendations for files to exclude.
Why use it?
It lets you see the review's scope and identify sensitive files before they are included in analysis. It can also check whether .claudeignore excludes them.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the optimizely plugin — 5 skills, 4 commands, 10 agents shipped together

Good fit Use it before a full Optimizely analysis to preview files, flag sensitive content, check exclusion rules, and get recommendations for files to exclude.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/smithdak/claude-marketplace/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/smithdak/claude-marketplace

Made for: Claude Code.

Or install optimizely, the plugin that ships this one along with the rest of its 5 skills, 4 commands, 10 agents.

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/smithdak/claude-marketplace/security-scan.svg)](https://agentmods.dev/commands/smithdak/claude-marketplace/security-scan)
Your own site
<a href="https://agentmods.dev/commands/smithdak/claude-marketplace/security-scan"><img src="https://agentmods.dev/badge/commands/smithdak/claude-marketplace/security-scan.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 829 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.00018 $0.00829
Opus 5 $0.00009 $0.00415
Sonnet 5 $0.00004 $0.00166
Haiku 4.5 $0.00002 $0.00083

Measured 6d ago against content hash cfad2f253be3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 6d 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.

plugins/optimizely-cms-analyzer/commands/security-scan.md · 164 lines

How it starts

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

Optimizely Security Scan Command

Preview what files will be analyzed and identify potential sensitive content before running full analysis.

Usage

/optimizely:security-scan              # Run security preview
/optimizely:security-scan --preview    # Detailed file listing

What It Does

The security-scan command:

  1. Lists Analysis Scope - Shows which files and directories will be analyzed
  2. Identifies Sensitive Files - Flags files that may contain secrets
  3. Checks .claudeignore - Verifies exclusion patterns
  4. Recommends Exclusions - Suggests files to exclude

Analysis Scope

Files that WILL be analyzed:

*.cs          - C# source files
*.csproj      - Project files
*.cshtml      - Razor views
*.json        - Configuration (with caution)
*.md          - Documentation

Files that SHOULD be excluded:

appsettings.*.json     - May contain connection strings
*.pfx, *.p12           - Certificates
*.key                  - Private keys
**/secrets/**          - Secret files
connectionStrings.config - Database credentials

Sensitive File Detection

Scans for potentially sensitive content:

High Risk Files

**/connectionStrings.config
**/appsettings.Production.json
**/appsettings.Development.json
**/*.pfx
**/*.p12
**/*.key
**/*.pem
**/secrets/**
**/.env
**/*.env.*

Medium Risk Patterns

Grep: password\s*[:=]
Grep: connectionstring\s*[:=]
Grep: apikey\s*[:=]
Grep: secret\s*[:=]
Grep: -----BEGIN.*KEY-----

Output Format

Optimizely Security Scan

Project: MyOptimizelyProject
Path: /src/MyProject

=== Analysis Scope ===

Directories to analyze:
  ✓ src/Web/Controllers/        (15 files)
  ✓ src/Web/Views/              (45 files)
  ✓ src/Core/Models/            (25 files)
  ✓ src/Core/Services/          (12 files)

Files to analyze: 142 total

=== Sensitive File Check ===

⚠️  Potentially sensitive files found:

  HIGH RISK:
  - appsettings.Development.json (may contain local secrets)
  - appsettings.Production.json (may contain production secrets)

  MEDIUM RISK:
  - src/Web/Startup.cs (contains connection string reference)

=== .claudeignore Status ===

❌ No .claudeignore file found

Recommended .claudeignore content:

Read the full file on GitHub · 164 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. 6d ago First seen · 164 lines · 18 tokens per session scan A cfad2f253be3

Subscribe to this mod's changes

security-scan is a command published in the GitHub repository smithdak/claude-marketplace (3 stars, last pushed 7mo ago), licensed MIT. It adds 18 tokens to every session and 829 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-31.