APT_Backdoor_Win_GORAT_1

YARA-2025-0930 High general Active
No description available for this rule
APT_Backdoor_Win_GORAT_1.yar Valid Syntax
// Copyright 2020 by FireEye, Inc.
// You may not use this file except in compliance with the license. The license should have been received with this file. You may obtain a copy of the license at:
// https://github.com/fireeye/red_team_tool_countermeasures/blob/master/LICENSE.txt
rule APT_Backdoor_Win_GORAT_1
{
    meta:
        description = "This detects if a sample is less than 50KB and has a number of strings found in the Gorat shellcode (stage0 loader). The loader contains an embedded DLL (stage0.dll) that contains a number of unique strings. The 'Cookie' string found in this loader is important as this cookie is needed by the C2 server to download the Gorat implant (stage1 payload)."
        md5 = "66cdaa156e4d372cfa3dea0137850d20"
        rev = 4
        author = "FireEye"
    strings:
        $s1 = "httpComms.dll" ascii wide
        $s2 = "Cookie: SID1=%s" ascii wide
        $s3 = "Global\\" ascii wide
        $s4 = "stage0.dll" ascii wide
        $s5 = "runCommand" ascii wide
        $s6 = "getData" ascii wide
        $s7 = "initialize" ascii wide
        $s8 = "Windows NT %d.%d;" ascii wide
        $s9 = "!This program cannot be run in DOS mode." ascii wide
    condition:
        filesize < 50KB and all of them
}

String Definitions

{"name":"$s1","value":"\"httpComms.dll\" ascii wide"}
{"name":"$s2","value":"\"Cookie: SID1=%s\" ascii wide"}
{"name":"$s3","value":"\"Global\\\\\" ascii wide"}
{"name":"$s4","value":"\"stage0.dll\" ascii wide"}
{"name":"$s5","value":"\"runCommand\" ascii wide"}
{"name":"$s6","value":"\"getData\" ascii wide"}
{"name":"$s7","value":"\"initialize\" ascii wide"}
{"name":"$s8","value":"\"Windows NT %d.%d;\" ascii wide"}
{"name":"$s9","value":"\"!This program cannot be run in DOS mode.\" ascii wide"}

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

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

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

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

Integration Examples

Python (yara-python)

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

ClamAV Integration

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

Rule Information

YARA ID
YARA-2025-0930
Author
Unknown
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