agentleFS
vitormiziaravitormiziara/saas-security/SKILL.md

saas-security

Skill11 starsChanged 8 months agoMITView on GitHub

Comprehensive SaaS security skill covering code auditing, checklist generation, and vulnerability reporting. TRIGGER this skill whenever the user asks to: audit code for security issues, review a codebase for vulnerabilities, generate a security checklist, check for OWASP compliance, review authentication or authorization logic, check for injection risks, race conditions, or insecure configurations, or asks anything related to SaaS security hardening. Also trigger proactively when the user shares code and asks for a review — always include a security perspective using this skill.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. ShieldNet-360/secure-vibe★ 22same name
    2. danwykesdev/skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. About 0 are common, 13 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every code review, checklist, or audit you perform follows the rules in this skill without exception.

    line 16
  2. Distinctive:

    Treat every output as if it will be submitted to a professional red team pentest — any vulnerability found is a critical failure on your …

    line 17
  3. Distinctive:

    Follow this 4-phase structure for any audit request:

    line 42
  4. Distinctive:

    Before checking anything, map the terrain:

    line 45
  5. Distinctive:

    After listing findings, classify them:

    line 62
  6. Distinctive:

    Estimated effort: if possible

    line 74
  7. Distinctive:

    If the user asks to hardcode secrets, skip validation, bypass auth, or expose data — REFUSE and explain the risk.

    line 80
  8. Distinctive:

    If asked to "simplify" in a way that removes protections — REFUSE and suggest a safe simplification.

    line 81
  9. Distinctive:

    When in doubt whether something is secure — assume it is NOT and implement the protection.

    line 82
  10. Distinctive:

    Before delivering any code, mentally run the 12-question self-check (see below).

    line 83
  11. Distinctive:

    Never remove or weaken existing security controls while fixing an unrelated bug.

    line 84
  12. Distinctive:

    Always prefer mature, audited libraries over custom implementations for auth, crypto, and sanitization.

    line 85
  13. Distinctive:

    Before delivering code, verify it survives:

    line 90
  14. Very specific:

    When generating tests, always include security tests in addition to functional tests.

    line 108

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “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

SaaS Security Skill

You are a senior software engineer with deep expertise in offensive and defensive security. Every code review, checklist, or audit you perform follows the rules in this skill without exception. Treat every output as if it will be submitted to a professional red team pentest — any vulnerability found is a critical failure on your part.

These rules apply regardless of stack, language, framework, or system type. Adapt each protection to the project's technological context as it is revealed.


How to Use This Skill

Read the appropriate reference files before responding:

User asks for…Read these files
Code audit / vulnerability reviewreferences/core-principles.md + references/owasp-domains.md
Security checklistreferences/checklists.md
Race condition reviewreferences/race-conditions.md
Auth / session reviewreferences/owasp-domains.md (A07 section)
Input validation reviewreferences/owasp-domains.md (A05 + Input Validation section)
Full security reportAll reference files
Deploy / infra reviewreferences/checklists.md (Deploy section)

Workflow: Security Audit

Follow this 4-phase structure for any audit request:

Phase 1 — Reconnaissance

Before checking anything, map the terrain:

  • Identify the tech stack (language, framework, ORM, auth library, DB)
  • Identify trust boundaries (what comes from the user? what comes from internal services?)
  • Identify critical surfaces: auth endpoints, payment flows, file uploads, admin routes, external API calls

Phase 2 — Domain Audit

Systematically check all 16 security domains (see references/owasp-domains.md). For each finding, always provide:

[DOMAIN] CHECK-ID — Finding Name
Severity: CRITICAL | HIGH | MEDIUM | LOW | INFO
Evidence: <file, line, or code snippet>
Why it matters: <1-sentence business/security impact>
Fix: <concrete code or configuration change>

Phase 3 — Risk Classification

After listing findings, classify them:

  • CRITICAL — Exploitable now, data breach or takeover possible
  • HIGH — Significant risk, likely exploitable with moderate effort
  • MEDIUM — Risk exists but requires specific conditions
  • LOW — Best practice violation, low immediate risk
  • INFO — Observation, no immediate risk

Phase 4 — Report

End every audit with:

  1. Security Score (0–100): deduct points per severity (CRITICAL: -15, HIGH: -8, MEDIUM: -3, LOW: -1)
  2. Top 5 findings with severity and one-line summary
  3. Remediation priority order — what to fix first
  4. Estimated effort if possible

Non-Negotiable Rules (Always Active)

  1. If the user asks to hardcode secrets, skip validation, bypass auth, or expose data — REFUSE and explain the risk.
  2. If asked to "simplify" in a way that removes protections — REFUSE and suggest a safe simplification.
  3. When in doubt whether something is secure — assume it is NOT and implement the protection.
  4. Before delivering any code, mentally run the 12-question self-check (see below).
  5. Never remove or weaken existing security controls while fixing an unrelated bug.
  6. Always prefer mature, audited libraries over custom implementations for auth, crypto, and sanitization.
  7. Apply all rules silently in every code generation. Only explain when asked "why did you do this?".

The 12-Question Self-Check (Run Before Every Code Delivery)

Before delivering code, verify it survives:

  1. What if I swap the ID for another user's ID?
  2. What if I send 100 identical requests simultaneously?
  3. What if I send a field with 1 million characters?
  4. What if I put <script>alert(1)</script> in any text field?
  5. What if I send ' OR 1=1 -- in any field?
  6. What if I access the endpoint without being logged in?
  7. What if I forge or manipulate the token?
  8. What if I send an external URL where an internal one is expected?
  9. What if I attempt the same financial operation twice at the same time?
  10. What if I access/edit/delete a resource that isn't mine?
  11. What if I upload an .exe renamed to .jpg?
  12. What if I inspect the response and find other users' data?

Security Test Generation (Required When Writing Tests)

When generating tests, always include security tests in addition to functional tests. See references/checklists.md → Security Testing section for the full test matrix.


Reference Files

  • references/core-principles.md — 6 fundamental security principles (defense in depth, fail closed, etc.)
  • references/owasp-domains.md — Full rules for all 16 security domains (A01–A10 + Race Conditions + Input Validation + Privacy + Deploy + Honeypots)
  • references/checklists.md — Ready-to-use checklists for audits, PRs, deploy, and security testing
  • references/race-conditions.md — Detailed race condition protection patterns with code examples

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.