YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Genircbot
Detects generic IRCBots
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 73
What this rule detects
Detects generic IRCBots
Associated malware family: Genircbot.
Targets: Windows PE.
It defines 9 patterns (9 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-genircbot.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Genircbot : FILE
{
meta:
= "Detects generic IRCBots"
= "ditekSHen"
= "e1faa1dd-bbf5-5208-97d6-a6e8597d39bc"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7610-L7626"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "cc7f4599148c45fdf755c07530ae4846b7e283b5c1001c121f9ea05279997dc1"
= 75
= 73
= "FILE"
strings:
$s1 = "@login" ascii nocase
$s2 = "PRIVMSG" fullword ascii
$s3 = "JOIN" fullword ascii
$s4 = "PING :" fullword ascii
$s5 = "NICK" fullword ascii
$s6 = "USER" fullword ascii
$x1 = "irc.danger.net" fullword ascii nocase
$x2 = "evilBot" fullword ascii nocase
$x3 = "#evilChannel" fullword ascii nocase
condition:
uint16( 0 ) == 0x5a4d and ( all of ( $s* ) or 2 of ( $x* ) )
}
Strings (9 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "@login" | ascii nocase |
| $s2 | text | "PRIVMSG" | fullword ascii |
| $s3 | text | "JOIN" | fullword ascii |
| $s4 | text | "PING :" | fullword ascii |
| $s5 | text | "NICK" | fullword ascii |
| $s6 | text | "USER" | fullword ascii |
| $x1 | text | "irc.danger.net" | fullword ascii nocase |
| $x2 | text | "evilBot" | fullword ascii nocase |
| $x3 | text | "#evilChannel" | fullword ascii nocase |
Condition
uint16( 0 ) == 0x5a4d and ( all of ( $s* ) or 2 of ( $x* ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $s* ) must match.
- At least 2 patterns in ( $x* ) 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.
Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.
References
Licence & attribution
Author: ditekSHen
Source repository: ditekSHen detection @ e76c93dcde
Licence: BSD 2-Clause License (repository licence)
Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: e1faa1dd-bbf5-5208-97d6-a6e8597d39bc
Tags:FILE
Related rules
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06