YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_WEBSHELL_ASP_Embedded_Mar21_1
Detects ASP webshells
- Author
- Florian Roth (Nextron Systems)
- Date
- 2021-03-05
- Modified
- 2023-12-05
- Score / Quality
- 85 / 85
What this rule detects
Detects ASP webshells
It defines 3 patterns (3 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
webshell-asp-embedded-mar21-1.yarDetection Rule License 1.1
rule SIGNATURE_BASE_WEBSHELL_ASP_Embedded_Mar21_1 : FILE
{
meta:
= "Detects ASP webshells"
= "Florian Roth (Nextron Systems)"
= "7cf7db9d-8f8a-51db-a0e6-84748e8f9e1f"
= "2021-03-05"
= "2023-12-05"
= "Internal Research"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_hafnium.yar#L2-L16"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "4a8b4cea6f53dad9771cb694ec55f305f04dfdbd8e663154cad672ca414c138c"
= 85
= 85
= "FILE"
strings:
$s1 = "<script runat=\"server\">" nocase
$s2 = "new System.IO.StreamWriter(Request.Form["
$s3 = ".Write(Request.Form["
condition:
filesize < 100KB and all of them
}
Strings (3 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "<script runat=\"server\">" | nocase |
| $s2 | text | "new System.IO.StreamWriter(Request.Form[" | |
| $s3 | text | ".Write(Request.Form[" |
Condition
filesize < 100KB and all of themIn plain words (Heuristic)
- The file must be smaller than 100KB (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.
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: 7cf7db9d-8f8a-51db-a0e6-84748e8f9e1f
Tags:FILE
Related rules
- WebshellSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-08-25
- WebshellSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-03-31
- WebshellSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-11-01
- WebshellSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-03-31
- WebshellSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-03-12
- WebshellSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-08-13
- WebshellSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-11-23
- APT / threat actorSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-01-16