Detection rules › Splunk

MacOS AMOS Stealer - Virtual Machine Check Activity

Status
production
Severity
low
Group by
host, username
Author
Nasreddine Bencherchali, Splunk, Alex Karkins
Source
github.com/splunk/security_content

The following analytic detects AMOS Stealer VM check activity on macOS. It leverages osquery to monitor process events and identifies the execution of the "osascript" command along with specific commandline strings. This activity is significant as AMOS stealer was seen using this pattern in order to check if the host is a Virtual Machine or not. If confirmed malicious, this behavior indicate that the host is already infected by the AMOS stealer, which could allow attackers to execute arbitrary code, escalate privileges, steal information, or persist within the environment, posing a significant security risk.

Known false positives

  • No false positives have been identified at this time.

MITRE ATT&CK coverage

Rule body

name: MacOS AMOS Stealer - Virtual Machine Check Activity
id: 4e41ad21-9761-426d-8aa1-083712ff9f30
version: 7
creation_date: '2025-04-25'
modification_date: '2026-05-13'
author: Nasreddine Bencherchali, Splunk, Alex Karkins
status: production
type: Anomaly
description: |
    The following analytic detects AMOS Stealer VM check activity on macOS. It leverages osquery to monitor process events and identifies the execution of the "osascript" command along with specific commandline strings.
    This activity is significant as AMOS stealer was seen using this pattern in order to check if the host is a Virtual Machine or not.
    If confirmed malicious, this behavior indicate that the host is already infected by the AMOS stealer, which could allow attackers to execute arbitrary code, escalate privileges, steal information, or persist within the environment, posing a significant security risk.
data_source:
    - Osquery Results
search: |
    `osquery_macro`
    name=es_process_events
    columns.cmdline="*osascript*"
    columns.cmdline="* -e *"
    columns.cmdline="*set*"
    columns.cmdline="*system_profiler*"
    columns.cmdline IN ("*VMware*", "*QEMU*")
    
    | rename columns.* as *
    
    | stats  min(_time) as firstTime max(_time) as lastTime
      values(cmdline) as cmdline,
      values(pid) as pid,
      values(parent) as parent,
      values(path) as path,
      values(signing_id) as signing_id,
      by username host
    
    | rename
      username as user,
      cmdline as process,
      parent as parent_process,
      path as process_path,
      host as dest
    
    | `security_content_ctime(firstTime)`
    | `security_content_ctime(lastTime)`
    | `macos_amos_stealer___virtual_machine_check_activity_filter`
how_to_implement: |
    This detection leverages osquery and endpoint security on MacOS. Follow the link in references, which describes how to setup process auditing in MacOS with endpoint security and osquery.
known_false_positives: No false positives have been identified at this time.
references:
    - https://osquery.readthedocs.io/en/stable/deployment/process-auditing/
    - https://www.virustotal.com/gui/search/behaviour_processes%253A%2522osascript%2520-e%2520set%2522%2520AND%2520behaviour_processes%253A%2522system_profiler%2522%2520AND%2520(behaviour_processes%253A%2522VMware%2522%2520OR%2520behaviour_processes%253A%2522QEMU%2522)?type=files
intermediate_findings:
    entities:
        - field: user
          type: user
          score: 20
          message: AMOS Stealer activity on host $dest$ by user $user$
        - field: dest
          type: system
          score: 20
          message: AMOS Stealer activity on host $dest$ by user $user$
analytic_story:
    - AMOS Stealer
    - Hellcat Ransomware
asset_type: Endpoint
mitre_attack_id:
    - T1059.002
product:
    - Splunk Enterprise
    - Splunk Enterprise Security
    - Splunk Cloud
category: endpoint
security_domain: endpoint

Stages and Predicates

Stage 1: search

`osquery_macro`
name=es_process_events
columns.cmdline="*osascript*"
columns.cmdline="* -e *"
columns.cmdline="*set*"
columns.cmdline="*system_profiler*"
columns.cmdline IN ("*VMware*", "*QEMU*")

Stage 2: rename

| rename columns.* as *

Stage 3: stats

| stats  min(_time) as firstTime max(_time) as lastTime
  values(cmdline) as cmdline,
  values(pid) as pid,
  values(parent) as parent,
  values(path) as path,
  values(signing_id) as signing_id,
  by username host

Stage 4: rename

| rename
  username as user,
  cmdline as process,
  parent as parent_process,
  path as process_path,
  host as dest

Stage 5: search

| `security_content_ctime(firstTime)`

Stage 6: search

| `security_content_ctime(lastTime)`

Stage 7: search

| `macos_amos_stealer___virtual_machine_check_activity_filter`

Indicators

These rows show field, operator, and value matches.