title: Potential Data Exfiltration Via Curl.EXE id: 00bca14a-df4e-4649-9054-3f2aa676bc04 status: test description: Detects the execution of the "curl" process with "upload" flags. Which might indicate potential data exfiltration references: - https://twitter.com/d1r4c/status/1279042657508081664 - https://medium.com/@petehouston/upload-files-with-curl-93064dcccc76 - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1105/T1105.md#atomic-test-19---curl-upload-file - https://curl.se/docs/manpage.html author: Florian Roth (Nextron Systems) date: 2020/07/03 modified: 2023/02/21 tags: - attack.exfiltration - attack.t1567 - attack.t1105 logsource: category: process_creation product: windows detection: selection_img: - Image|endswith: '\curl.exe' - Product: 'The curl executable' selection_cli: CommandLine|contains: - ' -F ' - ' --form' # Also covers the "--form-string" - ' -T ' - ' --upload-file ' - ' -d ' - ' --data ' - ' --data-' # For flags like: "--data-ascii", "--data-binary", "--data-raw", "--data-urlencode" condition: all of selection_* fields: - CommandLine - ParentCommandLine falsepositives: - Scripts created by developers and admins level: medium