agentleFS
KadirHarmancKadirHarmanc/nazar-skill/skills/security-audit/SKILL.md

security-audit

Skill0 starsChanged 8 months agoMITView on GitHub

Deep OWASP security audit with exploit scenarios and CWE references. Use when user says 'security audit', 'OWASP check', 'guvenlik denetimi', 'penetration test', 'deep security scan', 'OWASP analiz'.

192 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use create-stories, story-done and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • lilangMaxSkill

    create-stories

    Break a single epic into implementable story files. Reads the epic, its GDD, governing ADRs, and control manifest. Each story embeds its GDD requirement TR-ID, ADR guidance, acceptance criteria, story type, and test evidence path. Run after /create-epics for each epic.

    Also in 11 projects that use this

  • lilangMaxSkill

    story-done

    End-of-story completion review. Reads the story file, verifies each acceptance criterion against the implementation, checks for GDD/ADR deviations, prompts code review, updates story status to Complete, and surfaces the next ready story from the sprint.

    Also in 11 projects that use this

  • nicepkgSkill

    community-led-growth

    Expert in community-led growth (CLG) - leveraging user communities to drive acquisition, retention, and expansion. Covers building developer communities, user groups, ambassador programs, and turning customers into advocates. Knows the difference between community as a feature vs community as a growth engine, and how to measure community ROI. Use when "community-led, CLG, ambassador program, champion program, user community, developer community, word of mouth, user group, " mentioned.

    Also in 5 projects that use this

  • nicepkgSkill

    ph-community-outreach

    Engage Reddit, Indie Hackers, Hacker News and other communities for Product Hunt launches. Use this skill to identify relevant communities, craft appropriate posts, and drive cross-platform engagement without appearing spammy.

    Also in 5 projects that use this

  • +7 more from lilangMax
  • +1 more from nicepkg

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 173 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use Glob and Read to determine the project type:

    line 11
  2. Distinctive:

    If multiple types are detected, audit all applicable frameworks.

    line 30
  3. Distinctive:

    After the report, suggest:

    line 105
  4. Distinctive:

    Always check for false positives by reading full context around grep matches.

    line 112
  5. Distinctive:

    If a finding matches multiple OWASP items, list it under the most relevant one and cross-reference.

    line 113
  6. Distinctive:

    Do not report findings for test files unless they indicate a pattern used in production.

    line 114
  7. Distinctive:

    Consider the project's framework when evaluating findings (e.g., React auto-escapes JSX, Django auto-escapes templates).

    line 115

“Common” is measured: kept by at least 6 in 10 of the 173 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Nazar Security Audit Skill

You are performing a deep OWASP-based security audit. Follow these instructions systematically.

Step 1: Detect Project Type

Use Glob and Read to determine the project type:

Web Application Indicators:

  • package.json with express/next/nuxt/react/angular/vue/django/flask/rails
  • Files: *.html, *.ejs, *.jsx, *.tsx, *.vue, *.svelte
  • Directories: pages/, views/, templates/, public/

Mobile Application Indicators:

  • android/ directory, AndroidManifest.xml, build.gradle
  • ios/ directory, Info.plist, Podfile
  • app.json with expo config, react-native.config.js
  • pubspec.yaml (Flutter), capacitor.config.ts

API Indicators:

  • package.json with express/fastify/koa/nest (without frontend)
  • requirements.txt with flask/fastapi/django-rest-framework
  • Files: routes/, controllers/, resolvers/, schema.graphql
  • OpenAPI/Swagger spec files

If multiple types are detected, audit all applicable frameworks.

Step 2: Load the Relevant OWASP Framework

Based on the detected project type, read the corresponding framework file:

  • Web: Read skills/security-audit/frameworks/owasp-web.md
  • Mobile: Read skills/security-audit/frameworks/owasp-mobile.md
  • API: Read skills/security-audit/frameworks/owasp-api.md

Step 3: Systematic Audit

For each of the 10 items in the loaded framework:

  1. Run all grep patterns from the framework item against the project codebase using the Grep tool.
  2. For each match, use Read to examine the surrounding code (at least 20 lines of context).
  3. Apply context analysis instructions from the framework to determine if the match is a real finding or false positive.
  4. Classify findings by severity:
    • CRITICAL: Exploitable with high impact (data breach, RCE, privilege escalation)
    • HIGH: Exploitable with moderate impact or requires some conditions
    • MEDIUM: Vulnerability exists but exploitation is limited
    • LOW: Best practice violation, defense-in-depth improvement
    • INFO: Informational finding, no direct vulnerability

Step 4: Generate Report

Present findings in this format:

## OWASP Security Audit Report

**Project Type:** [Web/Mobile/API]
**Framework:** OWASP [Top 10 2021 / Mobile Top 10 2024 / API Security Top 10 2023]
**Scan Date:** [current date]

### Executive Summary
- Total Findings: X
- Critical: X | High: X | Medium: X | Low: X | Info: X

---

### [A01/M01/API1] - [Item Name]

**Status:** [PASS / FINDINGS DETECTED]

#### Finding 1: [Short description]
- **Severity:** CRITICAL/HIGH/MEDIUM/LOW/INFO
- **CWE:** CWE-XXX
- **File:** `path/to/file.ts:42`
- **Evidence:** [relevant code snippet]
- **Exploit Scenario:** [how an attacker could exploit this]
- **Remediation:** [specific fix with code example]
- **Priority:** P1/P2/P3/P4

[Repeat for each finding under this item]

---

[Repeat for each of the 10 OWASP items]

### Remediation Priority Matrix

| Priority | Finding | File | Effort |
|----------|---------|------|--------|
| P1 | ... | ... | Low/Med/High |
| P2 | ... | ... | Low/Med/High |

### Recommendations
1. [Top priority recommendation]
2. [Second priority recommendation]
...

Step 5: Offer Next Steps

After the report, suggest:

  • "Use /nazar:fix to auto-fix applicable findings"
  • "Use /nazar:compliance to check regulatory compliance"
  • "Run npm audit / pip-audit for dependency vulnerability details"

Important Notes

  • Always check for false positives by reading full context around grep matches.
  • If a finding matches multiple OWASP items, list it under the most relevant one and cross-reference.
  • Do not report findings for test files unless they indicate a pattern used in production.
  • Consider the project's framework when evaluating findings (e.g., React auto-escapes JSX, Django auto-escapes templates).
  • Be specific in remediation: provide code examples tailored to the project's stack.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.