defensive-shellcode

Detect shellcode in memory using YARA rules and KQL telemetry.

1|Updated Apr 27, 2026
One-click install
npx skills add https://github.com/riparino/Claude-Cyber --skill defensive-shellcode
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: defensive-shellcode
Source: https://github.com/riparino/Claude-Cyber/tree/main/Claude-Blue/Skills/defensive-shellcode
Command: npx skills add https://github.com/riparino/Claude-Cyber --skill defensive-shellcode

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Memory-based shellcode detection and rapid identification of loader artifacts to accelerate DFIR workflows across endpoints.

Core Features & Use Cases

  • YARA-based memory scanning for shellcode indicators (NOP sleds, beacon markers, and loader patterns).
  • KQL telemetry for MDE focusing on remote thread creation and PowerShell-based VirtualAlloc usage.
  • Memory forensics guidance for SOC triage and incident response across Windows systems.

Quick Start

Load the defensive-shellcode skill and apply the YARA rules to the target process memory to begin detection.

Frequently Asked Questions about defensive-shellcode

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect shellcode in memory during incident response?

Detect shellcode in memory by applying YARA rules to target process memory to identify indicators like NOP sleds, beacon markers, and loader patterns. This accelerates forensic triage and incident response workflows across Windows endpoints.

Can I use KQL to find shellcode indicators in Microsoft Defender for Endpoint?

Yes, you can use KQL telemetry for MDE to query for shellcode indicators. It specifically focuses on detecting remote thread creation and PowerShell-based VirtualAlloc usage to identify malicious memory allocation behavior.

What is memory forensics for SOC triage and when do I need it?

Memory forensics for SOC triage is the analysis of process memory to identify malware patterns. You need it during incident response to detect memory-based shellcode and rapidly identify loader artifacts that traditional disk scanning misses.

How do I scan process memory for loader artifacts using YARA?

To scan process memory for loader artifacts, load the defensive-shellcode skill and apply the provided YARA rules directly to the target process memory. This scans for specific shellcode indicators to begin the detection process.

Does this memory detection approach work across Windows endpoints?

Yes, this memory detection approach applies to incident response workflows across Windows endpoints. It leverages YARA-based memory scanning and KQL telemetry to comprehensively detect shellcode and common malware patterns.