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 skills add UnboundCompute/security-agent-skills --skill hunting-php-object-injection-pop-chainsgit clone --depth 1 https://github.com/UnboundCompute/security-agent-skillsWrote 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/unboundcompute/security-agent-skills/hunting-php-object-injection-pop-chains)<a href="https://agentmods.dev/skills/unboundcompute/security-agent-skills/hunting-php-object-injection-pop-chains"><img src="https://agentmods.dev/badge/skills/unboundcompute/security-agent-skills/hunting-php-object-injection-pop-chains/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/unboundcompute/security-agent-skills/hunting-php-object-injection-pop-chains"><img src="https://agentmods.dev/badge/skills/unboundcompute/security-agent-skills/hunting-php-object-injection-pop-chains.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.00165 | $0.02019 |
| Opus 5.5 | $0.00066 | $0.00808 |
| Sonnet 5.5 | $0.00033 | $0.00404 |
| Haiku 4.5 | $0.00016 | $0.00202 |
Grade A, and why
hunting-php-object-injection-pop-chains 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 134 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Hunting PHP object injection and POP chains: when a string rebuilds into an attack
PHP object injection follows the same shape as Java gadget chains but through a different trigger. When
unserialize runs on attacker-controlled data, it reconstructs arbitrary objects of any class already
loaded, and PHP's magic methods, __wakeup, __destruct, __toString, __call, run automatically
during or shortly after reconstruction. A property-oriented programming chain stitches these methods
across ordinary classes so that reconstruction alone drives a file write, a system command, or a query.
The same trigger hides inside phar:// stream handling: a filesystem function given an attacker-chosen
path deserializes the archive's metadata without any explicit unserialize call. You find these by
locating every deserialization trigger, explicit or implicit, and asking which loaded classes carry a
magic method that starts a chain.
When to use
- A PHP application calls
unserializeon request data, a cookie, a cache entry, or a stored value. - A filesystem function receives an attacker-influenced path that could carry a
phar://wrapper. - Application or library classes define magic methods with side effects that a chain could reach.
Scope check
Test object injection only against applications you own or are authorized to assess, on non-production data. A confirming chain runs a side effect on the target, a file write or a command, so treat each proof as a live intrusion within the authorized scope. If you can't name the authorization, stop.
The loop
- Establish the deserialization triggers first. Inventory every
unserializeon untrusted data and every filesystem call,file_exists,fopen,md5_file,getimagesize, and their siblings, that takes a path an attacker can steer into aphar://wrapper. This is the false-positive killer: a magic-method chain is inert unless one of these triggers fires on attacker input. Name the triggers, then look for chains.
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.
- 1mo ago First seen · 134 lines · 165 tokens per session scan A f45c57ebfe19
hunting-php-object-injection-pop-chains is a skill published in the GitHub repository UnboundCompute/security-agent-skills (5 stars, last pushed 1mo ago), licensed MIT. It adds 165 tokens to every session and 2,019 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.
Other skills, from other repositories
prodcheck-review
Review this codebase against the prodcheck pre-production checklists — security, performance, scale, integrations, post-launch readiness and people. Use when asked to check whether a project is ready to ship, to audit an area before launch, or to work through a specific checklist. Produces evidence with file:line…
swiftui-expert-skill
Write, review, or improve SwiftUI code following best practices for state management, view composition, performance, macOS-specific APIs, and iOS 26+ Liquid Glass adoption. Use when building new SwiftUI features, refactoring existing views, reviewing code quality, or adopting modern SwiftUI patterns.
laravel-expert
Laravel & PHP Development Instructions for GitHub Copilot.
kirby-ide-support
Improves IDE autocomplete and static analysis in Kirby projects with PHPDoc hints and Kirby IDE helper generation. Use when types are missing or IDE support is degraded.
sc-lang-php
PHP-specific security deep scan.
php-testing
PHPUnit and Pest patterns for any PHP project: test structure, naming, data providers, test doubles (mocks/stubs/fakes), fixtures, and coverage targets. Stack-agnostic — referenced by every PHP plugin in the marketplace. Use this skill to: Structure unit and integration tests with PHPUnit or Pest consistently. Drive…