YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Pingback
Detects PingBack ICMP backdoor
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects PingBack ICMP backdoor
Associated malware family: Pingback.
Targets: Windows PE.
It defines 12 patterns (12 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-pingback.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Pingback : FILE
{
meta:
= "Detects PingBack ICMP backdoor"
= "ditekSHen"
= "ecb313b6-f923-5b6d-a4d7-a4650817ed84"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L5742-L5761"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "c5fa9ecefca1188ba5e81c0518f74023884ad0f66718fc030601cb458bdf2f12"
= 75
= 75
= "FILE"
strings:
$s1 = "Sniffer ok!" fullword ascii
$s2 = "recv icmp packet!" fullword ascii
$s3 = "WSASocket() failed: %d" fullword ascii
$s4 = "file on remote computers success" ascii
$s5 = "listen port error!" fullword ascii
$s6 = "\\PingBackService" ascii
$c1 = "exec" fullword ascii
$c2 = "rexec" fullword ascii
$c3 = "exep" fullword ascii
$c4 = "download" fullword ascii
$c5 = "upload" fullword ascii
$c6 = "shell" fullword ascii
condition:
uint16( 0 ) == 0x5a4d and ( 3 of ( $s* ) or all of ( $c* ) or ( 4 of ( $c* ) and 2 of ( $s* ) ) )
}
Strings (12 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "Sniffer ok!" | fullword ascii |
| $s2 | text | "recv icmp packet!" | fullword ascii |
| $s3 | text | "WSASocket() failed: %d" | fullword ascii |
| $s4 | text | "file on remote computers success" | ascii |
| $s5 | text | "listen port error!" | fullword ascii |
| $s6 | text | "\\PingBackService" | ascii |
| $c1 | text | "exec" | fullword ascii |
| $c2 | text | "rexec" | fullword ascii |
| $c3 | text | "exep" | fullword ascii |
| $c4 | text | "download" | fullword ascii |
| $c5 | text | "upload" | fullword ascii |
| $c6 | text | "shell" | fullword ascii |
Condition
uint16( 0 ) == 0x5a4d and ( 3 of ( $s* ) or all of ( $c* ) or ( 4 of ( $c* ) and 2 of ( $s* ) ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $c* ) must match.
- At least 3 patterns in ( $s* ) must match.
- At least 4 patterns in ( $c* ) must match.
- At least 2 patterns in ( $s* ) 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: ecb313b6-f923-5b6d-a4d7-a4650817ed84
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