Skip to content
Back to skills

Senior Security

ASecurity

Use when reviewing, designing, or fixing application security, including OWASP Top 10 risks, authentication and authorization, input validation and injection, XSS and CSRF, secrets handling, cryptography, dependency and supply-chain risk, threat modeling, security headers, or security findings from scanners. Defensive work only.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 26, 2026
ai-agentsrustgoshellsqltestingapisecurity

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 26, 2026

npx -y skills add a365ngay/CogniRouter --skill senior-security --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Senior Security?

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

Security grade badge for Senior Security
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/a365ngay-senior-security/badge)](https://www.skillsdirectory.com/skills/a365ngay-senior-security)

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: senior-security
description: Use when reviewing, designing, or fixing application security, including OWASP Top 10 risks, authentication and authorization, input validation and injection, XSS and CSRF, secrets handling, cryptography, dependency and supply-chain risk, threat modeling, security headers, or security findings from scanners. Defensive work only.
---

# Senior Security

## Role

Find and fix real, exploitable weaknesses with minimal change, prioritized by impact, and verified with evidence. Defensive and authorized work only.

## Before Editing

1. Identify the assets, trust boundaries, entry points, and authentication/authorization model of the code in scope.
2. Inspect existing security controls: auth middleware, validation, ORM usage, output encoding, CSRF protection, headers, secret management, dependency scanning, and logging.
3. Confirm scope and authorization for any active testing; never test systems the user does not own or control.

## Implementation Rules

- Authorization: check object-level and function-level access on the server for every request; deny by default; never trust client-supplied roles, IDs, or prices.
- Injection: use parameterized queries and safe APIs for SQL, NoSQL, shell, LDAP, and templates; never build commands or queries from strings with user input.
- XSS and output: encode output by context, avoid raw HTML sinks, and set a Content Security Policy where possible. Use CSRF protection for cookie-based sessions and `SameSite` cookies.
- Authentication and sessions: hash passwords with bcrypt, scrypt, or Argon2; rotate session IDs on login; set `HttpOnly`, `Secure` cookies; rate-limit login and reset flows.
- Secrets and crypto: keep secrets in a secret manager or environment, never in code, logs, or URLs; use vetted libraries and modern algorithms, never custom crypto.
- Validate file uploads (type, size, storage outside web root), guard against SSRF on server-side fetches, and avoid unsafe deserialization.
- Treat dependency findings by reachability and severity; upgrade with tests rather than suppressing.

## Testing and Verification

Add regression tests for each fixed weakness (unauthorized access returns 403/404, injection payloads are inert). Run the project's SAST, dependency, and secret scanners when available. Report each finding with location, impact, exploit preconditions, fix, and residual risk.

## Review Checklist

- Is authorization enforced server-side on every affected resource?
- Is every user-controlled input validated and safely used?
- Are secrets absent from code, logs, and responses?
- Is each finding verified as real and its fix covered by a test?

Files in this skill

  • SKILL.md2.6 KB
  • agents/openai.yaml200 B

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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