hunting-server-side-prototype-pollution

hunting-server-side-prototype-pollution is a skill for Claude Code from UnboundCompute/security-agent-skills. It costs 171 tokens per session (2,059 once invoked), scanned A, original, MIT.

A security review for server-side prototype pollution in JavaScript and TypeScript services. This bug occurs when untrusted input changes shared object defaults, affecting later property reads.

In plain words
What is it for?
Use it to inspect request parsers, deep merges, clones, and path-based assignments for exploitable prototype changes.
Why use it?
It connects unsafe input handling to the later code that could be changed by the injected value, rather than treating the initial write as the whole problem.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the security-agent-skills plugin — 194 skills shipped together

Good fit Use it to inspect request parsers, deep merges, clones, and path-based assignments for exploitable prototype changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/unboundcompute/security-agent-skills/hunting-server-side-prototype-pollution
Install

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.

Any agent
npx skills add UnboundCompute/security-agent-skills --skill hunting-server-side-prototype-pollution
Clone the repo
git clone --depth 1 https://github.com/UnboundCompute/security-agent-skills

Made for: Claude Code.

Or install security-agent-skills, the plugin that ships this one along with the rest of its 194 skills.

Wrote 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.

agentmods badge for hunting-server-side-prototype-pollution

README.md
[![agentmods](https://agentmods.dev/badge/skills/unboundcompute/security-agent-skills/hunting-server-side-prototype-pollution/github.svg)](https://agentmods.dev/skills/unboundcompute/security-agent-skills/hunting-server-side-prototype-pollution)
Your own site
<a href="https://agentmods.dev/skills/unboundcompute/security-agent-skills/hunting-server-side-prototype-pollution"><img src="https://agentmods.dev/badge/skills/unboundcompute/security-agent-skills/hunting-server-side-prototype-pollution/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.

agentmods 80×15 button for hunting-server-side-prototype-pollution

Your own site · 80×15
<a href="https://agentmods.dev/skills/unboundcompute/security-agent-skills/hunting-server-side-prototype-pollution"><img src="https://agentmods.dev/badge/skills/unboundcompute/security-agent-skills/hunting-server-side-prototype-pollution.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 171 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,059 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00171 $0.02059
Opus 5.5 $0.00068 $0.00824
Sonnet 5.5 $0.00034 $0.00412
Haiku 4.5 $0.00017 $0.00206

Measured 3mo ago against content hash 34001dd188bb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

hunting-server-side-prototype-pollution scanned grade A with 0 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 3mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/hunting-server-side-prototype-pollution/SKILL.md · 137 lines

How it starts

The opening of the file, as written. The whole thing — 137 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Hunting server-side prototype pollution: when one request changes every object

In JavaScript, every plain object inherits from Object.prototype, so writing to that shared prototype changes the default value of a property on every object in the process. Server-side prototype pollution happens when untrusted input carries a __proto__, constructor, or prototype key into a recursive merge, a deep clone, or a path-based set that follows the key down to the prototype. The write by itself is a primitive; the impact comes later, when some other code reads a property that was never set and now returns the attacker's injected default. That gadget read can flip an authorization flag, inject an argument into a spawned command, or change a template or query. You find it by locating the pollution primitives and then the gadget reads they enable.

When to use

  • A Node.js or server-side TypeScript service merges, clones, or path-assigns untrusted structured input.
  • A parser or utility recurses into keys from a request body, query string, or JSON document.
  • Later code reads object properties that may be unset, where an injected default would change behavior.

Scope check

Test prototype pollution only against services you own or are authorized to assess, on non-production infrastructure. Pollution is process-wide and can affect concurrent requests, so treat every confirming write as a change to shared state within the authorized scope, and prefer an isolated instance. If you can't name the authorization, stop.

The loop

  1. Establish the pollution primitives first. Inventory every operation that could write an attacker-controlled key down to the prototype: recursive or deep merges, deep clones, path-based setters that split a dotted or bracketed path, and body or query parsers that build nested objects. This is the false-positive killer: without a primitive that reaches __proto__ or constructor.prototype, an isolated gadget read is not exploitable. Name the primitives first.

Read the full file on GitHub · 137 lines

Changes

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.

  1. 3mo ago First seen · 137 lines · 171 tokens per session scan A 34001dd188bb

Subscribe to this mod's changes

hunting-server-side-prototype-pollution is a skill published in the GitHub repository UnboundCompute/security-agent-skills (28 stars, last pushed 2mo ago), licensed MIT. It adds 171 tokens to every session and 2,059 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

hunting-server-side-prototype-pollution compared with skills from other repositories

hunting-server-side-prototype-pollution next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hunting-server-side-prototype-pollutionUnboundCompute/security-agent-skillsSkill282mo agoMITA171Claude Code
conducting-api-security-testingxalgorix/xalgorixSkill1.6kyesterdayApache-2.0A99Claude Code, Codex
jwt-security-testingxalgorix/xalgorixSkill1.6kyesterdayApache-2.0A33Claude Code, Codex
pentesting-ajpxalgorix/xalgorixSkill1.6kyesterdayApache-2.0A73Claude Code, Codex
api-authentication-sessionxalgorix/xalgorixSkill1.6kyesterdayApache-2.0A48Claude Code, Codex
graphql-api-securityxalgorix/xalgorixSkill1.6kyesterdayApache-2.0A36Claude Code, Codex
grpc-api-securityxalgorix/xalgorixSkill1.6kyesterdayApache-2.0A29Claude Code, Codex