Last updated: April 29, 2026
Defender perspective on red-team payload development. Modern AV/EDR catches commodity payloads; serious red teams build custom.
Layers of evasion
- Loader — small program that decrypts/decompresses real payload
- Shellcode encoding — XOR, custom crypto, polymorphism
- API resolution at runtime — don’t import suspicious functions in IAT
- Sleep + jitter — long sleeps between actions to defeat memory scanners
- Direct syscalls — bypass user-mode hooks
- Process hollowing / herpaderping — execute in legitimate process context
Anti-analysis
- Sandbox detection — VM artifacts, sleep skip detection
- Debugger detection — IsDebuggerPresent, NtQueryInformationProcess
- Time bombs — execute only after delay (defeats short sandbox runs)
Defender
Memory-scanning EDR catches in-memory payloads regardless of disk evasion. Behavioural detection catches “legitimate process suddenly making outbound connection to anomalous IP.”
Module Quiz · 5 questions
Pass with 80%+ to mark this module complete. Unlimited retries. Each question shows an explanation.
Custom team training + practitioner advisory
Beyond the free academy — we run private workshops, vCISO advisory, and red-team exercises tailored to your stack. For Indian SMBs scaling past their first hire.