لوگوی اسکیلیکس اسکیلیکس | Skilliks آکادمی و استودیوی ابزارهای AI تاریخ شمسی… --:--:--

Security review

آزاد تازه‌وارد تاییدشده امن

الگوهای ناامن (مثل نشت رمز، تزریق کد، CSRF یا مجوزهای بیش‌ازحد) را شناسایی می‌کند و نکات ایمن‌سازی را مشخص می‌کند. (شامل ۱۴ گام عملی · سازگار با Claude Code و OpenAI Codex).

سازگاری با ابزارها: این Skill به مسیر/قابلیت اختصاصی Codex CLI وابسته است. مشاهدهٔ جدول سازگاری

متن دستورالعمل (SKILL.md)

دسترسی کامل فعال است
---
name: security-review
description: Review an application's code for security across frontend AND backend and produce a prioritized, safe-to-apply remediation plan — OWASP Top 10 (2025), OWASP API Top 10, plus privacy (LGPD/GDPR). Use when the user asks for a "security review", "security audit", "harden this", "is this secure?", "check for vulnerabilities", "OWASP", "pentest-style review", or wants a focused security pass on a feature/PR/app (secrets, access control, injection, auth/session, headers/CORS/CSRF, file upload, supply chain, logging, privacy). Applies a strict anti-regression protocol so fixes don't break the app. For designing security up front use threat-modeling; for the always-on security blockers in a normal PR use reviewing-code.
license: MIT
---

# Security review

Audit the application's code for real vulnerabilities — frontend and backend — and hand back a prioritized, **safe-to-apply** plan. The goal is to shrink the attack surface **without changing what a legitimate user sees or breaking the app**.

## Read first (always)

List `learnings/` and read anything relevant. **Reuse, don't re-derive:**

- The **always-on blocker set** applied to every PR lives in `../reviewing-code/references/security-checks.md` (PII in logs, injection, HMAC/signature, the AI-generated-code lens). Apply it — don't re-list it.
- The **build-time prevention rules** live in `../developing-features/references/security.md` (auth/session, DB least-privilege, TLS, supply chain, and the full AI/LLM guardrails) and `../developing-features/references/untrusted-content.md` (prompt injection).
- The **client and server build rules** — rendering, cookies, CSRF/CORS/CSP, authorization, SSRF, uploads, parsers, crypto, supply chain — live in `../writing-secure-code/`; its `references/sources.md` records what was tested empirically and which popular advice is rejected. Judge findings against it.
- This skill adds the **OWASP-2025 breadth**, the **frontend / infra / privacy gaps**, and the **safe-remediation protocol** (see `references/`).

## How to run a security review

1. **Scope it.** What are you auditing — a PR, a feature, the whole app? What's the stack (framework, DB, auth provider, does it use AI)? Read `AGENTS.md`/README and grep the code to map the inputs, auth checks, persistence, external calls, and any AI/LLM surface.
2. **Go by priority, top-down** (`references/owasp-2025-checklist.md`): **CRITICAL** (secrets, broken access control / IDOR, injection, password storage) → **HIGH** (auth/session, security headers, CORS/CSRF, crypto, supply chain) → **MEDIUM** (misconfiguration, error handling, file upload, API mass-assignment, logging/alerting) → **privacy (LGPD/GDPR)** → **continuity (backups)**.
3. **Report findings — don't blind-fix.** Close every candidate as confirmed, ruled out, or open (`../reviewing-code/references/closing-security-findings.md`): ruled out only by a control you can name at `file:line` that runs on every path the attacker reaches, and every Critical or High finding survives a fresh-context attempt to disprove it before it's reported. For each confirmed finding: severity, the exact risk, the proof level (reproduced, or traced in code and not executed), the concrete fix, and how to verify it caused no regression. Prove access-control findings (logged in as user A, try user B's resource).
4. **Fix under the anti-regression protocol** (`references/safe-remediation.md`): one change per branch/commit, backup before DB changes, test the legitimate flow before and after, report-only rollout for CSP/rate-limit, transparent re-hash for password migration, staging before prod, fail closed.

**Scope:** remediate only the findings the user approved, each in its own change, touching only the lines that finding needs. A review is not a license to refactor, upgrade unrelated dependencies, or restyle — and a finding outside the agreed audit scope is reported, not fixed (`guarding-scope`).

## The one principle under all of it

Never mix **user data** with **command/structure** — parametrize, escape, or allow-list at the right interpreter (DB, shell, template, browser, AI model). Enforce **authorization server-side on every request**, keep **secrets off the client**, and **fail closed**. Every rule below is an application of these.

## Output

A prioritized report: findings grouped **Critical / High / Medium**, each with *what's wrong · why it matters · how to fix safely · how to verify no regression*, then what was ruled out (with the control that rules it out) and what stayed open, ending with the smallest first step. This is a review — **never run git or deploy**; the human applies the fixes.

## Capture a learning

If you find a project-specific vulnerability class or a fix that needed a special rollout, append a `learnings/YYYY-MM-DD-slug.md` (or use `/learn`).

<!-- ‹guest · 2026-11-29› -->
## See also

- `references/owasp-2025-checklist.md` — the full frontend + backend + privacy checklist (OWASP Top 10 2025 + API Top 10).
- `references/safe-remediation.md` — apply security fixes without breaking the app.
- `skills/threat-modeling` — design-time: what could go wrong *before* building.
- `skills/reviewing-code` — the always-on security blockers in a normal PR.
- `../reviewing-code/references/closing-security-findings.md` — confirmed / ruled out / open, what doesn't count as a control, proof levels, the disprove pass.
- `../developing-features/references/security.md` — build-time prevention; `../developing-features/references/untrusted-content.md` — prompt-injection guardrail.

این نسخه با نشانه‌گذاری اختصاصی حساب شما نمایش داده می‌شود. برای نصب سریع، به تب نصب و راه‌اندازی بروید.

مهارت‌های مشابه و پیشنهادی

مشاهدهٔ همه ←
امنیت
✦ Pro

Security Ownership Map

«Security Ownership Map» دستورالعمل دقیقی برای «بررسی و ممیزی امنیتی» در اختیار دستیار هوش مصنوعی می‌گذارد تا نتیجه، به…

⚡ /security-ownership-map SKILL.md
OpenAI Codex
۹۲/۱۰۰ ★ ۲۸,۹۱۰
امنیت
✦ Pro

Security Best Practices

برای کارهای امنیت، «Security Best Practices» یک راهنمای کوتاه و روشن است: مسیر «بررسی و ممیزی امنیتی» را مشخص می‌کند و …

⚡ /security-best-practices SKILL.md
OpenAI Codex
۸۹/۱۰۰ ★ ۲۸,۹۱۰
امنیت
✦ Pro

Security Command Center Query Skill on Google Cloud

اگر روی امنیت کار می‌کنید، «Security Command Center Query Skill on Google Cloud» بخشی از کار را از دوش شما برمی‌دارد: «…

⚡ /google-cloud-scc-query SKILL.md
MCP
۹۶/۱۰۰ ★ ۲۴,۵۵۱
امنیت
✦ Pro

Validate Google Mobile Ads SDK Integration

«Validate Google Mobile Ads SDK Integration» یک مهارت آماده در حوزهٔ امنیت است؛ به دستیار هوش مصنوعی شما یاد می‌دهد «بر…

⚡ /google-mobile-ads-validate SKILL.md
Claude / Claude Code
۷۸/۱۰۰ ★ ۲۴,۵۴۶
امنیت
✦ Pro

Cosmos Vulnerability Scanner

«Cosmos Vulnerability Scanner» یک مهارت آماده در حوزهٔ امنیت است؛ به دستیار هوش مصنوعی شما یاد می‌دهد «بررسی و ممیزی ام…

⚡ /cosmos-vulnerability-scanner SKILL.md
Claude / Claude Code
۹۶/۱۰۰ ★ ۸,۳۵۳
امنیت
✦ Pro

Firebase APK Security Scanner

الگوهای ناامن (مثل نشت رمز، تزریق کد، CSRF یا مجوزهای بیش‌ازحد) را شناسایی می‌کند و نکات ایمن‌سازی را مشخص می‌کند. (شام…

⚡ /firebase-apk-scanner SKILL.md
Claude / Claude Code
۹۶/۱۰۰ ★ ۸,۴۲۱