Skip to content
Threat Feed
medium advisory

Detection of DLL Sideloading Targeting Antivirus Software

This brief provides detection logic for identifying potential DLL sideloading attempts that leverage legitimate antivirus software components to achieve persistence or privilege escalation.

DLL sideloading remains a persistent technique used by adversaries to execute malicious code within the context of trusted applications. By placing a malicious DLL with the same name as a legitimate library expected by an application, attackers can force the application to load the malicious file, often leading to code execution with the permissions of the host process. This intelligence focuses on the abuse of common DLLs associated with widely deployed antivirus and endpoint protection suites, such as McAfee, Avast, ESET, and CyberArk. Because these applications are often trusted by security policy and possess high system privileges, they are prime targets for sideloading to gain stealthy persistence or elevate privileges. Defenders should monitor image load events to identify instances where these specific DLLs are loaded from unauthorized directories.

Attack Chain

  1. Attacker performs reconnaissance to identify vulnerable applications on the target host.
  2. Attacker obtains the file path of a legitimate application that relies on specific DLLs.
  3. Attacker crafts a malicious DLL that exports the same functions as the target legitimate library.
  4. Attacker writes the malicious DLL to a directory where the target application will search for it, or overwrites an existing DLL.
  5. Attacker executes the target legitimate application process (e.g., an antivirus service or binary).
  6. The target application initiates an image load request and resolves the malicious DLL instead of the legitimate one.
  7. The operating system loads the malicious code into the process memory, executing the attacker payload with elevated process privileges.

Impact

Successful exploitation allows for stealthy execution of malicious code, potential bypassing of endpoint security controls, privilege escalation, and persistent access to the compromised host.

Recommendation

  • Deploy the provided Sigma rule for image_load event monitoring to detect unauthorized loading of antivirus-related DLLs.
  • Establish a baseline of legitimate paths for these specific DLLs and tune the detection to exclude valid vendor directories.
  • Investigate processes that load these DLLs from locations outside of standard C:\Program Files\ or C:\Program Files (x86)\ subdirectories.
  • Enable EDR/Sysmon telemetry specifically for ImageLoaded events (Event ID 7 in Sysmon) to ensure visibility into library loading patterns.

Immediate actions

Deploy the Sigma rule for detection of sideloaded antivirus DLLs.

Detection Engineering 48h

Threat Hunt

Search for instances of antivirus-related DLLs loading from non-standard vendor directories.

T1574.001 medium high confidence hunt now

Data: Sysmon Event ID 7

Detection coverage 1

Potential Antivirus Software DLL Sideloading

medium

Detects potential DLL sideloading of DLLs that are part of antivirus software such as McAfee, Symantec, ESET, etc. The rule filters out known legitimate paths for these libraries.

sigma tactics: execution, persistence, privilege-escalation, stealth techniques: T1574.001 sources: image_load, windows

Detection queries are available on the platform. Get full rules →