YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_WEBSHELL_PHP_In_Htaccess
Use Apache .htaccess to execute php code inside .htaccess
- Author
- Arnim Rupp (https://github.com/ruppde)
- Date
- 2021-01-07
- Modified
- 2023-07-05
- Score / Quality
- 75 / 85
What this rule detects
Use Apache .htaccess to execute php code inside .htaccess
It defines 1 patterns (1 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule SIGNATURE_BASE_WEBSHELL_PHP_In_Htaccess : FILE
{
meta:
= "Use Apache .htaccess to execute php code inside .htaccess"
= "Arnim Rupp (https://github.com/ruppde)"
= "0f5edff9-22b2-50c9-ae81-72698ea8e7db"
= "2021-01-07"
= "2023-07-05"
= "Internal Research"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/gen_webshells.yar#L2756-L2778"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "c026d4512a32d93899d486c6f11d1e13b058a713"
= "d79e9b13a32a9e9f3fa36aa1a4baf444bfd2599a"
= "e1d1091fee6026829e037b2c70c228344955c263"
= "c026d4512a32d93899d486c6f11d1e13b058a713"
= "8c9e65cd3ef093cd9c5b418dc5116845aa6602bc92b9b5991b27344d8b3f7ef2"
= "0652a4cb0cb6c61afece5c2e4cbf2f281714509f0d828047f2e3ccd411602115"
= 75
= 85
= "FILE"
= "Detection Rule License 1.1 https://github.com/Neo23x0/signature-base/blob/master/LICENSE"
= 70
strings:
$hta = "AddType application/x-httpd-php .htaccess" wide ascii
condition:
filesize < 100KB and $hta
}
Strings (1 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $hta | text | "AddType application/x-httpd-php .htaccess" | wide ascii |
Condition
filesize < 100KB and $htaIn plain words (Heuristic)
- The file must be smaller than 100KB (a cheap guard that skips large files).
- Pattern $hta 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).
- c026d4512a32d93899d486c6f11d1e13b058a713
- d79e9b13a32a9e9f3fa36aa1a4baf444bfd2599a
- e1d1091fee6026829e037b2c70c228344955c263
- 8c9e65cd3ef093cd9c5b418dc5116845aa6602bc92b9b5991b27344d8b3f7ef2
Licence & attribution
Author: Arnim Rupp (https://github.com/ruppde)
Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
Licence: Detection Rule License 1.1 (stated in the rule's own meta)
“Detection Rule License 1.1 https://github.com/Neo23x0/signature-base/blob/master/LICENSE”
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 0f5edff9-22b2-50c9-ae81-72698ea8e7db
Metadata
| importance | 70 |
|---|
Tags:FILE
Related rules
- WebshellSignature Base (Florian Roth / Nextron)· Arnim Rupp (https://github.com/ruppde)· 2023-01-28
- WebshellSignature Base (Florian Roth / Nextron)· Arnim Rupp (https://github.com/ruppde)· 2021-01-07
- WebshellSignature Base (Florian Roth / Nextron)· Arnim Rupp (https://github.com/ruppde)· 2021-01-07
- WebshellSignature Base (Florian Roth / Nextron)· Arnim Rupp (https://github.com/ruppde)· 2021-01-07
- WebshellSignature Base (Florian Roth / Nextron)· Arnim Rupp (https://github.com/ruppde)· 2021-01-07
- WebshellSignature Base (Florian Roth / Nextron)· Arnim Rupp (https://github.com/ruppde)· 2021-01-09
- MalwareSignature Base (Florian Roth / Nextron)· Arnim Rupp (https://github.com/ruppde)· 2023-04-04
- Hack toolSignature Base (Florian Roth / Nextron)· Arnim Rupp (https://github.com/ruppde)· 2020-12-13