re-evasion

re-evasion is a skill for Claude Code from dslsdzc/rev-skills. It costs 59 tokens per session (3,354 once invoked), scanned A, original, Apache-2.0.

A Windows-focused guide for investigating how malware or tools avoid antivirus and endpoint detection, including memory-only execution and script-scanning bypasses.

In plain words
What is it for?
Use it to examine AMSI or ETW bypasses, fileless execution, and chains that abuse legitimate Windows tools. It is for defensive analysis, not ordinary static code review or writing detection rules.
Why use it?
It helps explain why security software detected something and where the evasion occurred. Analysis is performed with dynamic execution and memory evidence in an isolated sandbox.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to examine AMSI or ETW bypasses, fileless execution, and chains that abuse legitimate Windows tools. It is for defensive analysis, not ordinary static code review or writing detection rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dslsdzc/rev-skills/re-evasion
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-evasion
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-evasion

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-evasion"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-evasion.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,354 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00059 $0.03354
Opus 5 $0.00030 $0.01677
Sonnet 5 $0.00012 $0.00671
Haiku 4.5 $0.00006 $0.00335

Measured 11d ago against content hash e8dc91cbef43, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

re-evasion 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 11d 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-evasion/SKILL.md · 115 lines

How it starts

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

检测规避与 EDR 对抗分析

何时使用 / 何时不用

  • 用:恶意样本/工具被检测(杀软、EDR)后分析其规避手段——AMSI 绕过、ETW 禁用、无文件执行、lolbin 链
  • 用:回答"为什么被检测"与"绕过点在哪"(与检测侧对齐,步骤 5)
  • 用:无文件/内存载荷的执行链分析(载荷不落盘的样本)
  • 不用:纯静态代码分析(那是 [[re-binary-core]]);不关心绕过机制、只观察行为的动态分析(那是 [[re-behavior]])
  • 不用:检测规则编写本身(那是 [[re-ioc]] 的 YARA 与检测工程侧)
  • 注意:本技能以 Windows 为主(AMSI/ETW/lolbin 均为 Windows 概念);Linux/macOS 的类似对抗(ptrace 检测、Dyld 注入、kext 绕过)按同一"规避识别→绕过点定位"框架套用

工具准备

规避分析必须动态执行 + 内存取证:全程在沙箱内([[re-sandbox]] 强制前置,[[platform-tips]] 最高原则)。所有工具先验证再使用。

amsi.dll 内存对照 —— AMSI patch 定位主力(无独立安装包)

  • 原理: 磁盘 C:\Windows\System32\amsi.dll 与内存中的 amsi.dll 逐字节对照,函数头差异即 patch 点
  • 取内存拷贝: Sysinternals procdump(微软官网/winget install Microsoft.Sysinternals.Procdumpprocdump -accepteula -ma <pid> mem.dmp;或 [[re-memdump]](gcore/WSL)全量转储
  • 验证: 对未运行样本的场景用 AMSITrigger 兜底;对照脚本见步骤 2

AMSITrigger —— 定位触发 AMSI 扫描的字符串(Outflank 出品)

  • 下载: GitHub 检索 AMSITrigger(原 outflanknl 仓库已不可用,社区镜像常见,如 RythmStick/AMSITrigger);.NET 工具,解压即用
  • 验证: AMSITrigger.exe -i test.ps1 输出逐行触发状态(Detected / Not Detected)
  • 用途: 分析"脚本里哪些字符串触发检测"→ 对应混淆/规避目标

ETW 监控 —— logman / SilkETW / WPR / ETWConsumer 类工具

  • logman(Windows 内置): 验证 logman query providers | findstr /i sysmonlogman query -ets 看活动会话
  • SilkETW(Mandiant 开源,C#): GitHub releases 下载;验证: SilkETW.exe -t user -pn Microsoft-Windows-Sysmon -ot file -p out.etl 能生成 .etl
  • WPR(Windows Performance Recorder,内置): wpr -startwpr -stop out.etl
  • ETWConsumer 等第三方 ETW 消费者工具(GitHub 检索,按需);本机看 provider 的替代: tracerpt 解析 .etl
  • 用途: 确认 ETW 是否被禁——事件流中断/缺失即禁用证据(见步骤 3)

Sysmon / procmon —— 进程链与执行行为(lolbin 链追踪)

  • Sysmon(Sysinternals,微软官方): 配置含 ProcessCreate(事件 1,记录父子进程与命令行);验证: Get-WinEvent -FilterHashtable @{LogName='Microsoft-Windows-Sysmon/Operational';Id=1} | select -First 1
  • procmon(Sysinternals): 文件/注册表/进程/网络全量,可按进程树过滤;验证: procmon.exe /AcceptEula /Quiet 能启动
  • 二者均无发行版包,从微软官网/Sysinternals 下载

操作步骤

按顺序执行,每步产物(内存转储/ETL/日志/命令行走访记录)存档 sha256 + 路径([[re-ioc]] 证据链要求)。

  1. 规避手段识别(先分类再深入)
    • 输入: 样本/工具 + 检测触发信息(杀软告警、EDR 日志、沙箱告警)
    • 分类清单(按特征归档): AMSI 绕过(patch / 反射加载)、ETW 禁用(patch provider / 掩码)、无文件(内存执行 / 注册表运行键 + 远程脚本 / WMI)、lolbin 链(rundll32 / mshta / regsvr32 / WMI / PowerShell)、字符串编码混淆(防特征)
    • 证据采集: 沙箱内运行([[re-sandbox]])→ Sysmon/procmon 记录进程创建链与命令行;同时 [[re-memdump]] 留内存快照(默认转储优先,[[platform-tips]]「直读 vs 转储」);PowerShell 开启 ScriptBlock 日志(事件 4104)与模块日志
    • 先跑一遍不 patch 的基准样本确认"检测触发点"(见坑 5 与步骤 5 对齐)

Read the full file on GitHub · 115 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. 11d ago First seen · 115 lines · 59 tokens per session scan A e8dc91cbef43

Subscribe to this mod's changes

re-evasion is a skill published in the GitHub repository dslsdzc/rev-skills (52 stars, last pushed 12d ago), licensed Apache-2.0. It adds 59 tokens to every session and 3,354 once invoked, about $0.0003 per session on Opus 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-08-30.

Related

Other skills, from other repositories

analyzing-golang-malware-with-ghidra

Reverse engineer Go-compiled malware in Ghidra by parsing Go buildinfo and pclntab structures, recovering stripped/obfuscated function names (e.g. via GoResolver), and extracting embedded module/dependency strings and types from Go binaries. Use when analyzing a Go-language malware sample, deobfuscating a…

Youngmaidainon/Agent-Level-Up · 95 tokens

analyzing-golang-malware-with-ghidra

Reverse engineer Go-compiled malware in Ghidra by parsing Go buildinfo and pclntab structures, recovering stripped/obfuscated function names (e.g. via GoResolver), and extracting embedded module/dependency strings and types from Go binaries. Use when analyzing a Go-language malware sample, deobfuscating a…

mukul975/Anthropic-Cybersecurity-Skills · 95 tokens

Reverse Engineering & Binary Analysis

Binary analysis, assembly interpretation, disassembly, decompilation, firmware RE, and protocol reverse engineering.

Masriyan/Claude-Code-CyberSecurity-Skill · 26 tokens

analyzing-golang-malware-with-ghidra

Reverse engineer Go-compiled malware using Ghidra with specialized scripts for function recovery, string extraction, and type reconstruction in stripped Go binaries.

plurigrid/asi · 40 tokens

reverse-engineering-binaries-with-ghidra

Uses Ghidra to disassemble and decompile a binary, navigate to key routines via imports and strings, annotate decompiled code, and run headless scripts to automate extraction of C2, crypto, and config. Activates for requests to reverse engineer with Ghidra, decompile a binary, or script Ghidra headless analysis.

meltedinhex/analyst-ai-pack · 80 tokens

reverse-engineering-shellcode

Analyzes position-independent shellcode: disassembling raw bytes at the right architecture, recognizing PEB-walk API resolution and egg hunters, and emulating execution to recover behavior and payloads. Activates for requests to analyze shellcode, disassemble raw position-independent code, or emulate a shellcode blob.

meltedinhex/analyst-ai-pack · 68 tokens