agentleFS
JustineDevsJustineDevs/premortem/.agents/skills/hack/SKILL.md

hack

Skill2 starsChanged 5 months agoApache-2.0View on GitHub

Entry P0 primary router for HackSkills. Use when the task involves web application testing, API security assessment, recon, vulnerability triage, exploit path planning, or choosing the right next category skill before any deep topic skill.

  • Reads credentials

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

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    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:

    Avoid relying only on baseline model memory.

    line 20
  2. Distinctive:

    Use this only within authorized targets, legitimate research, defensive validation, and bug-bounty-approved rules.

    line 26
  3. Distinctive:

    Do not use these techniques for unauthorized attacks.

    line 27
  4. Distinctive:

    Use this skill first in the following scenarios:

    line 31
  5. Distinctive:

    If you have the full repository, prioritize using these topic documents together:

    line 84
  6. Very specific:

    For JWT attacks, check key and algorithm context first: do not blindly spray payloads.

    line 130
  7. Distinctive:

    Use this skill as a router to make the agent clarify phase and goal first:

    line 134
  8. Distinctive:

    When payloads are needed, prefer quick-start / first-pass samples in the corresponding main skill instead of adding another intermediate …

    line 158
  9. Distinctive:

    When full repository context is available, return to topic documents for finer exploitation details.

    line 162

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

HACKING SKILLS / HackSkills

Overview

This is a top-level routing skill for bug bounty, web security, API security, and authorized penetration testing.

Its core role is not to replace all specialized techniques, but to help the agent:

  1. First determine the testing phase (Recon / Validation / Privilege Escalation / Chain building)
  2. Then select the correct vulnerability category
  3. Avoid relying only on baseline model memory; prefer structured methodology
  4. Prioritize boundary conditions AI often misses but that matter in real engagements

Trust Model

  • This knowledge base emphasizes content safety and auditability.
  • Use this only within authorized targets, legitimate research, defensive validation, and bug-bounty-approved rules.
  • Do not use these techniques for unauthorized attacks.

When to Use This Skill

Use this skill first in the following scenarios:

  • You just received a new bug bounty target and do not know where to start
  • You need to decide whether to load XSS / SQLi / SSRF / IDOR / JWT / API tracks first
  • You want the agent to perform Web/API security testing with a more stable methodology
  • You need to route scattered findings to the right attack surface
  • You want AI to miss fewer critical test points in security work

Operating Model

Step 1: Start with Recon and context validation

Collect first:

  • Target type: classic web, REST API, mobile backend, admin panel, payment flow, file upload, GraphQL
  • Identity and permission model: anonymous, regular user, admin, multi-tenant
  • Input locations: URL, query parameters, JSON, headers, cookies, filenames, imported files, templates, reflection points
  • Output locations: HTML, attributes, JS, PDF, email, logs, background tasks, mobile endpoints

Step 2: Route by observed behavior

SignalPriority direction
Input reflects into HTML / JSXSS / SSTI
Server actively fetches URL / hostnameSSRF
Accepts XML / Office / SVGXXE
Path, filename, or download endpoint is controllablePath Traversal / LFI
Many object IDs appear in APIsIDOR / BOLA / BFLA
Login, reset password, 2FA, sessionsAuth Bypass / JWT / OAuth
Multi-step transactions, coupons, pricing, inventoryBusiness Logic
MongoDB / JSON query syntax exposureNoSQL Injection
CLI tools, image processing, importersCommand Injection
HTTP parsing anomalies / front-back framing mismatchRequest Smuggling
Node.js JSON handling / controllable __proto__Prototype Pollution
PHP weak comparison / 0e hash / loose conditionsType Juggling
Repeated parameter names / WAF-app parsing mismatchHTTP Parameter Pollution
One-time operations (coupon/inventory/reset)Race Condition
XML/XSLT template processingXSLT Injection
Accessible .git/.svn/.env pathsInsecure SCM
CSV/Excel export featuresCSV Formula Injection
WebSocket protocol upgradesWebSocket Security
Internal package names / supply-chain inventoryDependency Confusion

Step 3: Use the most likely-hit testing order

  1. Recon / Methodology
  2. API Security / Auth / IDOR
  3. XSS / SQLi / SSRF / SSTI / XXE
  4. Business Logic / Race Condition
  5. Chained exploits and privilege-escalation paths

Core Skill Map

If you have the full repository, prioritize using these topic documents together:

  • Recon and Methodology
  • XSS Cross Site Scripting
  • SQLi SQL Injection
  • SSRF Server Side Request Forgery
  • XXE XML External Entity
  • SSTI Server Side Template Injection
  • IDOR Broken Object Authorization
  • CMDi Command Injection
  • Path Traversal LFI
  • CSRF Cross Site Request Forgery
  • API Security Router
  • JWT OAuth Token Attacks
  • OAuth OIDC Misconfiguration
  • CORS Cross Origin Misconfiguration
  • SAML SSO Assertion Attacks
  • Authentication Bypass
  • Business Logic Vulnerabilities
  • Upload Insecure Files
  • NoSQL Injection
  • Request Smuggling
  • Prototype Pollution
  • Type Juggling (PHP)
  • HTTP Parameter Pollution
  • Race Condition
  • XSLT Injection
  • Insecure Source Code Management
  • CSV Formula Injection
  • WebSocket Security
  • Dependency Confusion
  • Ghost Bits Cast Attack

Previously separate mini skills such as payload-selection and brute-selection were merged back into their main skills to avoid router overload and selection noise.

High-Value Expert Intuitions

These are points many baseline models miss, but they are frequently effective in real bug bounty work:

  1. The same filtering logic is often reused across multiple pages: if one point is bypassable, similar pages usually are too.
  2. Parameter names are an attack surface too: WAFs often inspect values but not names.
  3. Second-order vulnerabilities are common: safe at storage time does not mean safe when later read into a dangerous context.
  4. BOLA is fundamentally 'authenticated but unauthorized': replaying with account A/B switching is critical.
  5. Older API versions are most likely to miss patches: fixing v2 does not mean v1 was retired.
  6. Business-logic vulnerabilities often bring highest impact: scanners miss them and they persist longer.
  7. Race conditions should prioritize one-time actions: coupon redemption, claims, resets, invites, trials, inventory deduction.
  8. For JWT attacks, check key and algorithm context first: do not blindly spray payloads; verify alg, kid, JWKS, and key source first.

Suggested Prompts

Use this skill as a router to make the agent clarify phase and goal first:

  • "First, plan the testing route for this target using bug bounty methodology.
  • "This is a REST API; prioritize BOLA, BFLA, Mass Assignment, and JWT angles.
  • "This parameter triggers server-side requests; list key validation points from an SSRF perspective.
  • "This feature is a payment/coupon/inventory flow; prioritize business logic and race-condition analysis.
  • "I only see login and password-reset flows; analyze via Auth Bypass + OAuth/JWT + CSRF.

Installation Notes

Recommended skill name:

  • hack

Recommended search keywords:

  • HackSkills
  • HACKING SKILLS
  • bug bounty
  • bug bounty hunter

Guidelines

  • Prioritize routing by target type and observed behavior, not random payload enumeration.
  • When payloads are needed, prefer quick-start / first-pass samples in the corresponding main skill instead of adding another intermediate router.
  • Prioritize reusable filters, shared components, and cross-page reproduction paths.
  • Confirm authentication, authorization, and version boundaries before deeper exploitation.
  • Preserve explainable, auditable, reproducible testing processes.
  • When full repository context is available, return to topic documents for finer exploitation details.

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.