Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Tool_Sharpnbtscan_Strings

Detects SharpNBTScan based on strings

Hack toolSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2024-09-09
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Detects SharpNBTScan based on strings

It defines 4 patterns (4 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

tool-sharpnbtscan-strings.yarDetection Rule License 1.1
rule SEKOIA_Tool_Sharpnbtscan_Strings : FILE
{
	meta:
		description = "Detects SharpNBTScan based on strings"
		author = "Sekoia.io"
		id = "e9d28dcb-b4b1-4d66-b225-ed0925f307d9"
		date = "2024-09-09"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/tool_sharpnbtscan_strings.yar#L1-L19"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "adc19140e84c4aa3433b8ae4096355e384bbd106326ed56b54fb44a86fd9fbc6"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "[+]Udp client will stop in 10 s ..." ascii wide
		$ = "[*]Stop udp client ..." ascii wide
		$ = "[*]Start udp client ..." ascii wide
		$ = "[+] ip range {0} - {1} " ascii wide

	condition:
		uint32be( 0 ) == 0x5A4D and all of them
}

Strings (4 patterns)

IdentifierTypeValueModifiers
$text"[+]Udp client will stop in 10 s ..."ascii wide
$text"[*]Stop udp client ..."ascii wide
$text"[*]Start udp client ..."ascii wide
$text"[+] ip range {0} - {1} "ascii wide

Condition

uint32be( 0 ) == 0x5A4D and all of them

In plain words (Heuristic)

  • All patterns in the rule 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: Sekoia.io

Source repository: SEKOIA.IO Community @ a438a5901a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: e9d28dcb-b4b1-4d66-b225-ed0925f307d9

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE