From ecc
AgentShield를 사용해 Claude Code 설정(.claude/ 디렉터리)의 보안 취약점, 잘못된 설정, 인젝션 위험을 점검합니다. CLAUDE.md, settings.json, MCP 서버, 훅, 에이전트 정의를 검사합니다.
npx claudepluginhub sam42-lab/everything-claude-code-krThis skill uses the workspace's default tool permissions.
[AgentShield](https://github.com/affaan-m/agentshield)를 사용해 Claude Code 설정의 보안 문제를 감사합니다.
Mandates invoking relevant skills via tools before any response in coding sessions. Covers access, priorities, and adaptations for Claude Code, Copilot CLI, Gemini CLI.
Share bugs, ideas, or general feedback.
AgentShield를 사용해 Claude Code 설정의 보안 문제를 감사합니다.
.claude/settings.json, CLAUDE.md, MCP 설정을 수정한 뒤| File | Checks |
|---|---|
CLAUDE.md | 하드코딩된 시크릿, 자동 실행 지시, 프롬프트 인젝션 패턴 |
settings.json | 지나치게 넓은 허용 목록, 누락된 차단 목록, 위험한 우회 플래그 |
mcp.json | 위험한 MCP 서버, 하드코딩된 환경 변수 시크릿, npx 공급망 위험 |
hooks/ | 문자열 보간 기반 명령 인젝션, 데이터 유출, 조용한 오류 억제 |
agents/*.md | 무제한 도구 접근, 프롬프트 인젝션 표면, 누락된 모델 명세 |
AgentShield가 설치되어 있어야 합니다. 필요하면 확인 후 설치합니다.
# 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 .
현재 프로젝트의 .claude/ 디렉터리를 대상으로 실행합니다.
# Scan current project
npx ecc-agentshield scan
# Scan a specific path
npx ecc-agentshield scan --path /path/to/.claude
# Scan with minimum severity filter
npx ecc-agentshield scan --min-severity medium
# 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
안전한 수정만 자동 적용합니다. 자동 수정 가능으로 표시된 항목만 처리합니다.
npx ecc-agentshield scan --fix
이 작업은 다음을 수행합니다.
더 깊은 분석이 필요하면 대립형 3에이전트 파이프라인을 실행합니다.
# Requires ANTHROPIC_API_KEY
export ANTHROPIC_API_KEY=your-key
npx ecc-agentshield scan --opus --stream
이 흐름은 다음 순서로 동작합니다.
새로운 안전한 .claude/ 설정을 처음부터 생성합니다.
npx ecc-agentshield init
생성 항목:
settings.jsonCLAUDE.mdmcp.json 플레이스홀더CI 파이프라인에 다음처럼 추가합니다.
- uses: affaan-m/agentshield@v1
with:
path: '.'
min-severity: 'medium'
fail-on-findings: true
| Grade | Score | Meaning |
|---|---|---|
| A | 90-100 | 안전한 설정 |
| B | 75-89 | 경미한 문제 |
| C | 60-74 | 주의 필요 |
| D | 40-59 | 중대한 위험 |
| F | 0-39 | 치명적 취약점 |
Bash(*) 같은 무제한 셸 접근${file} 보간을 이용한 훅 명령 인젝션CLAUDE.md의 자동 실행 지시문(프롬프트 인젝션 벡터)2>/dev/null, || true)PreToolUse 보안 훅npx -y 자동 설치