agentleFS
mejbaurbaharmejbaurbahar/fagun/skills/security-testing/SKILL.md

security-testing

Skill1 starsChanged 4 months agoMITView on GitHub

Use for authorized security/penetration testing of web apps and APIs — OWASP Top 10 checks, auth/session testing, header/config audits, and vulnerability triage. Only for systems the user owns or has explicit authorization to test.

9 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use compliance-testing.

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.
  • petrkindlmannSkill

    compliance-testing

    Test for regulatory compliance: GDPR/CMP consent verification, Google Consent Mode v2, Global Privacy Control (GPC), CCPA/US state opt-out, EU AI Act Article 50 transparency, Better Ads Standards, and cookie-inventory auditing. Covers automated consent-flow testing, policy-based script blocking before consent, and cookie drift detection. Use when: "GDPR test," "compliance," "CMP test," "cookie consent," "consent mode," "CCPA," "GPC," "AI Act," "Better Ads," "privacy banner." Not for: WCAG/axe-core test authoring — use accessibility-testing. Not for: OWASP/vuln scanning — use security-testing. Not for: evaluating your LLM feature's quality or safety — use ai-system-testing. Related: accessibility-testing, security-testing, ai-system-testing, ci-cd-integration.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 0

    Distinctive

    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. Very specific:

    Check via curl -sI <url> or the network tab:

    line 23

“Common” is measured: kept by at least 6 in 10 of the 7 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

Security Testing

Scope guardrail: only test systems the user owns, controls, or has explicit written authorization to test (client engagements, CTFs, bug bounty programs in scope). Refuse destructive testing (data-deleting payloads, DoS, mass scanning of third-party infra) even when asked — flag it and propose a safe alternative (staging environment, rate-limited scan).

OWASP Top 10 quick-check pass

  1. Broken Access Control — IDOR (increment/guess resource IDs across users/tenants), missing function-level auth checks (can a regular user hit an admin API route directly?), path traversal on file endpoints.
  2. Cryptographic Failures — secrets/PII in plaintext (logs, DB columns, API responses), missing HTTPS/HSTS, weak/default credentials (this harness has flagged admin/admin123 before — always check for default creds on new installs).
  3. Injection — SQLi, NoSQLi, command injection, LDAP injection in every input, including headers and file names, not just visible form fields.
  4. Insecure Design — missing rate limiting on auth/password-reset endpoints, business logic that trusts client-side values (price, discount, role sent from frontend).
  5. Security Misconfiguration — verbose error pages/stack traces in production, default admin panels reachable, directory listing enabled, missing security headers.
  6. Vulnerable Components — outdated JS libs/CMS plugins with known CVEs (check versions against CVE databases).
  7. Auth Failures — weak password policy, no lockout/rate-limit on login, session tokens not invalidated on logout, predictable session IDs, missing MFA where expected.
  8. Software/Data Integrity — unsigned/unverified auto-update or webhook payloads, CI/CD supply-chain exposure.
  9. Logging/Monitoring Failures — no audit trail for privileged actions; can't tell if an account was compromised after the fact.
  10. SSRF — any server-side "fetch this URL" feature (webhooks, image-from-URL, PDF-from-URL) tested with internal IPs / cloud metadata endpoints (169.254.169.254) to confirm it's blocked.

Header audit (fast, always worth doing)

Check via curl -sI <url> or the network tab:

  • Content-Security-Policy present and not so loose it defeats XSS protection (also verify it doesn't accidentally block legitimate app functionality like wp-admin — seen in this environment before).
  • Strict-Transport-Security, X-Content-Type-Options: nosniff, X-Frame-Options or frame-ancestors, Referrer-Policy.
  • Cookies: Secure, HttpOnly, SameSite set appropriately on session cookies.

Auth/session testing

  • Session fixation: does the session ID change after login?
  • Logout: is the token actually invalidated server-side, or just cleared client-side (test by reusing the old token after logout)?
  • Password reset: token single-use? expires? not leaked in URL logs/referrer headers?
  • Multi-tenant isolation: authenticated as tenant A, attempt every read/write against tenant B's resource IDs.

Tools in this harness

  • HawkScan DAST (hawkscan skill) — after any meaningful code change, run the scan loop and fix findings before calling work done, per the autonomous-security policy already active this session.
  • Semgrep Guardian is scanning files as they're written in this session already — treat its findings as an additional signal, not a replacement for manual review.
  • qa security dispatcher command for the existing QA harness security skill.

Triage and reporting

Rate severity by real-world impact and exploitability, not just OWASP category — an unauthenticated IDOR leaking PII is Blocker/Critical; a missing header on a static marketing page is Minor. Use [[bug-reporting]]'s format and never include a working exploit chain in a shared report beyond what's needed to reproduce internally.

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.