Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Pingback

Detects PingBack ICMP backdoor

MalwarePingbackditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
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:
		description = "Detects PingBack ICMP backdoor"
		author = "ditekSHen"
		id = "ecb313b6-f923-5b6d-a4d7-a4650817ed84"
		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#L5742-L5761"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "c5fa9ecefca1188ba5e81c0518f74023884ad0f66718fc030601cb458bdf2f12"
		score = 75
		quality = 75
		tags = "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)

IdentifierTypeValueModifiers
$s1text"Sniffer ok!"fullword ascii
$s2text"recv icmp packet!"fullword ascii
$s3text"WSASocket() failed: %d"fullword ascii
$s4text"file on remote computers success"ascii
$s5text"listen port error!"fullword ascii
$s6text"\\PingBackService"ascii
$c1text"exec"fullword ascii
$c2text"rexec"fullword ascii
$c3text"exep"fullword ascii
$c4text"download"fullword ascii
$c5text"upload"fullword ascii
$c6text"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.

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: ecb313b6-f923-5b6d-a4d7-a4650817ed84

Tags:FILE