← Back to SOC feed Coverage →

Base64encodePEFile

kql MEDIUM Azure-Sentinel
DeviceProcessEvents
huntingmicrosoftofficialpowershell
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at Azure-Sentinel →
Retrieved: 2026-05-19T23:00:00Z · Confidence: medium

Hunt Hypothesis

Adversaries may use base64 encoded PE files in command line parameters to evade detection and execute malicious payloads without direct file drops. SOC teams should proactively hunt for this behavior in Azure Sentinel to identify potential fileless attacks leveraging PowerShell and base64 encoding techniques.

KQL Query

DeviceProcessEvents
| where Timestamp > ago(7d)
| where ProcessCommandLine contains "TVqQAAMAAAAEAAA"
| top 1000 by Timestamp

Analytic Rule Definition

id: 1174ae5b-8ce9-4321-a4e2-99e5f016beed
name: Base64encodePEFile
description: |
  Finding base64 encoded PE files header seen in the command line parameters.
  Tags: #fileLess  #powershell.
requiredDataConnectors:
- connectorId: MicrosoftThreatProtection
  dataTypes:
  - DeviceProcessEvents
query: |
  DeviceProcessEvents
  | where Timestamp > ago(7d)
  | where ProcessCommandLine contains "TVqQAAMAAAAEAAA"
  | top 1000 by Timestamp

Required Data Sources

Sentinel TableNotes
DeviceProcessEventsEnsure this data connector is enabled

References

False Positive Guidance

Original source: https://github.com/Azure/Azure-Sentinel/blob/main/Hunting Queries/Microsoft 365 Defender/Execution/Base64encodePEFile.yaml