High Number of Process and/or Service Terminations
This rule identifies a high number (10) of process terminations (stop, delete, or suspend) from the same host within a short time period.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2020/12/03"
3integration = ["endpoint", "windows", "system"]
4min_stack_comments = "Breaking change at 8.14.0 for the Windows Integration."
5min_stack_version = "8.14.0"
6maturity = "production"
7updated_date = "2024/09/28"
8
9[rule]
10author = ["Elastic"]
11description = """
12This rule identifies a high number (10) of process terminations (stop, delete, or suspend) from the same host within a
13short time period.
14"""
15from = "now-9m"
16index = [
17 "winlogbeat-*",
18 "logs-endpoint.events.process-*",
19 "logs-windows.*",
20 "endgame-*",
21 "logs-system.security*",
22]
23language = "kuery"
24license = "Elastic License v2"
25name = "High Number of Process and/or Service Terminations"
26note = """## Triage and analysis
27
28### Investigating High Number of Process and/or Service Terminations
29
30Attackers can stop services and kill processes for a variety of purposes. For example, they can stop services associated with business applications and databases to release the lock on files used by these applications so they may be encrypted, or stop security and backup solutions, etc.
31
32This rule identifies a high number (10) of service and/or process terminations (stop, delete, or suspend) from the same host within a short time period.
33
34#### Possible investigation steps
35
36- Investigate the script execution chain (parent process tree) for unknown processes. Examine their executable files for prevalence, whether they are located in expected locations, and if they are signed with valid digital signatures.
37- Identify the user account that performed the action and whether it should perform this kind of action.
38- Contact the account owner and confirm whether they are aware of this activity.
39- Investigate other alerts associated with the user/host during the past 48 hours.
40- Check if any files on the host machine have been encrypted.
41
42### False positive analysis
43
44- This activity is unlikely to happen legitimately. Benign true positives (B-TPs) can be added as exceptions if necessary.
45
46### Response and remediation
47
48- Initiate the incident response process based on the outcome of the triage.
49- Isolate the involved host to prevent further destructive behavior, which is commonly associated with this activity.
50- 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.
51- Reimage the host operating system or restore it to the operational state.
52- If any other destructive action was identified on the host, it is recommended to prioritize the investigation and look for ransomware preparation and execution activities.
53- Run a full antimalware scan. This may reveal additional artifacts left in the system, persistence mechanisms, and malware components.
54- Determine the initial vector abused by the attacker and take action to prevent reinfection through the same vector.
55- 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).
56"""
57references = ["https://www.elastic.co/security-labs/luna-ransomware-attack-pattern"]
58risk_score = 47
59rule_id = "035889c4-2686-4583-a7df-67f89c292f2c"
60severity = "medium"
61tags = [
62 "Domain: Endpoint",
63 "OS: Windows",
64 "Use Case: Threat Detection",
65 "Tactic: Impact",
66 "Resources: Investigation Guide",
67 "Data Source: Elastic Endgame",
68 "Data Source: Elastic Defend",
69 "Data Source: System",
70]
71timestamp_override = "event.ingested"
72type = "threshold"
73
74query = '''
75event.category:process and host.os.type:windows and event.type:start and process.name:(net.exe or sc.exe or taskkill.exe) and
76 process.args:(stop or pause or delete or "/PID" or "/IM" or "/T" or "/F" or "/t" or "/f" or "/im" or "/pid") and
77 not process.parent.name:osquerybeat.exe
78'''
79
80
81[[rule.threat]]
82framework = "MITRE ATT&CK"
83[[rule.threat.technique]]
84id = "T1489"
85name = "Service Stop"
86reference = "https://attack.mitre.org/techniques/T1489/"
87
88
89[rule.threat.tactic]
90id = "TA0040"
91name = "Impact"
92reference = "https://attack.mitre.org/tactics/TA0040/"
93
94[rule.threshold]
95field = ["host.id"]
96value = 10
Triage and analysis
Investigating High Number of Process and/or Service Terminations
Attackers can stop services and kill processes for a variety of purposes. For example, they can stop services associated with business applications and databases to release the lock on files used by these applications so they may be encrypted, or stop security and backup solutions, etc.
This rule identifies a high number (10) of service and/or process terminations (stop, delete, or suspend) from the same host within a short time period.
Possible investigation steps
- Investigate the script execution chain (parent process tree) for unknown processes. Examine their executable files for prevalence, whether they are located in expected locations, and if they are signed with valid digital signatures.
- Identify the user account that performed the action and whether it should perform this kind of action.
- Contact the account owner and confirm whether they are aware of this activity.
- Investigate other alerts associated with the user/host during the past 48 hours.
- Check if any files on the host machine have been encrypted.
False positive analysis
- This activity is unlikely to happen legitimately. Benign true positives (B-TPs) can be added as exceptions if necessary.
Response and remediation
- Initiate the incident response process based on the outcome of the triage.
- Isolate the involved host to prevent further destructive behavior, which is commonly associated with this activity.
- 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.
- Reimage the host operating system or restore it to the operational state.
- If any other destructive action was identified on the host, it is recommended to prioritize the investigation and look for ransomware preparation and execution activities.
- Run a full antimalware scan. This may reveal additional artifacts left in the system, persistence mechanisms, and malware components.
- Determine the initial vector abused by the attacker and take action to prevent reinfection through the same vector.
- 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
- Volume Shadow Copy Deletion via WMIC
- Deleting Backup Catalogs with Wbadmin
- Modification of Boot Configuration
- Volume Shadow Copy Deleted or Resized via VssAdmin
- Volume Shadow Copy Deletion via PowerShell