Hangover2_backdoor_shell

YARA-2025-1661 High general Active
No description available for this rule
Hangover2_backdoor_shell.yar Valid Syntax
rule Hangover2_backdoor_shell {
    meta:
        author = "Alienvault Labs"
        reference = "https://www.alienvault.com/blogs/labs-research/microsoft-office-zeroday-used-to-attack-pakistani-targets"

  strings:

    $a = "Shell started at: " wide ascii

    $b = "Shell closed at: " wide ascii

    $c = "Shell is already closed!" wide ascii

    $d = "Shell is not Running!" wide ascii

  condition:

    all of them
}

Rule Metadata

author
Alienvault Labs
reference
https://www.alienvault.com/blogs/labs-research/microsoft-office-zeroday-used-to-attack-pakistani-targets

String Definitions

{"name":"$a","value":"\"Shell started at: \" wide ascii"}
{"name":"$b","value":"\"Shell closed at: \" wide ascii"}
{"name":"$c","value":"\"Shell is already closed!\" wide ascii"}
{"name":"$d","value":"\"Shell is not Running!\" wide ascii"}

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 Hangover2_backdoor_shell.yar /path/to/suspicious/file

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

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

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

Integration Examples

Python (yara-python)

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

ClamAV Integration

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

Rule Information

YARA ID
YARA-2025-1661
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