APT_Backdoor_MacOS_GORAT_1

YARA-2025-1013 High general Active
No description available for this rule
APT_Backdoor_MacOS_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_MacOS_GORAT_1
{
    meta:
        description = "This rule is looking for specific strings associated with network activity found within the MacOS generated variant of GORAT"
        md5 = "68acf11f5e456744262ff31beae58526"
        rev = 3
        author = "FireEye"
    strings:
        $s1 = "SID1=%s" ascii wide
        $s2 = "http/http.dylib" ascii wide
        $s3 = "Mozilla/" ascii wide
        $s4 = "User-Agent" ascii wide
        $s5 = "Cookie" ascii wide
    condition:
        ((uint32(0) == 0xBEBAFECA) or (uint32(0) == 0xFEEDFACE) or (uint32(0) == 0xFEEDFACF) or (uint32(0) == 0xCEFAEDFE)) and all of them
}

String Definitions

{"name":"$s1","value":"\"SID1=%s\" ascii wide"}
{"name":"$s2","value":"\"http\/http.dylib\" ascii wide"}
{"name":"$s3","value":"\"Mozilla\/\" ascii wide"}
{"name":"$s4","value":"\"User-Agent\" ascii wide"}
{"name":"$s5","value":"\"Cookie\" 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_MacOS_GORAT_1.yar /path/to/suspicious/file

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

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

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

Integration Examples

Python (yara-python)

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

ClamAV Integration

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

Rule Information

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