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…
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.
Detection logic
Detection requirements
- Log source product
- windows
- Log source category
- file_event
Known benign triggers
- Unknown
MITRE ATT&CK mappings
Not mapped to ATT&CK.
References
| Reference | Cited by |
|---|---|
| github.com/last-byte/PersistenceSniper | 3 |
| www.hexacorn.com/blog/2022/01/16/beyond-good-ol-run-key-part-135/ | Only this detection cites it |
From the source
- At source
- Open at source
- Upstream identifier
- 15904280-565c-4b73-9303-3291f964e7f9
- Tagged by the source as
- attack.persistence
Licence
- Published under
- Detection Rule License 1.1Read the licence
- Attribution
- Required
Authorship
- Published
- Aug 26, 2026
- Version
- 1