Detection rules › Elastic

VSS Service Disabled Followed by a Suspicious File Rename

Time window
1m
Source
github.com/elastic/protections-artifacts

Identifies changes of the Volume Shadow Service start type to disabled status and subsequently followed by a suspicious file rename operation. This may indicate Ransomware behavior.

MITRE ATT&CK coverage

Rule body

[rule]
description = """
Identifies changes of the Volume Shadow Service start type to disabled status and subsequently followed by a suspicious
file rename operation. This may indicate Ransomware behavior.
"""
id = "d6cde651-adc9-4074-b167-65e6b82116b4"
license = "Elastic License v2"
name = "VSS Service Disabled Followed by a Suspicious File Rename"
os_list = ["windows"]
version = "1.0.27"

query = '''
sequence with maxspan=1m
 [registry where registry.path : "HKLM\\SYSTEM\\ControlSet*\\Services\\VSS\\Start" and registry.data.strings : "4"]
 [file where event.action : "rename" and
  file.extension != null and file.Ext.entropy >= 7 and
  file.Ext.original.name : ("*.jpg", "*.bmp", "*.png", "*.pdf", "*.doc", "*.docx", "*.xls", "*.xlsx", "*.ppt", "*.pptx") and
  not file.extension : ("tmp", "~tmp", "diff", "gz", "download", "bak", "bck", "lnk", "part", "save", "url", "jpg",
                        "bmp", "png", "pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx")]
'''

min_endpoint_version = "7.15.0"
[[actions]]
action = "kill_process"
field = "process.entity_id"
state = 1

[[optional_actions]]
action = "rollback"
field = "process.entity_id"
state = 1

[[threat]]
framework = "MITRE ATT&CK"
[[threat.technique]]
id = "T1112"
name = "Modify Registry"
reference = "https://attack.mitre.org/techniques/T1112/"


[threat.tactic]
id = "TA0005"
name = "Defense Evasion"
reference = "https://attack.mitre.org/tactics/TA0005/"
[[threat]]
framework = "MITRE ATT&CK"
[[threat.technique]]
id = "T1486"
name = "Data Encrypted for Impact"
reference = "https://attack.mitre.org/techniques/T1486/"

[[threat.technique]]
id = "T1490"
name = "Inhibit System Recovery"
reference = "https://attack.mitre.org/techniques/T1490/"


[threat.tactic]
id = "TA0040"
name = "Impact"
reference = "https://attack.mitre.org/tactics/TA0040/"

[internal]
min_endpoint_version = "7.15.0"

Stages and Predicates

Stage 1: registry

[registry where registry.path : "HKLM\\SYSTEM\\ControlSet*\\Services\\VSS\\Start" and registry.data.strings : "4"]

Stage 2: file

[file where event.action : "rename" and
  file.extension != null and file.Ext.entropy >= 7 and
  file.Ext.original.name : ("*.jpg", "*.bmp", "*.png", "*.pdf", "*.doc", "*.docx", "*.xls", "*.xlsx", "*.ppt", "*.pptx") and
  not file.extension : ("tmp", "~tmp", "diff", "gz", "download", "bak", "bck", "lnk", "part", "save", "url", "jpg",
                        "bmp", "png", "pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx")]

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
file.extensioneqtmp, ~tmp, diff, gz, download, bak, bck, lnk, part, save, url, jpg, bmp, png, pdf, doc, docx, xls, xlsx, ppt, pptxexcludes:file.extension

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
event.actionwildcard
  • rename corpus 22 (elastic 21, sigma 1)
field:"EventType" kind:wildcard value:"rename"
file.Ext.entropyge
  • 7 transforms: number corpus 4 (elastic 4)
field:"file.Ext.entropy" kind:ge value:"7"
file.Ext.original.namewildcard
  • *.bmp corpus 6 (elastic 6)
  • *.doc corpus 6 (elastic 6)
  • *.docx corpus 6 (elastic 6)
  • *.jpg corpus 6 (elastic 6)
  • *.pdf corpus 6 (elastic 6)
  • *.png corpus 6 (elastic 6)
  • *.ppt corpus 6 (elastic 6)
  • *.pptx corpus 6 (elastic 6)
  • *.xls corpus 6 (elastic 6)
  • *.xlsx corpus 6 (elastic 6)
field:"file.Ext.original.name" kind:wildcard
file.extensionis_not_null
  • (no value, null check)
field:"file.extension" kind:is_not_null
registry.data.stringswildcard
  • 4 corpus 7 (elastic 7)
field:"Details" kind:wildcard value:"4"
registry.pathwildcard
  • HKLM\SYSTEM\ControlSet*\Services\VSS\Start corpus 2 (elastic 2)
field:"TargetObject" kind:wildcard value:"HKLM\SYSTEM\ControlSet*\Services\VSS\Start"