There are multiple ways that malware can detect and evade behavioral analysis tools, such as ProcMon, Wireshark, API hooking tools, and so on, even if they don't directly debug the malware or interact with it. In this section, we will talk about two common ways in which malware detects and evades behavioral analysis tools.
Detecting and evading behavioral analysis tools
Finding the tool process
One of the simplest and most common ways malware deals with malware-analysis tools (and antivirus tools as well) is to loop through all the running processes and detect any unwanted processes. Then, it is possible to either terminate it or to stop its execution to avoid further analysis.
In Chapter 4, Inspecting Process Injection and...