Detectionhightest
Server Side Template Injection Strings
Detects SSTI attempts sent via GET requests in access logs
Convert In Phoenix Studio
Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.
Launch
Log Source
Web Server Log
CategoryWeb Server Log← raw: webserver
HTTP access logs from web servers capturing request paths, methods, and status codes.
Detection Logic
Detection Logic3 selectors
detection:
select_method:
cs-method: 'GET'
keywords:
- '={{'
- '=%7B%7B'
- '=${'
- '=$%7B'
- '=<%='
- '=%3C%25='
- '=@('
- 'freemarker.template.utility.Execute'
- .getClass().forName('javax.script.ScriptEngineManager')
- 'T(org.apache.commons.io.IOUtils)'
filter:
sc-status: 404
condition: select_method and keywords and not filterFalse Positives
User searches in search boxes of the respective website
Internal vulnerability scanners can cause some serious FPs when used, if you experience a lot of FPs due to this think of adding more filters such as "User Agent" strings and more response codes
MITRE ATT&CK
Tactics
Other
attack.t1221
Rule Metadata
Rule ID
ada3bc4f-f0fd-42b9-ba91-e105e8af7342
Status
test
Level
high
Type
Detection
Created
Tue Jun 14
Path
rules/web/webserver_generic/web_ssti_in_access_logs.yml
Raw Tags
attack.defense-evasionattack.t1221