Potential Cookies Session Hijacking
Detects execution of "curl.exe" with the "-c" flag in order to save cookie data.
Detection logic
selection_img
- Image|endswith: \curl.exe
- OriginalFileName: curl.exeselection_cli
- CommandLine|re: \s-c\s
- CommandLine|contains: --cookie-jarCondition
all of selection_*Raw YAML
title: Potential Cookies Session Hijacking
id: 5a6e1e16-07de-48d8-8aae-faa766c05e88
status: test
description: Detects execution of "curl.exe" with the "-c" flag in order to save cookie data.
references:
- https://curl.se/docs/manpage.html
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-07-27
tags:
- attack.execution
logsource:
product: windows
category: process_creation
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_*
falsepositives:
- Unknown
level: medium
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_curl_cookie_hijacking/info.ymlFalse positives
- Unknown
References
Similar rules
AADInternals PowerShell Cmdlets Execution - ProccessCreation
highwindows · Same logsource category (process_creation)
Abuse of Service Permissions to Hide Services Via Set-Service
highwindows · Same logsource category (process_creation)
Add Insecure Download Source To Winget
highwindows · Same logsource category (process_creation)
Add New Download Source To Winget
mediumwindows · Same logsource category (process_creation)