YARA · SEKOIA.IO Community
SEKOIA_Malware_Tinyshell_Strings
Detects TinyShell based on strings
- 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:
= "Detects TinyShell based on strings"
= "Sekoia.io"
= "51fe9986-cb33-4802-bb8d-fe3d4cdfdcc8"
= "2024-09-04"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/malware_tinyshell_strings.yar#L1-L24"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "fffc89ebbe6ea37072077996e27f86dd"
= "59a97d4fbd3a54e991dc7e1f0451acf5"
= "d7ee59eab7f703bfaf1002a39b05c7b9"
= "3f2dfe47d4563919d889132b2759fd9c"
= "18d10e7e6f0ba8a9ea7fa8446a930f84ce5eb2f3a022ce3dc62bc3f8fd5699e1"
= 75
= 80
= "FILE"
= "1.0"
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ | 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 < 150KBIn 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.
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)
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
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-10-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20