YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_MAL_Passwordstate_Moserware_Backdoor_Apr21_1
Detects backdoor used in Passwordstate incident
- Author
- Florian Roth (Nextron Systems)
- Date
- 2021-04-25
- Modified
- 2023-12-05
- Score / Quality
- 75 / 85
What this rule detects
Detects backdoor used in Passwordstate incident
Targets: Windows PE.
It defines 7 patterns (4 text, 3 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule SIGNATURE_BASE_MAL_Passwordstate_Moserware_Backdoor_Apr21_1 : FILE
{
meta:
= "Detects backdoor used in Passwordstate incident"
= "Florian Roth (Nextron Systems)"
= "061de3ae-c404-5e4a-a16b-b3b208b1ae7f"
= "2021-04-25"
= "2023-12-05"
= "https://thehackernews.com/2021/04/passwordstate-password-manager-update.html"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/mal_passwordstate_backdoor.yar#L1-L24"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "c2169ab4a39220d21709964d57e2eafe4b68c115061cbb64507cfbbddbe635c6"
= "f23f9c2aaf94147b2c5d4b39b56514cd67102d3293bdef85101e2c05ee1c3bf9"
= "46bf5b7f4f75997535742021d1d5c2129daae0b3836c08383058e5e5b8e27d93"
= 75
= 85
= "FILE"
strings:
$x1 = "https://passwordstate-18ed2.kxcdn.com" wide
$s1 = " ProxyUserName, ProxyPassword FROM [SystemSettings]" wide fullword
$s2 = "PasswordstateService.Passwordstate.Crypto" wide
$s3 = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari" wide fullword
$op1 = { 00 4c 00 4e 00 43 00 4c 00 49 00 31 00 31 00 3b 00 00 17 }
$op2 = { 4c 00 49 00 31 00 31 00 3b 00 00 17 50 00 72 00 }
$op3 = { 61 00 74 00 65 00 2d 00 31 00 38 00 65 00 64 00 32 00 2e 00 6b 00 78 00 }
condition:
uint16( 0 ) == 0x5a4d and filesize < 200KB and 1 of ( $x* ) or 3 of them
}
Strings (7 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | text | "https://passwordstate-18ed2.kxcdn.com" | wide |
| $s1 | text | " ProxyUserName, ProxyPassword FROM [SystemSettings]" | wide fullword |
| $s2 | text | "PasswordstateService.Passwordstate.Crypto" | wide |
| $s3 | text | "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari" | wide fullword |
| $op1 | hex | { 00 4c 00 4e 00 43 00 4c 00 49 00 31 00 31 00 3b 00 00 17 } | |
| $op2 | hex | { 4c 00 49 00 31 00 31 00 3b 00 00 17 50 00 72 00 } | |
| $op3 | hex | { 61 00 74 00 65 00 2d 00 31 00 38 00 65 00 64 00 32 00 2e 00 6b 00 78 00 } |
Condition
uint16( 0 ) == 0x5a4d and filesize < 200KB and 1 of ( $x* ) or 3 of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- The file must be smaller than 200KB (a cheap guard that skips large files).
- At least 1 patterns in ( $x* ) must match.
- 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.
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- c2169ab4a39220d21709964d57e2eafe4b68c115061cbb64507cfbbddbe635c6
- f23f9c2aaf94147b2c5d4b39b56514cd67102d3293bdef85101e2c05ee1c3bf9
Licence & attribution
Author: Florian Roth (Nextron Systems)
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: 061de3ae-c404-5e4a-a16b-b3b208b1ae7f
Tags:FILE
Related rules
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-03-15
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-03-03
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-01-16
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-05-10
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-05-04
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2020-01-29
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2020-10-13
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-08-03