av-edr-evasion

Compile custom C and Go payloads to bypass antivirus and EDR detection.

253|37|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/blacklanternsecurity/red-run --skill av-edr-evasion
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: av-edr-evasion
Source: https://github.com/blacklanternsecurity/red-run/tree/main/skills/evasion/av-edr-evasion
Command: npx skills add https://github.com/blacklanternsecurity/red-run --skill av-edr-evasion

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps penetration testers bypass antivirus and Endpoint Detection and Response (EDR) systems that block or quarantine malicious payloads during authorized security engagements.

Core Features & Use Cases

  • Custom Payload Compilation: Generates custom DLLs and EXEs using Mingw-w64 or Go to evade signature-based detection.
  • AMSI Bypass: Implements techniques to circumvent the Antimalware Scan Interface for PowerShell and script execution.
  • Alternative Execution: Leverages LOLBins (Living Off The Land Binaries) and other methods to execute payloads when direct execution is blocked.
  • ETW Patching: Reduces telemetry to evade detection by Event Tracing for Windows.
  • Use Case: An attacker's initial payload was detected and quarantined by Windows Defender. This Skill can be used to recompile the payload as a custom DLL that bypasses Defender, allowing for continued exploitation.

Quick Start

Use the av-edr-evasion skill to compile a custom DLL payload that bypasses Windows Defender.

Frequently Asked Questions about av-edr-evasion

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

FAQPage Schema
How do I bypass Windows Defender antivirus detection for a quarantined payload?

Bypass Windows Defender by recompiling your payload as a custom DLL or EXE using C or Go. This evasion technique avoids signature-based detection by generating unique binaries during offensive security operations.

How does patching ETW help evade EDR detection mechanisms?

Patching Event Tracing for Windows reduces system telemetry to evade EDR detection. By patching ETW, you minimize the behavioral logs that Endpoint Detection and Response systems rely on to flag malicious payload execution.

What is an AMSI bypass for PowerShell script execution?

An AMSI bypass circumvents the Antimalware Scan Interface to enable unrestricted PowerShell script execution. This evasion technique prevents Windows from scanning and blocking malicious script content before it runs in memory.

Can I use LOLBins for alternative payload execution when direct execution is blocked?

Yes, you can leverage Living Off The Land Binaries for alternative payload execution. LOLBins allow you to execute payloads using trusted, native Windows system utilities to bypass restrictions that block direct execution.

Do I need Mingw-w64 or Go to compile custom payloads for AV evasion?

You need Mingw-w64 or Go to compile custom payloads for AV evasion. These compilers generate unique DLL and EXE binaries from C or Go source code, effectively bypassing signature-based antivirus and EDR detections.

What are the limitations of custom payload compilation against behavioral EDR detections?

Custom payload compilation primarily evades signature-based detections but may not bypass behavioral EDR systems. To evade behavioral analysis, combine custom compilation with AMSI bypasses and ETW patching to reduce Windows telemetry.