YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_HKTL_NET_NAME_Dotnetinject
Detects .NET red/black-team tools via name
- Author
- Arnim Rupp
- Date
- 2021-01-22
- Modified
- 2022-06-28
- Score / Quality
- 75 / 85
What this rule detects
Detects .NET red/black-team tools via name
Targets: Windows PE.
It defines 4 patterns (4 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule SIGNATURE_BASE_HKTL_NET_NAME_Dotnetinject : FILE
{
meta:
= "Detects .NET red/black-team tools via name"
= "Arnim Rupp"
= "468f89c4-5b94-53be-b9e6-ad21de7d98ba"
= "2021-01-22"
= "2022-06-28"
= "https://github.com/dtrizna/DotNetInject"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/gen_github_net_redteam_tools_names.yar#L182-L202"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "07ba4ba23372dbc2618dcea89ef643cd68371ace1116bfeb939b0f9adfc425bb"
= 75
= 85
= "FILE"
= "Detection Rule License 1.1 https://github.com/Neo23x0/signature-base/blob/master/LICENSE"
strings:
$name = "DotNetInject" ascii wide
$compile = "AssemblyTitle" ascii wide
$fp1 = "GetDotNetInjector" ascii
$fp2 = "JetBrains.TeamCity.Injector." wide
condition:
( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and filesize < 20MB and $name and $compile and not 1 of ( $fp* )
}
Strings (4 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $name | text | "DotNetInject" | ascii wide |
| $compile | text | "AssemblyTitle" | ascii wide |
| $fp1 | text | "GetDotNetInjector" | ascii |
| $fp2 | text | "JetBrains.TeamCity.Injector." | wide |
Condition
( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and filesize < 20MB and $name and $compile and not 1 of ( $fp* )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- The file must be smaller than 20MB (a cheap guard that skips large files).
- At least 1 patterns in ( $fp* ) must match.
- Pattern $name must be present.
- Pattern $compile 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.
References
Licence & attribution
Author: Arnim Rupp
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: 468f89c4-5b94-53be-b9e6-ad21de7d98ba
Tags:FILE
Related rules
- Hack toolSignature Base (Florian Roth / Nextron)· Arnim Rupp· 2021-01-22
- Hack toolSignature Base (Florian Roth / Nextron)· Arnim Rupp· 2021-01-22
- Hack toolSignature Base (Florian Roth / Nextron)· Arnim Rupp· 2021-01-22
- Hack toolSignature Base (Florian Roth / Nextron)· Arnim Rupp· 2021-01-22
- Hack toolSignature Base (Florian Roth / Nextron)· Arnim Rupp· 2021-01-22
- Hack toolSignature Base (Florian Roth / Nextron)· Arnim Rupp· 2021-01-22
- Hack toolSignature Base (Florian Roth / Nextron)· Arnim Rupp· 2021-01-22
- Hack toolSignature Base (Florian Roth / Nextron)· Arnim Rupp· 2021-01-22