<!-- BSV — Brief Skill View | поиск: BSV Скил : security-audit TL;DR : Аудит безопасности: PII, SQL injection, секреты Вызов : 'аудит', 'проверь безопасность', `security:` НЕ для : Code review без security-фокуса -->
Scanned 9/2/2026
Install to Claude Code
npx -y skills add sergeeey/Claude-cod-top-2026 --skill security-audit --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Security Audit?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/sergeeey-security-audit)More formats (shields.io, HTML) on the badges page.
<!-- BSV — Brief Skill View | поиск: BSV
Скил : security-audit
TL;DR : Аудит безопасности: PII, SQL injection, секреты
Вызов : 'аудит', 'проверь безопасность', `security:`
НЕ для : Code review без security-фокуса
-->
---
name: security-audit
description: >
[STATUS: review] [CONFIDENCE: high] [REVIEWED: 2026-03-13]
MUST CHECK before any commit touching auth, payments, PII, user data, SQL, .env.
USE for financial applications, compliance, fraud detection.
Triggers: security, audit, fraud, injection,
XSS, PII, compliance, auth, payment, vulnerability, PCI.
ESPECIALLY when tempted to skip security review for "internal" code.
Do NOT use for general security questions or code review without auth/PII/payments
context — use the reviewer agent instead.
paths: "**/*auth*,**/*payment*,**/*crypto*,**/*.env*,**/*secret*"
effort: max
---
# Security Audit Skill
## Domain
Financial organizations, regulatory compliance, fraud detection.
Adapt the checklists below to your region's regulations and PII formats.
## Security Checklist (before production deploy)
### 1. PII Protection
- [ ] National ID — NEVER in logs as plain text (logs are often stored unencrypted, indexed by ELK, accessible to support staff — exposure violates GDPR/local PII law)
- [ ] Legal entity ID — mask in output
- [ ] Bank account details — only last 4 digits in UI
- [ ] Email/phone — mask in logs (ivan@*****.com, +X XXX *** **12)
### 2. Authentication & Authorization
- [ ] JWT tokens: refresh rotation, short-lived access (15 min)
- [ ] Rate limiting on auth endpoints (5 attempts / 15 min)
- [ ] IP whitelisting for admin endpoints
- [ ] 2FA for operations above threshold (configurable)
### 3. Data Layer
- [ ] SQL: ONLY parameterized queries (SQLAlchemy ORM or text() with bindparams)
- [ ] NoSQL: input data — Pydantic validation BEFORE writing
- [ ] Encryption at rest for PII fields (AES-256)
- [ ] Audit log for all CRUD operations involving PII
### 4. Regulatory Compliance (adapt to your jurisdiction)
- [ ] Data storage — comply with data residency requirements
- [ ] PII retention period — per local personal data law
- [ ] Processing consent — tracked in DB with timestamp
- [ ] Right to erasure — data erasure endpoint implemented
### 5. Fraud Detection Patterns
- **Velocity check:** > 3 applications from one IP per hour → flag
- **ID deduplication:** one national ID = one client, cross-check across all products
- **Device fingerprint:** fingerprint collision + different IDs → high risk
- **Geo-anomaly:** application from unexpected region → medium risk
## Tools
- `reviewer` agent — code review before commit
- `redact.py` hook — auto-cleanup of PII before external MCP
- `ruff` — static analysis of Python code
## Gotchas
- Run BEFORE commit, not after — post-commit security is post-mortem security
- IIN/BIN patterns are KZ-specific — adapt regex for other jurisdictions
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!