Detectionmediumtest

Potential Persistence Attempt Via ErrorHandler.Cmd

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.

Open in Detection LabConvert ruleBuild Package
Nasreddine BencherchaliCreated 2022-08-09Updated 2022-12-1915904280-565c-4b73-9303-3291f964e7f9windows
Log Source
WindowsFile Event
ProductWindows← raw: windows
CategoryFile Event← raw: file_event

Events for file system activity including creation, modification, and deletion.

Detection Logic
Detection Logic1 selector
detection:
    selection:
        TargetFilename|endswith: '\WINDOWS\Setup\Scripts\ErrorHandler.cmd'
    condition: selection
False Positives
Unknown

False positive likelihood has not been assessed. Additional context may be needed during triage.

MITRE ATT&CK
Rule Metadata
Rule ID
15904280-565c-4b73-9303-3291f964e7f9
Status
test
Level
medium
Type
Detection
Created
2022-08-09
Modified
2022-12-19
Path
rules/windows/file/file_event/file_event_win_errorhandler_persistence.yml
Raw Tags
attack.persistence
View on GitHub