Skip to content

Commit 04ca2c8

Browse files
authored
[New Rule] Unusual Web Config File Access (#4927)
* [New Rule] Unusual Web Config File Access * Update credential_access_web_config_file_access.toml
1 parent 3de9456 commit 04ca2c8

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
[metadata]
2+
creation_date = "2025/07/23"
3+
integration = ["endpoint"]
4+
maturity = "production"
5+
updated_date = "2025/07/23"
6+
7+
[rule]
8+
author = ["Elastic"]
9+
description = """
10+
Detects unusual access to the web.config file, which contains sensitive credential information such as database
11+
connection strings, machineKey validation/decryption keys, and SAML/OAuth token settings. Attackers can use the
12+
information extracted to forge malicious __VIEWSTATE requests for persistent RCE on the web server or pivot to the SQL
13+
server using exposed connection strings.
14+
"""
15+
from = "now-9m"
16+
index = ["logs-endpoint.events.file-*"]
17+
language = "kuery"
18+
license = "Elastic License v2"
19+
name = "Unusual Web Config File Access"
20+
references = [
21+
"https://unit42.paloaltonetworks.com/microsoft-sharepoint-cve-2025-49704-cve-2025-49706-cve-2025-53770/",
22+
]
23+
risk_score = 47
24+
rule_id = "5841b80f-a1f8-4c00-a966-d2cc4a7a82e4"
25+
severity = "medium"
26+
tags = [
27+
"Domain: Endpoint",
28+
"OS: Windows",
29+
"Use Case: Threat Detection",
30+
"Tactic: Credential Access",
31+
"Data Source: Elastic Defend",
32+
]
33+
timestamp_override = "event.ingested"
34+
type = "new_terms"
35+
36+
query = '''
37+
event.category:file and host.os.type:windows and event.action:open and
38+
file.name:"web.config" and file.path : *VirtualDirectories*
39+
'''
40+
41+
42+
[[rule.threat]]
43+
framework = "MITRE ATT&CK"
44+
[[rule.threat.technique]]
45+
id = "T1003"
46+
name = "OS Credential Dumping"
47+
reference = "https://attack.mitre.org/techniques/T1003/"
48+
49+
50+
51+
[rule.threat.tactic]
52+
id = "TA0006"
53+
name = "Credential Access"
54+
reference = "https://attack.mitre.org/tactics/TA0006/"
55+
56+
[rule.new_terms]
57+
field = "new_terms_fields"
58+
value = ["process.executable", "user.id"]
59+
[[rule.new_terms.history_window_start]]
60+
field = "history_window_start"
61+
value = "now-7d"
62+
63+

0 commit comments

Comments
 (0)