Spike in Successful Logon Events from a Source IP
A machine learning job found an unusually large spike in successful authentication events from a particular source IP address. This can be due to password spraying, user enumeration or brute force activity.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2021/06/10"
3integration = ["auditd_manager", "endpoint", "system"]
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 found an unusually large spike in successful authentication events from a particular source IP
14address. This can be due to password spraying, user enumeration or brute force activity.
15"""
16false_positives = [
17 """
18 Build servers and CI systems can sometimes trigger this alert. Security test cycles that include brute force or
19 password spraying activities may trigger this alert.
20 """,
21]
22from = "now-30m"
23interval = "15m"
24license = "Elastic License v2"
25machine_learning_job_id = "auth_high_count_logon_events_for_a_source_ip_ea"
26name = "Spike in Successful Logon Events from a Source IP"
27setup = """## Setup
28
29This rule requires the installation of associated Machine Learning jobs, as well as data coming in from one of the following integrations:
30- Elastic Defend
31- Auditd Manager
32- System
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"""
91note = """## Triage and analysis
92
93### Investigating Spike in Successful Logon Events from a Source IP
94
95This rule uses a machine learning job to detect a substantial spike in successful authentication events. This could indicate post-exploitation activities that aim to test which hosts, services, and other resources the attacker can access with the compromised credentials.
96
97#### Possible investigation steps
98
99- Identify the specifics of the involved assets, such as role, criticality, and associated users.
100- Check if the authentication comes from different sources.
101- Use the historical data available to determine if the same behavior happened in the past.
102- Investigate other alerts associated with the involved users during the past 48 hours.
103- Check whether the involved credentials are used in automation or scheduled tasks.
104- If this activity is suspicious, contact the account owner and confirm whether they are aware of it.
105
106### False positive analysis
107
108- Understand the context of the authentications by contacting the asset owners. If this activity is related to a new business process or newly implemented (approved) technology, consider adding exceptions — preferably with a combination of user and source conditions.
109
110### Response and remediation
111
112- Initiate the incident response process based on the outcome of the triage.
113- Investigate credential exposure on systems compromised or used by the attacker to ensure all compromised accounts are identified. Reset passwords for these accounts and other potentially compromised credentials, such as email, business systems, and web services.
114- Using the incident response data, update logging and audit policies to improve the mean time to detect (MTTD) and the mean time to respond (MTTR).
115"""
116references = ["https://www.elastic.co/guide/en/security/current/prebuilt-ml-jobs.html"]
117risk_score = 21
118rule_id = "e26aed74-c816-40d3-a810-48d6fbd8b2fd"
119severity = "low"
120tags = [
121 "Data Source: Elastic Defend",
122 "Data Source: Auditd Manager",
123 "Data Source: Windows Security Event Logs",
124 "Use Case: Identity and Access Audit",
125 "Use Case: Threat Detection",
126 "Rule Type: ML",
127 "Rule Type: Machine Learning",
128 "Tactic: Credential Access",
129 "Tactic: Defense Evasion",
130 "Resources: Investigation Guide",
131]
132type = "machine_learning"
133[[rule.threat]]
134framework = "MITRE ATT&CK"
135
136[[rule.threat.technique]]
137id = "T1110"
138name = "Brute Force"
139reference = "https://attack.mitre.org/techniques/T1110/"
140
141[[rule.threat.technique.subtechnique]]
142id = "T1110.003"
143name = "Password Spraying"
144reference = "https://attack.mitre.org/techniques/T1110/003/"
145
146[rule.threat.tactic]
147id = "TA0006"
148name = "Credential Access"
149reference = "https://attack.mitre.org/tactics/TA0006/"
150
151[[rule.threat]]
152framework = "MITRE ATT&CK"
153
154[[rule.threat.technique]]
155id = "T1078"
156name = "Valid Accounts"
157reference = "https://attack.mitre.org/techniques/T1078/"
158
159[[rule.threat.technique.subtechnique]]
160id = "T1078.002"
161name = "Domain Accounts"
162reference = "https://attack.mitre.org/techniques/T1078/002/"
163
164[[rule.threat.technique.subtechnique]]
165id = "T1078.003"
166name = "Local Accounts"
167reference = "https://attack.mitre.org/techniques/T1078/003/"
168
169[rule.threat.tactic]
170id = "TA0005"
171name = "Defense Evasion"
172reference = "https://attack.mitre.org/tactics/TA0005/"
Triage and analysis
Investigating Spike in Successful Logon Events from a Source IP
This rule uses a machine learning job to detect a substantial spike in successful authentication events. This could indicate post-exploitation activities that aim to test which hosts, services, and other resources the attacker can access with the compromised credentials.
Possible investigation steps
- Identify the specifics of the involved assets, such as role, criticality, and associated users.
- Check if the authentication comes from different sources.
- Use the historical data available to determine if the same behavior happened in the past.
- Investigate other alerts associated with the involved users during the past 48 hours.
- Check whether the involved credentials are used in automation or scheduled tasks.
- If this activity is suspicious, contact the account owner and confirm whether they are aware of it.
False positive analysis
- Understand the context of the authentications by contacting the asset owners. If this activity is related to a new business process or newly implemented (approved) technology, consider adding exceptions — preferably with a combination of user and source conditions.
Response and remediation
- Initiate the incident response process based on the outcome of the triage.
- Investigate credential exposure on systems compromised or used by the attacker to ensure all compromised accounts are identified. Reset passwords for these accounts and other potentially compromised credentials, such as email, business systems, and web services.
- Using the incident response data, update logging and audit policies to improve the mean time to detect (MTTD) and the mean time to respond (MTTR).
References
Related rules
- Spike in Failed Logon Events
- Spike in Logon Events
- Unusual Login Activity
- Rare User Logon
- Unusual Source IP for a User to Logon from