Netskope IA - Multi-Protocol C2 Beaconing Pattern
72 NK IA Multi Protocol C2beaconing
Query
let _NetskopeEmpty = datatable(TimeGenerated:datetime, action_s:string, category_s:string, severity_s:string, malware_name_s:string, malware_type_s:string, threat_name_s:string, user_s:string, domain_s:string, dstip_s:string, srcip_s:string, bytes_uploaded_d:real, bytes_downloaded_d:real, app_s:string, url_s:string, dlp_rule_s:string, dlp_profile_s:string, activity_s:string, file_type_s:string, object_s:string, dst_country_s:string, src_country_s:string, ccl_s:string, access_method_s:string, traffic_type_s:string)[];
let SuspiciousCategories = dynamic([
"Uncategorized", "Unknown", "Newly Observed Domain",
"Newly Registered Domain", "Suspicious", "Parked",
"Dynamic DNS Host", "Malware", "Command and Control"]);
let RiskyCCL = dynamic(["poor", "low", "unknown"]);
union isfuzzy=true _NetskopeEmpty, NetskopeEvents_CL
| where TimeGenerated > ago(1d)
| where isnotempty(user_s) and isnotempty(domain_s)
| where category_s in (SuspiciousCategories) or ccl_s in (RiskyCCL)
| summarize
RequestCount = count(),
RequestTimes = make_list(TimeGenerated, 200),
TotalBytesSent = sum(todouble(bytes_uploaded_d)),
TotalBytesRecv = sum(todouble(bytes_downloaded_d)),
SourceIPs = make_set(srcip_s, 5),
Categories = make_set(category_s, 5),
CCL = take_any(ccl_s),
DstIPs = make_set(dstip_s, 5),
DstCountries = make_set(dst_country_s, 5),
FirstSeen = min(TimeGenerated),
LastSeen = max(TimeGenerated)
by user_s, domain_s
| where RequestCount >= 20
| extend
DurationMinutes = datetime_diff('minute', LastSeen, FirstSeen),
AvgIntervalSec = iff(RequestCount > 1,
round(toreal(datetime_diff('second', LastSeen, FirstSeen)) / (RequestCount - 1), 1),
0.0)
| where DurationMinutes >= 60
| where AvgIntervalSec between (10.0 .. 600.0)
| project
user_s, domain_s, RequestCount,
AvgIntervalSec, DurationMinutes,
TotalBytesSent, TotalBytesRecv,
Categories, CCL, DstIPs, DstCountries, SourceIPs,
FirstSeen, LastSeen
| order by RequestCount desc, AvgIntervalSec ascExplanation
This query is designed to detect suspicious network activity that may indicate a compromised system communicating with a command and control (C2) server. Here's a simplified breakdown of what it does:
-
Purpose: The query identifies patterns of regular, high-frequency network requests to domains that are either suspicious or have a low reputation. This is often indicative of C2 beaconing, where malware on an infected system communicates with a remote server at regular intervals.
-
Data Source: It uses data from the
NetskopeEvents_CLtable, which is part of the Netskope Internet Access data connector. -
Detection Criteria:
- It looks for users making at least 20 requests within a day to domains categorized as suspicious or with a low confidence level (CCL).
- The requests should occur over a period of at least 60 minutes.
- The average interval between requests should be between 10 and 600 seconds.
-
Output: The query outputs details such as the user, domain, number of requests, average interval between requests, total bytes sent and received, and other relevant information.
-
Alerting: If the criteria are met, an alert is generated with details about the user and domain involved, including the frequency and interval of the requests.
-
Incident Management: The system can automatically create incidents based on these alerts, grouping them by user account and domain to manage and investigate potential security threats efficiently.
Overall, this query helps security teams identify and respond to potential C2 communication, which is a common tactic used by attackers to maintain control over compromised systems.
Details

David Alonso
Released: April 16, 2026
Tables
Keywords
Operators
Severity
HighTactics
Frequency: PT1H
Period: P1D