Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Malware_Tinyshell_Strings

Detects TinyShell based on strings

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

What this rule detects

Detects TinyShell based on strings

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

Summary generated from the rule's metadata and condition.

Rule source

malware-tinyshell-strings.yarDetection Rule License 1.1
rule SEKOIA_Malware_Tinyshell_Strings : FILE
{
	meta:
		description = "Detects TinyShell based on strings"
		author = "Sekoia.io"
		id = "51fe9986-cb33-4802-bb8d-fe3d4cdfdcc8"
		date = "2024-09-04"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/malware_tinyshell_strings.yar#L1-L24"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "fffc89ebbe6ea37072077996e27f86dd"
		hash = "59a97d4fbd3a54e991dc7e1f0451acf5"
		hash = "d7ee59eab7f703bfaf1002a39b05c7b9"
		hash = "3f2dfe47d4563919d889132b2759fd9c"
		logic_hash = "18d10e7e6f0ba8a9ea7fa8446a930f84ce5eb2f3a022ce3dc62bc3f8fd5699e1"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "_tsh_get_file"
		$ = "_tsh_put_file"
		$ = "_tsh_runshell"
		$ = "Authentication failed."
		$ = "pel_send_msg"
		$ = "exec bash --login"

	condition:
		3 of them and filesize < 150KB
}

Strings (6 patterns)

IdentifierTypeValueModifiers
$text"_tsh_get_file"
$text"_tsh_put_file"
$text"_tsh_runshell"
$text"Authentication failed."
$text"pel_send_msg"
$text"exec bash --login"

Condition

3 of them and filesize < 150KB

In plain words (Heuristic)

  • The file must be smaller than 150KB (a cheap guard that skips large files).
  • At least 3 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

Sample hashes

Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).

  • fffc89ebbe6ea37072077996e27f86dd
  • 59a97d4fbd3a54e991dc7e1f0451acf5
  • d7ee59eab7f703bfaf1002a39b05c7b9
  • 3f2dfe47d4563919d889132b2759fd9c

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: 51fe9986-cb33-4802-bb8d-fe3d4cdfdcc8

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE