Linux Download-and-Execute One-liner

Severity highLinuxSingle eventexperimentalsigma.linux_download_and_exec · v1.0.0

What it detects

curl/wget piped to a shell or a chmod+x in /tmp — staging payloads

MITRE ATT&CK mapping

  • T1105Ingress Tool Transfer· Command and Control

False positives and triage

Converted from Sigma; review before enabling.

The rule

Declarative YAML read by the detection engine — data, never executed. Confidence 70%. Source: rules/sigma/sigma.linux_download_and_exec.yaml, licensed under the Detection Rule License 1.1.

id: sigma.linux_download_and_exec
version: 1.0.0
status: experimental
severity: high
confidence: 0.7
platforms:
- linux
mitre_techniques:
- T1105
description: curl/wget piped to a shell or a chmod+x in /tmp — staging payloads (Sigma sample)
match:
  event_category: process
  raw_message_contains_any:
  - curl -s http
  - wget -q http
  - chmod +x /tmp/
  - '| bash'
  - '| sh -'
false_positive_guidance: Converted from Sigma; review before enabling.

Adapted from the SigmaHQ rule “Linux Download-and-Execute One-liner”, distributed under the Detection Rule License 1.1. SigmaHQ.

Related detections

Run this rule on your own logs — offline

KIROSEC runs this rule and the rest of the library over Windows, Linux, macOS and cloud audit logs on the analyst's own machine. Every alert links to the events that raised it, and nothing leaves the device.

Browse all detections