Possible Webshell Creation On Static Website (via file_event)
This rule detects the creation of files with certain extensions on a static web site. This can be indicative of potential uploads of a web shell.
SigmamediumWindowsv1
sigma
possible-webshell-creation-on-static-website-via-file-event
title: Possible Webshell Creation On Static Website (via file_event)
id: bc2b29bf-be03-5e9a-b9d5-961066a789b7
status: stable
description: This rule detects the creation of files with certain extensions on a static web site. This can be indicative of potential uploads of a web shell.
references:
- https://attack.mitre.org/techniques/T1505/003/
- PT ESC rule and personal experience
- https://github.com/swisskyrepo/PayloadsAllTheThings/blob/c95a0a1a2855dc0cd7f7327614545fe30482a636/Upload%20Insecure%20Files/README.md
author: Huntrule Team
date: 2026-01-03
tags:
- attack.persistence
- attack.t1505.003
logsource:
product: windows
category: file_event
detection:
selection_wwwroot_path:
TargetFilename|contains: '\inetpub\wwwroot\'
selection_wwwroot_ext:
TargetFilename|contains:
- '.ashx'
- '.asp'
- '.ph'
- '.soap'
selection_htdocs_path:
TargetFilename|contains:
- '\www\'
- '\htdocs\'
- '\html\'
selection_htdocs_ext:
TargetFilename|contains: '.ph'
filter_main_temp:
TargetFilename|contains:
- '\AppData\Local\Temp\'
- '\Windows\Temp\'
filter_main_system:
Image: 'System'
filter_main_legitimate:
TargetFilename|contains: '\xampp'
condition: (all of selection_wwwroot_* or all of selection_htdocs_*) and not 1 of filter_main_*
falsepositives:
- Unknown
level: medium
Known false positives
- Unknown
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.