SecBoard
Zurück zur CVE-Übersicht

CVE-2020-14145

MEDIUM(5.9)

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Risk Signal Score16/100 — NIEDRIG
  • CVSS 5.9 — Mittel

EPSS-Score

2.9%

Exploit-Wahrscheinlichkeit (30 Tage)

CVSS Score

5.9

Technische Schwere

Beschreibung

The client side in OpenSSH 5.7 through 8.4 has an Observable Discrepancy leading to an information leak in the algorithm negotiation. This allows man-in-the-middle attackers to target initial connection attempts (where no host key for the server has been cached by the client). NOTE: some reports state that 8.5 and 8.6 are also affected.

Erkennung & Indikatoren

Ausnutzung

In den geprüften Quellen nicht genannt

Behobene Versionen

  • 8.5_p1

Threat-Hunting-Queries

Detection for OpenSSH client-side information leak during algorithm negotiation, specifically targeting man-in-the-middle attacks on initial connections. This query looks for unusual SSH client connection patterns or errors related to host key verification.

Sentinel/Defender KQL

DeviceNetworkEvents
| where InitiatingProcessFileName has "ssh" or InitiatingProcessCommandLine has "ssh"
| where ActionType == "ConnectionAttempt"
| where RemotePort == 22
| summarize ConnectionCount = count() by DeviceName, InitiatingProcessCommandLine, RemoteIP
| where ConnectionCount > 5 // Adjust threshold as needed for unusual connection attempts
| join kind=leftouter (
    DeviceFileEvents
    | where FileName has "known_hosts"
    | summarize LastModified = max(Timestamp) by DeviceName, FolderPath
) on DeviceName
| where isempty(LastModified) or LastModified < ago(7d) // Potentially new or rarely updated known_hosts, indicating initial connections

Splunk SPL

(sourcetype=linux_secure OR sourcetype=syslog) (program=sshd OR program=ssh) "connection from" OR "Host key verification failed"
| stats count by host, user, src_ip, _time
| where count > 5 // Adjust threshold for unusual connection attempts
| join type=left (
    (sourcetype=linux_audit OR sourcetype=syslog) (file="known_hosts" AND action=modified)
    | stats max(_time) as known_hosts_last_modified by host
) on host
| where isnull(known_hosts_last_modified) OR known_hosts_last_modified < relative_time(now(), "-7d")

Sigma

title: OpenSSH Client Info Leak Attempt
id: 00000000-0000-0000-0000-0000000014145
status: experimental
description: Detects potential attempts to exploit CVE-2020-14145 in OpenSSH clients by looking for unusual SSH connection patterns or host key verification failures, especially on initial connections.
author: SecBoard
date: 2023/10/27
logsource:
  product: linux
  service: auditd
detection:
  selection:
    - 'syscall=connect'
    - 'comm="ssh"'
    - 'daddr!=127.0.0.1'
    - 'dport=22'
  condition: selection | count() by src_ip, daddr > 5
falsepositives:
  - Legitimate new SSH connections to multiple hosts
level: medium

Elastic ES|QL

from network where process.name : "ssh" and destination.port == 22 and event.type == "start" and not destination.ip : ("127.0.0.1", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16")
| stats connection_count = count() by host.name, process.command_line, destination.ip
| where connection_count > 5
| join {
    from file where file.path : "*known_hosts*" and event.type == "change"
    | stats last_modified = max(event.timestamp) by host.name
} on host.name
| where is_null(last_modified) or last_modified < now() - INTERVAL 7 DAY

SecBoard-generated · behavioral · requires customization — Von SecBoard erzeugt und nicht in einer Zielumgebung validiert. Vor dem Einsatz an die eigene Protokollierung anpassen.

Indikatoren

Datei-Hashes (1)

  • b3855ff053f5078ec3d3c653cdaedefaa5fc362d

Übernommen wurden nur Indikatoren, die wörtlich in einer Hersteller- oder Research-Quelle standen.

Betroffene Produkte

  • cpe:2.3:a:openbsd:openssh:*:*:*:*:*:*:*:*
  • cpe:2.3:a:openbsd:openssh:8.4:-:*:*:*:*:*:*
  • cpe:2.3:a:openbsd:openssh:8.5:-:*:*:*:*:*:*
  • cpe:2.3:a:openbsd:openssh:8.6:-:*:*:*:*:*:*
  • cpe:2.3:o:netapp:aff_a700s_firmware:-:*:*:*:*:*:*:*
  • cpe:2.3:a:netapp:active_iq_unified_manager:*:*:*:*:*:vmware_vsphere:*:*
  • cpe:2.3:a:netapp:hci_management_node:-:*:*:*:*:*:*:*
  • cpe:2.3:a:netapp:ontap_select_deploy_administration_utility:-:*:*:*:*:*:*:*
  • cpe:2.3:a:netapp:solidfire:-:*:*:*:*:*:*:*
  • cpe:2.3:a:netapp:steelstore_cloud_integrated_storage:-:*:*:*:*:*:*:*
  • cpe:2.3:h:netapp:hci_compute_node:-:*:*:*:*:*:*:*
  • cpe:2.3:h:netapp:hci_storage_node:-:*:*:*:*:*:*:*

Referenzen