SENTINEL — Maquina Autonoma de Seguranca
Invocacao
/sentinel https://app.example.com # Producao (DEFENSIVE auto)
/sentinel ~/Claude/GitHub/raiz-platform # Local (OFFENSIVE auto)
/sentinel https://preview-xyz.vercel.app # Staging (HYBRID auto)
/sentinel ~/Claude/GitHub/fgts-platform --threshold 90
/sentinel https://app.example.com --audit-only
/sentinel --resume
/sentinel ~/Claude/GitHub/raiz-platform --mode defensive # Override modo
O que faz
Executa security + performance + compliance AUTONOMO em 5 fases:
- RECON — Mapeia superficie de ataque (endpoints, auth, headers, deps)
- SIEGE — Testa 6 dimensoes:
- S1-SHIELD: Headers, CORS, cookies, HTTPS
- S2-GATES: Auth bypass, session, RBAC
- S3-WALLS: Injection (SQL, XSS, CMD), validacao
- S4-VAULT: Secrets, .env, git history, deps
- S5-STRESS: Load test k6 (5-200 VUs)
- S6-GUARD: LGPD, PII, audit trail
- ARMOR — Hardening + fix de vulnerabilidades
- CONVERGE — Calcula SSS, loop ate >= threshold
- CERTIFY — Security Certificate, Load Report, Fix PR, issues
Modo Hybrid
| Ambiente |
Modo |
Payloads |
Load Test |
| Producao |
DEFENSIVE |
Nenhum |
Smoke (5 VUs) |
| Staging |
HYBRID |
Leves |
Load (50 VUs) |
| Local |
OFFENSIVE |
Completos |
Full (200 VUs) |
Execucao
Agent({
subagent_type: "ag-sentinel",
prompt: "{input do usuario}",
run_in_background: true,
mode: "auto"
})
Ferramentas Externas (opcionais)
| Ferramenta |
Proposito |
Install |
| k6 |
Load testing |
brew install k6 |
| trufflehog |
Secrets em git |
brew install trufflehog |
| semgrep |
SAST analysis |
pip3 install semgrep |
Se ausentes: degraded mode (grep manual) ou SKIP da dimensao.
Artefatos Produzidos
| Artefato |
Arquivo |
| Security Certificate |
docs/sentinel-certificate-YYYY-MM-DD.md |
| Load Test Report |
docs/sentinel-load-report-YYYY-MM-DD.md |
| Fix PR |
GitHub PR com hardening |
| Baselines |
sentinel-baselines.json |
| State (recovery) |
sentinel-state.json |
| KB Update |
~/.claude/shared/sentinel-kb/ |
| Issues backlog |
GitHub Issues label sentinel-finding |
1---2name: ag-sentinel3description: "Maquina autonoma de seguranca, load testing e LGPD. 6 dimensoes, modo hybrid, convergencia SSS >= 80. Security Certificate + Load Report + Fix PR."4model: opus5context: fork6argument-hint: "[URL ou path] [--threshold N] [--audit-only] [--resume] [--mode defensive|hybrid|offensive]"7allowed-tools: Read, Write, Edit, Glob, Grep, Bash, Agent, TaskCreate, TaskUpdate, TaskList, TeamCreate, TeamDelete, SendMessage8metadata:9 source: https://skillmd.com/skills/aibot88/ag-sentinel10 filePattern: "sentinel-*.json,sentinel-*.md"11 bashPattern: "sentinel"12 priority: 9513---1415# SENTINEL — Maquina Autonoma de Seguranca1617## Invocacao1819```20/sentinel https://app.example.com # Producao (DEFENSIVE auto)21/sentinel ~/Claude/GitHub/raiz-platform # Local (OFFENSIVE auto)22/sentinel https://preview-xyz.vercel.app # Staging (HYBRID auto)23/sentinel ~/Claude/GitHub/fgts-platform --threshold 9024/sentinel https://app.example.com --audit-only25/sentinel --resume26/sentinel ~/Claude/GitHub/raiz-platform --mode defensive # Override modo27```2829## O que faz3031Executa security + performance + compliance AUTONOMO em 5 fases:32331. **RECON** — Mapeia superficie de ataque (endpoints, auth, headers, deps)342. **SIEGE** — Testa 6 dimensoes:35 - S1-SHIELD: Headers, CORS, cookies, HTTPS36 - S2-GATES: Auth bypass, session, RBAC37 - S3-WALLS: Injection (SQL, XSS, CMD), validacao38 - S4-VAULT: Secrets, .env, git history, deps39 - S5-STRESS: Load test k6 (5-200 VUs)40 - S6-GUARD: LGPD, PII, audit trail413. **ARMOR** — Hardening + fix de vulnerabilidades424. **CONVERGE** — Calcula SSS, loop ate >= threshold435. **CERTIFY** — Security Certificate, Load Report, Fix PR, issues4445## Modo Hybrid4647| Ambiente | Modo | Payloads | Load Test |48|----------|------|----------|-----------|49| Producao | DEFENSIVE | Nenhum | Smoke (5 VUs) |50| Staging | HYBRID | Leves | Load (50 VUs) |51| Local | OFFENSIVE | Completos | Full (200 VUs) |5253## Execucao5455```56Agent({57 subagent_type: "ag-sentinel",58 prompt: "{input do usuario}",59 run_in_background: true,60 mode: "auto"61})62```6364## Ferramentas Externas (opcionais)6566| Ferramenta | Proposito | Install |67|-----------|-----------|---------|68| k6 | Load testing | `brew install k6` |69| trufflehog | Secrets em git | `brew install trufflehog` |70| semgrep | SAST analysis | `pip3 install semgrep` |7172Se ausentes: degraded mode (grep manual) ou SKIP da dimensao.7374## Artefatos Produzidos7576| Artefato | Arquivo |77|----------|---------|78| Security Certificate | `docs/sentinel-certificate-YYYY-MM-DD.md` |79| Load Test Report | `docs/sentinel-load-report-YYYY-MM-DD.md` |80| Fix PR | GitHub PR com hardening |81| Baselines | `sentinel-baselines.json` |82| State (recovery) | `sentinel-state.json` |83| KB Update | `~/.claude/shared/sentinel-kb/` |84| Issues backlog | GitHub Issues label `sentinel-finding` |