Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Hacktool_Win_Uknowseckeylogger

Detect the uknowsec keylogger based on strings

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

What this rule detects

Detect the uknowsec keylogger based on strings

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

hacktool-win-uknowseckeylogger.yarDetection Rule License 1.1
rule SEKOIA_Hacktool_Win_Uknowseckeylogger : FILE
{
	meta:
		description = "Detect the uknowsec keylogger based on strings"
		author = "Sekoia.io"
		id = "ab08136d-b1f3-4e64-b73c-e6344b610f91"
		date = "2022-10-05"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/hacktool_win_uknowseckeylogger.yar#L1-L20"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "83a731a5b1853edcce963d458fc170206086305f3e43403c930c9633918e8ff1"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str0 = "github.com/atotto/clipboard" ascii
		$str1 = "github.com/TheTitanrain/w32" ascii
		$str2 = "github.com/aliyun/aliyun-oss-go-sdk" ascii
		$str3 = "golang.org/x/sys" ascii
		$str4 = "golang.org/x/time" ascii
		$str5 = "WSARecvWSASend[Print][Right][Shift][Sleep][debug][error]" ascii

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

Strings (6 patterns)

IdentifierTypeValueModifiers
$str0text"github.com/atotto/clipboard"ascii
$str1text"github.com/TheTitanrain/w32"ascii
$str2text"github.com/aliyun/aliyun-oss-go-sdk"ascii
$str3text"golang.org/x/sys"ascii
$str4text"golang.org/x/time"ascii
$str5text"WSARecvWSASend[Print][Right][Shift][Sleep][debug][error]"ascii

Condition

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

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • 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: ab08136d-b1f3-4e64-b73c-e6344b610f91

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE