Skip to content

Commit 9fdef94

Browse files
Apply suggestions from code review
Co-authored-by: Samirbous <[email protected]>
1 parent a8d8273 commit 9fdef94

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

rules/cross-platform/command_and_control_genai_process_suspicious_tld_connection.toml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
creation_date = "2025/12/04"
3-
integration = ["endpoint"]
3+
integration = ["endpoint", "windows"]
44
maturity = "production"
55
updated_date = "2025/12/04"
66

@@ -13,7 +13,7 @@ services use well-established domains (.com, .ai, .io), so connections to suspic
1313
tools, malicious plugins, or AI-generated code connecting to attacker infrastructure.
1414
"""
1515
from = "now-9m"
16-
index = ["logs-endpoint.events.*"]
16+
index = ["logs-endpoint.events.network*", "winlogbeat-*", "logs-windows.sysmon_operational-*"]
1717
language = "eql"
1818
license = "Elastic License v2"
1919
name = "GenAI Process Connection to Suspicious Top Level Domain"
@@ -66,6 +66,7 @@ tags = [
6666
"Use Case: Threat Detection",
6767
"Tactic: Command and Control",
6868
"Data Source: Elastic Defend",
69+
"Data Source: Sysmon",
6970
"Resources: Investigation Guide",
7071
"Domain: LLM",
7172
"Mitre Atlas: T0086",
@@ -100,14 +101,11 @@ network where host.os.type in ("macos", "windows") and
100101
(
101102
// Windows DNS events
102103
(host.os.type == "windows" and dns.question.name != null and
103-
dns.question.name like~ ("*.top", "*.buzz", "*.xyz", "*.rest", "*.ml", "*.cf", "*.gq", "*.ga", "*.onion", "*.monster", "*.cyou", "*.quest", "*.cc", "*.bar", "*.cfd", "*.click", "*.cam",
104-
"*.surf", "*.tk", "*.shop", "*.club", "*.icu", "*.pw", "*.ws", "*.online", "*.fun", "*.life", "*.boats", "*.store", "*.hair", "*.skin", "*.motorcycles", "*.christmas", "*.lol", "*.makeup",
105-
"*.mom", "*.bond", "*.beauty", "*.biz", "*.live")) or
104+
dns.question.name regex """.*\.(top|buzz|xyz|rest|ml|cf|gq|ga|onion|monster|cyou|quest|cc|bar|cfd|click|cam|surf|tk|shop|club|icu|pw|ws|online|fun|life|boats|store|hair|skin|motorcycles|christmas|lol|makeup|mom|bond|beauty|biz|live|work|zip|country|accountant|date|party|science|loan|win|men|faith|review|racing|download|host)""") or
105+
106106
// macOS network events
107107
(host.os.type == "macos" and destination.domain != null and
108-
destination.domain like~ ("*.top", "*.buzz", "*.xyz", "*.rest", "*.ml", "*.cf", "*.gq", "*.ga", "*.onion", "*.monster", "*.cyou", "*.quest", "*.cc", "*.bar", "*.cfd", "*.click", "*.cam",
109-
"*.surf", "*.tk", "*.shop", "*.club", "*.icu", "*.pw", "*.ws", "*.online", "*.fun", "*.life", "*.boats", "*.store", "*.hair", "*.skin", "*.motorcycles", "*.christmas", "*.lol", "*.makeup",
110-
"*.mom", "*.bond", "*.beauty", "*.biz", "*.live"))
108+
destination.domain regex """.*\.(top|buzz|xyz|rest|ml|cf|gq|ga|onion|monster|cyou|quest|cc|bar|cfd|click|cam|surf|tk|shop|club|icu|pw|ws|online|fun|life|boats|store|hair|skin|motorcycles|christmas|lol|makeup|mom|bond|beauty|biz|live|work|zip|country|accountant|date|party|science|loan|win|men|faith|review|racing|download|host)""")
111109
)
112110
'''
113111

0 commit comments

Comments
 (0)