macOS: Built-in openssl used to base64-decode and decrypt payload from mounted DMG volume

Alerts on OpenSSL base64-decode/decrypt commands using DMG-mounted '/Volumes/' paths on macOS.

FreeReviewedSigma · Medium · v2
Product
macos
Category
process_creation
Author
Tim Rauch (rule), Elastic (idea) (SigmaHQ), DRL 1.1
Published
2022-10-17
Updated
2026-07-31
title: "macOS: Built-in openssl used to base64-decode and decrypt payload from mounted DMG volume"
id: 4ab7eebe-4658-4ff4-8074-a41994119f03
status: test
description: This rule identifies process executions of the openssl binary on macOS where the command line references a mounted /Volumes/ path and uses base64 decoding together with decryption-related arguments. Such behavior can indicate malware attempting to evade static detection by storing an encoded and encrypted payload inside a disk image and decrypting it after execution. Telemetry relies on process creation logs that capture the executed image path and the full command line.
references:
  - https://github.com/elastic/protections-artifacts/commit/746086721fd385d9f5c6647cada1788db4aea95f#diff-5d42c3d772e04f1e8d0eb60f5233bc79def1ea73105a2d8822f44164f77ef823
  - https://github.com/SigmaHQ/sigma/blob/master/rules/macos/process_creation/proc_creation_macos_payload_decoded_and_decrypted.yml
author: Tim Rauch (rule), Elastic (idea), Huntrule Team
date: 2022-10-17
tags:
  - attack.stealth
  - attack.t1059
  - attack.t1204
  - attack.execution
  - attack.t1140
  - attack.s0482
  - attack.s0402
logsource:
  category: process_creation
  product: macos
detection:
  selection:
    Image|endswith: /openssl
    CommandLine|contains|all:
      - /Volumes/
      - enc
      - -base64
      - " -d "
  condition: selection
falsepositives:
  - Unknown
level: medium
license: DRL-1.1
related:
  - id: 234dc5df-40b5-49d1-bf53-0d44ce778eca
    type: derived