Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Rat_Lin_Gobrat_2023

This rule detect samples that are downloaded on the GobRAT C2 URL path /a, /b and /c.

MalwareGobratSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2023-06-09
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

This rule detect samples that are downloaded on the GobRAT C2 URL path /a, /b and /c.

Associated malware family: Gobrat.

Targets: Linux ELF.

It defines 1 patterns (1 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

rat-lin-gobrat-2023.yarDetection Rule License 1.1
rule SEKOIA_Rat_Lin_Gobrat_2023 : FILE
{
	meta:
		description = "This rule detect samples that are downloaded on the GobRAT C2 URL path /a, /b and /c."
		author = "Sekoia.io"
		id = "ca36a586-f87f-445f-95dc-52d447c1d2a2"
		date = "2023-06-09"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/rat_lin_gobrat_2023.yar#L1-L20"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "36cb17d9d118bd9692106c8aafab2462aacf1cdad3a6afb0e4f1de898a7db0e1"
		hash = "28a714f7cec4445dbd507b85016c8e96ed5e378bcabe2e422c499975122b3f03"
		hash = "1e80a084ab89da2375bc3cc2f5a37975edff709ef29a3fa2b4df4ccb6d5afe10"
		logic_hash = "b9831cefded9e48ef169aa56c18628a9871760ae613f75b232019b4798944e16"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$s1 = "Z:/Go/awesomeProject3/main.go" wide ascii

	condition:
		uint32( 0 ) == 0x464c457f and filesize < 4000KB and $s1
}

Strings (1 patterns)

IdentifierTypeValueModifiers
$s1text"Z:/Go/awesomeProject3/main.go"wide ascii

Condition

uint32( 0 ) == 0x464c457f and filesize < 4000KB and $s1

In plain words (Heuristic)

  • The file must start with the ELF header — a Linux/Unix executable.
  • The file must be smaller than 4000KB (a cheap guard that skips large files).
  • Pattern $s1 must be present.

Test this rule in your browser

Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

References

Sample hashes

Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).

  • 36cb17d9d118bd9692106c8aafab2462aacf1cdad3a6afb0e4f1de898a7db0e1
  • 28a714f7cec4445dbd507b85016c8e96ed5e378bcabe2e422c499975122b3f03
  • 1e80a084ab89da2375bc3cc2f5a37975edff709ef29a3fa2b4df4ccb6d5afe10

Licence & attribution

Author: Sekoia.io

Source repository: SEKOIA.IO Community @ a438a5901a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: ca36a586-f87f-445f-95dc-52d447c1d2a2

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE

More Gobrat rules