Potential Persistence Attempt Via ErrorHandler.Cmd

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detects creation of a file named "ErrorHandler.cmd" in the "C:\\WINDOWS\\Setup\\Scripts\\" directory which could be used as a method of persistence The content of C:\\WINDOWS\\Setup\\Scripts\\ErrorHandler.cmd is read whenever some tools under C:\\WINDOWS\\System32\\oobe\\ (e.g. Setup.exe) fail to run for any reason.

Severity

Trouble

Rule Requirement

Criteria

Action1: actionname = "File Created or Modified" AND FILENAME endswith "\WINDOWS\Setup\Scripts\ErrorHandler.cmd" OR OBJECTNAME endswith "\WINDOWS\Setup\Scripts\ErrorHandler.cmd" select Action1.HOSTNAME,Action1.MESSAGE,Action1.USERNAME,Action1.DOMAIN,Action1.OBJECTNAME,Action1.FILENAME,Action1.PROCESSNAME

Detection

Execution Mode

realtime

Log Sources

Windows

Author

Nasreddine Bencherchali (Nextron Systems)