shrug2_ransomware

YARA-2025-0763 Critical general Active

Rule to detect Shrug2 ransomware

shrug2_ransomware.yar Valid Syntax
rule shrug2_ransomware {

   meta:

      description = "Rule to detect Shrug2 ransomware"
      author = "Marc Rivero | @seifreed"
      reference = "https://blogs.quickheal.com/new-net-ransomware-shrug2/"
       
   strings:

      $s1 = "C:\\Users\\Gamer\\Desktop\\Shrug2\\ShrugTwo\\ShrugTwo\\obj\\Debug\\ShrugTwo.pdb" fullword ascii
      $s2 = "http://tempacc11vl.000webhostapp.com/" fullword wide
      $s4 = "Shortcut for @ShrugDecryptor@.exe" fullword wide
      $s5 = "C:\\Users\\" fullword wide
      $s6 = "http://clients3.google.com/generate_204" fullword wide
      $s7 = "\\Desktop\\@ShrugDecryptor@.lnk" fullword wide
   
   condition:
      ( uint16(0) == 0x5a4d and filesize < 2000KB ) and all of them 
}

Rule Metadata

description
Rule to detect Shrug2 ransomware
author
Marc Rivero | @seifreed
reference
https://blogs.quickheal.com/new-net-ransomware-shrug2/

String Definitions

{"name":"$s1","value":"\"C:\\\\Users\\\\Gamer\\\\Desktop\\\\Shrug2\\\\ShrugTwo\\\\ShrugTwo\\\\obj\\\\Debug\\\\ShrugTwo.pdb\" fullword ascii"}
{"name":"$s2","value":"\"http:\/\/tempacc11vl.000webhostapp.com\/\" fullword wide"}
{"name":"$s4","value":"\"Shortcut for @ShrugDecryptor@.exe\" fullword wide"}
{"name":"$s5","value":"\"C:\\\\Users\\\\\" fullword wide"}
{"name":"$s6","value":"\"http:\/\/clients3.google.com\/generate_204\" fullword wide"}
{"name":"$s7","value":"\"\\\\Desktop\\\\@ShrugDecryptor@.lnk\" fullword wide"}

Threat Analysis

This YARA rule is designed to detect general threats.

Severity Level: Critical

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

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

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

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

Integration Examples

Python (yara-python)

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

ClamAV Integration

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

Rule Information

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

Threat Intelligence

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

Export Options