Space After Filename - macOS

Detects attempts to masquerade as legitimate files by adding a space to the end of the filename.

Sigma rule (View on GitHub)

 1title: Space After Filename - macOS
 2id: b6e2a2e3-2d30-43b1-a4ea-071e36595690
 3status: test
 4description: Detects attempts to masquerade as legitimate files by adding a space to the end of the filename.
 5references:
 6    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1036.006/T1036.006.md
 7author: remotephone
 8date: 2021/11/20
 9modified: 2023/01/04
10tags:
11    - attack.defense_evasion
12    - attack.t1036.006
13logsource:
14    product: macos
15    category: process_creation
16detection:
17    selection1:
18        CommandLine|endswith: ' '
19    selection2:
20        Image|endswith: ' '
21    condition: 1 of selection*
22falsepositives:
23    - Mistyped commands or legitimate binaries named to match the pattern
24level: low

References

Related rules

to-top