Skip to content

Commit 574c8d6

Browse files
authored
[Tuning] Simple HTTP Web Server Connection (#5209)
* Update persistence_simple_web_server_connection_accepted.toml * Update persistence_simple_web_server_connection_accepted.toml
1 parent a5c100a commit 574c8d6

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

rules/linux/persistence_simple_web_server_connection_accepted.toml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2024/12/17"
33
integration = ["endpoint"]
44
maturity = "production"
5-
updated_date = "2025/01/15"
5+
updated_date = "2025/10/13"
66

77
[rule]
88
author = ["Elastic"]
@@ -13,7 +13,7 @@ payload to the server web root, allowing them to regain remote access to the sys
1313
an attacker requests the server to execute a command or script via a potential backdoor.
1414
"""
1515
from = "now-9m"
16-
index = ["logs-endpoint.events.network*"]
16+
index = ["logs-endpoint.events.process*", "logs-endpoint.events.network*"]
1717
language = "eql"
1818
license = "Elastic License v2"
1919
name = "Simple HTTP Web Server Connection"
@@ -58,10 +58,13 @@ tags = [
5858
timestamp_override = "event.ingested"
5959
type = "eql"
6060
query = '''
61-
network where host.os.type == "linux" and event.type == "start" and event.action == "connection_accepted" and (
61+
sequence by process.entity_id with maxspan=1m
62+
[process where host.os.type == "linux" and event.type == "start" and
63+
(
6264
(process.name regex~ """php?[0-9]?\.?[0-9]{0,2}""" and process.command_line like "*-S*") or
6365
(process.name like "python*" and process.command_line like ("*--cgi*", "*CGIHTTPServer*"))
64-
)
66+
)]
67+
[network where host.os.type == "linux" and event.type == "start" and event.action == "connection_accepted"]
6568
'''
6669
note = """## Triage and analysis
6770

0 commit comments

Comments
 (0)