YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_MAL_Janicab_LNK
detect LNK files used in Janicab infection chain
- Author
- Greg Lesnewich
- Date
- 2023-01-01
- Modified
- 2023-12-05
- Score / Quality
- 75 / 85
What this rule detects
detect LNK files used in Janicab infection chain
It defines 5 patterns (4 text, 1 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule SIGNATURE_BASE_MAL_Janicab_LNK
{
meta:
= "detect LNK files used in Janicab infection chain"
= "Greg Lesnewich"
= "c21844d3-eeee-530e-a69c-b7f604616f0b"
= "2023-01-01"
= "2023-12-05"
= "https://github.com/Neo23x0/signature-base"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/gen_100days_of_yara_2023.yar#L46-L68"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "0c7e8427ee61672568983e51bf03e0bcf6f2e9c01d2524d82677b20264b23a3f"
= "22ede766fba7551ad0b71ef568d0e5022378eadbdff55c4a02b42e63fcb3b17c"
= "4920e6506ca557d486e6785cb5f7e4b0f4505709ffe8c30070909b040d3c3840"
= "880607cc2da4c3213ea687dabd7707736a879cc5f2f1d4accf79821e4d24d870"
= "f4610b65eba977b3d13eba5da0e38788a9e796a3e9775dd2b8e37b3085c2e1af"
= "f9c000ffb6a95d616459e00f0220ad26cb1df77e35582d14dfce1637ddfb466c"
= 75
= 85
= ""
= "1.0"
= "1/100"
strings:
$j_pdf1 = "%PDF-1.5" ascii wide
$j_cmd = "\\Windows\\System32\\cmd.exe" ascii wide
$j_pdf_stream = "endstream" ascii wide
$j_pdb_obj = "endobj" ascii wide
$dimensions = {02 00 00 A0 ?? 00 ?? ?? 01 00 01 00 01}
condition:
uint32be( 0x0 ) == 0x4C000000 and $dimensions and 2 of ( $j_* )
}
Strings (5 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $j_pdf1 | text | "%PDF-1.5" | ascii wide |
| $j_cmd | text | "\\Windows\\System32\\cmd.exe" | ascii wide |
| $j_pdf_stream | text | "endstream" | ascii wide |
| $j_pdb_obj | text | "endobj" | ascii wide |
| $dimensions | hex | {02 00 00 A0 ?? 00 ?? ?? 01 00 01 00 01} |
Condition
uint32be( 0x0 ) == 0x4C000000 and $dimensions and 2 of ( $j_* )In plain words (Heuristic)
- At least 2 patterns in ( $j_* ) must match.
- Pattern $dimensions must be present.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- 0c7e8427ee61672568983e51bf03e0bcf6f2e9c01d2524d82677b20264b23a3f
- 22ede766fba7551ad0b71ef568d0e5022378eadbdff55c4a02b42e63fcb3b17c
- 4920e6506ca557d486e6785cb5f7e4b0f4505709ffe8c30070909b040d3c3840
- 880607cc2da4c3213ea687dabd7707736a879cc5f2f1d4accf79821e4d24d870
- f4610b65eba977b3d13eba5da0e38788a9e796a3e9775dd2b8e37b3085c2e1af
Licence & attribution
Author: Greg Lesnewich
Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
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: c21844d3-eeee-530e-a69c-b7f604616f0b
Metadata
| version | 1.0 |
|---|---|
| DaysofYARA | 1/100 |
Related rules
- MalwareSignature Base (Florian Roth / Nextron)· Greg Lesnewich· 2023-01-02
- Suspicious / huntingSignature Base (Florian Roth / Nextron)· Greg Lesnewich· 2023-01-02
- Suspicious / huntingSignature Base (Florian Roth / Nextron)· Greg Lesnewich· 2023-01-01