Detection rules › Sigma

Antivirus Relevant File Paths Alerts

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

Detects an Antivirus alert in a highly relevant file path or with a relevant file name. This event must not be ignored just because the AV has blocked the malware but investigate, how it came there in the first place.

MITRE ATT&CK coverage

TacticTechniques
Resource DevelopmentT1588 Obtain Capabilities

Rule body yaml

title: Antivirus Relevant File Paths Alerts
id: c9a88268-0047-4824-ba6e-4d81ce0b907c
status: test
description: |
    Detects an Antivirus alert in a highly relevant file path or with a relevant file name.
    This event must not be ignored just because the AV has blocked the malware but investigate, how it came there in the first place.
references:
    - https://www.nextron-systems.com/?s=antivirus
author: Florian Roth (Nextron Systems), Arnim Rupp
date: 2018-09-09
modified: 2024-11-02
tags:
    - attack.resource-development
    - attack.t1588
logsource:
    category: antivirus
detection:
    selection_path:
        Filename|contains:
            - ':\PerfLogs\'
            - ':\Temp\'
            - ':\Users\Default\'
            - ':\Users\Public\'
            - ':\Windows\'
            - '/www/'
            # - '\Client\'
            - '\inetpub\'
            - '\tsclient\'
            - 'apache'
            - 'nginx'
            - 'tomcat'
            - 'weblogic'
    selection_ext:
        Filename|endswith:
            - '.asax'
            - '.ashx'
            - '.asmx'
            - '.asp'
            - '.aspx'
            - '.bat'
            - '.cfm'
            - '.cgi'
            - '.chm'
            - '.cmd'
            - '.dat'
            - '.ear'
            - '.gif'
            - '.hta'
            - '.jpeg'
            - '.jpg'
            - '.jsp'
            - '.jspx'
            - '.lnk'
            - '.msc'
            - '.php'
            - '.pl'
            - '.png'
            - '.ps1'
            - '.psm1'
            - '.py'
            - '.pyc'
            - '.rb'
            - '.scf'
            - '.sct'
            - '.sh'
            - '.svg'
            - '.txt'
            - '.vbe'
            - '.vbs'
            - '.war'
            - '.wll'
            - '.wsf'
            - '.wsh'
            - '.xll'
            - '.xml'
    condition: 1 of selection_*
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_path

selection_path:
    Filename|contains:
        - ':\PerfLogs\'
        - ':\Temp\'
        - ':\Users\Default\'
        - ':\Users\Public\'
        - ':\Windows\'
        - '/www/'
        - '\inetpub\'
        - '\tsclient\'
        - 'apache'
        - 'nginx'
        - 'tomcat'
        - 'weblogic'

Stage 2: selection_ext

selection_ext:
    Filename|endswith:
        - '.asax'
        - '.ashx'
        - '.asmx'
        - '.asp'
        - '.aspx'
        - '.bat'
        - '.cfm'
        - '.cgi'
        - '.chm'
        - '.cmd'
        - '.dat'
        - '.ear'
        - '.gif'
        - '.hta'
        - '.jpeg'
        - '.jpg'
        - '.jsp'
        - '.jspx'
        - '.lnk'
        - '.msc'
        - '.php'
        - '.pl'
        - '.png'
        - '.ps1'
        - '.psm1'
        - '.py'
        - '.pyc'
        - '.rb'
        - '.scf'
        - '.sct'
        - '.sh'
        - '.svg'
        - '.txt'
        - '.vbe'
        - '.vbs'
        - '.war'
        - '.wll'
        - '.wsf'
        - '.wsh'
        - '.xll'
        - '.xml'

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
Filenameends_with
  • .asax
  • .ashx
  • .asmx
  • .asp
  • .aspx
  • .bat
  • .cfm
  • .cgi
  • .chm
  • .cmd
  • .dat
  • .ear
  • .gif
  • .hta
  • .jpeg
  • .jpg
  • .jsp
  • .jspx
  • .lnk
  • .msc
  • .php
  • .pl
  • .png
  • .ps1
  • .psm1
  • .py
  • .pyc
  • .rb
  • .scf
  • .sct
  • .sh
  • .svg
  • .txt
  • .vbe
  • .vbs
  • .war
  • .wll
  • .wsf
  • .wsh
  • .xll
  • .xml
Filenamematch
  • /www/
  • :\PerfLogs\
  • :\Temp\
  • :\Users\Default\
  • :\Users\Public\
  • :\Windows\
  • \inetpub\
  • \tsclient\
  • apache
  • nginx
  • tomcat
  • weblogic