re-sample-acquire

re-sample-acquire is a skill for Claude Code from dslsdzc/rev-skills. It costs 178 tokens per session (4,184 once invoked), scanned A, original, Apache-2.0.

A live malware-sample collection workflow for cases where suspicious code is running but no usable file exists on disk. It extracts evidence from a process's memory and execution context, with different methods for Windows, Linux, macOS, and seL4.

In plain words
What is it for?
Use it to locate suspicious executable memory, connect it to threads or other execution context, dump a sample, or investigate injected software and kernel-level payloads.
Why use it?
It addresses fileless or injected activity that ordinary file collection cannot capture. The platform-specific paths help avoid applying the wrong memory-observation method.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to locate suspicious executable memory, connect it to threads or other execution context, dump a sample, or investigate injected software and kernel-level payloads.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dslsdzc/rev-skills/re-sample-acquire
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 dslsdzc/rev-skills --skill re-sample-acquire
Clone the repo
git clone --depth 1 https://github.com/dslsdzc/rev-skills

Made for: Claude Code.

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 re-sample-acquire

README.md
[![agentmods](https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-sample-acquire/github.svg)](https://agentmods.dev/skills/dslsdzc/rev-skills/re-sample-acquire)
Your own site
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-sample-acquire"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-sample-acquire/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 re-sample-acquire

Your own site · 80×15
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-sample-acquire"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-sample-acquire.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 178 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,184 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.00178 $0.04184
Opus 5.5 $0.00071 $0.01674
Sonnet 5.5 $0.00036 $0.00837
Haiku 4.5 $0.00018 $0.00418

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

Security

Grade A, and why

re-sample-acquire 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 2mo 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.

.claude/skills/re-sample-acquire/SKILL.md · 142 lines

How it starts

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

样本现场采集(从现象到可用样本)

任务分类器(intent → 路径)

用户目的 路径
只有现象描述("某程序不落盘""行为异常"),没有样本文件 → 步骤 1(异常执行区扫描)→ 2(执行上下文归属)→ 4(dump 整区)
已知进程,但磁盘上没有样本文件(注入/内存驻留) → 步骤 2 → 4
服务端常驻载荷(Web 中间件/Java 等,请求触发) → 平台分支的"服务端"节(内存马)
载荷疑似驱动/内核态(读写内存类外挂/rootkit) → [[platform-windows]] 内核侧
嵌入式/微内核目标(seL4 系统) → [[platform-sel4]](capability provenance 路线)
有回连/下载行为,想拿原始样本 → 步骤 7(网络与落盘侧)

入口判定(Decision Gate)—— 平台 × 形态

现场采集
├─ 已有样本文件(磁盘上有)→ 不需要本技能,直接 [[re-triage]] 初勘
├─ Windows 目标 → [[platform-windows]](VAD/region + 线程 + 模块链 + ETW/Sysmon)
├─ Linux 目标   → [[platform-linux]](VMA + mmap/mprotect 追踪 + process_vm_readv)
├─ macOS 目标   → [[platform-macos]](Mach task VM + Endpoint Security)
├─ seL4 目标    → [[platform-sel4]](capability/VSpace 审计,不是"扫描进程")
└─ 不知平台/跨平台 → 先按步骤 1 的平台无关判据走,再进对应分支

平台观测模型不同,方法不能机械翻译(下表是各分支的分工,不是同义替换):

平台 观测对象 事件源(trigger) 读取(ground truth) 权限模型
Windows 进程 VAD/region + 线程 + 模块链 Sysmon 8/10/25、ETW(含 Threat-Intelligence)、内核回调 VirtualQueryEx / ReadProcessMemory / PE-sieve 管理员 + 调试权限
Linux 进程 VMA(/proc/<pid>/maps) tracepoint/kprobe、BPF LSM(file_mprotect 等 hook) process_vm_readv() / ptrace / gcore ptrace access check(含 Yama)
macOS Mach task + VM region Endpoint Security(MMAP/MPROTECT/REMOTE_THREAD_CREATE/GET_TASK) mach_vm_read / mach_vm_read_overwrite(需 task port) SIP / Hardened Runtime / task port 授权
seL4 capability(VSpace / frame / TCB) fault endpoint + 系统构造期记录 无 capability 即无访问权 capability 制(不存在"root 全读"模型)

何时使用 / 何时不用

  • 用:分析目标没有可分析的文件——只有现象(不落盘、内存驻留、寄生在别的进程里),需要先把它变成"能分析的样本"
  • 用:载荷只在内存、时机很短(一次性解密、用后自清除、缓冲复用)
  • 适用场景(不限外挂):无文件恶意软件 / 反射加载载荷 / 内存马(服务端)/ APT 内存驻留 / 勒索与窃密的前置加载阶段 / 游戏外挂(用户态与驱动)/ 微内核与嵌入式系统上的未授权可执行页
  • 不用:已有样本文件([[re-triage]]);整机镜像取证([[re-mem-forensics]],离线镜像的 malfind 式排查属那边);设备备份解析([[re-mobile-forensics]]);"给定 PID 怎么转储"([[re-memdump]])
  • 授权边界(红线):只对自有或已获书面授权的设备/系统采集(RE_AUTH = owned / research)。采集动作本身(枚举、hook、读内存、dump、加载监控组件)痕迹明显,会触发反作弊 / EDR / 业务监控;生产环境或他人设备上执行属越权,先确认授权与停止条件
  • 边界:本技能只做采集,不做对目标检测系统的隐匿(隐匿属 [[re-evasion]] 域,且仅限授权场景)

Read the full file on GitHub · 142 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago First seen · 142 lines · 178 tokens per session scan A c6c49bc89868

Subscribe to this mod's changes

re-sample-acquire is a skill published in the GitHub repository dslsdzc/rev-skills (275 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 178 tokens to every session and 4,184 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-13.

Related

re-sample-acquire compared with skills from other repositories

re-sample-acquire next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
re-sample-acquiredslsdzc/rev-skillsSkill2751mo agoApache-2.0A178Claude Code
deobfuscating-powershell-obfuscated-malwareYoungmaidainon/Agent-Level-UpSkill43mo agoMITA90Claude Code, Codex
conducting-malware-incident-responseYoungmaidainon/Agent-Level-UpSkill43mo agoMITA78Claude Code, Codex
analyzing-golang-malware-with-ghidraMikaru0Mystic/sectinelSkill135mo agoApache-2.0A40Claude Code
analyzing-golang-malware-with-ghidraYoungmaidainon/Agent-Level-UpSkill43mo agoMITA95Claude Code, Codex
analyzing-network-covert-channels-in-malwareYoungmaidainon/Agent-Level-UpSkill43mo agoMITA90Claude Code, Codex
analyzing-heap-spray-exploitationYoungmaidainon/Agent-Level-UpSkill43mo agoMITA46Claude Code, Codex