Solarmarker_Packer_2

YARA-2025-0128 Medium general Active

another version showing observed possible packer in hexdump at specific offset ranges.

Solarmarker_Packer_2.yar Valid Syntax

/*
 This Yara ruleset is under the GNU-GPLv2 license (http://www.gnu.org/licenses/gpl-2.0.html) and open to any user or organization, as long as you use it under this license.
*/
rule Solarmarker_Packer_2
{
   meta:
        author = "Lucas Acha (http://www.lukeacha.com)"
        description = "another version showing observed possible packer in hexdump at specific offset ranges."
        reference = "http://security5magics.blogspot.com/2020/12/tracking-jupyter-malware.html" 
  strings:
      $mz = "MZ"
      $off1 = { 68 6b 65 79 00 46 72 6f 6d 42 61 73 65 36 34} 
      $off2 = { 70 61 63 6b 65 64 }
  condition:
     $off1 in (0x26000..0x32000) and $off2 in (0x26000..0x32000) and $mz at 0
}

Rule Metadata

author
Lucas Acha (http://www.lukeacha.com)
description
another version showing observed possible packer in hexdump at specific offset ranges.
reference
http://security5magics.blogspot.com/2020/12/tracking-jupyter-malware.html

String Definitions

{"name":"$mz","value":"\"MZ\""}
{"name":"$off1","value":"{ 68 6b 65 79 00 46 72 6f 6d 42 61 73 65 36 34}"}
{"name":"$off2","value":"{ 70 61 63 6b 65 64 }"}

Threat Analysis

This YARA rule is designed to detect general threats.

Severity Level: Medium

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

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

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

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

Integration Examples

Python (yara-python)

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

ClamAV Integration

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

Rule Information

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

Threat Intelligence

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

Export Options