Detect Junk Data in CrowdStrike LogScale
Adversaries may add junk data to protocols used for command and control to make detection more difficult. By appending, prepending, or inserting random or meaningless data into C2 communications, adversaries prevent trivial signature-based detection. Examples include SUNBURST appending junk bytes to HTTP C2, P2P ZeuS adding junk data to UDP peer communications, Downdelph inserting pseudo-random characters between meaningful characters in C2 requests, and GoldMax generating decoy traffic to surround malicious traffic. This technique is primarily a network-level obfuscation method, making it challenging to detect purely through host-based telemetry.
MITRE ATT&CK
- Tactic
- Command and Control
- Technique
- T1001 Data Obfuscation
- Sub-technique
- T1001.001 Junk Data
- Canonical reference
- https://attack.mitre.org/techniques/T1001/001/
LogScale Detection Query
// Approach 1: Beaconing detection - high-frequency connections from suspicious processes
#event_simpleName=NetworkConnectIP4
| ProcessImageFileName = /(?i)(powershell|pwsh|cmd|wscript|cscript|mshta|rundll32|regsvr32|svchost|dllhost)\.exe$/
| RemoteAddressIP4 != /^(10\.|172\.(1[6-9]|2[0-9]|3[01])\.|192\.168\.|127\.)/
| RemotePort in [80, 443, 8080, 8443, 4444, 4445, 1080, 3128]
| groupBy([ComputerName, ProcessImageFileName, CommandLine, RemotePort],
function=[
count(aid, as=ConnectionCount),
count(RemoteAddressIP4, distinct=true, as=UniqueRemoteIPs),
collect(RemoteAddressIP4, multival=true, as=RemoteIPs, limit=20),
min(@timestamp, as=FirstSeen),
max(@timestamp, as=LastSeen)
])
| ConnectionCount >= 5
| eval duration_minutes = (LastSeen - FirstSeen) / 60000
| eval avg_interval_sec = if(ConnectionCount > 1, duration_minutes * 60 / ConnectionCount, null())
// Flag consistent short intervals (beaconing) or high counts
| where ConnectionCount > 20 OR (avg_interval_sec > 0 AND avg_interval_sec < 120)
| sort(ConnectionCount, order=desc)
| select([ComputerName, ProcessImageFileName, CommandLine, ConnectionCount, UniqueRemoteIPs, RemoteIPs, RemotePort, FirstSeen, LastSeen, avg_interval_sec])
// Approach 2: DNS junk label detection
// Run as separate query
#event_simpleName=DnsRequest
| ProcessImageFileName = /(?i)(powershell|pwsh|cmd|wscript|cscript|mshta|rundll32|regsvr32|svchost|dllhost)\.exe$/
| DomainName = /./
| eval first_label = replace(DomainName, /\..*$/, "")
| eval first_label_len = length(first_label)
| first_label_len > 20 OR DomainName = /^[0-9a-f]{16,}\./
| groupBy([ComputerName, ProcessImageFileName],
function=[
count(DomainName, as=QueryCount),
count(DomainName, distinct=true, as=UniqueDomains),
collect(DomainName, multival=true, as=SampleDomains, limit=10),
max(first_label_len, as=MaxLabelLen)
])
| QueryCount >= 3 OR UniqueDomains >= 3
| sort(UniqueDomains, order=desc) CrowdStrike LogScale (Falcon) detection for T1001.001 Junk Data C2. Query 1 leverages NetworkConnectIP4 events to identify beaconing patterns from suspicious Windows processes with 5+ connections to common C2 ports on public IPs, calculating average intervals to flag consistent short-interval beaconing. Query 2 uses DnsRequest events to surface suspicious processes querying domains with first-label lengths exceeding 20 characters, a hallmark of junk-padded DNS C2.
Data Sources
Required Tables
False Positives & Tuning
- Falcon sensor itself or other EDR tools making frequent telemetry uploads with consistent intervals
- Windows Update and Microsoft telemetry processes using svchost.exe for large payload transfers
- Enterprise backup agents running through cmd.exe wrappers with scheduled high-frequency connections
- Internal DNS resolvers using long CNAME chains that surface in DnsRequest telemetry
Other platforms for T1001.001
Testing Methodology
Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1HTTP C2 Simulation with Junk Data Padding
Expected signal: Sysmon Event ID 1: PowerShell process creation with command line containing 'Net.WebClient' and 'UploadString'. Sysmon Event ID 3: Multiple network connection attempts to 127.0.0.1:8080. Security Event ID 4688 (if command line auditing enabled). PowerShell ScriptBlock Log Event ID 4104 showing the full beaconing script.
- Test 2DNS-Based C2 with Junk Subdomain Labels
Expected signal: Sysmon Event ID 22 (DNS Query): Multiple DNS lookup events with QueryName values containing long, random-looking subdomain labels (>20 characters) under c2sim.local. The labels will contain Base64-encoded content with interleaved junk characters. Sysmon Event ID 1 for the PowerShell process creation.
- Test 3Junk Data File Padding Simulation
Expected signal: Sysmon Event ID 11 (File Create): File creation event for junktest_sim.dll in %TEMP% with large file size (~50MB). Sysmon Event ID 1 for the PowerShell process. The file hash (SHA-256) will be recorded in the Sysmon event.
- Test 4Periodic Beaconing with Junk UDP Padding
Expected signal: Sysmon Event ID 3 (Network Connection): UDP connections from powershell.exe to 127.0.0.1:4444 (Sysmon may capture UDP connections depending on configuration). Sysmon Event ID 1 for process creation. Security Event ID 4688 if command line auditing is enabled.
References (15)
- https://attack.mitre.org/techniques/T1001/001/
- https://www.fireeye.com/blog/threat-research/2020/12/evasive-attacker-leverages-solarwinds-supply-chain-compromises-with-sunburst-backdoor.html
- https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf
- https://www.secureworks.com/research/p2p-zeus
- https://www.welivesecurity.com/2016/10/20/anatomy-of-attack-celebrity-malware-downdelph/
- https://www.cisa.gov/sites/default/files/publications/AA22-055A-MuddyWater.pdf
- https://unit42.paloaltonetworks.com/bendybear/
- https://www.crowdstrike.com/blog/observations-from-the-stellarparticle-campaign/
- https://media.defense.gov/2023/May/09/2003218554/-1/-1/0/JOINT_CSA_HUNTING_RUSSIAN_INTELLIGENCE_BOT_SNAKE.PDF
- https://securelist.com/apt10-sophisticated-multi-layered-loader-romabt/101971/
- https://blog.trendmicro.com/trendlabs-security-intelligence/blacktech-espionage-tools-target-east-asia/
- https://www.volexity.com/blog/2024/04/12/zero-day-exploitation-of-unauthenticated-remote-code-execution-vulnerability-in-globalprotect-cve-2024-3400/
- https://www.kaspersky.com/about/press-releases/2021_apt-trends-report-q3-2021
- https://www.microsoft.com/en-us/security/blog/2021/03/04/goldmax-goldfinder-sibot-analyzing-nobelium-malware/
- https://www.welivesecurity.com/2025/02/12/evasive-zipline-group-targets-job-seekers/
Unlock Pro Content
Get the full detection package for T1001.001 including response playbook, investigation guide, and atomic red team tests.