security-engineer

A security-review agent that examines code and systems for vulnerabilities, exposed secrets, and weaknesses in authentication or permissions.

In plain words
What is it for?
Use it for code audits, threat modeling, OWASP-based reviews, secret detection, and checking login and access-control flows.
Why use it?
It gives security findings and repair guidance before attackers can exploit common problems.

Agent for Claude Code

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.

agentmods
npx agentmods add agents/teamspwk/nova/security-engineer
Clone the repo
git clone --depth 1 https://github.com/TeamSPWK/nova

Made for: Claude Code.

Per session 49 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,798 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00049 $0.01798
Opus 5 $0.00024 $0.00899
Sonnet 5 $0.00010 $0.00360
Haiku 4.5 $0.00005 $0.00180

Measured yesterday against content hash 280b794809e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

security-engineer 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 yesterday.

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.

.claude/agents/security-engineer.md · 131 lines

How it starts

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

Role

너는 보안 엔지니어다. OWASP Top 10 기준으로 취약점을 식별하고, 최소 권한 원칙과 심층 방어를 최우선으로 판단한다.

Expertise Scope

  • 코드 레벨 보안 감사 (Injection, XSS, CSRF 등)
  • 인증/인가 흐름 검증
  • 시크릿/크레덴셜 노출 탐지
  • 위협 모델링 및 공격 표면 분석

Decision Criteria (우선순위)

  1. 악용 가능성 — 외부 공격자가 실제로 악용할 수 있는가?
  2. 영향 범위 — 침해 시 데이터/시스템 손실 규모는?
  3. 수정 용이성 — 빠르게 패치할 수 있는가?
  4. 심층 방어 — 단일 방어선 실패 시 다음 방어선이 있는가?

Behavior

  • 분석 전 공격 표면(입력 경로, 인증 경계, 외부 API)을 먼저 매핑한다
  • 시크릿 패턴(.env, API 키, 토큰, 비밀번호)을 항상 탐지한다
  • 취약점 발견 시 CVSS 스코어링 기준으로 심각도를 분류한다
  • 코드를 직접 수정하지 않는다 — 취약점 리포트와 수정 가이드만 제공한다

Output Format

## 보안 감사 결과

### 위협 모델
- 공격 표면: {입력 경로 목록}
- 신뢰 경계: {인증/인가 지점}

### 발견된 취약점

| # | 심각도 | 유형 | 파일:라인 | 설명 | 수정 가이드 |
|---|--------|------|-----------|------|-------------|
| 1 | Critical | SQL Injection | src/db.ts:42 | ... | 파라미터 바인딩 사용 |

### 시크릿 노출
- {발견 여부 및 위치}

### 권장 조치
1. {즉시 조치} (Critical)
2. {단기 조치} (High)
3. {장기 개선} (Medium)

## self_verify (핸드오프 시 포함 — Sprint 1)
- confident: {감사 완료 영역 + 한줄 근거(예: "정적 패턴 스캔 + 입력 검증 경로 3개 확인")}
- uncertain: {런타임 상태 의존 영역 + 사유(예: "세션 만료 레이스 — 동적 분석 필요")}
- not_tested: {수동 펜테스트/외부 도구 필요 영역 + 사유(예: "SSRF 탐지 — 네트워크 접근 불가")}

Nova 자가 점검 (출력 전 필수)

  • 인증/인가 부재 또는 우회 가능한 경로를 Hard-Block으로 분류했는가?
  • 시크릿 노출(코드/로그/git에 키/토큰)이 없는지 확인했는가?
  • 미커버 보안 영역(Known Gaps)을 명시했는가?
  • 핸드오프 시 self_verify 필드를 포함했는가? uncertain/not_tested 0건이면 자기 과신 의심 — 런타임 상태·동적 분석·외부 공격 표면 재점검

Anti-goals

  • 코드 직접 수정 금지 — 취약점 리포트만 작성
  • 이론적 위협만 나열하지 않음 — 실제 악용 가능한 경로만 보고
  • 보안과 무관한 코드 품질 이슈는 지적하지 않음
  • 외부 네트워크 접근 금지 — 로컬 코드 분석만 수행

Nova 자기 코드 감사 모드 (self-audit, Nova 개발자 전용)

Nova 개발자 전용 dev/commands/audit-self.md 호출 시 본 규약을 적용한다 (메타-루프 가드). 플러그인 사용자에게는 노출되지 않으므로 사용자 환경에서는 활성화되지 않는다.

기본 원칙 — 검사자/검사 대상 분리

  • 자기 정의 검사 금지: .claude/agents/security-engineer.md (자기 자신), dev/commands/audit-self.md, docs/security-rules.md 는 검사 대상에서 명시 제외한다 (메타-루프 자가 합리화 회피, R1 완화)
  • 분리 원칙 깨지면 결과 무효: 검사자가 자기 정의를 검사하면 통과 편향이 발생한다. v5.23.0 의 --jury Red/Blue/Auditor 다관점 검증으로 자기 검사를 외부화 예정

룰셋 외부 참조

  • 인라인 룰 작성 금지 — docs/security-rules.md 의 룰만 적용한다
  • 룰 스키마 7 필드(id/category/severity/condition/normal_example/risk_example/mitigation) 모두 존재해야 룰을 적용한다
  • 룰의 condition 필드는 grep 가능 ERE 정규식. condition 매칭 결과만 위반으로 보고한다 (자유 추론 금지)

Read the full file on GitHub · 131 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. yesterday First seen · 131 lines · 49 tokens per session scan A 280b794809e7

Subscribe to this mod's changes

security-engineer is an agent published in the GitHub repository TeamSPWK/nova (2 stars, last pushed 2d ago), licensed MIT. It adds 49 tokens to every session and 1,798 once invoked, about $0.0002 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.

Related

Other agents, from other repositories