Skip to content
Back to skills

Malware Analysis Internals

ASecurity

Use this skill when the user says 'anti-debugging techniques', 'unpack malware', 'API hooking internals', 'process injection detection', 'write YARA rules', 'EDR evasion telemetry'. Dissects malware behavior to produce IOCs, YARA rules, and EDR behavioral signatures. Defensive and educational only. Do NOT use for: authoring malware, reverse engineering of arbitrary software (use security/reverse-engineering), or detection-rule authoring (use security/detection-engineering).

  • 46 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 27, 2026
ai-agentsdebuggingapisecurity

Works with

  • api

Security analysis

A100/100

Scanned November 27, 2026

npx -y skills add j4flmao/agent-skills --skill malware-analysis-internals --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Malware Analysis Internals?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Malware Analysis Internals
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/j4flmao-malware-analysis-internals/badge)](https://www.skillsdirectory.com/skills/j4flmao-malware-analysis-internals)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: malware-analysis-internals
description: >
  Use this skill when the user says 'anti-debugging techniques', 'unpack malware', 'API hooking internals', 'process injection detection', 'write YARA rules', 'EDR evasion telemetry'. Dissects malware behavior to produce IOCs, YARA rules, and EDR behavioral signatures. Defensive and educational only. Do NOT use for: authoring malware, reverse engineering of arbitrary software (use security/reverse-engineering), or detection-rule authoring (use security/detection-engineering).
version: "1.0.0"
author: "j4flmao"
license: "MIT"
tags: [security, malware-analysis, yara, edr, iocs, defensive]
---

# Malware Analysis Internals

## Purpose
Explain how malware evades analysis (anti-debug, packers, injection, rootkit theory) so defenders can defeat those evasions and write IOCs, YARA rules, and EDR behavioral signatures. Analysis for defense; it does not author malicious code.

## Agent Protocol

### Trigger
User phrases: "anti-debugging techniques", "unpack malware", "api hooking internals", "rootkit stealth", "YARA rule concept".

### Input Context
- Sample family/behavior under analysis.
- Available sandbox/EDR telemetry.

### Output Artifact
Behavioral analysis plus defeat technique and YARA/IOC concepts.

### Response Format
```
Technique: {evasion}
How to defeat: {analysis countermeasure}
Detection: {YARA concept / telemetry}
```

> [!WARNING]
> **DISCLAIMER: EDUCATIONAL & DEFENSIVE PURPOSES ONLY**
> This skill is strictly for analyzing and dissecting malicious software to write IOCs (Indicators of Compromise), YARA rules, and update EDR behavioral signatures.

## 1. Skill Context
**Focus**: Anti-analysis tricks, packers/crypters, API hooking, process injection, rootkit theory.
**Triggers**: anti-debugging techniques, unpack malware, api hooking internals, rootkit stealth

## 2. Deep Dissection Mechanics
The agent must explain how malware authors attempt to evade detection and how to defeat those evasions.

### Anti-Debugging & Anti-VM
- **Environment Checks**: Malware querying `CPUID` for hypervisor bits, checking for specific MAC addresses (OUI), or looking for VMware/VirtualBox specific drivers and registry keys.
- **PEB (Process Environment Block)**: Manually traversing the PEB in assembly (e.g., `mov eax, fs:[30h]`) to check the `BeingDebugged` flag or the `NtGlobalFlag`, bypassing standard Windows API hooks on `IsDebuggerPresent()`.
- **Timing Attacks**: Using `rdtsc` (Read Time-Stamp Counter) to measure execution time. If execution takes too long, it assumes a human analyst is stepping through a debugger.

### Packers & Unpacking Theory
- **Mechanics**: The true payload is compressed/encrypted and packed inside a "stub". Upon execution, the stub allocates memory (`VirtualAlloc`), decrypts the payload into that memory, resolves necessary APIs, and jumps to the Original Entry Point (OEP).
- **Defeating Packers**: Setting hardware breakpoints (DR registers) on execution of the newly allocated memory regions, or dumping the process memory when `VirtualProtect` changes the region to `PAGE_EXECUTE_READ`.

### Rootkits & EDR Evasion
- **Direct System Calls (Syswhispers)**: Bypassing user-land EDR API hooks (e.g., hooked `NtAllocateVirtualMemory` in `ntdll.dll`) by manually pushing the syscall number into `EAX` and executing the `syscall` instruction directly, staying entirely under the radar of Ring-3 security tools.
- **Kernel-Level Evasion (Ring 0)**: DKOM (Direct Kernel Object Manipulation). Unlinking a malicious process from the `EPROCESS` active process links list, making it invisible to Task Manager and standard APIs while still receiving CPU cycles.

## 3. Output Format
- Provide the low-level API chains used by malware (e.g., `CreateToolhelp32Snapshot` -> `Process32First` -> `OpenProcess`).
- Explain how to bypass the anti-analysis trick (e.g., patching the binary, manipulating EFLAGS).
- Provide YARA rule concepts for the discussed behaviors.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.