APT_Backdoor_Win_GoRat_Memory

YARA-2025-0939 High general Active
No description available for this rule
APT_Backdoor_Win_GoRat_Memory.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_Memory
{
    meta:
        description = "Identifies GoRat malware in memory based on strings."
        md5 = "3b926b5762e13ceec7ac3a61e85c93bb"
        rev = 1
        author = "FireEye"
    strings:
        $murica = "murica" fullword
        $rat1 = "rat/modules/socks.(*HTTPProxyClient).beacon" fullword
        $rat2 = "rat.(*Core).generateBeacon" fullword
        $rat3 = "rat.gJitter" fullword
        $rat4 = "rat/comms.(*protectedChannel).SendCmdResponse" fullword
        $rat5 = "rat/modules/filemgmt.(*acquire).NewCommandExecution" fullword
        $rat6 = "rat/modules/latlisten.(*latlistensrv).handleCmd" fullword
        $rat7 = "rat/modules/netsweeper.(*netsweeperRunner).runSweep" fullword
        $rat8 = "rat/modules/netsweeper.(*Pinger).listen" fullword
        $rat9 = "rat/modules/socks.(*HTTPProxyClient).beacon" fullword
        $rat10 = "rat/platforms/win/dyloader.(*memoryLoader).ExecutePluginFunction" fullword
        $rat11 = "rat/platforms/win/modules/namedpipe.(*dummy).Open" fullword
        $winblows = "rat/platforms/win.(*winblows).GetStage" fullword
    condition:
        $winblows or #murica > 10 or 3 of ($rat*)
}

String Definitions

{"name":"$murica","value":"\"murica\" fullword"}
{"name":"$rat1","value":"\"rat\/modules\/socks.(*HTTPProxyClient).beacon\" fullword"}
{"name":"$rat2","value":"\"rat.(*Core).generateBeacon\" fullword"}
{"name":"$rat3","value":"\"rat.gJitter\" fullword"}
{"name":"$rat4","value":"\"rat\/comms.(*protectedChannel).SendCmdResponse\" fullword"}
{"name":"$rat5","value":"\"rat\/modules\/filemgmt.(*acquire).NewCommandExecution\" fullword"}
{"name":"$rat6","value":"\"rat\/modules\/latlisten.(*latlistensrv).handleCmd\" fullword"}
{"name":"$rat7","value":"\"rat\/modules\/netsweeper.(*netsweeperRunner).runSweep\" fullword"}
{"name":"$rat8","value":"\"rat\/modules\/netsweeper.(*Pinger).listen\" fullword"}
{"name":"$rat9","value":"\"rat\/modules\/socks.(*HTTPProxyClient).beacon\" fullword"}
{"name":"$rat10","value":"\"rat\/platforms\/win\/dyloader.(*memoryLoader).ExecutePluginFunction\" fullword"}
{"name":"$rat11","value":"\"rat\/platforms\/win\/modules\/namedpipe.(*dummy).Open\" fullword"}
{"name":"$winblows","value":"\"rat\/platforms\/win.(*winblows).GetStage\" fullword"}

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

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

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

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

Integration Examples

Python (yara-python)

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

ClamAV Integration

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

Rule Information

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