Detectionlowtest

Insensitive Subfolder Search Via Findstr.EXE

Detects execution of findstr with the "s" and "i" flags for a "subfolder" and "insensitive" search respectively. Attackers sometimes leverage this built-in utility to search the system for interesting files or filter through results of commands.

Open in Detection LabConvert ruleBuild Package
Furkan CALISKAN, @oscd_initiative, Nasreddine BencherchaliCreated 2020-10-05Updated 2024-03-0504936b66-3915-43ad-a8e5-809eadfd1141windows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic3 selectors
detection:
    selection_findstr:
        - CommandLine|contains: findstr
        - Image|endswith: 'findstr.exe'
        - OriginalFileName: 'FINDSTR.EXE'
    selection_cli_search_subfolder:
        CommandLine|contains|windash: ' -s '
    selection_cli_search_insensitive:
        CommandLine|contains|windash: ' -i '
    condition: selection_findstr and all of selection_cli_search_*
False Positives

Administrative or software activity

Related Rules
Similar

bf6c39fc-e203-45b9-9538-05397c1b4f3f

Rule not found
Rule Metadata
Rule ID
04936b66-3915-43ad-a8e5-809eadfd1141
Status
test
Level
low
Type
Detection
Created
2020-10-05
Modified
2024-03-05
Path
rules/windows/process_creation/proc_creation_win_findstr_subfolder_search.yml
Raw Tags
attack.credential-accessattack.command-and-controlattack.stealthattack.t1218attack.t1564.004attack.t1552.001attack.t1105
View on GitHub