Detection rules › Sigma

TerraMaster TOS CVE-2020-28188

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

Detects the exploitation of the TerraMaster TOS vulnerability described in CVE-2020-28188

MITRE ATT&CK coverage

TacticTechniques
Initial AccessT1190 Exploit Public-Facing Application

Rule body yaml

title: TerraMaster TOS CVE-2020-28188
id: 15c312b9-00d0-4feb-8870-7d940a4bdc5e
status: test
description: Detects the exploitation of the TerraMaster TOS vulnerability described in CVE-2020-28188
references:
    - https://www.ihteam.net/advisory/terramaster-tos-multiple-vulnerabilities/
    - https://research.checkpoint.com/2021/freakout-leveraging-newest-vulnerabilities-for-creating-a-botnet/
author: Bhabesh Raj
date: 2021-01-25
modified: 2023-01-02
tags:
    - attack.t1190
    - attack.initial-access
    - cve.2020-28188
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    base_url:
        cs-method: 'GET'
        cs-uri-query|contains|all:
            - '/include/makecvs.php'
            - '?Event='
    payload:
        cs-uri-query|contains:
            - 'curl'
            - 'wget'
            - '.py'
            - '.sh'
            - 'chmod'
            - '_GET'
    condition: base_url and payload
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

base_url and payload

Stage 1: base_url

base_url:
    cs-method: 'GET'
    cs-uri-query|contains|all:
        - '/include/makecvs.php'
        - '?Event='

Stage 2: payload

payload:
    cs-uri-query|contains:
        - 'curl'
        - 'wget'
        - '.py'
        - '.sh'
        - 'chmod'
        - '_GET'

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
  • GET
cs-uri-querymatch
  • .py
  • .sh
  • /include/makecvs.php
  • ?Event=
  • _GET
  • chmod
  • curl
  • wget