YARA · Trellix Advanced Research Center
TRELLIX_ARC_Nionspy
Triggers on old and new variants of W32/NionSpy file infector
- Author
- Trellix ARC Team
- Date
- 2026-09-01
- Modified
- 2020-08-14
- Score / Quality
- 75 / 70
What this rule detects
Triggers on old and new variants of W32/NionSpy file infector
Associated malware family: NionSpy.
Targets: Windows PE.
It defines 3 patterns (3 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
nionspy.yarApache License 2.0
rule TRELLIX_ARC_Nionspy : FILEINFECTOR FILE
{
meta:
= "Triggers on old and new variants of W32/NionSpy file infector"
= "Trellix ARC Team"
= "86051ef8-a18b-553c-b06c-490f8d6df5cf"
= "2026-09-01"
= "2020-08-14"
= "https://blogs.mcafee.com/mcafee-labs/taking-a-close-look-at-data-stealing-nionspy-file-infector"
= "https://github.com/advanced-threat-research/Yara-Rules//blob/1919562a59f190bda60c982424f6a24c542ee3e0/malware/MALW_NionSpy.yar#L1-L25"
= "https://github.com/advanced-threat-research/Yara-Rules//blob/1919562a59f190bda60c982424f6a24c542ee3e0/LICENSE"
= "982ba52f39352aee9e2d2dcadfb0816c439e92d0e5947afa7860630720913742"
= 75
= 70
= "FILEINFECTOR, FILE"
= "fileinfector"
= "FileInfector:W32/NionSpy"
= "Cybercrime"
= "Unknown"
strings:
$variant2015_infmarker = "aCfG92KXpcSo4Y94BnUrFmnNk27EhW6CqP5EnT"
$variant2013_infmarker = "ad6af8bd5835d19cc7fdc4c62fdf02a1"
$variant2013_string = "%s?cstorage=shell&comp=%s"
condition:
uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 and 1 of ( $variant* )
}
Strings (3 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $variant2015_infmarker | text | "aCfG92KXpcSo4Y94BnUrFmnNk27EhW6CqP5EnT" | |
| $variant2013_infmarker | text | "ad6af8bd5835d19cc7fdc4c62fdf02a1" | |
| $variant2013_string | text | "%s?cstorage=shell&comp=%s" |
Condition
uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 and 1 of ( $variant* )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 1 patterns in ( $variant* ) 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.
Licence & attribution
Author: Trellix ARC Team
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: 86051ef8-a18b-553c-b06c-490f8d6df5cf
Metadata
| malware_type | fileinfector |
|---|---|
| malware_family | FileInfector:W32/NionSpy |
| actor_type | Cybercrime |
| actor_group | Unknown |
Tags:FILEINFECTORFILE