security-guard

security-guard is a command for Claude Code from imgompanda/fireauto. It costs 19 tokens per session (2,412 once invoked), scanned A, original, MIT.

A command for checking a codebase for common security weaknesses. It reviews project structure, dependencies, environment files, secrets, authentication, permissions, and related configuration.

In plain words
What is it for?
Use it to inspect environment variables, hard-coded secrets, API routes, administrator permissions, Supabase service keys, and database row-level security.
Why use it?
It helps find exposed keys, missing access checks, and unsafe server-side patterns before they become security incidents.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the fireauto plugin — 19 skills, 17 commands, 3 hooks, 1 MCP server shipped together

Good fit Use it to inspect environment variables, hard-coded secrets, API routes, administrator permissions, Supabase service keys, and database row-level security.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/imgompanda/fireauto/security-guard
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/imgompanda/fireauto

Made for: Claude Code.

Or install fireauto, the plugin that ships this one along with the rest of its 19 skills, 17 commands, 3 hooks, 1 MCP server.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/imgompanda/fireauto/security-guard/github.svg)](https://agentmods.dev/commands/imgompanda/fireauto/security-guard)
Your own site
<a href="https://agentmods.dev/commands/imgompanda/fireauto/security-guard"><img src="https://agentmods.dev/badge/commands/imgompanda/fireauto/security-guard/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-guard

Your own site · 80×15
<a href="https://agentmods.dev/commands/imgompanda/fireauto/security-guard"><img src="https://agentmods.dev/badge/commands/imgompanda/fireauto/security-guard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,412 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.00019 $0.02412
Opus 5.5 $0.00008 $0.00965
Sonnet 5.5 $0.00004 $0.00482
Haiku 4.5 $0.00002 $0.00241

Measured 3mo ago against content hash ccea4d3bf482, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

security-guard 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 3mo 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.

plugin/commands/security-guard.md · 281 lines

How it starts

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

/fireauto-secure - 보안 종합점검

코드베이스의 보안 취약점을 8개 카테고리로 종합 감사합니다. 실제 SaaS 프로젝트(pikome, ditfinder 등)에서 발견된 18개 취약점 패턴을 기반으로 설계되었습니다.


실행 절차

Step 1: 프로젝트 구조 파악

프로젝트 루트를 확인하고 기술 스택을 파악합니다.

- package.json 읽기 (프레임워크, 의존성 확인)
- 디렉토리 구조 스캔 (src/, app/, api/, pages/, lib/, utils/)
- .env 관련 파일 목록 확인
- next.config.*, middleware.* 파일 확인

Step 2: 8개 카테고리 보안 감사

각 카테고리별로 순차적으로 점검합니다. 발견된 모든 취약점을 수집합니다.


카테고리 1: 환경변수/시크릿 노출

점검 항목:

  • .env, .env.local, .env.production 파일이 .gitignore에 포함되어 있는지 확인
  • 소스코드 내 하드코딩된 API 키, 시크릿, 토큰 검색
  • NEXT_PUBLIC_ 접두사로 노출되면 안 되는 시크릿 확인
  • Supabase service_role 키가 클라이언트 코드에 노출되었는지 검색

검색 패턴:

Grep: "sk-", "sk_live", "sk_test" (API 키)
Grep: "password", "secret", "token" + "=" 또는 ":" (하드코딩)
Grep: "NEXT_PUBLIC_SUPABASE_SERVICE" (서비스 키 노출)
Grep: "supabaseAdmin", "createClient.*service_role" (admin 클라이언트 위치)
Glob: "**/.env*" (환경변수 파일)

심각도: CRITICAL


카테고리 2: 인증/인가 점검

점검 항목:

  • API 라우트(app/api/, pages/api/)에서 세션/인증 체크 누락 탐지
  • admin 전용 라우트에서 권한 검증 여부
  • Supabase admin 클라이언트(서비스롤)가 API 라우트 외부에서 사용되는지 확인
  • RLS(Row Level Security) 우회 가능성: admin 클라이언트로 직접 DB 조작
  • SECURITY DEFINER 함수에 입력값 검증이 있는지 확인
  • middleware.ts/js의 보호 범위(matcher 패턴) 확인
  • 인증 없이 접근 가능한 민감한 엔드포인트 탐지

검색 패턴:

Glob: "**/api/**/route.ts", "**/api/**/route.js"
Grep: "getSession", "getUser", "auth()", "getServerSession" (인증 함수)
Grep: "supabaseAdmin", "createServiceRoleClient" (admin 클라이언트)
Grep: "SECURITY DEFINER" (SQL 함수)
Read: middleware.ts (matcher 패턴 확인)

심각도: CRITICAL


카테고리 3: Rate Limiting

점검 항목:

  • API 엔드포인트별 rate limit 적용 여부
  • AI 관련 엔드포인트(OpenAI, Anthropic 호출)에 rate limit 필수 확인
  • 비용 발생 엔드포인트(이메일 발송, 결제 처리)에 rate limit 확인
  • rate limit 라이브러리 사용 여부 (upstash/ratelimit, express-rate-limit 등)
  • 로그인/회원가입 엔드포인트의 브루트포스 방어

검색 패턴:

Grep: "ratelimit", "rateLimiter", "rate-limit", "RateLimit"
Grep: "openai", "anthropic", "claude", "gpt" (AI 호출 위치)
Grep: "resend", "sendEmail", "sendMail" (이메일 발송 위치)

Read the full file on GitHub · 281 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. 3mo ago First seen · 281 lines · 19 tokens per session scan A ccea4d3bf482

Subscribe to this mod's changes

security-guard is a command published in the GitHub repository imgompanda/fireauto (139 stars, last pushed 7mo ago), licensed MIT. It adds 19 tokens to every session and 2,412 once invoked, about $0.0001 per session on Opus 5.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.

Related

security-guard compared with commands from other repositories

security-guard next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
security-guardimgompanda/fireautoCommand1397mo agoMITA19Claude Code
landgmickel/flow-nextCommand735yesterdayMITA13Claude Code
analyze-contextRohiRIK/OpenLtmCommand30yesterdayMITA39Claude Code
uninstallgmickel/flow-nextCommand735yesterdayMITC9Claude Code
me-cfd-reviewhanhuark/mechanical-engineering-research-skillCommand274d agoMITA25Claude Code
me-figure-discussionhanhuark/mechanical-engineering-research-skillCommand274d agoMITA21Claude Code
logindashpot4/grok-plugin-for-claudeCommand41mo agoApache-2.0A12Claude Code