Detection rules › Sigma

BITS Transfer Job Downloading File Potential Suspicious Extension

Status
test
Severity
medium
Log source
product windows, service bits-client
Author
frack113
Source
github.com/SigmaHQ/sigma

Detects new BITS transfer job saving local files with potential suspicious extensions

MITRE ATT&CK coverage

TacticTechniques
ExecutionT1197 BITS Jobs
PersistenceT1197 BITS Jobs
StealthT1197 BITS Jobs

Event coverage

ProviderEventTitle
Bits-ClientEvent ID 16403task_016403

Rule body yaml

title: BITS Transfer Job Downloading File Potential Suspicious Extension
id: b85e5894-9b19-4d86-8c87-a2f3b81f0521
status: test
description: Detects new BITS transfer job saving local files with potential suspicious extensions
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1197/T1197.md
author: frack113
date: 2022-03-01
modified: 2023-03-27
tags:
    - attack.persistence
    - attack.execution
    - attack.stealth
    - attack.t1197
logsource:
    product: windows
    service: bits-client
detection:
    selection:
        EventID: 16403
        LocalName|endswith:
            # TODO: Extend this list with more interesting file extensions
            - '.bat'
            - '.dll'
            - '.exe' # TODO: Might wanna comment this if it generates tons of FPs
            - '.hta'
            - '.ps1'
            - '.psd1'
            - '.sh'
            - '.vbe'
            - '.vbs'
    filter_optional_generic:
        # Typical updates: Chrome, Dropbox etc.
        LocalName|contains: '\AppData\'
        RemoteName|contains: '.com'
    condition: selection and not 1 of filter_optional_*
falsepositives:
    - While the file extensions in question can be suspicious at times. It's best to add filters according to your environment to avoid large amount false positives
level: medium

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_optional_*

Stage 1: selection

selection:
    EventID: 16403
    LocalName|endswith:
        - '.bat'
        - '.dll'
        - '.exe'
        - '.hta'
        - '.ps1'
        - '.psd1'
        - '.sh'
        - '.vbe'
        - '.vbs'

Stage 2: not filter_optional_generic

filter_optional_generic:
    LocalName|contains: '\AppData\'
    RemoteName|contains: '.com'

Exclusions

Top-level NOT(...) conjuncts: predicates this rule actively suppresses.

FieldKindExcluded values
LocalNamematch\AppData\
RemoteNamematch.com

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
LocalNameends_with
  • .bat
  • .dll
  • .exe
  • .hta
  • .ps1
  • .psd1
  • .sh
  • .vbe
  • .vbs