Detection rules › Elastic

Potential VSingle Malware Infection

Source
github.com/elastic/protections-artifacts

Identifies the execution traces of the Vsingle malware. Vsingle is a Linux trojan that attempts to retrieve C2 servers information from GitHub.

MITRE ATT&CK coverage

TacticTechniques
Command & ControlNo specific technique

Rule body

[rule]
description = """
Identifies the execution traces of the Vsingle malware. Vsingle is a Linux trojan that attempts to retrieve C2 servers
information from GitHub.
"""
id = "fa59e598-8adc-4798-af82-9f878934d975"
license = "Elastic License v2"
name = "Potential VSingle Malware Infection"
os_list = ["linux"]
reference = [
    "https://blogs.jpcert.or.jp/en/2021/03/Lazarus_malware3.html",
    "https://blogs.jpcert.or.jp/en/2022/07/vsingle.html",
]
version = "1.0.25"

query = '''
process where event.type == "start" and event.action == "exec" and process.name in ("wget", "curl") and
process.args like~ ("https://*.php?uid=*&jsid=*", "https://*.php?uid=*&upw=*" ,"*/tmp/.sess_*", "*HTTP/{print $2}*")
'''

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

[[actions]]
action = "kill_process"
field = "process.parent.entity_id"
state = 0

[[threat]]
framework = "MITRE ATT&CK"

[threat.tactic]
id = "TA0011"
name = "Command and Control"
reference = "https://attack.mitre.org/tactics/TA0011/"

[internal]
min_endpoint_version = "7.15.0"

Stages and Predicates

Stage 1: process

process where event.type == "start" and event.action == "exec" and process.name in ("wget", "curl") and
process.args like~ ("https://*.php?uid=*&jsid=*", "https://*.php?uid=*&upw=*" ,"*/tmp/.sess_*", "*HTTP/{print $2}*")

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
event.actioneq
  • exec
field:"EventType" kind:eq value:"exec"
event.typeeq
  • start
field:"event.type" kind:eq value:"start"
process.argswildcard
  • */tmp/.sess_*
  • *HTTP/{print $2}*
  • https://*.php?uid=*&jsid=*
  • https://*.php?uid=*&upw=*
field:"process.args" kind:wildcard
process.namein
  • curl
  • wget
field:"process_name" kind:in