Detection rules › Sigma

File With Suspicious Extension Downloaded Via Bitsadmin

Status
test
Severity
high
Log source
product windows, category process_creation
Author
Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects usage of bitsadmin downloading a file with a suspicious extension

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: File With Suspicious Extension Downloaded Via Bitsadmin
id: 5b80a791-ad9b-4b75-bcc1-ad4e1e89c200
status: test
description: Detects usage of bitsadmin downloading a file with a suspicious extension
references:
    - https://blog.netspi.com/15-ways-to-download-a-file/#bitsadmin
    - https://isc.sans.edu/diary/22264
    - https://lolbas-project.github.io/lolbas/Binaries/Bitsadmin/
author: Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
date: 2022-06-28
modified: 2023-05-30
tags:
    - attack.persistence
    - attack.execution
    - attack.stealth
    - attack.t1197
    - attack.s0190
    - attack.t1036.003
    - attack.command-and-control
    - attack.t1105
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\bitsadmin.exe'
        - OriginalFileName: 'bitsadmin.exe'
    selection_flags:
        CommandLine|contains:
            - ' /transfer '
            - ' /create '
            - ' /addfile '
    selection_extension:
        CommandLine|contains:
            - '.7z'
            - '.asax'
            - '.ashx'
            - '.asmx'
            - '.asp'
            - '.aspx'
            - '.bat'
            - '.cfm'
            - '.cgi'
            - '.chm'
            - '.cmd'
            - '.dll'
            - '.gif'
            - '.jpeg'
            - '.jpg'
            - '.jsp'
            - '.jspx'
            - '.log'
            - '.png'
            - '.ps1'
            - '.psm1'
            - '.rar'
            - '.scf'
            - '.sct'
            - '.txt'
            - '.vbe'
            - '.vbs'
            - '.war'
            - '.wsf'
            - '.wsh'
            - '.xll'
            - '.zip'
    condition: all of selection_*
falsepositives:
    - Unknown
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_bitsadmin_download_susp_extensions/info.yml
simulation:
    - type: atomic-red-team
      name: Windows - BITSAdmin BITS Download
      technique: T1105
      atomic_guid: a1921cd3-9a2d-47d5-a891-f1d0f2a7a31b

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Image|endswith: '\bitsadmin.exe'
    - OriginalFileName: 'bitsadmin.exe'

Stage 2: selection_flags

selection_flags:
    CommandLine|contains:
        - ' /transfer '
        - ' /create '
        - ' /addfile '

Stage 3: selection_extension

selection_extension:
    CommandLine|contains:
        - '.7z'
        - '.asax'
        - '.ashx'
        - '.asmx'
        - '.asp'
        - '.aspx'
        - '.bat'
        - '.cfm'
        - '.cgi'
        - '.chm'
        - '.cmd'
        - '.dll'
        - '.gif'
        - '.jpeg'
        - '.jpg'
        - '.jsp'
        - '.jspx'
        - '.log'
        - '.png'
        - '.ps1'
        - '.psm1'
        - '.rar'
        - '.scf'
        - '.sct'
        - '.txt'
        - '.vbe'
        - '.vbs'
        - '.war'
        - '.wsf'
        - '.wsh'
        - '.xll'
        - '.zip'

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
CommandLinematch
  • /addfile corpus 5 (sigma 5)
  • /create corpus 15 (sigma 15)
  • /transfer corpus 5 (sigma 5)
  • .7z corpus 2 (sigma 2)
  • .asax
  • .ashx
  • .asmx
  • .asp
  • .aspx corpus 2 (sigma 2)
  • .bat corpus 11 (sigma 9, elastic 1, kusto 1)
  • .cfm
  • .cgi
  • .chm corpus 2 (sigma 2)
  • .cmd corpus 6 (sigma 5, elastic 1)
  • .dll corpus 16 (sigma 16)
  • .gif corpus 8 (sigma 8)
  • .jpeg corpus 6 (sigma 6)
  • .jpg corpus 7 (sigma 7)
  • .jsp corpus 2 (sigma 2)
  • .jspx
  • .log corpus 4 (sigma 4)
  • .png corpus 7 (sigma 7)
  • .ps1 corpus 4 (sigma 3, elastic 1)
  • .psm1
  • .rar corpus 2 (sigma 2)
  • .scf
  • .sct
  • .txt corpus 9 (sigma 9)
  • .vbe corpus 5 (sigma 5)
  • .vbs corpus 7 (sigma 7)
  • .war
  • .wsf corpus 4 (sigma 3, elastic 1)
  • .wsh corpus 4 (sigma 4)
  • .xll
  • .zip corpus 6 (sigma 5, chronicle 1)
Imageends_with
  • \bitsadmin.exe corpus 29 (sigma 29)
OriginalFileNameeq
  • bitsadmin.exe corpus 12 (sigma 9, splunk 2, kusto 1)