SecureAI-Scan: Instructions file for Claude Code

CLAUDE.md

SecureAI-Scan CLAUDE.md is an instructions file for Claude Code from akanthed/SecureAI-Scan. It costs 5,083 tokens per session, scanned C, original, MIT.

Instructions for SecureAI-Scan, a static security scanner for TypeScript, JavaScript, and Python. It checks source code for issues such as prompt injection, MCP supply-chain risks, retrieval-augmented-generation poisoning, and other AI-agent security problems.

In plain words
What is it for?
Use it when modifying detection rules or scanner code, adding security checks, or running the project's safety tests and fixtures.
Why use it?
It sets rules for making scanner changes without adding false alarms, including tests that verify known-safe code remains clear.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is akanthed/SecureAI-Scan's own configuration. It tells Claude Code how to work on SecureAI-Scan itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything SecureAI-Scan configures →

Reuse

Borrowing it

Nothing to install: this file belongs to akanthed/SecureAI-Scan. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/akanthed/SecureAI-Scan/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/akanthed/SecureAI-Scan

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 SecureAI-Scan CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/akanthed/secureai-scan/claude-md/github.svg)](https://agentmods.dev/instructions/akanthed/secureai-scan/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/akanthed/secureai-scan/claude-md"><img src="https://agentmods.dev/badge/instructions/akanthed/secureai-scan/claude-md/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 SecureAI-Scan CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/akanthed/secureai-scan/claude-md"><img src="https://agentmods.dev/badge/instructions/akanthed/secureai-scan/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,083 This file is loaded in full into every session.
When invoked 5,083 The same file — it is already loaded in full.
Security scan C 2 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.05083 $0.05083
Opus 5.5 $0.02033 $0.02033
Sonnet 5.5 $0.01017 $0.01017
Haiku 4.5 $0.00508 $0.00508

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

Security

Grade C, and why

SecureAI-Scan CLAUDE.md scanned grade C 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 23d 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.

Instruction-override phrasingmediumPrompt injection

Text telling the model to disregard its earlier instructions or safety rules is the shape of a prompt injection, whoever wrote it.

- **`src/scanner/deobfuscate.ts`** — content checks match against normalized *variants* (invisible-stripped, homoglyph-folded, string-splice-joined, intra-word-break-joined) instead of one byte sequence. `matchAcrossVari

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

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

- **Report only an intent the code fails to keep.** MCP013 needs the argument *composed into a fixed command*; MCP014 needs it *joined onto a base directory*. A by-design "run any command" or "read any file" tool is `heu
CLAUDE.md · 151 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What this is

secureai-scan (npm) — a static AI/LLM security scanner for TypeScript, JavaScript, and Python. It finds prompt injection, MCP supply-chain risks, RAG poisoning, Agent Skill poisoning, and related OWASP LLM/ASI/MCP Top 10 issues, and proves findings with source→flow→sink dataflow traces rather than keyword matching alone.

Hard requirements (non-negotiable, apply to every change)

1. Zero tolerance for false positives

This is the product's entire value proposition (see the "precision contract" in README.md) — a scanner nobody trusts because it cries wolf is worse than no scanner. Any change to detection logic (a rule file, tool-poisoning-checks.ts, python-scanner.ts, confidence.ts, etc.) must not introduce new false positives, and existing false positives found during work should be fixed, not worked around.

  • The internal precision gate (test-fixtures/safe/ + test/corpus.test.js) enforces zero proven/likely findings on known-safe patterns — this must stay green, and any bug fixed for a false positive gets a permanent fixture there so it can't regress silently.
  • That corpus alone is not sufficient — it only proves the scanner behaves on code we wrote to test it. See the regression-scan requirement below for the check that catches what it can't.
  • When you find a false positive, fix the root cause (a rule's evidence tier, an unguarded keyword match, a missing isTestFilePath demotion, an overly broad name set) rather than special-casing the one input that revealed it.

2. Test against real-world repos, not just fixtures, before calling detection work done

For any change that touches detection logic (new rule, edited rule, edited shared matcher), run:

npm run regression

This clones a curated set of real public repos (scripts/regression-scan.js — OpenAI/Anthropic/Vercel AI SDKs, official MCP servers and SDK, LlamaIndex) into .regression-cache/ (gitignored, cached across runs — pass --fresh to re-clone, or a repo name to scan just one) and scans each with the built CLI. It is a gate: it exits non-zero on any proven/likely finding whose repo|rule|file fingerprint isn't in test/regression-baseline.json. Fingerprints omit line numbers so ordinary upstream churn isn't noise. Read every new finding against its source line:

Read the full file on GitHub · 151 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. 23d ago Changed · +11 lines · +531 tokens per session scan B → C 53aa140f259a
  2. 1mo ago First seen · 140 lines · 4,552 tokens per session scan B df159c6fce8f

Subscribe to this mod's changes

SecureAI-Scan CLAUDE.md is an instructions file published in the GitHub repository akanthed/SecureAI-Scan (24 stars, last pushed yesterday), licensed MIT. It adds 5,083 tokens to every session, about $0.0203 per session on Opus 5.5. A static security scan graded it C with 2 findings (instruction-override phrasing, unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories