Detectionhightest
PowerShell Base64 Encoded FromBase64String Cmdlet
Detects usage of a base64 encoded "FromBase64String" cmdlet in a process command line
Florian Roth (Nextron Systems)Created 2019-08-24Updated 2023-04-06fdb62a13-9a81-4e5c-a38f-ea93a16f6d7cwindows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation
Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.
Detection Logic
Detection Logic1 selector
detection:
selection:
- CommandLine|base64offset|contains: '::FromBase64String'
# UTF-16 LE
- CommandLine|contains:
- 'OgA6AEYAcgBvAG0AQgBhAHMAZQA2ADQAUwB0AHIAaQBuAGcA'
- 'oAOgBGAHIAbwBtAEIAYQBzAGUANgA0AFMAdAByAGkAbgBnA'
- '6ADoARgByAG8AbQBCAGEAcwBlADYANABTAHQAcgBpAG4AZw'
condition: selectionFalse Positives
Unknown
False positive likelihood has not been assessed. Additional context may be needed during triage.
References
1
Resolving title…
Internal ResearchMITRE ATT&CK
Sub-techniques
Rule Metadata
Rule ID
fdb62a13-9a81-4e5c-a38f-ea93a16f6d7c
Status
test
Level
high
Type
Detection
Created
2019-08-24
Modified
2023-04-06
Path
rules/windows/process_creation/proc_creation_win_powershell_base64_frombase64string.yml
Raw Tags
attack.stealthattack.t1140attack.executionattack.t1059.001