{"id":"a2d9e2f3-0f43-4c7a-bcd9-9acfc0d723aa","title":"Suspicious Download and Execute Pattern via Curl/Wget","description":"Detects suspicious use of command-line tools such as curl or wget to download remote\ncontent - particularly scripts - into temporary directories (e.g., /dev/shm, /tmp), followed by\nimmediate execution, indicating potential malicious activity. This pattern is commonly used\nby malicious scripts, stagers, or downloaders in fileless or multi-stage Linux attacks.\n","author":"Aayush Gupta","status":"experimental","level":"high","date":"2025-06-17","modified":"","tags":["attack.execution","attack.t1059.004","attack.t1203"],"technique_ids":["T1059.004","T1203"],"logsource":{"category":"process_creation","product":"linux"},"falsepositives":["System update scripts using temporary files","Installer scripts or automated provisioning tools"],"references":["https://gtfobins.github.io/gtfobins/wget/","https://gtfobins.github.io/gtfobins/curl/"],"source_path":"rules/linux/process_creation/proc_creation_lnx_curl_wget_exec_tmp.yml","source_sha256":"5260e1f6309273af14e50cfc0c7aa4bd58644600fa7d01a6f76a7915321622f3","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/linux/process_creation/proc_creation_lnx_curl_wget_exec_tmp.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Suspicious Download and Execute Pattern via Curl/Wget\nid: a2d9e2f3-0f43-4c7a-bcd9-9acfc0d723aa\nstatus: experimental\ndescription: |\n    Detects suspicious use of command-line tools such as curl or wget to download remote\n    content - particularly scripts - into temporary directories (e.g., /dev/shm, /tmp), followed by\n    immediate execution, indicating potential malicious activity. This pattern is commonly used\n    by malicious scripts, stagers, or downloaders in fileless or multi-stage Linux attacks.\nreferences:\n    - https://gtfobins.github.io/gtfobins/wget/\n    - https://gtfobins.github.io/gtfobins/curl/\nauthor: Aayush Gupta\ndate: 2025-06-17\ntags:\n    - attack.execution\n    - attack.t1059.004\n    - attack.t1203\nlogsource:\n    category: process_creation\n    product: linux\ndetection:\n    selection_downloader:\n        CommandLine|contains:\n            - '/curl'\n            - '/wget'\n    selection_tmp:\n        CommandLine|contains:\n            - '/tmp/'\n            - '/dev/shm/'\n    selection_executor:\n        CommandLine|contains: 'sh -c'\n    condition: all of selection_*\nfalsepositives:\n    - System update scripts using temporary files\n    - Installer scripts or automated provisioning tools\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1059.004","id":"T1059.004","name":"Unix Shell","page":"techniques/enterprise/T1059.004/"},{"key":"enterprise/T1203","id":"T1203","name":"Exploitation for Client Execution","page":"techniques/enterprise/T1203/"}],"data_path":"data/detection-rules/a2d9e2f3-0f43-4c7a-bcd9-9acfc0d723aa.json","kind":"sigma"}
