Abuse of InfDefaultInstall.exe for SCT Script Execution
Adversaries leverage the native Windows utility InfDefaultInstall.exe to execute malicious script content embedded within specially crafted INF files.
InfDefaultInstall.exe is a legitimate Microsoft-signed Windows binary designed for the installation of INF (Information) files. Threat actors can abuse this utility as a Living-off-the-Land (LotL) technique to bypass security controls. By creating a malformed or specially prepared INF file containing references to script components (SCT) via scrobj.dll, an attacker can force the system to execute arbitrary code. Because the process is signed by Microsoft, this technique is frequently utilized to evade signature-based detection mechanisms that rely on process reputation. This behavior is documented in the LOLBAS (Living Off the Land Binaries and Scripts) project and has been validated by Atomic Red Team exercises. Defenders should monitor for the execution of InfDefaultInstall.exe with arguments pointing to suspicious or user-writable INF files, as this is a known vector for initial access or persistence.
Attack Chain
- Attacker prepares a malicious INF file containing an InstallSection that references a remote or local SCT file.
- Attacker crafts the INF file to utilize the RegisterOCX directive or similar hooks to load scrobj.dll.
- Attacker delivers the malicious INF file to the victim endpoint through phishing or shared drive access.
- Attacker executes InfDefaultInstall.exe from the command line, passing the path to the malicious INF file as an argument.
- The Windows utility parses the INF, triggers the registration of the specified SCT script, and executes the payload.
- The malicious payload runs within the context of the InfDefaultInstall.exe process, potentially leading to further compromise.
Impact
Successful exploitation allows for arbitrary code execution, which can be leveraged for lateral movement, credential theft, or the deployment of secondary malware. While InfDefaultInstall.exe is a built-in utility, its misuse allows an attacker to hide malicious activity under a trusted process identity, complicating incident response and forensic analysis.
Recommendation
- Deploy the provided Sigma rule to monitor for suspicious command-line invocations of InfDefaultInstall.exe.
- Establish a baseline of legitimate use of InfDefaultInstall.exe within the organization; alert on any unexpected paths or execution from user-writable directories (e.g., C:\Users\Public).
- Enable Sysmon process-creation logging (Event ID 1) and command-line auditing to capture the arguments passed to InfDefaultInstall.exe.
Immediate actions
Deploy the Sigma detection rule to the SIEM and monitor for hits.
Threat Hunt
Search for historical process creation events involving InfDefaultInstall.exe.
Data: Process creation telemetry
Detection coverage 1
Detect InfDefaultInstall.exe .inf Execution
mediumDetects the execution of InfDefaultInstall.exe with an .inf file argument, often used to load SCT scripts via scrobj.dll.
Detection queries are available on the platform. Get full rules →