Base64 Encoded PowerShell Command Detected
Detects usage of the "FromBase64String" function in the commandline which is used to decode a base64 encoded string
Detection logic
selection
CommandLine|contains: ::FromBase64String(Condition
selectionRaw YAML
title: Base64 Encoded PowerShell Command Detected
id: e32d4572-9826-4738-b651-95fa63747e8a
status: test
description: Detects usage of the "FromBase64String" function in the commandline which is used to decode a base64 encoded string
references:
- https://gist.github.com/Neo23x0/6af876ee72b51676c82a2db8d2cd3639
author: Florian Roth (Nextron Systems)
date: 2020-01-29
modified: 2023-01-26
tags:
- attack.stealth
- attack.t1027
- attack.execution
- attack.t1140
- attack.t1059.001
logsource:
category: process_creation
product: windows
detection:
selection:
CommandLine|contains: '::FromBase64String('
condition: selection
falsepositives:
- Administrative script libraries
level: highFalse positives
- Administrative script libraries
References
Similar rules
Suspicious XOR Encoded PowerShell Command
mediumwindows · Shares T1059, T1140, T1027
ConvertTo-SecureString Cmdlet Usage Via CommandLine
mediumwindows · Shares T1027, T1059
Invoke-Obfuscation CLIP+ Launcher
highwindows · Shares T1027, T1059
Invoke-Obfuscation COMPRESS OBFUSCATION
mediumwindows · Shares T1027, T1059