Skip to content

YARA · Mandiant red team tool countermeasures

FIREEYE_RT_Hacktool_MSIL_Rubeus_1

The TypeLibGUID present in a .NET binary maps directly to the ProjectGuid found in the '.csproj' file of a .NET project. This rule looks for .NET PE files that contain the ProjectGuid found in the public Rubeus project.

Hack toolMandiant red team tool countermeasuresBSD 2-Clause LicenseCompiles with YARA-X
Author
FireEye
Date
2020-12-08
Modified
2020-12-09
Score / Quality
75 / 73

What this rule detects

The TypeLibGUID present in a .NET binary maps directly to the ProjectGuid found in the '.csproj' file of a .NET project. This rule looks for .NET PE files that contain the ProjectGuid found in the public Rubeus project.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

hacktool-msil-rubeus-1.yarBSD 2-Clause License
rule FIREEYE_RT_Hacktool_MSIL_Rubeus_1 : FILE
{
	meta:
		description = "The TypeLibGUID present in a .NET binary maps directly to the ProjectGuid found in the '.csproj' file of a .NET project. This rule looks for .NET PE files that contain the ProjectGuid found in the public Rubeus project."
		author = "FireEye"
		id = "0ca140ea-2b9f-5904-a4c0-8615229626f0"
		date = "2020-12-08"
		modified = "2020-12-09"
		reference = "https://github.com/mandiant/red_team_tool_countermeasures/"
		source_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/RUBEUS/production/yara/HackTool_MSIL_Rubeus_1.yar#L4-L15"
		license_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt"
		hash = "66e0681a500c726ed52e5ea9423d2654"
		logic_hash = "ad954f9922ab564d68cb4515b080f6ee69476a8d87f0038e2ae4c222f0e182d7"
		score = 75
		quality = 73
		tags = "FILE"
		rev = 4

	strings:
		$typelibguid = "658C8B7F-3664-4A95-9572-A3E5871DFC06" ascii nocase wide

	condition:
		uint16( 0 ) == 0x5A4D and $typelibguid
}

Strings (1 patterns)

IdentifierTypeValueModifiers
$typelibguidtext"658C8B7F-3664-4A95-9572-A3E5871DFC06"ascii nocase wide

Condition

uint16( 0 ) == 0x5A4D and $typelibguid

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • Pattern $typelibguid 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).

  • 66e0681a500c726ed52e5ea9423d2654

Licence & attribution

Author: FireEye

Source repository: Mandiant red team tool countermeasures @ 3561b71724

Licence: BSD 2-Clause License (repository licence)

Copyright notice: Copyright (c) 2023, MANDIANT

Original rule

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

Rule id: 0ca140ea-2b9f-5904-a4c0-8615229626f0

Metadata

rev4

Tags:FILE