YARA · Trellix Advanced Research Center
TRELLIX_ARC_Ransom_Avoslocker
Rule to detect Avoslocker Ransomware
- Author
- CB @ ATR
- Date
- 2021-07-22
- Score / Quality
- 75 / 70
What this rule detects
Rule to detect Avoslocker Ransomware
Associated malware family: Avos Locker.
Targets: Windows PE.
It defines 9 patterns (6 text, 3 hex, 0 regex). YARA modules used: pe.
Summary generated from the rule's metadata and condition.
Rule source
Includes the imports needed to compile it on its own.
import "pe"
rule TRELLIX_ARC_Ransom_Avoslocker : FILE
{
meta:
= "Rule to detect Avoslocker Ransomware"
= "CB @ ATR"
= "50f029c8-154e-583d-8264-8d86d01075f6"
= "2021-07-22"
= "2021-07-22"
= "https://github.com/advanced-threat-research/Yara-Rules/"
= "https://github.com/advanced-threat-research/Yara-Rules//blob/1919562a59f190bda60c982424f6a24c542ee3e0/ransomware/RANSOM_Avoslocker.yar#L3-L27"
= "https://github.com/advanced-threat-research/Yara-Rules//blob/1919562a59f190bda60c982424f6a24c542ee3e0/LICENSE"
= "fb544e1f74ce02937c3a3657be8d125d5953996115f65697b7d39e237020706f"
= "43b7a60c0ef8b4af001f45a0c57410b7374b1d75a6811e0dfc86e4d60f503856"
= "316aaab225797eedd62f9cfde1fdbd799a10441b3b15a8abc76141b57b36b1d3"
= 75
= 70
= "FILE"
= "v1"
= "Ransom_Win_Avoslocker"
strings:
$v1 = "CryptImportPublicKeyInfo failed. error: %d" fullword ascii
$v2 = "CryptStringToBinary failed. Err: %d" fullword ascii
$v3 = "encrypting %ls failed" fullword wide
$v4 = "CryptDecodeObjectEx 1 failed. Err: %p" fullword ascii
$v5 = "operator co_await" fullword ascii
$v6 = "drive %s took %f seconds" fullword ascii
$seq0 = { 8d 4e 04 5e e9 b1 ff ff ff 55 8b ec ff 75 08 ff }
$seq1 = { 33 c0 80 fb 2d 0f 94 c0 05 ff ff ff 7f eb 02 f7 }
$seq2 = { 8b 40 0c 89 85 1c ff ff ff 8b 40 0c 89 85 18 ff }
condition:
( uint16( 0 ) == 0x5a4d and filesize < 1000KB and pe.imphash ( ) == "a24c2b5bf84a5465eb75f1e6aa8c1eec" and ( 5 of them ) and all of ( $seq* ) ) or ( all of them )
}
Strings (9 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $v1 | text | "CryptImportPublicKeyInfo failed. error: %d" | fullword ascii |
| $v2 | text | "CryptStringToBinary failed. Err: %d" | fullword ascii |
| $v3 | text | "encrypting %ls failed" | fullword wide |
| $v4 | text | "CryptDecodeObjectEx 1 failed. Err: %p" | fullword ascii |
| $v5 | text | "operator co_await" | fullword ascii |
| $v6 | text | "drive %s took %f seconds" | fullword ascii |
| $seq0 | hex | { 8d 4e 04 5e e9 b1 ff ff ff 55 8b ec ff 75 08 ff } | |
| $seq1 | hex | { 33 c0 80 fb 2d 0f 94 c0 05 ff ff ff 7f eb 02 f7 } | |
| $seq2 | hex | { 8b 40 0c 89 85 1c ff ff ff 8b 40 0c 89 85 18 ff } |
Condition
( uint16( 0 ) == 0x5a4d and filesize < 1000KB and pe.imphash ( ) == "a24c2b5bf84a5465eb75f1e6aa8c1eec" and ( 5 of them ) and all of ( $seq* ) ) or ( all of them )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- The file must be smaller than 1000KB (a cheap guard that skips large files).
- All patterns in ( $seq* ) must match.
- All patterns in the rule must match.
- At least 5 patterns in the rule must match.
- Uses the pe module.
- Checks the PE import hash (imphash).
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).
- fb544e1f74ce02937c3a3657be8d125d5953996115f65697b7d39e237020706f
- 43b7a60c0ef8b4af001f45a0c57410b7374b1d75a6811e0dfc86e4d60f503856
Licence & attribution
Author: CB @ ATR
Source repository: Trellix Advanced Research Center @ 1919562a59
Licence: Apache License 2.0 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 50f029c8-154e-583d-8264-8d86d01075f6
Metadata
| Version | v1 |
|---|---|
| DetectionName | Ransom_Win_Avoslocker |
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2022-02-21
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- MalwareSEKOIA.IO Community· Sekoia.io· 2021-08-03
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- ARKBIRD_SOLG_RAN_Avoslocker_July_2021_1Metadata onlyMalwareArkbird SOLG (DailyIOC)· Arkbird_SOLG· 2021-07-23