Agent skill
nean-sec
Security policy for NEAN apps. Enforces OWASP Top 10 and CWE Top 25 mitigations.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/nean-sec
SKILL.md
Purpose
Ensure NEAN code is secure by default. For security output format and core refusal policy, see /shared-sec-baseline.
NEAN-specific security concerns (always check)
- SQL injection — use TypeORM parameterized queries; never interpolate user input into raw SQL
- Input validation — class-validator decorators on all DTOs at every API boundary
- XSS — Angular sanitizes by default; audit
[innerHTML]andbypassSecurityTrust*usage - CSRF — required when using cookie-based auth; implement CSRF tokens or use SameSite=Strict
- Auth/authz gaps — verify authorization in NestJS guards on every protected endpoint, not just frontend
- Token storage — avoid localStorage for sensitive tokens; prefer httpOnly cookies for refresh tokens
- Mass assignment — use DTOs with explicit properties; never spread request body directly into entities
Standard security (brief check)
- Error responses: safe exception filters, no stack traces or internal details
- Rate limiting: on auth endpoints, expensive operations, public APIs
- Dependencies: lockfile committed, no known critical vulnerabilities
- Security headers: Helmet middleware configured
Reference
For detailed OWASP/CWE mitigation patterns, see reference/nean-sec-reference.md
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?