Detection rules › Sigma

Hack Tool User Agent

Status
test
Severity
high
Log source
category proxy
Author
Florian Roth (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects suspicious user agent strings user by hack tools in proxy logs

MITRE ATT&CK coverage

TacticTechniques
Initial AccessT1190 Exploit Public-Facing Application
Credential AccessT1110 Brute Force

Rule body yaml

title: Hack Tool User Agent
id: c42a3073-30fb-48ae-8c99-c23ada84b103
status: test
description: Detects suspicious user agent strings user by hack tools in proxy logs
references:
    - https://github.com/fastly/waf_testbed/blob/8bfc406551f3045e418cbaad7596cff8da331dfc/templates/default/scanners-user-agents.data.erb
    - http://rules.emergingthreats.net/open/snort-2.9.0/rules/emerging-user_agents.rules
author: Florian Roth (Nextron Systems)
date: 2017-07-08
modified: 2022-07-07
tags:
    - attack.initial-access
    - attack.t1190
    - attack.credential-access
    - attack.t1110
logsource:
    category: proxy
detection:
    selection:
        c-useragent|contains:
            # Vulnerability scanner and brute force tools
            - '(hydra)'
            - ' arachni/'
            - ' BFAC '
            - ' brutus '
            - ' cgichk '
            - 'core-project/1.0'
            - ' crimscanner/'
            - 'datacha0s'
            - 'dirbuster'
            - 'domino hunter'
            - 'dotdotpwn'
            - 'FHScan Core'
            - 'floodgate'
            - 'get-minimal'
            - 'gootkit auto-rooter scanner'
            - 'grendel-scan'
            - ' inspath '
            - 'internet ninja'
            - 'jaascois'
            - ' zmeu '
            - 'masscan'
            - ' metis '
            - 'morfeus fucking scanner'
            - 'n-stealth'
            - 'nsauditor'
            - 'pmafind'
            - 'security scan'
            - 'springenwerk'
            - 'teh forest lobster'
            - 'toata dragostea'
            - ' vega/'
            - 'voideye'
            - 'webshag'
            - 'webvulnscan'
            - ' whcc/'
            # SQL Injection
            - ' Havij'
            - 'absinthe'
            - 'bsqlbf'
            - 'mysqloit'
            - 'pangolin'
            - 'sql power injector'
            - 'sqlmap'
            - 'sqlninja'
            - 'uil2pn'
            # Hack tool
            - 'ruler'  # https://www.crowdstrike.com/blog/using-outlook-forms-lateral-movement-persistence/
            - 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-PT; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)'  # SQLi Dumper
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    c-useragent|contains:
        - '(hydra)'
        - ' arachni/'
        - ' BFAC '
        - ' brutus '
        - ' cgichk '
        - 'core-project/1.0'
        - ' crimscanner/'
        - 'datacha0s'
        - 'dirbuster'
        - 'domino hunter'
        - 'dotdotpwn'
        - 'FHScan Core'
        - 'floodgate'
        - 'get-minimal'
        - 'gootkit auto-rooter scanner'
        - 'grendel-scan'
        - ' inspath '
        - 'internet ninja'
        - 'jaascois'
        - ' zmeu '
        - 'masscan'
        - ' metis '
        - 'morfeus fucking scanner'
        - 'n-stealth'
        - 'nsauditor'
        - 'pmafind'
        - 'security scan'
        - 'springenwerk'
        - 'teh forest lobster'
        - 'toata dragostea'
        - ' vega/'
        - 'voideye'
        - 'webshag'
        - 'webvulnscan'
        - ' whcc/'
        - ' Havij'
        - 'absinthe'
        - 'bsqlbf'
        - 'mysqloit'
        - 'pangolin'
        - 'sql power injector'
        - 'sqlmap'
        - 'sqlninja'
        - 'uil2pn'
        - 'ruler'
        - 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-PT; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)'

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
c-useragentmatch
  • BFAC
  • Havij
  • arachni/
  • brutus
  • cgichk
  • crimscanner/
  • inspath
  • metis
  • vega/
  • whcc/
  • zmeu
  • (hydra)
  • FHScan Core
  • Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-PT; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)
  • absinthe
  • bsqlbf
  • core-project/1.0
  • datacha0s
  • dirbuster
  • domino hunter
  • dotdotpwn
  • floodgate
  • get-minimal
  • gootkit auto-rooter scanner
  • grendel-scan
  • internet ninja
  • jaascois
  • masscan
  • morfeus fucking scanner
  • mysqloit
  • n-stealth
  • nsauditor
  • pangolin
  • pmafind
  • ruler
  • security scan
  • springenwerk
  • sql power injector
  • sqlmap
  • sqlninja
  • teh forest lobster
  • toata dragostea
  • uil2pn
  • voideye
  • webshag
  • webvulnscan