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/07/27"
  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]
117type = "machine_learning"
118note = """## Triage and analysis
119
120> **Disclaimer**:
121> 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.
122
123### Investigating Spike in host-based traffic
124The 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.
125
126### Possible investigation steps
127
128- Review the timestamp and source of the traffic spike to determine the exact time and origin of the anomaly.
129- Analyze the affected host's network logs to identify any unusual outbound or inbound connections that coincide with the spike.
130- Check for any recent changes or updates on the affected host that might have triggered the spike, such as software installations or configuration changes.
131- Investigate any associated user accounts for signs of unauthorized access or privilege escalation activities.
132- Correlate the spike with other security alerts or logs to identify potential patterns or related incidents.
133- Assess the host for signs of malware infection or indicators of compromise that could explain the abnormal traffic behavior.
134
135### False positive analysis
136
137- 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.
138- Backup operations often generate increased network traffic. Identifying and excluding these regular backup windows from monitoring can help reduce false alerts.
139- 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.
140- 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.
141- 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.
142
143### Response and remediation
144
145- Isolate the affected host from the network to prevent further data exfiltration or participation in a DDoS attack.
146- Conduct a thorough scan of the isolated host for malware or unauthorized software, and remove any malicious files or applications found.
147- Review and reset credentials for any accounts that may have been compromised, ensuring that privilege escalation is mitigated.
148- Monitor network traffic for any additional anomalies or spikes that could indicate further compromise or ongoing attacks.
149- Restore the affected host from a known good backup if malware or significant unauthorized changes are detected.
150- Implement network segmentation to limit the spread of potential threats and reduce the impact of similar incidents in the future.
151- 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."""
152
153[[rule.threat]]
154framework = "MITRE ATT&CK"
155
156[[rule.threat.technique]]
157id = "T1041"
158name = "Exfiltration Over C2 Channel"
159reference = "https://attack.mitre.org/techniques/T1041/"
160
161[[rule.threat.technique]]
162id = "T1048"
163name = "Exfiltration Over Alternative Protocol"
164reference = "https://attack.mitre.org/techniques/T1048/"
165
166[rule.threat.tactic]
167id = "TA0010"
168name = "Exfiltration"
169reference = "https://attack.mitre.org/tactics/TA0010/"
170
171[[rule.threat]]
172framework = "MITRE ATT&CK"
173
174[[rule.threat.technique]]
175id = "T1498"
176name = "Network Denial of Service"
177reference = "https://attack.mitre.org/techniques/T1498/"
178
179[[rule.threat.technique]]
180id = "T1499"
181name = "Endpoint Denial of Service"
182reference = "https://attack.mitre.org/techniques/T1499/"
183
184[rule.threat.tactic]
185id = "TA0040"
186name = "Impact"
187reference = "https://attack.mitre.org/tactics/TA0040/"
188
189[[rule.threat]]
190framework = "MITRE ATT&CK"
191
192[[rule.threat.technique]]
193id = "T1204"
194name = "User Execution"
195reference = "https://attack.mitre.org/techniques/T1204/"
196
197[rule.threat.tactic]
198id = "TA0002"
199name = "Execution"
200reference = "https://attack.mitre.org/tactics/TA0002/"
201
202[[rule.threat]]
203framework = "MITRE ATT&CK"
204
205[[rule.threat.technique]]
206id = "T1068"
207name = "Exploitation for Privilege Escalation"
208reference = "https://attack.mitre.org/techniques/T1068/"
209
210[rule.threat.tactic]
211id = "TA0004"
212name = "Privilege Escalation"
213reference = "https://attack.mitre.org/tactics/TA0004/"
214
215[[rule.threat]]
216framework = "MITRE ATT&CK"
217
218[[rule.threat.technique]]
219id = "T1071"
220name = "Application Layer Protocol"
221reference = "https://attack.mitre.org/techniques/T1071/"
222
223[rule.threat.tactic]
224id = "TA0011"
225name = "Command and Control"
226reference = "https://attack.mitre.org/tactics/TA0011/"
227
228[[rule.threat]]
229framework = "MITRE ATT&CK"
230
231[[rule.threat.technique]]
232id = "T1046"
233name = "Network Service Discovery"
234reference = "https://attack.mitre.org/techniques/T1046/"
235
236[rule.threat.tactic]
237id = "TA0007"
238name = "Discovery"
239reference = "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