Suspicious /dev/tcp Usage in Linux Shell Commands

Flags Linux shell commands containing suspicious /dev/tcp redirection and file descriptor constructs.

FreeReviewedSigma · Medium · v3
Product
linux
Author
frack113 (SigmaHQ), DRL 1.1
Published
2021-12-10
Updated
2026-07-31

What it detects

This rule flags Linux commands containing common /dev/tcp I/O redirection patterns, such as exec/dup file descriptors and interactive shells redirecting to /dev/tcp or /dev/udp. Attackers often use /dev/tcp to establish outbound network connectivity directly from shell tooling and to stage interactive access or reconnaissance. It relies on command-line text telemetry matching specific keyword fragments associated with these redirection techniques.

Changelog

v3
  1. v3
    Candidate ingested via manual entry.2026-07-31
  2. v2
    Candidate ingested via manual entry.2026-07-31
  3. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.