hunt-deserialization SKILL.md skillA
hunt-deserialization from galact-byte/galact-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add galact-byte/galact-skills/hunt-deserialization@git:20260806.1b94651Pins git:20260806.1b94651 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- galact-byte/galact-skills
- Path
skills/hunt-deserialization/SKILL.md- Versions recorded
- 1
- Latest version
- git:20260806.1b94651, committed Aug 6, 2026
- Size
- 4,150 bytes
- Repository stars
- 7
- License
- a license file GitHub does not identify
在授权渗透测试中挖掘不安全反序列化(insecure deserialization)。当目标把用户可控数据交给 unserialize/Marshal/pickle/ObjectInputStream/BinaryFormatter/YAML.load 等还原成对象时使用——典型场景:cookie/token/viewstate/隐藏字段里出现序列化数据、导入文件触发对象还原、想借 gadget chain 拿 RCE。适用目标类型 Web / REST API(PHP/Ruby/Python/Java/.NET)。触发场景包括用户说"测下反序列化""这个 cookie 是不是序列化对象""能不能 gadget chain 打 RCE""phar/Marshal/pickle 打一下"。输出:识别出的序列化落点 + gadget 可用性判定 + 带外/回显证据的 finding(含 killed 记录)。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# hunt-deserialization · 不安全反序列化猎杀 只解决**不安全反序列化一类**:识别"用户可控数据被还原成对象"的落点,判断序列化格式与是否有可用 gadget chain。核心是先靠**格式指纹**定位落点,再用**带外/时序**探可达性,gadget 利用谨慎且授权后做。 反序列化 gadget 直达 RCE,破坏性极高。默认只做**格式识别 + 带外探测**(不投放破坏性 gadget),完整 RCE 利用仅在 scope 明确授权时进行。格式指纹、各语言 gadget 与真实报告见 `reference.md`。 ## Scope(授权范围) **先确认授权。** gadget PoC 可能在目标执行代码。 落实:授权目标、允许深度(仅识别/带外探测 / 允许 gadget PoC)、OAST 地址、禁止破坏性/持久化 gadget。任一不清楚就停下问。 ## Goal 判定用户可控数据是否进入不安全反序列化,识别语言/格式,给出可复现 PoC 与影响(RCE / 对象注入 / 认证绕过),并留存带外命中或回显证据。 ## Workflow `scope-check → recon → hunt → validate → report`。 ### 1. scope-check - **动作**:写 `evidence/scope.txt`(allow_gadget / oast_domain)。 - **命令**:`bash tools/recon.sh <target> --scope-only`。 - **终止条件**:scope 明确,否则 KILL。 ### 2. recon - **动作**:枚举 cookie/token/viewstate/隐藏字段/导入功能,抓取其值做**格式指纹**(见 `reference.md`)。 - **输出**:`recon/endpoints.json`。 - **命令**:`bash tools/recon.sh <target>`。 - **终止条件**:至少 1 个疑似序列化落点,否则记录结束。 ### 3. hunt - **动作**:对落点用 `tools/hunt_deser.py` 判定格式(PHP `O:`/Java `rO0`/pickle/.NET/YAML),并发**无害带外探针**(能触发外呼的最小 gadget,如 PHP `phar`/Ruby URI gadget 打 OAST)判可达性。 - **输出**:`candidates.json`。 …
Read the whole file at its exact version.
How to install
mdr add galact-byte/galact-skills/hunt-deserialization@sha256:05f4b5a3fb8e3b08The line at the top of this page pins the label git:20260806.1b94651, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_jpj6m24r2brnmxlu)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Aug 6, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (4150 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
galact-byte/galact-skills · 7 stars · license a license file GitHub does not identify · pushed 2026-10-12 · branch master
API
GET https://markdownregistry.com/api/v1/artifacts/art_jpj6m24r2brnmxlu GET https://markdownregistry.com/api/v1/resolve?ref=galact-byte/galact-skills/hunt-deserialization GET https://markdownregistry.com/api/v1/blob/05f4b5a3fb8e3b086ddc7d23f6de0c4efda73a7a44133db6b52e1b39e7808178
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from galact-byte/galact-skills
Every file in galact-byte/galact-skills