Detectionmediumtest

Potential Cookies Session Hijacking

Detects execution of "curl.exe" with the "-c" flag in order to save cookie data.

Open in Detection LabConvert ruleBuild Package
Nasreddine BencherchaliCreated 2023-07-275a6e1e16-07de-48d8-8aae-faa766c05e88windows
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 Logic2 selectors
detection:
    selection_img:
        - Image|endswith: '\curl.exe'
        - OriginalFileName: 'curl.exe'
    selection_cli:
        - CommandLine|re: '\s-c\s'
        - CommandLine|contains: '--cookie-jar'
    condition: all of selection_*
False Positives
Unknown

False positive likelihood has not been assessed. Additional context may be needed during triage.

Testing & Validation

Regression Tests

by Swachchhanda Shrawan Poudel (Nextron Systems)
Positive Detection Test1 matchevtx

Microsoft-Windows-Sysmon

MITRE ATT&CK
Rule Metadata
Rule ID
5a6e1e16-07de-48d8-8aae-faa766c05e88
Status
test
Level
medium
Type
Detection
Created
2023-07-27
Path
rules/windows/process_creation/proc_creation_win_curl_cookie_hijacking.yml
Raw Tags
attack.execution
View on GitHub