[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74FNMNMB4EK3HMTD3MWZFEW":3,"skill-same:01M74FNMNMB4EK3HMTD3MWZFEW":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":35,"ownerDescription":36,"updatedAt":37,"install":38,"resources":51},"01M74FNMNMB4EK3HMTD3MWZFEW","pentest",null,"Runs the whole pentest workflow in order, from context and project scripts to a Markdown report with a JSON sidecar, and retests an earlier report. Use when the user asks to pentest an app or repo, run a penetration test against any build, or do a full security audit or security scan, or to retest earlier pentest findings; the workflow is pentest or pentest-retest.","Eliyce\u002Fpaqad-ai","Eliyce","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F173689792?v=4","01M74F7NHRXY2FW9KM93WHKHST","01M74F7NJDEWZ2XM9CQV70T3JK",8,"MIT","https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai\u002Fblob\u002Fmain\u002Fruntime\u002Fcapabilities\u002Fsecurity\u002Fskills\u002Fpentest\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: pentest\ndescription: Runs the whole pentest workflow in order, from context and project scripts to a Markdown report with a JSON sidecar, and retests an earlier report. Use when the user asks to pentest an app or repo, run a penetration test against any build, or do a full security audit or security scan, or to retest earlier pentest findings; the workflow is pentest or pentest-retest.\nmetadata:\n  model_tier: reasoning\n  cacheable: 'false'\n  output_format: markdown\n  paqad-meta: skill.meta.yaml\n---\n\n## What It Does\n\nDefine the exact steps to follow when a pentest is requested so the AI executes the full structured workflow rather than ad-hoc checks.\n\nIt runs the security helper skills in the order below and gathers their output into one report. A retest of an earlier report is the Retest mode of this skill.\n\n## Use This When\n\nRun this workflow whenever the user says anything equivalent to:\n\n- \"run pentest\", \"run a penetration test\", \"pentest the app\", \"security audit\", \"run security scan\"\n\nDo **not** improvise a pentest. Always follow the steps below in order.\n\nUse the Retest mode below when the workflow is `pentest-retest`.\n\n## Inputs\n\n- The request text, and a target URL when one is available (from the request text, `.env` APP_URL, or `project-profile.yaml`).\n- Module docs under `docs\u002Fmodules\u002F` and tests under `tests\u002F` for the relevant modules.\n- The five `pentest-*.sh` scripts in `scripts\u002F` after onboarding.\n- For the Retest mode: the source report under `docs\u002Fpentest\u002F`. A `.md` path maps to its `.json` sidecar.\n\n## Procedure\n\nProgress is tracked in `.paqad\u002Fpentest\u002Fruns\u002F\u003Crun_id>\u002Fprogress.json`. The workflow is resumable: if a step is already marked `completed` with the same input hash, skip it.\n\n### Step 1: collect-context\n\n- Load all module documentation from `docs\u002Fmodules\u002F` for the relevant modules.\n- Load test files from `tests\u002F` for the relevant modules.\n- Write a `docs-summary.json` and `tests-summary.json` artefact to `.paqad\u002Fpentest\u002Fruns\u002F\u003Crun_id>\u002Fartifacts\u002F`.\n- Skills (run **in this order**: STRIDE must run first so all other skills can reference the threat inventory):\n  1. `stride-threat-model`: enumerate threats per STRIDE category across all modules; write `stride-threats.json`\n  2. `permission-boundary-review`: BOLA, function-level auth, mass assignment, resource consumption\n  3. `business-logic-abuse-review`: race conditions, workflow abuse, financial manipulation, GraphQL abuse\n  4. `input-validation-review`: SSRF, IDOR, mass assignment, injection, file upload, prototype pollution, ReDoS\n  5. `auth-mechanism-review`: JWT, session, OAuth\u002FOIDC, brute-force, password storage\n  6. `cryptographic-review`: encryption at rest\u002Ftransit, key management, hashing, PRNG\n  7. `logging-monitoring-review`: audit trail, log injection, sensitive data in logs, alerting\n  8. `rate-limiting-review`: missing rate limits on auth, bulk, and expensive endpoints\n\n### Step 2: run-project-scripts\n\nRun the following five scripts in parallel (they live in `scripts\u002F` after onboarding):\n\n1. `pentest-audit-dependencies.sh`: scan lockfile for known vulnerabilities via native audit + OSV; check for typosquatting indicators, dependency confusion, and abandoned packages\n2. `pentest-scan-secrets.sh`: scan source **and** git history for leaked credentials or secrets (including deleted files and squashed commits)\n3. `pentest-enumerate-surface.sh`: enumerate routes, controllers, exposed endpoints; include `\u002Fswagger`, `\u002Fapi-docs`, `\u002Fopenapi.json`, `\u002Fgraphql` (introspection query), and WebSocket endpoints\n4. `pentest-db-readonly.sh`: verify database interactions are read-only where expected\n5. `pentest-scan-git-history.sh`: scan the git object database for secrets in all commits (not just the working tree), covering deleted branches, squashed commits, and amended history\n\nWrite all artefacts to `.paqad\u002Fpentest\u002Fruns\u002F\u003Crun_id>\u002Fartifacts\u002F`.\n\n- Skills: `dependency-advisory-triage`\n\n### Step 2.5: generate-local-attack-playbook\n\nFor each suspected finding category identified in Steps 1–2, generate `docs\u002Fpentest\u002F\u003Ctimestamp>-local-playbook.md` with a concrete local test command per category. This is the **\"break locally first\"** step: every finding gets a curl command or script template the developer can run against `localhost` to confirm or refute it.\n\nExample playbook entries:\n\n```bash\n# IDOR: swap user ID in path\n# Expected: 403 Forbidden. If 200 with another user's data → confirmed IDOR (WSTG-AUTHZ-04).\ncurl -s -H \"Authorization: Bearer $LOW_PRIV_TOKEN\" \\\n  \"http:\u002F\u002Flocalhost:8000\u002Fapi\u002Fusers\u002F2\u002Fprofile\"\n\n# Race condition: concurrent requests (use HTTP\u002F2 single-packet for reliable timing)\n# Expected: only 1 success. Multiple 200s → race condition confirmed (WSTG-BUSL-09).\nfor i in {1..20}; do\n  curl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n    \"http:\u002F\u002Flocalhost:8000\u002Fapi\u002Fvouchers\u002FPROMO10\u002Fredeem\" &\ndone; wait\n# For tighter timing: use Burp Turbo Intruder or send all requests in one TCP packet (HTTP\u002F2).\n\n# Mass assignment: inject privileged fields\n# Expected: extra fields ignored or 400. If role\u002Fis_admin changes → confirmed (WSTG-INPV-06).\ncurl -s -X PATCH -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Authorization: Bearer $TOKEN\" \\\n  -d '{\"name\":\"test\",\"is_admin\":true,\"role\":\"admin\",\"balance\":99999}' \\\n  \"http:\u002F\u002Flocalhost:8000\u002Fapi\u002Fprofile\"\n\n# SSRF: AWS metadata probe\n# Expected: blocked or error. If metadata returned → SSRF confirmed (WSTG-INPV-17).\ncurl -s -X POST -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"url\":\"http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002F\"}' \\\n  \"http:\u002F\u002Flocalhost:8000\u002Fapi\u002Fpreview\"\n\n# JWT alg:none bypass\n# 1. Split your valid JWT: header.payload.signature\n# 2. Re-encode header with \"alg\":\"none\" (base64url, no padding)\n# 3. Send: \u003Cnew_header>.\u003Coriginal_payload>. (empty signature: note trailing dot)\n# Expected: 401. If 200 → alg:none not rejected (WSTG-SESS-10).\ncurl -s -H \"Authorization: Bearer \u003Cforged_alg_none_token>\" \\\n  \"http:\u002F\u002Flocalhost:8000\u002Fapi\u002Fme\"\n\n# GraphQL introspection\n# Expected: disabled in production config. If full schema returned → information disclosure.\ncurl -s -X POST -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\":\"{ __schema { types { name fields { name } } } }\"}' \\\n  \"http:\u002F\u002Flocalhost:8000\u002Fgraphql\"\n\n# Open redirect\n# Expected: only relative paths or trusted domains accepted. If external redirect → confirmed.\ncurl -sI \"http:\u002F\u002Flocalhost:8000\u002Fauth\u002Fcallback?redirect=https:\u002F\u002Fevil.com\"\n\n# Security headers check\n# Expected: all security headers present.\ncurl -sI \"http:\u002F\u002Flocalhost:8000\u002F\" | grep -iE \"strict-transport|x-frame|content-security|x-content-type\"\n```\n\n**Important:** This playbook is **generated only: never auto-executed.** All commands are templates; substitute `$TOKEN`, `$LOW_PRIV_TOKEN`, and endpoint paths with values from the target project. Never run these against a production system.\n\n### Step 3: live-validation\n\n- If a target URL is available (from the request text, `.env` APP_URL, or `project-profile.yaml`), run `pentest-runtime-checks.sh` against it.\n- The runtime checks script must cover:\n  - Base reachability (HTTP 200 on home\u002Fhealth)\n  - Security header audit (HSTS, X-Frame-Options, CSP, X-Content-Type-Options, Referrer-Policy)\n  - CORS header probe on at least one authenticated endpoint\n  - Error disclosure probe (trigger a 404 and a malformed request; check for stack traces in response)\n  - Open redirect probe on known redirect\u002Fcallback parameters\n  - Sensitive file exposure (`\u002F.env`, `\u002F.git\u002Fconfig`, `\u002Fphpinfo.php`)\n  - GraphQL introspection probe (`{ __schema { types { name } } }`)\n  - Rate limit probe on login endpoint (10 rapid requests; check for 429 response)\n- If no URL is found, record the check as blocked and continue.\n- Skills: `runtime-surface-probing`\n\n### Step 4: synthesize-findings\n\nNormalise all evidence from steps 1–3 into structured findings:\n\n- **Dependency findings**: from lockfile audit and OSV results\n- **Module findings**: from doc and test coverage gaps (all 8 skill categories)\n- **Secret findings**: from secret scan and git history scan output\n- **Runtime findings**: from live-validation results (if available)\n\nAssign stable `PT-XXXX` IDs. Write a `finding-index.json` to `.paqad\u002Fpentest\u002Fruns\u002F\u003Crun_id>\u002F`.\n\n- Skills: `finding-normalizer`\n\n### Step 5: write-report\n\n- Write a Markdown report to `docs\u002Fpentest\u002F\u003Ctimestamp>.md`\n- Write a JSON sidecar to `docs\u002Fpentest\u002F\u003Ctimestamp>.json`\n- Include:\n  - Stack summary and capability profile\n  - **OWASP WSTG Coverage Matrix** (see template below)\n  - Ordered findings (critical → high → medium → low)\n  - Blocked checks with explanation\n  - Remediation priorities\n  - Methodology notes\n  - Link to the local attack playbook generated in Step 2.5\n\n#### OWASP WSTG Coverage Matrix Template\n\n| WSTG Category     | Test ID          | Description                       | Status            |\n| ----------------- | ---------------- | --------------------------------- | ----------------- |\n| WSTG-AUTHZ-04     | IDOR             | Insecure Direct Object Reference  | covered \u002F blocked |\n| WSTG-INPV-17      | SSRF             | Server-Side Request Forgery       | covered \u002F blocked |\n| WSTG-INPV-06      | Mass Assignment  | Broken Object Property Level Auth | covered \u002F blocked |\n| WSTG-SESS-10      | JWT              | JSON Web Token Security           | covered \u002F blocked |\n| WSTG-SESS-03      | Session Fixation | Session Fixation Attack           | covered \u002F blocked |\n| WSTG-ATHN-03      | Brute Force      | Testing for Account Lockout       | covered \u002F blocked |\n| WSTG-BUSL-01..12  | Business Logic   | Workflow abuse, race conditions   | covered \u002F blocked |\n| WSTG-CRYP-01..03  | Cryptography     | Weak encryption \u002F hashing         | covered \u002F blocked |\n| WSTG-INPV-13      | Rate Limiting    | Resource exhaustion \u002F DoS         | covered \u002F blocked |\n| WSTG-AUTHZ-01..11 | Authorization    | Privilege escalation suite        | covered \u002F blocked |\n| WSTG-ERRH-02      | Logging          | Security logging failures         | covered \u002F blocked |\n\n### Retest mode\n\nUse this mode for the `pentest-retest` workflow. It re-checks every finding of an earlier report against fresh evidence and keeps the original finding IDs. Progress is tracked in `.paqad\u002Fpentest\u002Fruns\u002F\u003Crun_id>\u002Fprogress.json` in the same way, and a step already marked `completed` with the same input hash is skipped.\n\n1. load-source-report: read the source sidecar named in the request and copy it to `.paqad\u002Fpentest\u002Fruns\u002F\u003Crun_id>\u002Fartifacts\u002Fsource-report.json`. Hand off to the `retest-verification` skill, which loads the source findings.\n2. rerun-evidence: run `pentest-retest.sh`, `pentest-audit-dependencies.sh`, `pentest-scan-secrets.sh` and `pentest-runtime-checks.sh` in parallel against the source report. Record a script that is unavailable in `blocked_checks` and continue.\n3. evaluate-source-findings: with `retest-verification`, give each source finding one status, `fixed`, `still-open` or `needs-manual-verification`, from the fresh evidence, and write `finding-index.json` to `.paqad\u002Fpentest\u002Fruns\u002F\u003Crun_id>\u002F`. A new gap that is not in the source report belongs in a separate report.\n4. write-report: write the retest report to `docs\u002Fpentest\u002Fretests\u002F\u003Ctimestamp>-\u003Csource>.md` and its JSON sidecar beside it, with the remediation priorities for every finding that is not fixed.\n\n## Output Contract\n\n- A pentest run writes `docs\u002Fpentest\u002F\u003Ctimestamp>.md` and the JSON sidecar `docs\u002Fpentest\u002F\u003Ctimestamp>.json`, with stable `PT-XXXX` finding IDs and the OWASP WSTG coverage matrix from Step 5.\n- The local attack playbook is `docs\u002Fpentest\u002F\u003Ctimestamp>-local-playbook.md`.\n- Run artefacts stay under `.paqad\u002Fpentest\u002Fruns\u002F\u003Crun_id>\u002F`.\n- A retest writes `docs\u002Fpentest\u002Fretests\u002F\u003Ctimestamp>-\u003Csource>.md` and its `.json` sidecar, and keeps the source finding IDs.\n\n## Escalate \u002F Stop Conditions\n\n- Never skip steps. If a script is unavailable, record it in `blocked_checks` and proceed.\n- Do not run destructive operations (no writes to the live database, no mutations via the API).\n- Always write both the `.md` report and the `.json` sidecar; downstream retest workflows depend on the sidecar.\n- The local attack playbook (Step 2.5) is **generated only**: never execute it automatically.\n- For a retest of an existing report, use the `pentest-retest` workflow instead, referencing the original sidecar path to preserve finding IDs.\n\n## Resources\n\n- Helper skills, in the order the Procedure calls them: `stride-threat-model`, `permission-boundary-review`, `business-logic-abuse-review`, `input-validation-review`, `auth-mechanism-review`, `cryptographic-review`, `logging-monitoring-review`, `rate-limiting-review`, `dependency-advisory-triage`, `runtime-surface-probing`, `finding-normalizer` and, for the Retest mode, `retest-verification`.\n- `references\u002Fhelper-map.md`: read it when you need to see which helper a step calls.\n- `agents\u002Fopenai.yaml`\n","## What It Does\n\nDefine the exact steps to follow when a pentest is requested so the AI executes the full structured workflow rather than ad-hoc checks.\n\nIt runs the security helper skills in the order below and gathers their output into one report. A retest of an earlier report is the Retest mode of this skill.\n\n## Use This When\n\nRun this workflow whenever the user says anything equivalent to:\n\n- \"run pentest\", \"run a penetration test\", \"pentest the app\", \"security audit\", \"run security scan\"\n\nDo **not** improvise a pentest. Always follow the steps below in order.\n\nUse the Retest mode below when the workflow is `pentest-retest`.\n\n## Inputs\n\n- The request text, and a target URL when one is available (from the request text, `.env` APP_URL, or `project-profile.yaml`).\n- Module docs under `docs\u002Fmodules\u002F` and tests under `tests\u002F` for the relevant modules.\n- The five `pentest-*.sh` scripts in `scripts\u002F` after onboarding.\n- For the Retest mode: the source report under `docs\u002Fpentest\u002F`. A `.md` path maps to its `.json` sidecar.\n\n## Procedure\n\nProgress is tracked in `.paqad\u002Fpentest\u002Fruns\u002F\u003Crun_id>\u002Fprogress.json`. The workflow is resumable: if a step is already marked `completed` with the same input hash, skip it.\n\n### Step 1: collect-context\n\n- Load all module documentation from `docs\u002Fmodules\u002F` for the relevant modules.\n- Load test files from `tests\u002F` for the relevant modules.\n- Write a `docs-summary.json` and `tests-summary.json` artefact to `.paqad\u002Fpentest\u002Fruns\u002F\u003Crun_id>\u002Fartifacts\u002F`.\n- Skills (run **in this order**: STRIDE must run first so all other skills can reference the threat inventory):\n  1. `stride-threat-model`: enumerate threats per STRIDE category across all modules; write `stride-threats.json`\n  2. `permission-boundary-review`: BOLA, function-level auth, mass assignment, resource consumption\n  3. `business-logic-abuse-review`: race conditions, workflow abuse, financial manipulation, GraphQL abuse\n  4. `input-validation-review`: SSRF, IDOR, mass assignment, injection, file upload, prototype pollution, ReDoS\n  5. `auth-mechanism-review`: JWT, session, OAuth\u002FOIDC, brute-force, password storage\n  6. `cryptographic-review`: encryption at rest\u002Ftransit, key management, hashing, PRNG\n  7. `logging-monitoring-review`: audit trail, log injection, sensitive data in logs, alerting\n  8. `rate-limiting-review`: missing rate limits on auth, bulk, and expensive endpoints\n\n### Step 2: run-project-scripts\n\nRun the following five scripts in parallel (they live in `scripts\u002F` after onboarding):\n\n1. `pentest-audit-dependencies.sh`: scan lockfile for known vulnerabilities via native audit + OSV; check for typosquatting indicators, dependency confusion, and abandoned packages\n2. `pentest-scan-secrets.sh`: scan source **and** git history for leaked credentials or secrets (including deleted files and squashed commits)\n3. `pentest-enumerate-surface.sh`: enumerate routes, controllers, exposed endpoints; include `\u002Fswagger`, `\u002Fapi-docs`, `\u002Fopenapi.json`, `\u002Fgraphql` (introspection query), and WebSocket endpoints\n4. `pentest-db-readonly.sh`: verify database interactions are read-only where expected\n5. `pentest-scan-git-history.sh`: scan the git object database for secrets in all commits (not just the working tree), covering deleted branches, squashed commits, and amended history\n\nWrite all artefacts to `.paqad\u002Fpentest\u002Fruns\u002F\u003Crun_id>\u002Fartifacts\u002F`.\n\n- Skills: `dependency-advisory-triage`\n\n### Step 2.5: generate-local-attack-playbook\n\nFor each suspected finding category identified in Steps 1–2, generate `docs\u002Fpentest\u002F\u003Ctimestamp>-local-playbook.md` with a concrete local test command per category. This is the **\"break locally first\"** step: every finding gets a curl command or script template the developer can run against `localhost` to confirm or refute it.\n\nExample playbook entries:\n\n```bash\n# IDOR: swap user ID in path\n# Expected: 403 Forbidden. If 200 with another user's data → confirmed IDOR (WSTG-AUTHZ-04).\ncurl -s -H \"Authorization: Bearer $LOW_PRIV_TOKEN\" \\\n  \"http:\u002F\u002Flocalhost:8000\u002Fapi\u002Fusers\u002F2\u002Fprofile\"\n\n# Race condition: concurrent requests (use HTTP\u002F2 single-packet for reliable timing)\n# Expected: only 1 success. Multiple 200s → race condition confirmed (WSTG-BUSL-09).\nfor i in {1..20}; do\n  curl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n    \"http:\u002F\u002Flocalhost:8000\u002Fapi\u002Fvouchers\u002FPROMO10\u002Fredeem\" &\ndone; wait\n# For tighter timing: use Burp Turbo Intruder or send all requests in one TCP packet (HTTP\u002F2).\n\n# Mass assignment: inject privileged fields\n# Expected: extra fields ignored or 400. If role\u002Fis_admin changes → confirmed (WSTG-INPV-06).\ncurl -s -X PATCH -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Authorization: Bearer $TOKEN\" \\\n  -d '{\"name\":\"test\",\"is_admin\":true,\"role\":\"admin\",\"balance\":99999}' \\\n  \"http:\u002F\u002Flocalhost:8000\u002Fapi\u002Fprofile\"\n\n# SSRF: AWS metadata probe\n# Expected: blocked or error. If metadata returned → SSRF confirmed (WSTG-INPV-17).\ncurl -s -X POST -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"url\":\"http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002F\"}' \\\n  \"http:\u002F\u002Flocalhost:8000\u002Fapi\u002Fpreview\"\n\n# JWT alg:none bypass\n# 1. Split your valid JWT: header.payload.signature\n# 2. Re-encode header with \"alg\":\"none\" (base64url, no padding)\n# 3. Send: \u003Cnew_header>.\u003Coriginal_payload>. (empty signature: note trailing dot)\n# Expected: 401. If 200 → alg:none not rejected (WSTG-SESS-10).\ncurl -s -H \"Authorization: Bearer \u003Cforged_alg_none_token>\" \\\n  \"http:\u002F\u002Flocalhost:8000\u002Fapi\u002Fme\"\n\n# GraphQL introspection\n# Expected: disabled in production config. If full schema returned → information disclosure.\ncurl -s -X POST -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\":\"{ __schema { types { name fields { name } } } }\"}' \\\n  \"http:\u002F\u002Flocalhost:8000\u002Fgraphql\"\n\n# Open redirect\n# Expected: only relative paths or trusted domains accepted. If external redirect → confirmed.\ncurl -sI \"http:\u002F\u002Flocalhost:8000\u002Fauth\u002Fcallback?redirect=https:\u002F\u002Fevil.com\"\n\n# Security headers check\n# Expected: all security headers present.\ncurl -sI \"http:\u002F\u002Flocalhost:8000\u002F\" | grep -iE \"strict-transport|x-frame|content-security|x-content-type\"\n```\n\n**Important:** This playbook is **generated only: never auto-executed.** All commands are templates; substitute `$TOKEN`, `$LOW_PRIV_TOKEN`, and endpoint paths with values from the target project. Never run these against a production system.\n\n### Step 3: live-validation\n\n- If a target URL is available (from the request text, `.env` APP_URL, or `project-profile.yaml`), run `pentest-runtime-checks.sh` against it.\n- The runtime checks script must cover:\n  - Base reachability (HTTP 200 on home\u002Fhealth)\n  - Security header audit (HSTS, X-Frame-Options, CSP, X-Content-Type-Options, Referrer-Policy)\n  - CORS header probe on at least one authenticated endpoint\n  - Error disclosure probe (trigger a 404 and a malformed request; check for stack traces in response)\n  - Open redirect probe on known redirect\u002Fcallback parameters\n  - Sensitive file exposure (`\u002F.env`, `\u002F.git\u002Fconfig`, `\u002Fphpinfo.php`)\n  - GraphQL introspection probe (`{ __schema { types { name } } }`)\n  - Rate limit probe on login endpoint (10 rapid requests; check for 429 response)\n- If no URL is found, record the check as blocked and continue.\n- Skills: `runtime-surface-probing`\n\n### Step 4: synthesize-findings\n\nNormalise all evidence from steps 1–3 into structured findings:\n\n- **Dependency findings**: from lockfile audit and OSV results\n- **Module findings**: from doc and test coverage gaps (all 8 skill categories)\n- **Secret findings**: from secret scan and git history scan output\n- **Runtime findings**: from live-validation results (if available)\n\nAssign stable `PT-XXXX` IDs. Write a `finding-index.json` to `.paqad\u002Fpentest\u002Fruns\u002F\u003Crun_id>\u002F`.\n\n- Skills: `finding-normalizer`\n\n### Step 5: write-report\n\n- Write a Markdown report to `docs\u002Fpentest\u002F\u003Ctimestamp>.md`\n- Write a JSON sidecar to `docs\u002Fpentest\u002F\u003Ctimestamp>.json`\n- Include:\n  - Stack summary and capability profile\n  - **OWASP WSTG Coverage Matrix** (see template below)\n  - Ordered findings (critical → high → medium → low)\n  - Blocked checks with explanation\n  - Remediation priorities\n  - Methodology notes\n  - Link to the local attack playbook generated in Step 2.5\n\n#### OWASP WSTG Coverage Matrix Template\n\n| WSTG Category     | Test ID          | Description                       | Status            |\n| ----------------- | ---------------- | --------------------------------- | ----------------- |\n| WSTG-AUTHZ-04     | IDOR             | Insecure Direct Object Reference  | covered \u002F blocked |\n| WSTG-INPV-17      | SSRF             | Server-Side Request Forgery       | covered \u002F blocked |\n| WSTG-INPV-06      | Mass Assignment  | Broken Object Property Level Auth | covered \u002F blocked |\n| WSTG-SESS-10      | JWT              | JSON Web Token Security           | covered \u002F blocked |\n| WSTG-SESS-03      | Session Fixation | Session Fixation Attack           | covered \u002F blocked |\n| WSTG-ATHN-03      | Brute Force      | Testing for Account Lockout       | covered \u002F blocked |\n| WSTG-BUSL-01..12  | Business Logic   | Workflow abuse, race conditions   | covered \u002F blocked |\n| WSTG-CRYP-01..03  | Cryptography     | Weak encryption \u002F hashing         | covered \u002F blocked |\n| WSTG-INPV-13      | Rate Limiting    | Resource exhaustion \u002F DoS         | covered \u002F blocked |\n| WSTG-AUTHZ-01..11 | Authorization    | Privilege escalation suite        | covered \u002F blocked |\n| WSTG-ERRH-02      | Logging          | Security logging failures         | covered \u002F blocked |\n\n### Retest mode\n\nUse this mode for the `pentest-retest` workflow. It re-checks every finding of an earlier report against fresh evidence and keeps the original finding IDs. Progress is tracked in `.paqad\u002Fpentest\u002Fruns\u002F\u003Crun_id>\u002Fprogress.json` in the same way, and a step already marked `completed` with the same input hash is skipped.\n\n1. load-source-report: read the source sidecar named in the request and copy it to `.paqad\u002Fpentest\u002Fruns\u002F\u003Crun_id>\u002Fartifacts\u002Fsource-report.json`. Hand off to the `retest-verification` skill, which loads the source findings.\n2. rerun-evidence: run `pentest-retest.sh`, `pentest-audit-dependencies.sh`, `pentest-scan-secrets.sh` and `pentest-runtime-checks.sh` in parallel against the source report. Record a script that is unavailable in `blocked_checks` and continue.\n3. evaluate-source-findings: with `retest-verification`, give each source finding one status, `fixed`, `still-open` or `needs-manual-verification`, from the fresh evidence, and write `finding-index.json` to `.paqad\u002Fpentest\u002Fruns\u002F\u003Crun_id>\u002F`. A new gap that is not in the source report belongs in a separate report.\n4. write-report: write the retest report to `docs\u002Fpentest\u002Fretests\u002F\u003Ctimestamp>-\u003Csource>.md` and its JSON sidecar beside it, with the remediation priorities for every finding that is not fixed.\n\n## Output Contract\n\n- A pentest run writes `docs\u002Fpentest\u002F\u003Ctimestamp>.md` and the JSON sidecar `docs\u002Fpentest\u002F\u003Ctimestamp>.json`, with stable `PT-XXXX` finding IDs and the OWASP WSTG coverage matrix from Step 5.\n- The local attack playbook is `docs\u002Fpentest\u002F\u003Ctimestamp>-local-playbook.md`.\n- Run artefacts stay under `.paqad\u002Fpentest\u002Fruns\u002F\u003Crun_id>\u002F`.\n- A retest writes `docs\u002Fpentest\u002Fretests\u002F\u003Ctimestamp>-\u003Csource>.md` and its `.json` sidecar, and keeps the source finding IDs.\n\n## Escalate \u002F Stop Conditions\n\n- Never skip steps. If a script is unavailable, record it in `blocked_checks` and proceed.\n- Do not run destructive operations (no writes to the live database, no mutations via the API).\n- Always write both the `.md` report and the `.json` sidecar; downstream retest workflows depend on the sidecar.\n- The local attack playbook (Step 2.5) is **generated only**: never execute it automatically.\n- For a retest of an existing report, use the `pentest-retest` workflow instead, referencing the original sidecar path to preserve finding IDs.\n\n## Resources\n\n- Helper skills, in the order the Procedure calls them: `stride-threat-model`, `permission-boundary-review`, `business-logic-abuse-review`, `input-validation-review`, `auth-mechanism-review`, `cryptographic-review`, `logging-monitoring-review`, `rate-limiting-review`, `dependency-advisory-triage`, `runtime-surface-probing`, `finding-normalizer` and, for the Retest mode, `retest-verification`.\n- `references\u002Fhelper-map.md`: read it when you need to see which helper a step calls.\n- `agents\u002Fopenai.yaml`\n",{"name":5,"metadata":23,"description":7},{"cacheable":24,"model_tier":25,"paqad-meta":26,"output_format":27},"false","reasoning","skill.meta.yaml","markdown","main","793418e848ae0410573905284b68adcab385230e","runtime\u002Fcapabilities\u002Fsecurity\u002Fskills\u002Fpentest",0,"https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai","https:\u002F\u002Fpaqad.ai","https:\u002F\u002Fgithub.com\u002FEliyce","https:\u002F\u002Feliyce.com\u002F","AI delivery you can review. Dutch software company building software and AI agents. Makers of Paqad, the open-source AI delivery framework.","2026-11-13 04:41:45",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add Eliyce\u002Fpaqad-ai --skill pentest",{"tool":44,"command":45},"bunx","bunx skills add Eliyce\u002Fpaqad-ai --skill pentest",{"tool":47,"command":48},"pnpm","pnpm dlx skills add Eliyce\u002Fpaqad-ai --skill pentest","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai\u002Fblob\u002Fmain\u002Fruntime\u002Fcapabilities\u002Fsecurity\u002Fskills\u002Fpentest\u002FSKILL.md",true,[52,58,62],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"agents\u002Fopenai.yaml","REFERENCE","参考文档",124,"https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai\u002Fblob\u002Fmain\u002Fruntime\u002Fcapabilities\u002Fsecurity\u002Fskills\u002Fpentest\u002Fagents\u002Fopenai.yaml",{"path":59,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fhelper-map.md",1937,"https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai\u002Fblob\u002Fmain\u002Fruntime\u002Fcapabilities\u002Fsecurity\u002Fskills\u002Fpentest\u002Freferences\u002Fhelper-map.md",{"path":26,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":63,"sourceHtmlUrl":64},337,"https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai\u002Fblob\u002Fmain\u002Fruntime\u002Fcapabilities\u002Fsecurity\u002Fskills\u002Fpentest\u002Fskill.meta.yaml",[66,73,80,85,92,99],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M74FSCKQP6TACC8X8AZ19F4V","sample-skill","Sample bundled skill fixture","https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai\u002Fblob\u002Fmain\u002Ftests\u002Funit\u002Fadapters\u002Ffixtures\u002Fsample-skill\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M74FSAQ6C28V4G3322XGMARB","processing-invoices","Turns a supplier invoice into one ledger line. Use when a supplier invoice arrives and needs booking.","https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fauthoring\u002Fnpm-project\u002Fskill\u002FSKILL.md",[],[],{"skillNo":81,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M74FS914YQKWQNHC58MEG1N8","https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fauthoring\u002Flaravel-project\u002Fskill\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M74FS356J9QP10A362QRVCPZ","understand-idea","Chat and Claude Code: Step 1 of the discover journey: clarifies the goal, who benefits, success and constraints into the idea block. Use when the journey directs it to step 1, not directly.","https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai\u002Fblob\u002Fmain\u002Fruntime\u002Fclaude-plugin\u002Fskills\u002Funderstand-idea\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":18},"01M74FRSWEMB7KNVW0TP8P3JKB","size-work","Chat and Claude Code: Suggest a size for a ticket from comparable finished work, as a labelled suggestion the team still owns. Use it when someone asks \"how big is this?\", \"roughly how much work is ABC-12?\", or wants a backlog item sized. It finds the team's sizing scale at first use, picks two to five of the closest finished tickets with links, and gives a size or range with the drivers behind it and a confidence of low, medium or high, lowered and explained when the area's documents are template text. Every result is labelled a suggested size, never a date or a commitment. It writes nothing into the size field unless the user says \"set it\", and it refuses to overwrite an existing size unless the user asks to replace it. Produces the sizing block of the record.","https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai\u002Fblob\u002Fmain\u002Fruntime\u002Fclaude-plugin\u002Fskills\u002Fsize-work\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":18},"01M74FR9A9VPHW1NFAFYZMXE2H","refine-ticket","Chat and Claude Code: Improve one or more existing tracker tickets without losing the author's intent. Use it when someone wants a ticket read, diagnosed and tidied up (\"this ticket is vague\", \"fix up ABC-12\", \"split this, it's too big\"). It reads each ticket in full and snapshots it with its last-updated time, says what is wrong with evidence, and proposes a field-by-field before and after change set limited to summary, description, labels, parent, links and new child tickets on a split. It writes nothing until an explicit \"apply it\" bound to that exact change set, re-checks the ticket for conflicting edits just before writing, never replaces rich descriptions with plain text, never deletes or closes a ticket, and reads each ticket back after applying. Produces the existing and changes blocks of the record.","https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai\u002Fblob\u002Fmain\u002Fruntime\u002Fclaude-plugin\u002Fskills\u002Frefine-ticket\u002FSKILL.md",[],[]]