YARA · SEKOIA.IO Community
SEKOIA_Hacktool_Ntospy_Strings
Detects Ntospy based on strings
- Author
- Sekoia.io
- Date
- 2023-12-05
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detects Ntospy based on strings
Associated malware family: Ntospy.
Targets: Windows PE.
It defines 3 patterns (2 text, 1 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
hacktool-ntospy-strings.yarDetection Rule License 1.1
rule SEKOIA_Hacktool_Ntospy_Strings : FILE
{
meta:
= "Detects Ntospy based on strings"
= "Sekoia.io"
= "c3281666-6a31-4718-a9c0-82944c6fdcb0"
= "2023-12-05"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/hacktool_ntospy_strings.yar#L1-L19"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "e5bd963419e515d65a03592051822fd801f4a21d54cdb18d408556c4bfef78f5"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = "NPGetCaps"
$ = "NPLogonNotify"
$ = {43 00 3A 00 5C 00 [10-150] 00 2E 00 6D 00 73 00 75}
condition:
uint16be( 0 ) == 0x4d5a and filesize < 300KB and all of them
}
Strings (3 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ | text | "NPGetCaps" | |
| $ | text | "NPLogonNotify" | |
| $ | hex | {43 00 3A 00 5C 00 [10-150] 00 2E 00 6D 00 73 00 75} |
Condition
uint16be( 0 ) == 0x4d5a and filesize < 300KB and all of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- The file must be smaller than 300KB (a cheap guard that skips large files).
- All 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: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
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: c3281666-6a31-4718-a9c0-82944c6fdcb0
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- Hack toolSEKOIA.IO Community· Sekoia.io· 2024-09-06
- Hack toolSEKOIA.IO Community· Sekoia.io· 2024-02-29
- Hack toolSEKOIA.IO Community· Sekoia.io· 2023-11-15
- Hack toolSEKOIA.IO Community· Sekoia.io· 2023-08-23
- Hack toolSEKOIA.IO Community· Sekoia.io· 2022-02-08
- Hack toolSEKOIA.IO Community· Sekoia.io· 2022-07-22
- Hack toolSEKOIA.IO Community· Sekoia.io· 2022-09-09