Backdoored_ssh

YARA-2025-0765 High general Active
No description available for this rule
Backdoored_ssh.yar Valid Syntax
rule Backdoored_ssh {
meta:
author = "Kaspersky"
reference = "https://securelist.com/energetic-bear-crouching-yeti/85345/"
actor = "Energetic Bear/Crouching Yeti"
strings:
$a1 = "OpenSSH"
$a2 = "usage: ssh"
$a3 = "HISTFILE"
condition:
uint32(0) == 0x464c457f and filesize<1000000 and all of ($a*)
}

Rule Metadata

author
Kaspersky
reference
https://securelist.com/energetic-bear-crouching-yeti/85345/
actor
Energetic Bear/Crouching Yeti

String Definitions

{"name":"$a1","value":"\"OpenSSH\""}
{"name":"$a2","value":"\"usage: ssh\""}
{"name":"$a3","value":"\"HISTFILE\""}

Threat Analysis

This YARA rule is designed to detect general threats.

Severity Level: High

The rule uses pattern matching to identify specific byte sequences, strings, or behavioral patterns associated with malicious activity.

Detection Capabilities

  • File-based detection for executables and documents
  • Memory scanning for running processes
  • Network traffic analysis support

Command Line Usage

# Scan a single file
yara Backdoored_ssh.yar /path/to/suspicious/file

# Scan a directory recursively
yara -r Backdoored_ssh.yar /path/to/directory/

# Scan with metadata output
yara -m Backdoored_ssh.yar target_file

# Scan process memory (Linux)
yara Backdoored_ssh.yar /proc/[pid]/exe

Integration Examples

Python (yara-python)

import yara
rules = yara.compile(filepath='Backdoored_ssh.yar')
matches = rules.match('/path/to/file')

ClamAV Integration

clamscan --yara-rules=Backdoored_ssh.yar /path/to/scan

Rule Information

YARA ID
YARA-2025-0765
Created
August 19, 2025
Last Updated
August 19, 2025
Last Imported
Never

Threat Intelligence

Risk Level High
Category general
Detection Confidence Analysis Pending
False Positive Rate Not Available
Last Seen in Wild No Data

Export Options