Detectionhightest

Base64 Encoded PowerShell Command Detected

Detects usage of the "FromBase64String" function in the commandline which is used to decode a base64 encoded string

Open in Detection LabConvert ruleBuild Package
Florian Roth (Nextron Systems)Created 2020-01-29Updated 2023-01-26e32d4572-9826-4738-b651-95fa63747e8awindows
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|contains: '::FromBase64String('
    condition: selection
False Positives

Administrative script libraries

Testing & Validation

Regression Tests

by frack113
Positive Detection Test1 matchevtx

Microsoft-Windows-Sysmon

Rule Metadata
Rule ID
e32d4572-9826-4738-b651-95fa63747e8a
Status
test
Level
high
Type
Detection
Created
2020-01-29
Modified
2023-01-26
Path
rules/windows/process_creation/proc_creation_win_powershell_frombase64string.yml
Raw Tags
attack.stealthattack.t1027attack.executionattack.t1140attack.t1059.001
View on GitHub