Netsh Helper DLL

T1546.007

Sub-technique of T1546 Event Triggered Execution.View on attack.mitre.org

About this technique

Adversaries may establish persistence by executing malicious content triggered by Netsh Helper DLLs. Netsh.exe (also referred to as Netshell) is a command-line scripting utility used to interact with the network configuration of a system. It contains functionality to add helper DLLs for extending functionality of the utility. The paths to registered netsh.exe helper DLLs are entered into the Windows Registry at HKLM\SOFTWARE\Microsoft\Netsh.

Adversaries can use netsh.exe helper DLLs to trigger execution of arbitrary code in a persistent manner. This execution would take place anytime netsh.exe is executed, which could happen automatically, with another persistence technique, or if other software (ex: VPN) is present on the system that executes netsh.exe as part of its normal functionality.

Detection rules4

Rules on DetectionCode tagged with T1546.007.

Sigma4

RuleLevelLog source
New Netsh Helper DLL Registered From A Suspicious Locationhighwindows / registry_set
Potential Persistence Via Netsh Helper DLLmediumwindows / process_creation
Potential Persistence Via Netsh Helper DLL - Registrymediumwindows / registry_set
Potential Suspicious Activity Using SeCEditmediumwindows / process_creation

Splunk0

No Splunk rules are mapped to this technique yet.

Groups0

None recorded.

Software1

Campaigns0

None recorded.

Procedure examples1

Software1

Used byProcedure example
Toolnetsh

netsh can be used as a persistence proxy technique to execute a helper DLL when netsh.exe is executed.

References3

  1. Demaske Netsh Persistence Open source
    Demaske, M. (2016, September 23). USING NETSHELL TO EXECUTE EVIL DLLS AND PERSIST ON A HOST. Retrieved April 8, 2017.
  2. Github Netsh Helper CS Beacon Open source
    Smeets, M. (2016, September 26). NetshHelperBeacon. Retrieved February 13, 2017.
  3. TechNet Netsh Open source
    Microsoft. (n.d.). Using Netsh. Retrieved February 13, 2017.

Data from MITRE ATT&CK® (Enterprise). ATT&CK® is a registered trademark of The MITRE Corporation.