Accepted Default Telnet Port Connection

This rule detects network events that may indicate the use of Telnet traffic. Telnet is commonly used by system administrators to remotely control older or embedded systems using the command line shell. It should almost never be directly exposed to the Internet, as it is frequently targeted and exploited by threat actors as an initial access or backdoor vector. As a plain-text protocol, it may also expose usernames and passwords to anyone capable of observing the traffic.

Elastic rule (View on GitHub)

 1[metadata]
 2creation_date = "2020/02/18"
 3integration = ["network_traffic"]
 4maturity = "production"
 5updated_date = "2024/05/21"
 6
 7[rule]
 8author = ["Elastic"]
 9description = """
10This rule detects network events that may indicate the use of Telnet traffic. Telnet is commonly used by system
11administrators to remotely control older or embedded systems using the command line shell. It should almost never be
12directly exposed to the Internet, as it is frequently targeted and exploited by threat actors as an initial access or
13backdoor vector. As a plain-text protocol, it may also expose usernames and passwords to anyone capable of observing the
14traffic.
15"""
16false_positives = [
17    """
18    IoT (Internet of Things) devices and networks may use telnet and can be excluded if desired. Some business
19    work-flows may use Telnet for administration of older devices. These often have a predictable behavior. Telnet
20    activity involving an unusual source or destination may be more suspicious. Telnet activity involving a production
21    server that has no known associated Telnet work-flow or business requirement is often suspicious.
22    """,
23]
24from = "now-9m"
25index = ["packetbeat-*", "auditbeat-*", "filebeat-*", "logs-network_traffic.*"]
26language = "kuery"
27license = "Elastic License v2"
28name = "Accepted Default Telnet Port Connection"
29risk_score = 47
30rule_id = "34fde489-94b0-4500-a76f-b8a157cf9269"
31severity = "medium"
32tags = [
33    "Domain: Endpoint",
34    "Use Case: Threat Detection",
35    "Tactic: Command and Control",
36    "Tactic: Lateral Movement",
37    "Tactic: Initial Access",
38]
39timeline_id = "300afc76-072d-4261-864d-4149714bf3f1"
40timeline_title = "Comprehensive Network Timeline"
41timestamp_override = "event.ingested"
42type = "query"
43
44query = '''
45(event.dataset:network_traffic.flow or event.category:(network or network_traffic))
46    and event.type:connection and not event.action:(
47        flow_dropped or denied or deny or
48        flow_terminated or timeout or Reject or network_flow)
49    and destination.port:23
50'''
51
52
53[[rule.threat]]
54framework = "MITRE ATT&CK"
55
56[rule.threat.tactic]
57id = "TA0011"
58name = "Command and Control"
59reference = "https://attack.mitre.org/tactics/TA0011/"
60[[rule.threat]]
61framework = "MITRE ATT&CK"
62[[rule.threat.technique]]
63id = "T1021"
64name = "Remote Services"
65reference = "https://attack.mitre.org/techniques/T1021/"
66
67
68[rule.threat.tactic]
69id = "TA0008"
70name = "Lateral Movement"
71reference = "https://attack.mitre.org/tactics/TA0008/"
72[[rule.threat]]
73framework = "MITRE ATT&CK"
74[[rule.threat.technique]]
75id = "T1190"
76name = "Exploit Public-Facing Application"
77reference = "https://attack.mitre.org/techniques/T1190/"
78
79
80[rule.threat.tactic]
81id = "TA0001"
82name = "Initial Access"
83reference = "https://attack.mitre.org/tactics/TA0001/"

Related rules

to-top