kevmap

TechniquesT1132.002 › AN0927

AN0927 Analytic 0927

Windows · attack.mitre.org · ATT&CK Enterprise v19.2

<p>A process/script constructs or references a custom/alphabet translation table (e.g., 64/85/32+ arbitrary chars, XOR/base-N loops) or emits long high-entropy strings that do NOT validate as standard Base64/Hex → shortly after, the same process (or its child) generates outbound traffic with asymmetric bytes_out:bytes_in, fixed-size beacons, or protocol/header mismatches (e.g., Content-Type says JSON but body fails JSON parse / contains non-standard alphabet).</p>
Detects
T1132.002 Non-Standard Encoding
Part of
DET0326 Behavior-chain detection for T1132.002 Data Encoding: Non-Standard Encoding across Windows, Linux, macOS, ESXi

Log sources and channels

Exactly as MITRE states them in x_mitre_log_source_references. Where a channel is vague, it is vague in the source; kevmap does not tidy it.

Log sourceChannelData component
WinEventLog:SecurityEventCode=4688DC0032 Process Creation
WinEventLog:SysmonEventCode=3, 22DC0082 Network Connection Creation
WinEventLog:PowerShellEventCode=4103, 4104, 4105, 4106DC0029 Script Execution
m365:defenderNetworkConnection: high out:in ratio, periodic beacons, protocol mismatchDC0078 Network Traffic Flow

Mutable elements

Parameters MITRE marks as environment-specific. These are the knobs you are expected to tune; they are why an analytic is not a rule.

FieldDescription
EntropyThresholdMinimum Shannon entropy for the suspected token/payload (e.g., >4.8).
TokenLengthThresholdMinimum continuous token length to treat as potential non-standard payload (e.g., ≥120 chars).
BytesOutToInRatioOut:In ratio considered suspicious (e.g., ≥4:1).
FixedPacketStdDevThresholdStd. dev. threshold (size or interval) to mark packets as 'uniform' (beacon-like).
TimeWindowCorrelation window from encode routine to egress (default 10m).
KnownLegitEncodersLegitimate in-house/custom encoders to suppress.