Skip to content

Commit 76f6ad7

Browse files
committed
Add PamStealer macOS detection rules
1 parent f321ac8 commit 76f6ad7

3 files changed

Lines changed: 102 additions & 0 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
title: PamStealer File Artifacts
2+
id: 6a4fd1ba-5d6a-4712-b068-fb1f9df23292
3+
status: experimental
4+
description: |
5+
Detects file artifacts associated with PamStealer, including payloads staged in user-level application support directories that masquerade as
6+
Apple components, infection marker files, and a helper executable impersonating System Settings.
7+
references:
8+
- https://www.jamf.com/blog/pamstealer-macos-infostealer-applescript-rust/
9+
author: Robbin Ooi Zhen Heng
10+
date: 2026-07-28
11+
tags:
12+
- attack.persistence
13+
- attack.privilege-escalation
14+
- attack.stealth
15+
- attack.t1036.005
16+
- attack.t1547.015
17+
- attack.t1564.001
18+
- detection.emerging-threats
19+
logsource:
20+
category: file_event
21+
product: macos
22+
detection:
23+
selection_staged_payload:
24+
TargetFilename|startswith: '/Users/'
25+
TargetFilename|contains:
26+
- '/Library/Application Support/com.apple.finder.core/Finder.app/'
27+
- '/Library/Application Support/com.apple.finder.monitor/Finder.app/'
28+
- '/Library/Application Support/com.apple.security.daemon/Software Update.app/'
29+
- '/Library/Application Support/com.apple.softwareupdated/SoftwareUpdateD'
30+
selection_marker:
31+
TargetFilename|startswith: '/Users/'
32+
TargetFilename|contains:
33+
- '/Library/Application Support/com.apple.finder.core/'
34+
- '/Library/Application Support/com.apple.finder.monitor/'
35+
TargetFilename|endswith:
36+
- '/.Maccy'
37+
- '/.config'
38+
- '/.lock'
39+
selection_helper:
40+
TargetFilename|endswith: '/tmp/System Settings'
41+
condition: 1 of selection_*
42+
falsepositives:
43+
- Unlikely
44+
level: high
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
title: PamStealer Clipboard Collection
2+
id: 2a24d2b2-1ded-499f-ae14-3adb80001d77
3+
status: experimental
4+
description: |
5+
Detects pbpaste launched by a process staged in PamStealer's fake Finder application directories. PamStealer repeatedly launches pbpaste from
6+
a process masquerading as Finder to collect clipboard contents.
7+
references:
8+
- https://www.jamf.com/blog/pamstealer-macos-infostealer-applescript-rust/
9+
author: Robbin Ooi Zhen Heng
10+
date: 2026-07-28
11+
tags:
12+
- attack.collection
13+
- attack.t1115
14+
- detection.emerging-threats
15+
logsource:
16+
category: process_creation
17+
product: macos
18+
detection:
19+
selection:
20+
Image|endswith: '/pbpaste'
21+
ParentImage|contains:
22+
- '/Library/Application Support/com.apple.finder.core/Finder.app/'
23+
- '/Library/Application Support/com.apple.finder.monitor/Finder.app/'
24+
condition: selection
25+
falsepositives:
26+
- Unlikely
27+
level: high
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
title: PamStealer Ad-Hoc Bundle Signing Via Script Editor
2+
id: 596e09c1-9617-4c21-8eb9-7cdb4227d300
3+
status: experimental
4+
description: |
5+
Detects Script Editor spawning codesign to ad-hoc sign an application bundle staged below a user's Application Support directory. PamStealer
6+
uses this behavior after its JXA dropper creates a fake Finder or Software Update application bundle.
7+
references:
8+
- https://www.jamf.com/blog/pamstealer-macos-infostealer-applescript-rust/
9+
author: Robbin Ooi Zhen Heng
10+
date: 2026-07-28
11+
tags:
12+
- attack.defense-impairment
13+
- attack.execution
14+
- attack.t1059.007
15+
- attack.t1553.002
16+
- detection.emerging-threats
17+
logsource:
18+
category: process_creation
19+
product: macos
20+
detection:
21+
selection:
22+
Image|endswith: '/codesign'
23+
ParentImage|endswith: '/Script Editor.app/Contents/MacOS/Script Editor'
24+
CommandLine|contains|all:
25+
- '-fs'
26+
- '--deep'
27+
- '/Library/Application Support/'
28+
condition: selection
29+
falsepositives:
30+
- Legitimate AppleScript development that ad-hoc signs application bundles from a user Application Support directory.
31+
level: high

0 commit comments

Comments
 (0)