YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_HKTL_NET_GUID_Sharpc2
Detects c# red/black-team tools via typelibguid
- Author
- Arnim Rupp (https://github.com/ruppde)
- Date
- 2020-12-13
- Modified
- 2025-08-15
- Score / Quality
- 75 / 85
What this rule detects
Detects c# red/black-team tools via typelibguid
Targets: Windows PE.
It defines 6 patterns (6 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule SIGNATURE_BASE_HKTL_NET_GUID_Sharpc2 : FILE
{
meta:
= "Detects c# red/black-team tools via typelibguid"
= "Arnim Rupp (https://github.com/ruppde)"
= "2ed6d74e-2b95-5c70-807a-4da5e62f5853"
= "2020-12-13"
= "2025-08-15"
= "https://github.com/SharpC2/SharpC2"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/gen_github_net_redteam_tools_guids.yar#L446-L464"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "5439cbe057d5735e3d35ac01966fc65ca0727e1c1c353564d38d1c20bb04484a"
= 75
= 85
= "FILE"
= "Detection Rule License 1.1 https://github.com/Neo23x0/signature-base/blob/master/LICENSE"
strings:
$typelibguid0lo = "62b9ee4f-1436-4098-9bc1-dd61b42d8b81" ascii wide
$typelibguid1lo = "d2f17a91-eb2d-4373-90bf-a26e46c68f76" ascii wide
$typelibguid2lo = "a9db9fcc-7502-42cd-81ec-3cd66f511346" ascii wide
$typelibguid3lo = "ca6cc2ee-75fd-4f00-b687-917fa55a4fae" ascii wide
$typelibguid4lo = "a1167b68-446b-4c0c-a8b8-2a7278b67511" ascii wide
$typelibguid5lo = "4d8c2a88-1da5-4abe-8995-6606473d7cf1" ascii wide
condition:
( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and any of them
}
Strings (6 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $typelibguid0lo | text | "62b9ee4f-1436-4098-9bc1-dd61b42d8b81" | ascii wide |
| $typelibguid1lo | text | "d2f17a91-eb2d-4373-90bf-a26e46c68f76" | ascii wide |
| $typelibguid2lo | text | "a9db9fcc-7502-42cd-81ec-3cd66f511346" | ascii wide |
| $typelibguid3lo | text | "ca6cc2ee-75fd-4f00-b687-917fa55a4fae" | ascii wide |
| $typelibguid4lo | text | "a1167b68-446b-4c0c-a8b8-2a7278b67511" | ascii wide |
| $typelibguid5lo | text | "4d8c2a88-1da5-4abe-8995-6606473d7cf1" | ascii wide |
Condition
( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and any of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least one pattern in the rule must match.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
References
Licence & attribution
Author: Arnim Rupp (https://github.com/ruppde)
Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
Licence: Detection Rule License 1.1 (stated in the rule's own meta)
“Detection Rule License 1.1 https://github.com/Neo23x0/signature-base/blob/master/LICENSE”
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 2ed6d74e-2b95-5c70-807a-4da5e62f5853
Tags:FILE
Related rules
- Hack toolSignature Base (Florian Roth / Nextron)· Arnim Rupp (https://github.com/ruppde)· 2020-12-13
- Hack toolSignature Base (Florian Roth / Nextron)· Arnim Rupp (https://github.com/ruppde)· 2020-12-30
- Hack toolSignature Base (Florian Roth / Nextron)· Arnim Rupp (https://github.com/ruppde)· 2020-12-28
- Hack toolSignature Base (Florian Roth / Nextron)· Arnim Rupp (https://github.com/ruppde)· 2020-12-13
- Hack toolSignature Base (Florian Roth / Nextron)· Arnim Rupp (https://github.com/ruppde)· 2020-12-13
- Hack toolSignature Base (Florian Roth / Nextron)· Arnim Rupp (https://github.com/ruppde)· 2020-12-30
- Hack toolSignature Base (Florian Roth / Nextron)· Arnim Rupp (https://github.com/ruppde)· 2020-12-28
- Hack toolSignature Base (Florian Roth / Nextron)· Arnim Rupp (https://github.com/ruppde)· 2020-12-13