YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_WEBSHELL_ASPX_Simpleseesharp
A simple ASPX Webshell that allows an attacker to write further files to disk.
- Author
- threatintel@volexity.com
- Date
- 2021-03-01
- Modified
- 2023-12-05
- Score / Quality
- 75 / 85
What this rule detects
A simple ASPX Webshell that allows an attacker to write further files to disk.
It defines 2 patterns (2 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule SIGNATURE_BASE_WEBSHELL_ASPX_Simpleseesharp : WEBSHELL UNCLASSIFIED FILE
{
meta:
= "A simple ASPX Webshell that allows an attacker to write further files to disk."
= "threatintel@volexity.com"
= "469fdf5c-e09e-5d44-a2e6-0864dcd0e18a"
= "2021-03-01"
= "2023-12-05"
= "https://www.volexity.com/blog/2021/03/02/active-exploitation-of-microsoft-exchange-zero-day-vulnerabilities/"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_hafnium.yar#L121-L136"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "893cd3583b49cb706b3e55ecb2ed0757b977a21f5c72e041392d1256f31166e2"
= "6f62249a68bae94e5cbdb4319ea5cde9dc071ec7a4760df3aafe78bc1e072c30"
= 75
= 85
= "WEBSHELL, UNCLASSIFIED, FILE"
strings:
$header = "<%@ Page Language=\"C#\" %>"
$body = "<% HttpPostedFile thisFile = Request.Files[0];thisFile.SaveAs(Path.Combine"
condition:
$header at 0 and $body and filesize < 1KB
}
Strings (2 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $header | text | "<%@ Page Language=\"C#\" %>" | |
| $body | text | "<% HttpPostedFile thisFile = Request.Files[0];thisFile.SaveAs(Path.Combine" |
Condition
$header at 0 and $body and filesize < 1KBIn plain words (Heuristic)
- The file must be smaller than 1KB (a cheap guard that skips large files).
- Pattern $header must be found at offset 0.
- Pattern $body must be present.
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).
- 893cd3583b49cb706b3e55ecb2ed0757b977a21f5c72e041392d1256f31166e2
Licence & attribution
Author: threatintel@volexity.com
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: 469fdf5c-e09e-5d44-a2e6-0864dcd0e18a
Related rules
- APT / threat actorSignature Base (Florian Roth / Nextron)· threatintel@volexity.com· 2021-04-23
- APT / threat actorSignature Base (Florian Roth / Nextron)· threatintel@volexity.com· 2021-06-22
- Hack toolSignature Base (Florian Roth / Nextron)· threatintel@volexity.com· 2021-05-25
- APT / threat actorSignature Base (Florian Roth / Nextron)· threatintel@volexity.com· 2021-06-23