Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Genircbot

Detects generic IRCBots

MalwareGenircbotditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
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:
		description = "Detects generic IRCBots"
		author = "ditekSHen"
		id = "e1faa1dd-bbf5-5208-97d6-a6e8597d39bc"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7610-L7626"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "cc7f4599148c45fdf755c07530ae4846b7e283b5c1001c121f9ea05279997dc1"
		score = 75
		quality = 73
		tags = "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)

IdentifierTypeValueModifiers
$s1text"@login"ascii nocase
$s2text"PRIVMSG"fullword ascii
$s3text"JOIN"fullword ascii
$s4text"PING :"fullword ascii
$s5text"NICK"fullword ascii
$s6text"USER"fullword ascii
$x1text"irc.danger.net"fullword ascii nocase
$x2text"evilBot"fullword ascii nocase
$x3text"#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.

Open in editor

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).

Original rule

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