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

Related rules

to-top