Detectionhightest

Windows Webshell Strings

Detects common commands used in Windows webshells

Convert In Phoenix Studio

Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.

Launch
Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)Created Sun Feb 19Updated Fri Nov 187ff9db12-1b94-4a79-ba68-a2402c5d6729web
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 Logic2 selectors
detection:
    selection_method:
        cs-method: 'GET'
    selection_keywords:
        # The "%20" is URL encoded version of the space
        # The "%2B" is URL encoded version of the "+"
        - '=whoami'
        - '=net%20user'
        - '=net+user'
        - '=net%2Buser'
        - '=cmd%20/c%'
        - '=cmd+/c+'
        - '=cmd%2B/c%'
        - '=cmd%20/r%'
        - '=cmd+/r+'
        - '=cmd%2B/r%'
        - '=cmd%20/k%'
        - '=cmd+/k+'
        - '=cmd%2B/k%'
        - '=powershell%'
        - '=powershell+'
        - '=tasklist%'
        - '=tasklist+'
        - '=wmic%'
        - '=wmic+'
        - '=ssh%'
        - '=ssh+'
        - '=python%'
        - '=python+'
        - '=python3%'
        - '=python3+'
        - '=ipconfig'
        - '=wget%'
        - '=wget+'
        - '=curl%'
        - '=curl+'
        - '=certutil'
        - '=copy%20%5C%5C'
        - '=dsquery%'
        - '=dsquery+'
        - '=nltest%'
        - '=nltest+'
    condition: all of selection_*
False Positives

Web sites like wikis with articles on os commands and pages that include the os commands in the URLs

User searches in search boxes of the respective website

MITRE ATT&CK
Rule Metadata
Rule ID
7ff9db12-1b94-4a79-ba68-a2402c5d6729
Status
test
Level
high
Type
Detection
Created
Sun Feb 19
Modified
Fri Nov 18
Path
rules/web/webserver_generic/web_win_webshells_in_access_logs.yml
Raw Tags
attack.persistenceattack.t1505.003
View on GitHub