Detection rules › Sigma

Suspicious File Write to Webapps Root Directory

Severity
medium
Author
Swachchhanda Shrawan Poudel (Nextron Systems)
Source
upstream

Detects suspicious file writes to the root directory of web applications, particularly Apache web servers or Tomcat servers. This may indicate an attempt to deploy malicious files such as web shells or other unauthorized scripts.

MITRE ATT&CK coverage

TacticTechniques
Initial AccessT1190 Exploit Public-Facing Application
PersistenceT1505.003 Server Software Component: Web Shell

Event coverage

ProviderEvent IDTitle
Sysmon11FileCreate

Stages and Predicates

Stage 1: all of selection_susp_img

or:
Image|endswith: '\dotnet.exe'
Image|endswith: '\java.exe'
Image|endswith: '\w3wp.exe'

Stage 2: all of selection_servers

or:
TargetFilename|contains: '\apache'
TargetFilename|contains: '\tomcat'

Stage 3: all of selection_path

TargetFilename|contains: '\webapps\ROOT\'

Stage 4: all of selection_susp_extensions

TargetFilename|endswith: .jsp

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
Imageends_with
  • \dotnet.exe corpus 2 (sigma 2)
  • \java.exe
  • \w3wp.exe corpus 6 (sigma 6)
TargetFilenameends_with
  • .jsp corpus 2 (sigma 2)
TargetFilenamematch
  • \apache
  • \tomcat
  • \webapps\ROOT\