Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/emre-guler/websec/prototype-pollutionnpx skills add emre-guler/websec --skill prototype-pollutiongit clone --depth 1 https://github.com/emre-guler/websecWhat 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 | $0.00082 | $0.05830 |
| Opus 5 | $0.00041 | $0.02915 |
| Sonnet 5 | $0.00016 | $0.01166 |
| Haiku 4.5 | $0.00008 | $0.00583 |
Grade A, and why
prototype-pollution scanned grade A with 1 finding 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 2d 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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
| Node.js gadgets | `child_process` spawn/fork/exec/exec-sync option objects; template engine options; module and path resolution options; response formatting options; error-shaping helpers | any object literal passed as How it starts
The opening of the file, as written. The whole thing — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Prototype Pollution Detection
Overview
Prototype pollution is a JavaScript flaw in which an attacker adds or overwrites a property on a shared object prototype — nearly always the base object prototype every plain object inherits from — so that objects which never defined that property silently appear to have it. It sits wherever request data is parsed into an object and then recursively merged, cloned, or written by key path into an existing object: the key __proto__, or a constructor then prototype step, redirects the write from the target onto the prototype. The attacker is anyone who controls such input — a query string, a fragment, a request body, a stored configuration blob. Pollution alone is usually inert; it becomes a vulnerability when some later code reads a property it expects to be absent or defaulted, which is the gadget. In a browser that typically produces script execution in the victim's page; in a server process the polluted value persists for the life of the process and can flip an authorization flag every request afterwards or supply option fields to a child-process call. This skill finds such flaws by locating every source, unsafe write, and reachable gadget, checking each site in parallel, and merging the results into <output_dir>/prototype-pollution-results.md.
What it is NOT
- Ordinary DOM-based scripting (
/websec:dom-based): if input flows directly from a browser source into a sink, that is regular DOM scripting. Test: is the value at the sink controllable because it is inherited rather than set as an own property? Only then is it this class. - Reflected or stored scripting (
/websec:xss): server-rendered or stored payloads reaching HTML output belong there. Here the payload arrives through the prototype chain of a configuration or options object. - Mass assignment and parameter binding (
/websec:api): setting an own property on the target object — bindingisAdminstraight onto a record — is mass assignment. Pollution writes to the shared prototype and only matters when the target lacks its own property. - Insecure deserialization (
/websec:deserialization): both let input reshape objects, but this class involves no serialized object graph, no class instantiation from the input, and no lifecycle hooks. Test: is there a native object reader in the path? - Access control (
/websec:access-control): a server-side gadget that grants privilege is reported here as pollution; note the missing server-side re-derivation of role for that skill. - Command injection (
/websec:os-command-injection): a handler that concatenates input into a shell string belongs there. Here the command arguments or options arrive as inherited fields of an options object the developer left partly undefined. - Not a finding: an unsafe merge with no reachable gadget — the ability to set a prototype property that nothing ever reads unsafely is a hardening gap, not an exploitable flaw, and should be recorded as such with its reachability stated; map-like data built with a null-prototype object or a real map, where a
__proto__key is inert; a merge whose inputs are entirely server-generated; a dependency listed as vulnerable but never fed user-controllable objects.
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.
- 2d ago First seen · 165 lines · 82 tokens per session scan A 8ecac87e1640
prototype-pollution is a skill published in the GitHub repository emre-guler/websec (2 stars, last pushed 5d ago), licensed MIT. It adds 82 tokens to every session and 5,830 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
vantage
Autonomous, artifact-driven SAST (Static Application Security Testing) for web AND mobile app repositories, plus optional code-level remediation. Use whenever the user asks to security-review, pentest, audit, or scan a codebase for vulnerabilities — web (SQLi, XSS, IDOR/BOLA, auth bypass, SSRF, XXE, hardcoded secrets…
prowler-ui
Prowler UI-specific patterns. For generic patterns, see: typescript, react-19, nextjs-16, tailwind-4. Trigger: When working inside ui/ on Prowler-specific conventions (shadcn, folder placement, actions/adapters, shared types/hooks/lib).
prowler-test-api
Testing patterns for Prowler API: JSON:API, Celery tasks, RLS isolation, RBAC. Trigger: When writing tests for api/ (JSON:API requests/assertions, cross-tenant isolation, RBAC, Celery tasks, viewsets/serializers).
prowler-pr
Creates Pull Requests for Prowler following the project template and conventions. Trigger: When working on pull request requirements or creation (PR template sections, PR title Conventional Commits check, changelog gate/no-changelog label), or when inspecting PR-related GitHub workflows like conventional-commit.yml…
tailwind-4
Tailwind CSS 4 patterns and best practices. Trigger: When styling with Tailwind (className, variants, cn()), especially when dynamic styling or CSS variables are involved (no var() in className).
prowler-docs
Prowler documentation style guide and writing standards. Trigger: When writing documentation for Prowler features, tutorials, or guides.