Potential System Tampering via File Modification
Identifies attempts to delete or modify critical files used during the boot process to prevent the system from booting. This may indicate a destructive attack behavior.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2025/09/01"
3integration = ["endpoint", "windows", "m365_defender", "sentinel_one_cloud_funnel", "crowdstrike"]
4maturity = "production"
5updated_date = "2025/09/01"
6
7[rule]
8author = ["Elastic"]
9description = """
10Identifies attempts to delete or modify critical files used during the boot process to prevent the system from booting.
11This may indicate a destructive attack behavior.
12"""
13from = "now-9m"
14index = [
15 "winlogbeat-*",
16 "logs-endpoint.events.file-*",
17 "logs-windows.sysmon_operational-*",
18 "endgame-*",
19 "logs-m365_defender.event-*",
20 "logs-sentinel_one_cloud_funnel.*",
21 "logs-crowdstrike.fdr*",
22]
23language = "eql"
24license = "Elastic License v2"
25name = "Potential System Tampering via File Modification"
26note = """## Triage and analysis
27
28### Investigating Potential System Tampering via File Modification
29
30This rule identifies attempts to delete or modify critical files used during the boot process to prevent the system from booting.
31
32#### Possible investigation steps
33
34- Investigate the process execution chain (parent process tree) for unknown processes.
35- Assess all deleted or modified system critical files and perform a complete recovery of those files to prevent system booting issues.
36- Investigate other alerts associated with the user/host during the past 48 hours.
37- Identify the user account that performed the action and whether it should perform this kind of action, if not immedialy disable the account.
38
39### False positive analysis
40
41- Analysts can dismiss the alert if the administrator is aware of the activity, no other suspicious activity was identified, and there are justifications for the execution.
42
43### Response and remediation
44
45- Initiate the incident response process based on the outcome of the triage.
46 - Prioritize cases involving critical servers and users.
47- Isolate the involved hosts to prevent further post-compromise behavior.
48- 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.
49- If important data was encrypted, deleted, or modified, activate your data recovery plan.
50 - Perform data recovery locally or restore the backups from replicated copies (cloud, other servers, etc.).
51- Run a full antimalware scan. This may reveal additional artifacts left in the system, persistence mechanisms, and malware components.
52- Determine the initial vector abused by the attacker and take action to prevent reinfection through the same vector.
53- Review the privileges assigned to the user to ensure that the least privilege principle is being followed.
54- 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).
55"""
56risk_score = 73
57rule_id = "1a3f2a4c-12d0-4b88-961a-2711ee295637"
58severity = "high"
59tags = [
60 "Domain: Endpoint",
61 "OS: Windows",
62 "Use Case: Threat Detection",
63 "Tactic: Defense Evasion",
64 "Tactic: Impact",
65 "Data Source: Elastic Endgame",
66 "Resources: Investigation Guide",
67 "Data Source: Elastic Defend",
68 "Data Source: Sysmon",
69 "Data Source: Microsoft Defender for Endpoint",
70 "Data Source: SentinelOne",
71 "Data Source: Crowdstrike",
72]
73timestamp_override = "event.ingested"
74type = "eql"
75
76query = '''
77file where host.os.type == "windows" and event.type in ("change", "deletion") and
78 file.name : ("winload.exe", "winlod.efi", "ntoskrnl.exe", "bootmgr") and
79 file.path : ("?:\\Windows\\*", "\\Device\\HarddiskVolume*\\Windows\\*") and
80 not process.executable : ("?:\\Windows\\System32\\poqexec.exe", "?\\Device\\HarddiskVolume*\\Windows\\System32\\poqexec.exe")
81'''
82
83
84[[rule.threat]]
85framework = "MITRE ATT&CK"
86[[rule.threat.technique]]
87id = "T1485"
88name = "Data Destruction"
89reference = "https://attack.mitre.org/techniques/T1485/"
90[[rule.threat.technique]]
91id = "T1490"
92name = "Inhibit System Recovery"
93reference = "https://attack.mitre.org/techniques/T1490/"
94
95
96[rule.threat.tactic]
97id = "TA0040"
98name = "Impact"
99reference = "https://attack.mitre.org/tactics/TA0040/"
Triage and analysis
Investigating Potential System Tampering via File Modification
This rule identifies attempts to delete or modify critical files used during the boot process to prevent the system from booting.
Possible investigation steps
- Investigate the process execution chain (parent process tree) for unknown processes.
- Assess all deleted or modified system critical files and perform a complete recovery of those files to prevent system booting issues.
- Investigate other alerts associated with the user/host during the past 48 hours.
- Identify the user account that performed the action and whether it should perform this kind of action, if not immedialy disable the account.
False positive analysis
- Analysts can dismiss the alert if the administrator is aware of the activity, no other suspicious activity was identified, and there are justifications for the execution.
Response and remediation
- Initiate the incident response process based on the outcome of the triage.
- Prioritize cases involving critical servers and users.
- Isolate the involved hosts to prevent further post-compromise behavior.
- 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.
- If important data was encrypted, deleted, or modified, activate your data recovery plan.
- Perform data recovery locally or restore the backups from replicated copies (cloud, other servers, etc.).
- 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.
- Review the privileges assigned to the user to ensure that the least privilege principle is being followed.
- 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).
Related rules
- Potential Secure File Deletion via SDelete Utility
- Potential Remote Install via MsiExec
- Proxy Execution via Console Window Host
- Proxy Execution via Windows OpenSSH
- Script Execution via Microsoft HTML Application