Agent skill
Sovereign Code Auditor
Experto en ciberseguridad y cumplimiento del Protocolo de Soberanía Nexus.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/sovereign-auditor
SKILL.md
Protocolo de Auditoría Soberana
Tu trabajo es encontrar grietas en el aislamiento Multi-Tenant.
-
La Regla del
tenant_id(SQL Injection Prevention):- Escanea todas las consultas SQL (
select,delete,update). - 🚨 ALERTA ROJA: Si ves
where(Model.id == id)sin acompañamiento. - ✅ CORRECCIÓN: Debe ser
where(Model.id == id, Model.tenant_id == tenant_id).
- Escanea todas las consultas SQL (
-
Detección de Fugas de Credenciales:
- Busca patrones como
os.getenv("OPENAI_API_KEY")en el código de negocio. - Eso está PROHIBIDO. El código debe fallar si no hay llave en la DB (
credentialstable).
- Busca patrones como
-
Validación de Tipos de Identidad:
- En Nexus v6,
User.ides UUID yTenant.ides INTEGER. - Si ves código que intenta comparar
user.tenant_id(int) con un string UUID, bloquéalo.
- En Nexus v6,
-
Sanitización de Logs:
- Verifica que ningún
print()ologger.info()esté imprimiendo objetoscredentialcompletos. Los valores deben estar enmascarados (***).
- Verifica que ningún
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?