Subagent Scope Guard
If you were dispatched as a subagent to execute a specific delegated task,
skip this skill's full orchestration workflow. Execute only the assigned
task, report result (DONE / DONE_WITH_CONCERNS / BLOCKED), and return.
This guard prevents runaway skill activation in nested agent contexts.
Adversarial Security Skill
§0 Prerequisitos (gate de arranque)
Doble opt-in (SPEC-186): → si no: ❌ ABORT
bash scripts/savia-double-optin-check.sh \
--skill adversarial-security --confirm-autonomous
Requiere AMBOS: ADVERSARIAL_SECURITY_ENABLED=true Y flag explicito.
§1 Vulnerability Scoring
CVSS simplificado para proyectos internos:
| Factor |
Peso |
Valores |
| Attack Vector |
0.3 |
Network (1.0), Adjacent (0.7), Local (0.5), Physical (0.2) |
| Complexity |
0.2 |
Low (1.0), High (0.5) |
| Privileges |
0.2 |
None (1.0), Low (0.6), High (0.3) |
| Impact |
0.3 |
High (1.0), Medium (0.6), Low (0.3) |
score = sum(factor × peso) × 10 → escala 0-10
§2 STRIDE Mapping
| Categoría |
Pregunta clave |
Controles típicos |
| Spoofing |
¿Puedo suplantar a otro? |
Auth, MFA, tokens |
| Tampering |
¿Puedo modificar datos? |
Integridad, signing, HMAC |
| Repudiation |
¿Puedo negar una acción? |
Audit logs, timestamps |
| Info Disclosure |
¿Puedo acceder a datos? |
Encryption, access control |
| DoS |
¿Puedo tumbar el servicio? |
Rate limiting, WAF |
| Elevation |
¿Puedo escalar privilegios? |
RBAC, least privilege |
§3 OWASP Top 10 Checklist
- Broken Access Control
- Cryptographic Failures
- Injection
- Insecure Design
- Security Misconfiguration
- Vulnerable Components
- Auth Failures
- Software/Data Integrity Failures
- Logging Failures
- SSRF
§4 Dependency Audit
# npm: audit de dependencias
npm audit --json 2>/dev/null | jq '.vulnerabilities | length'
# pip: safety check
pip-audit --format=json 2>/dev/null
# dotnet: audit
dotnet list package --vulnerable --format json 2>/dev/null
§5 Security Score Formula
score = 100 - (critical×25 + high×10 + medium×3 + low×1)
Cada fix verificado recupera los puntos. Floor: 0.
1---2name: adversarial-security3description: Subagent Scope Guard4---56## Subagent Scope Guard78> If you were dispatched as a subagent to execute a specific delegated task,9> **skip this skill's full orchestration workflow**. Execute only the assigned10> task, report result (DONE / DONE_WITH_CONCERNS / BLOCKED), and return.11> This guard prevents runaway skill activation in nested agent contexts.1213# Adversarial Security Skill1415## §0 Prerequisitos (gate de arranque)1617```18Doble opt-in (SPEC-186): → si no: ❌ ABORT19 bash scripts/savia-double-optin-check.sh \20 --skill adversarial-security --confirm-autonomous21Requiere AMBOS: ADVERSARIAL_SECURITY_ENABLED=true Y flag explicito.22```2324## §1 Vulnerability Scoring2526**CVSS simplificado para proyectos internos**:2728| Factor | Peso | Valores |29|--------|------|---------|30| Attack Vector | 0.3 | Network (1.0), Adjacent (0.7), Local (0.5), Physical (0.2) |31| Complexity | 0.2 | Low (1.0), High (0.5) |32| Privileges | 0.2 | None (1.0), Low (0.6), High (0.3) |33| Impact | 0.3 | High (1.0), Medium (0.6), Low (0.3) |3435score = sum(factor × peso) × 10 → escala 0-103637## §2 STRIDE Mapping3839| Categoría | Pregunta clave | Controles típicos |40|-----------|---------------|-------------------|41| Spoofing | ¿Puedo suplantar a otro? | Auth, MFA, tokens |42| Tampering | ¿Puedo modificar datos? | Integridad, signing, HMAC |43| Repudiation | ¿Puedo negar una acción? | Audit logs, timestamps |44| Info Disclosure | ¿Puedo acceder a datos? | Encryption, access control |45| DoS | ¿Puedo tumbar el servicio? | Rate limiting, WAF |46| Elevation | ¿Puedo escalar privilegios? | RBAC, least privilege |4748## §3 OWASP Top 10 Checklist49501. Broken Access Control512. Cryptographic Failures523. Injection534. Insecure Design545. Security Misconfiguration556. Vulnerable Components567. Auth Failures578. Software/Data Integrity Failures589. Logging Failures5910. SSRF6061## §4 Dependency Audit6263```bash64# npm: audit de dependencias65npm audit --json 2>/dev/null | jq '.vulnerabilities | length'66# pip: safety check67pip-audit --format=json 2>/dev/null68# dotnet: audit69dotnet list package --vulnerable --format json 2>/dev/null70```7172## §5 Security Score Formula7374score = 100 - (critical×25 + high×10 + medium×3 + low×1)75Cada fix verificado recupera los puntos. Floor: 0.