Challenge 32: Recompile from Source
Objective
Evade Rule 6 by recompiling malware from source — the resulting binary has a different hash even though the functionality is identical.
Prerequisites
Start the EDR with signatures loaded:
edr_agent.exe --signatures signatures/malware_hashes.txt --verbose --no-kill
Scanner Behavior
Rule 6 uses exact SHA256 matching. Two compilations of the same source code produce different hashes due to timestamps, compiler versions, optimization flags, and build paths embedded in the PE headers.
Rules
- Take any known malware source (e.g., Mimikatz, Rubeus)
- Recompile it from source with any compiler
- Run the recompiled binary — Rule 6 must not trigger
- The functionality should be identical to the original
MostShittyEDR