Skip to content
Back to skills

Ecc Agentshield

ASecurity

Security scanner cho Claude Code config — quét CLAUDE.md, settings.json, hooks, MCP servers, agents tìm lỗ hổng bảo mật. 1282 tests, 102 static analysis rules.

  • 10 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
ai-agentsshellbashgitapici/cdsecuritydocumentation

Works with

  • claude code
  • terminal
  • api
  • mcp

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned September 9, 2026

npx -y skills add yanacuti1121/Yana-AI --skill ecc-agentshield --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ecc Agentshield?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ecc Agentshield
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yanacuti1121-ecc-agentshield/badge)](https://www.skillsdirectory.com/skills/yanacuti1121-ecc-agentshield)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ecc-agentshield
description: "Security scanner cho Claude Code config — quét CLAUDE.md, settings.json, hooks, MCP servers, agents tìm lỗ hổng bảo mật. 1282 tests, 102 static analysis rules."
origin: ECC
user-invocable: true
---

# AgentShield — Security Scanner cho Agent Config

Audit Claude Code configuration cho vulnerabilities, misconfigurations, và injection risks.

## Khi nào dùng

- Setup project mới với Claude Code
- Sau khi sửa `.claude/settings.json`, `CLAUDE.md`, hoặc MCP configs
- Trước khi commit config changes
- Security hygiene định kỳ

## Cài đặt

```bash
npm install -g ecc-agentshield
# hoặc dùng npx không cần install
npx ecc-agentshield --version
```

## Scan cơ bản

```bash
# Scan project hiện tại
npx ecc-agentshield scan

# Scan path cụ thể
npx ecc-agentshield scan --path /path/to/.claude

# Chỉ hiện từ severity nhất định
npx ecc-agentshield scan --min-severity medium
```

## Output formats

```bash
npx ecc-agentshield scan                    # Terminal (màu + grade A-F)
npx ecc-agentshield scan --format json      # CI/CD integration
npx ecc-agentshield scan --format markdown  # Documentation
npx ecc-agentshield scan --format html > report.html
```

## Auto-fix

```bash
npx ecc-agentshield scan --fix
# Tự động sửa những gì có thể: replace hardcoded secrets với env vars,
# tighten wildcard permissions, v.v.
```

## Deep analysis (Opus 4.6)

```bash
export ANTHROPIC_API_KEY=your-key
npx ecc-agentshield scan --opus --stream
# Chạy 3 agents: Attacker (Red) → Defender (Blue) → Auditor (Final)
```

## Những gì được scan

| File | Checks |
|------|--------|
| `CLAUDE.md` | Hardcoded secrets, auto-run, prompt injection |
| `settings.json` | Overly permissive allow lists, missing deny lists |
| `mcp.json` | Risky MCP servers, hardcoded env secrets, npx supply chain |
| `hooks/` | Command injection via interpolation, data exfiltration |
| `agents/*.md` | Unrestricted tool access, missing model specs |

## Grade scale

| Grade | Score | Ý nghĩa |
|-------|-------|---------|
| A | 90-100 | Secure |
| B | 75-89 | Minor issues |
| C | 60-74 | Needs attention |
| D | 40-59 | Significant risks |
| F | 0-39 | Critical vulnerabilities |

## GitHub Action

```yaml
- uses: affaan-m/agentshield@v1
  with:
    path: '.'
    min-severity: 'medium'
    fail-on-findings: true
```

## Lỗi nghiêm trọng (fix ngay)

- Hardcoded API keys trong config files
- `Bash(*)` trong allow list (unrestricted shell)
- Command injection trong hooks qua `${file}` interpolation
- Shell-running MCP servers

## Source

https://github.com/affaan-m/agentshield · npm: `ecc-agentshield`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.