Detection rules › Sigma

Webshell ReGeorg Detection Via Web Logs

Status
test
Severity
high
Log source
category webserver
Author
Cian Heasley
Source
github.com/SigmaHQ/sigma

Certain strings in the uri_query field when combined with null referer and null user agent can indicate activity associated with the webshell ReGeorg.

MITRE ATT&CK coverage

Rule body yaml

title: Webshell ReGeorg Detection Via Web Logs
id: 2ea44a60-cfda-11ea-87d0-0242ac130003
status: test
description: Certain strings in the uri_query field when combined with null referer and null user agent can indicate activity associated with the webshell ReGeorg.
references:
    - https://community.rsa.com/community/products/netwitness/blog/2019/02/19/web-shells-and-netwitness-part-3
    - https://github.com/sensepost/reGeorg
author: Cian Heasley
date: 2020-08-04
modified: 2023-01-02
tags:
    - attack.persistence
    - attack.t1505.003
logsource:
    category: webserver
detection:
    selection:
        cs-uri-query|contains:
            - 'cmd=read'
            - 'connect&target'
            - 'cmd=connect'
            - 'cmd=disconnect'
            - 'cmd=forward'
    filter:
        cs-referer: null
        cs-user-agent: null
        cs-method: POST
    condition: selection and filter
falsepositives:
    - Web applications that use the same URL parameters as ReGeorg
level: high

Stages and Predicates

Stage 0: condition

selection and filter

Stage 1: selection

selection:
    cs-uri-query|contains:
        - 'cmd=read'
        - 'connect&target'
        - 'cmd=connect'
        - 'cmd=disconnect'
        - 'cmd=forward'

Stage 2: filter

filter:
    cs-referer: null
    cs-user-agent: null
    cs-method: POST

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
cs-methodeq
  • POST
cs-refereris_null
  • (no value, null check)
cs-uri-querymatch
  • cmd=connect
  • cmd=disconnect
  • cmd=forward
  • cmd=read
  • connect&target
cs-user-agentis_null
  • (no value, null check)