Spike in host-based traffic

A machine learning job has detected a sudden spike in host based traffic. This can be due to a range of security issues, such as a compromised system, DDoS attacks, malware infections, privilege escalation, or data exfiltration.

Elastic rule (View on GitHub)

  1[metadata]
  2creation_date = "2025/02/18"
  3integration = ["auditd_manager", "endpoint", "system", "windows"]
  4maturity = "production"
  5min_stack_version = "9.4.0"
  6min_stack_comments = "Use EA (Entity Analytics) fields"
  7updated_date = "2026/09/18"
  8
  9[rule]
 10anomaly_threshold = 75
 11author = ["Elastic"]
 12description = """
 13A machine learning job has detected a sudden spike in host based traffic. This can be due to a range of security issues, such as a compromised system, DDoS attacks,
 14malware infections, privilege escalation, or data exfiltration.
 15"""
 16false_positives = [
 17    """
 18    System updates, scheduled backups, or misconfigured services may trigger this alert.
 19    """,
 20]
 21from = "now-1h"
 22interval = "15m"
 23license = "Elastic License v2"
 24machine_learning_job_id = "high_count_events_for_a_host_name_ea"
 25name = "Spike in host-based traffic"
 26setup = """## Setup
 27
 28This rule requires the installation of associated Machine Learning jobs, as well as data coming in from one of the following integrations:
 29- Elastic Defend
 30- Auditd Manager
 31- System
 32- Windows
 33
 34### Anomaly Detection Setup
 35
 36Once the rule is enabled, the associated Machine Learning job will start automatically. You can view the Machine Learning job linked under the "Definition" panel of the detection rule. If the job does not start due to an error, the issue must be resolved for the job to commence successfully. For more details on setting up anomaly detection jobs, refer to the [helper guide](https://www.elastic.co/guide/en/kibana/current/xpack-ml-anomalies.html).
 37
 38### Elastic Defend Integration Setup
 39Elastic Defend is integrated into the Elastic Agent using Fleet. Upon configuration, the integration allows the Elastic Agent to monitor events on your host and send data to the Elastic Security app.
 40
 41#### Prerequisite Requirements:
 42- Fleet is required for Elastic Defend.
 43- To configure Fleet Server refer to the [documentation](https://www.elastic.co/guide/en/fleet/current/fleet-server.html).
 44
 45#### The following steps should be executed in order to add the Elastic Defend integration to your system:
 46- Go to the Kibana home page and click "Add integrations".
 47- In the query bar, search for "Elastic Defend" and select the integration to see more details about it.
 48- Click "Add Elastic Defend".
 49- Configure the integration name and optionally add a description.
 50- Select the type of environment you want to protect, either "Traditional Endpoints" or "Cloud Workloads".
 51- Select a configuration preset. Each preset comes with different default settings for Elastic Agent, you can further customize these later by configuring the Elastic Defend integration policy. [Helper guide](https://www.elastic.co/guide/en/security/current/configure-endpoint-integration-policy.html).
 52- We suggest selecting "Complete EDR (Endpoint Detection and Response)" as a configuration setting, that provides "All events; all preventions"
 53- Enter a name for the agent policy in "New agent policy name". If other agent policies already exist, you can click the "Existing hosts" tab and select an existing policy instead.
 54For more details on Elastic Agent configuration settings, refer to the [helper guide](https://www.elastic.co/guide/en/fleet/current/agent-policy.html).
 55- Click "Save and Continue".
 56- To complete the integration, select "Add Elastic Agent to your hosts" and continue to the next section to install the Elastic Agent on your hosts.
 57For more details on Elastic Defend refer to the [helper guide](https://www.elastic.co/guide/en/security/current/install-endpoint.html).
 58
 59### Auditd Manager Integration Setup
 60The Auditd Manager Integration receives audit events from the Linux Audit Framework which is a part of the Linux kernel.
 61Auditd Manager provides a user-friendly interface and automation capabilities for configuring and monitoring system auditing through the auditd daemon. With `auditd_manager`, administrators can easily define audit rules, track system events, and generate comprehensive audit reports, improving overall security and compliance in the system.
 62
 63#### The following steps should be executed in order to add the Elastic Agent System integration "auditd_manager" to your system:
 64- Go to the Kibana home page and click “Add integrations”.
 65- In the query bar, search for “Auditd Manager” and select the integration to see more details about it.
 66- Click “Add Auditd Manager”.
 67- Configure the integration name and optionally add a description.
 68- Review optional and advanced settings accordingly.
 69- Add the newly installed “auditd manager” to an existing or a new agent policy, and deploy the agent on a Linux system from which auditd log files are desirable.
 70- Click “Save and Continue”.
 71- For more details on the integration refer to the [helper guide](https://docs.elastic.co/integrations/auditd_manager).
 72
 73#### Rule Specific Setup Note
 74Auditd Manager subscribes to the kernel and receives events as they occur without any additional configuration.
 75However, if more advanced configuration is required to detect specific behavior, audit rules can be added to the integration in either the "audit rules" configuration box or the "auditd rule files" box by specifying a file to read the audit rules from.
 76- For this detection rule no additional audit rules are required.
 77
 78### System Integration Setup
 79The System integration allows you to collect system logs and metrics from your servers with Elastic Agent.
 80
 81#### The following steps should be executed in order to add the Elastic Agent System integration "system" to your system:
 82- Go to the Kibana home page and click “Add integrations”.
 83- In the query bar, search for “System” and select the integration to see more details about it.
 84- Click “Add System”.
 85- Configure the integration name and optionally add a description.
 86- Review optional and advanced settings accordingly.
 87- Add the newly installed “system” to an existing or a new agent policy, and deploy the agent on your system from which system log files are desirable.
 88- Click “Save and Continue”.
 89- For more details on the integration refer to the [helper guide](https://docs.elastic.co/integrations/system).
 90
 91### Windows Integration Setup
 92The Windows integration allows you to monitor the Windows OS, services, applications, and more.
 93
 94#### The following steps should be executed in order to add the Elastic Agent System integration "windows" to your system:
 95- Go to the Kibana home page and click “Add integrations”.
 96- In the query bar, search for “Windows” and select the integration to see more details about it.
 97- Click “Add Windows”.
 98- Configure the integration name and optionally add a description.
 99- Review optional and advanced settings accordingly.
100- Add the newly installed “windows” to an existing or a new agent policy, and deploy the agent on your system from which windows log files are desirable.
101- Click “Save and Continue”.
102- For more details on the integration refer to the [helper guide](https://docs.elastic.co/integrations/windows).
103"""
104references = ["https://www.elastic.co/guide/en/security/current/prebuilt-ml-jobs.html"]
105risk_score = 21
106rule_id = "fe8d6507-b543-4bbc-849f-dc0da6db29f6"
107severity = "low"
108tags = [
109    "Data Source: Elastic Defend",
110    "Data Source: Auditd Manager",
111    "Data Source: Windows Security Event Logs",
112    "Use Case: Threat Detection",
113    "Rule Type: ML",
114    "Rule Type: Machine Learning",
115    "Resources: Investigation Guide",
116    "Domain: Endpoint",
117    "Platform: Windows",
118    "OS: Windows",
119]
120type = "machine_learning"
121note = """## Triage and analysis
122
123> **Disclaimer**:
124> This investigation guide was created using generative AI technology and has been reviewed to improve its accuracy and relevance. While every effort has been made to ensure its quality, we recommend validating the content and adapting it to suit your specific environment and operational needs.
125
126### Investigating Spike in host-based traffic
127The detection of a spike in host-based traffic leverages machine learning to identify anomalies in network behavior, which may indicate security threats like DDoS attacks or data exfiltration. Adversaries exploit this by overwhelming systems or stealthily transferring data. The rule, with a low severity score, flags unusual traffic patterns, enabling analysts to investigate potential compromises or misconfigurations.
128
129### Possible investigation steps
130
131- Review the timestamp and source of the traffic spike to determine the exact time and origin of the anomaly.
132- Analyze the affected host's network logs to identify any unusual outbound or inbound connections that coincide with the spike.
133- Check for any recent changes or updates on the affected host that might have triggered the spike, such as software installations or configuration changes.
134- Investigate any associated user accounts for signs of unauthorized access or privilege escalation activities.
135- Correlate the spike with other security alerts or logs to identify potential patterns or related incidents.
136- Assess the host for signs of malware infection or indicators of compromise that could explain the abnormal traffic behavior.
137
138### False positive analysis
139
140- Routine software updates or patch management activities can cause temporary spikes in host-based traffic. Users should monitor scheduled update times and create exceptions for these periods to avoid false positives.
141- Backup operations often generate increased network traffic. Identifying and excluding these regular backup windows from monitoring can help reduce false alerts.
142- High-volume data transfers within the organization, such as large file uploads or downloads for legitimate business purposes, may trigger the rule. Establishing baseline traffic patterns for these activities and setting exceptions can mitigate unnecessary alerts.
143- Automated scripts or batch processes that run at specific times and generate predictable traffic spikes should be documented and excluded from anomaly detection to prevent false positives.
144- Internal network scans or vulnerability assessments conducted by IT security teams can mimic malicious traffic patterns. These should be scheduled and whitelisted to avoid triggering the rule.
145
146### Response and remediation
147
148- Isolate the affected host from the network to prevent further data exfiltration or participation in a DDoS attack.
149- Conduct a thorough scan of the isolated host for malware or unauthorized software, and remove any malicious files or applications found.
150- Review and reset credentials for any accounts that may have been compromised, ensuring that privilege escalation is mitigated.
151- Monitor network traffic for any additional anomalies or spikes that could indicate further compromise or ongoing attacks.
152- Restore the affected host from a known good backup if malware or significant unauthorized changes are detected.
153- Implement network segmentation to limit the spread of potential threats and reduce the impact of similar incidents in the future.
154- Escalate the incident to the security operations center (SOC) or relevant team for further analysis and to determine if additional resources are needed for a comprehensive response."""
155
156[[rule.threat]]
157framework = "MITRE ATT&CK"
158
159[[rule.threat.technique]]
160id = "T1041"
161name = "Exfiltration Over C2 Channel"
162reference = "https://attack.mitre.org/techniques/T1041/"
163
164[[rule.threat.technique]]
165id = "T1048"
166name = "Exfiltration Over Alternative Protocol"
167reference = "https://attack.mitre.org/techniques/T1048/"
168
169[rule.threat.tactic]
170id = "TA0010"
171name = "Exfiltration"
172reference = "https://attack.mitre.org/tactics/TA0010/"
173
174[[rule.threat]]
175framework = "MITRE ATT&CK"
176
177[[rule.threat.technique]]
178id = "T1498"
179name = "Network Denial of Service"
180reference = "https://attack.mitre.org/techniques/T1498/"
181
182[[rule.threat.technique]]
183id = "T1499"
184name = "Endpoint Denial of Service"
185reference = "https://attack.mitre.org/techniques/T1499/"
186
187[rule.threat.tactic]
188id = "TA0040"
189name = "Impact"
190reference = "https://attack.mitre.org/tactics/TA0040/"
191
192[[rule.threat]]
193framework = "MITRE ATT&CK"
194
195[[rule.threat.technique]]
196id = "T1204"
197name = "User Execution"
198reference = "https://attack.mitre.org/techniques/T1204/"
199
200[rule.threat.tactic]
201id = "TA0002"
202name = "Execution"
203reference = "https://attack.mitre.org/tactics/TA0002/"
204
205[[rule.threat]]
206framework = "MITRE ATT&CK"
207
208[[rule.threat.technique]]
209id = "T1068"
210name = "Exploitation for Privilege Escalation"
211reference = "https://attack.mitre.org/techniques/T1068/"
212
213[rule.threat.tactic]
214id = "TA0004"
215name = "Privilege Escalation"
216reference = "https://attack.mitre.org/tactics/TA0004/"
217
218[[rule.threat]]
219framework = "MITRE ATT&CK"
220
221[[rule.threat.technique]]
222id = "T1071"
223name = "Application Layer Protocol"
224reference = "https://attack.mitre.org/techniques/T1071/"
225
226[rule.threat.tactic]
227id = "TA0011"
228name = "Command and Control"
229reference = "https://attack.mitre.org/tactics/TA0011/"
230
231[[rule.threat]]
232framework = "MITRE ATT&CK"
233
234[[rule.threat.technique]]
235id = "T1046"
236name = "Network Service Discovery"
237reference = "https://attack.mitre.org/techniques/T1046/"
238
239[rule.threat.tactic]
240id = "TA0007"
241name = "Discovery"
242reference = "https://attack.mitre.org/tactics/TA0007/"

Triage and analysis

Disclaimer: This investigation guide was created using generative AI technology and has been reviewed to improve its accuracy and relevance. While every effort has been made to ensure its quality, we recommend validating the content and adapting it to suit your specific environment and operational needs.

Investigating Spike in host-based traffic

The detection of a spike in host-based traffic leverages machine learning to identify anomalies in network behavior, which may indicate security threats like DDoS attacks or data exfiltration. Adversaries exploit this by overwhelming systems or stealthily transferring data. The rule, with a low severity score, flags unusual traffic patterns, enabling analysts to investigate potential compromises or misconfigurations.

Possible investigation steps

  • Review the timestamp and source of the traffic spike to determine the exact time and origin of the anomaly.
  • Analyze the affected host's network logs to identify any unusual outbound or inbound connections that coincide with the spike.
  • Check for any recent changes or updates on the affected host that might have triggered the spike, such as software installations or configuration changes.
  • Investigate any associated user accounts for signs of unauthorized access or privilege escalation activities.
  • Correlate the spike with other security alerts or logs to identify potential patterns or related incidents.
  • Assess the host for signs of malware infection or indicators of compromise that could explain the abnormal traffic behavior.

False positive analysis

  • Routine software updates or patch management activities can cause temporary spikes in host-based traffic. Users should monitor scheduled update times and create exceptions for these periods to avoid false positives.
  • Backup operations often generate increased network traffic. Identifying and excluding these regular backup windows from monitoring can help reduce false alerts.
  • High-volume data transfers within the organization, such as large file uploads or downloads for legitimate business purposes, may trigger the rule. Establishing baseline traffic patterns for these activities and setting exceptions can mitigate unnecessary alerts.
  • Automated scripts or batch processes that run at specific times and generate predictable traffic spikes should be documented and excluded from anomaly detection to prevent false positives.
  • Internal network scans or vulnerability assessments conducted by IT security teams can mimic malicious traffic patterns. These should be scheduled and whitelisted to avoid triggering the rule.

Response and remediation

  • Isolate the affected host from the network to prevent further data exfiltration or participation in a DDoS attack.
  • Conduct a thorough scan of the isolated host for malware or unauthorized software, and remove any malicious files or applications found.
  • Review and reset credentials for any accounts that may have been compromised, ensuring that privilege escalation is mitigated.
  • Monitor network traffic for any additional anomalies or spikes that could indicate further compromise or ongoing attacks.
  • Restore the affected host from a known good backup if malware or significant unauthorized changes are detected.
  • Implement network segmentation to limit the spread of potential threats and reduce the impact of similar incidents in the future.
  • Escalate the incident to the security operations center (SOC) or relevant team for further analysis and to determine if additional resources are needed for a comprehensive response.

References

Related rules

to-top