Detection rules › Splunk
Windows Snake Malware Service Create
The following analytic detects the creation of a new service named WerFaultSvc with a binary path in the Windows WinSxS directory. It leverages Windows System logs, specifically EventCode 7045, to identify this activity. This behavior is significant because it indicates the presence of Snake malware, which uses this service to maintain persistence by blending in with legitimate Windows services. If confirmed malicious, this activity could allow an attacker to execute Snake malware components, leading to potential data exfiltration, system compromise, and long-term persistence within the environment.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Execution | T1569.002 System Services: Service Execution |
| Persistence | T1547.006 Boot or Logon Autostart Execution: Kernel Modules and Extensions |
| Privilege Escalation | T1547.006 Boot or Logon Autostart Execution: Kernel Modules and Extensions |
Event coverage
| Provider | Event ID | Title |
|---|---|---|
| Service-Control-Manager | 7045 |
Stages and Predicates
Stage 1: search
search EventCode=7045 ImagePath="*\Werfault.exe" ImagePath="*\\windows\\winSxS\\*"
Stage 2: stats
stats BY Computer, EventCode, ImagePath, ServiceName, ServiceType
Stage 3: rename
rename
Stage 4: search
search
Stage 5: search
search
Stage 6: search
search `macro`
Indicators
Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.
| Field | Kind | Values |
|---|---|---|
EventCode | eq |
|
ImagePath | eq |
|
Neighbors
Broader alternatives (more inclusive than this rule)
These rules match a superset of what this rule catches. They cover the same events plus more. Use them if you want wider coverage and can absorb more false positives.
- Invoke-Obfuscation Obfuscated IEX Invocation - System (drops 3 filters this rule applies)
- Malicious Powershell Executed As A Service (drops 2 filters this rule applies)
- Randomly Generated Windows Service Name (drops 2 filters this rule applies)
- Windows Service Created with Suspicious Service Name (drops 2 filters this rule applies)