Detectionmediumtest

BITS Transfer Job Downloading File Potential Suspicious Extension

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

Open in Detection LabConvert ruleBuild Package
François HubautCreated 2022-03-01Updated 2023-03-27b85e5894-9b19-4d86-8c87-a2f3b81f0521windows
Log Source
Windowsbits-client
ProductWindows← raw: windows
Servicebits-client← raw: bits-client
Detection Logic
Detection Logic2 selectors
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_*
False Positives

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

Testing & Validation

Regression Tests

by frack113
Positive Detection Test1 matchevtx

Microsoft-Windows-Bits-Client

Rule Metadata
Rule ID
b85e5894-9b19-4d86-8c87-a2f3b81f0521
Status
test
Level
medium
Type
Detection
Created
2022-03-01
Modified
2023-03-27
Path
rules/windows/builtin/bits_client/win_bits_client_new_transfer_saving_susp_extensions.yml
Raw Tags
attack.persistenceattack.executionattack.stealthattack.t1197
View on GitHub