Antivirus
Meterpreter
We can set "EnableStageEncoding" to true and StageEncoder to "x64/zutto_dekiru" on a Meterpreter payload, this way the 2nd stage will be encrypted and encoded.
Detect Function Emulation
Sleep Timing
Some AV fast forward through sleep timers to speed up analysis (via function emulation). We can abuse this behavior by measuring the time between start and end of a Sleep, in case it is a lot faster than expected we can just exit.
VirtualAllocExNuma
If the API is emulated, it will not return a valid address:
Some other methods where this technique works: FlsAlloc.
Last updated