WebServer Access Logs Deleted

Identifies the deletion of WebServer access logs. This may indicate an attempt to evade detection or destroy forensic evidence on a system.

Elastic rule (View on GitHub)

 1[metadata]
 2creation_date = "2020/11/03"
 3integration = ["endpoint", "windows"]
 4maturity = "production"
 5updated_date = "2024/05/21"
 6
 7[rule]
 8author = ["Elastic"]
 9description = """
10Identifies the deletion of WebServer access logs. This may indicate an attempt to evade detection or destroy forensic
11evidence on a system.
12"""
13from = "now-9m"
14index = ["auditbeat-*", "winlogbeat-*", "logs-endpoint.events.*", "logs-windows.sysmon_operational-*"]
15language = "eql"
16license = "Elastic License v2"
17name = "WebServer Access Logs Deleted"
18risk_score = 47
19rule_id = "665e7a4f-c58e-4fc6-bc83-87a7572670ac"
20setup = """## Setup
21
22If enabling an EQL rule on a non-elastic-agent index (such as beats) for versions <8.2,
23events will not define `event.ingested` and default fallback for EQL rules was not added until version 8.2.
24Hence for this rule to work effectively, users will need to add a custom ingest pipeline to populate
25`event.ingested` to @timestamp.
26For more details on adding a custom ingest pipeline refer - https://www.elastic.co/guide/en/fleet/current/data-streams-pipeline-tutorial.html
27"""
28severity = "medium"
29tags = [
30    "Domain: Endpoint",
31    "OS: Linux",
32    "OS: Windows",
33    "OS: macOS",
34    "Use Case: Threat Detection",
35    "Tactic: Defense Evasion",
36    "Data Source: Elastic Defend",
37    "Data Source: Sysmon",
38]
39timestamp_override = "event.ingested"
40type = "eql"
41
42query = '''
43file where event.type == "deletion" and
44  file.path : ("C:\\inetpub\\logs\\LogFiles\\*.log",
45               "/var/log/apache*/access.log",
46               "/etc/httpd/logs/access_log",
47               "/var/log/httpd/access_log",
48               "/var/www/*/logs/access.log")
49'''
50
51
52[[rule.threat]]
53framework = "MITRE ATT&CK"
54[[rule.threat.technique]]
55id = "T1070"
56name = "Indicator Removal"
57reference = "https://attack.mitre.org/techniques/T1070/"
58
59
60[rule.threat.tactic]
61id = "TA0005"
62name = "Defense Evasion"
63reference = "https://attack.mitre.org/tactics/TA0005/"

Related rules

to-top