YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Jssloader
Detects JSSLoader RAT/backdoor
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 73
What this rule detects
Detects JSSLoader RAT/backdoor
Associated malware family: Jssloader.
Targets: Windows PE.
It defines 23 patterns (23 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-jssloader.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Jssloader : FILE
{
meta:
= "Detects JSSLoader RAT/backdoor"
= "ditekSHen"
= "ef710c21-5c64-513e-b882-b5768478976e"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L3722-L3752"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "91764dabfb40cb51914110de229ddb00cd565078fef83c825f7a86fa502fda37"
= 75
= 73
= "FILE"
strings:
$cmd1 = "Cmd_UPDATE" fullword ascii
$cmd2 = "Cmd_IDLE" fullword ascii
$cmd3 = "Cmd_EXE" fullword ascii
$cmd4 = "Cmd_VBS" fullword ascii
$cmd5 = "Cmd_JS" fullword ascii
$cmd6 = "Cmd_PWS" fullword ascii
$cmd7 = "Cmd_RAT" fullword ascii
$cmd8 = "Cmd_UNINST" fullword ascii
$cmd9 = "Cmd_RunDll" fullword ascii
$s1 = "ANSWER_OK" fullword ascii
$s2 = "GatherDFiles" ascii
$s3 = "CommandCd" fullword ascii
$s4 = "URL_GetCmd" fullword ascii
$s5 = "\"host\": \"{0}\", \"domain\": \"{1}\", \"user\": \"{2}\"" wide
$s6 = "pc_dns_host_name" wide
$s7 = "\"adinfo\": { \"adinformation\":" wide
$e1 = "//e:vbscript" wide
$e2 = "//e:jscript" wide
$e3 = "/c rundll32.exe" wide
$e4 = "/C powershell" wide
$e5 = "C:\\Windows\\System32\\cmd.exe" wide
$e6 = "echo del /f" wide
$e7 = "AT.U() {0}. format" wide
condition:
uint16( 0 ) == 0x5a4d and ( 5 of ( $cmd* ) or 5 of ( $s* ) or all of ( $e* ) or 7 of them )
}
Strings (23 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $cmd1 | text | "Cmd_UPDATE" | fullword ascii |
| $cmd2 | text | "Cmd_IDLE" | fullword ascii |
| $cmd3 | text | "Cmd_EXE" | fullword ascii |
| $cmd4 | text | "Cmd_VBS" | fullword ascii |
| $cmd5 | text | "Cmd_JS" | fullword ascii |
| $cmd6 | text | "Cmd_PWS" | fullword ascii |
| $cmd7 | text | "Cmd_RAT" | fullword ascii |
| $cmd8 | text | "Cmd_UNINST" | fullword ascii |
| $cmd9 | text | "Cmd_RunDll" | fullword ascii |
| $s1 | text | "ANSWER_OK" | fullword ascii |
| $s2 | text | "GatherDFiles" | ascii |
| $s3 | text | "CommandCd" | fullword ascii |
| $s4 | text | "URL_GetCmd" | fullword ascii |
| $s5 | text | "\"host\": \"{0}\", \"domain\": \"{1}\", \"user\": \"{2}\"" | wide |
| $s6 | text | "pc_dns_host_name" | wide |
| $s7 | text | "\"adinfo\": { \"adinformation\":" | wide |
| $e1 | text | "//e:vbscript" | wide |
| $e2 | text | "//e:jscript" | wide |
| $e3 | text | "/c rundll32.exe" | wide |
| $e4 | text | "/C powershell" | wide |
| $e5 | text | "C:\\Windows\\System32\\cmd.exe" | wide |
| $e6 | text | "echo del /f" | wide |
| $e7 | text | "AT.U() {0}. format" | wide |
Condition
uint16( 0 ) == 0x5a4d and ( 5 of ( $cmd* ) or 5 of ( $s* ) or all of ( $e* ) or 7 of them )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $e* ) must match.
- At least 5 patterns in ( $cmd* ) must match.
- At least 5 patterns in ( $s* ) must match.
- At least 7 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
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).
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: ef710c21-5c64-513e-b882-b5768478976e
Tags:FILE
Related rules
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- ARKBIRD_SOLG_MAL_Jssloader_Jun_2021_1Metadata onlyMalwareArkbird SOLG (DailyIOC)· Arkbird_SOLG· 2021-06-04
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06