Linux Perl Reverse Shell Execution via Perl -e and Socket/exec Patterns

Detects perl -e one-liners on Linux that include Perl Socket::INET reverse-shell code patterns and exec/connect logic.

FreeReviewedSigma · High · v2
Product
linux
Category
process_creation
Author
@d4ns4n_, Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2023-04-07
Updated
2026-07-31

What it detects

This rule identifies process launches where the executable path ends with /perl and the command line includes the Perl -e execution flag. It further matches command-line content indicative of network socket usage and command execution, including patterns such as fdopen, Socket::INET, connect, open, and exec. These behaviors matter because they can be used to stage interactive remote command execution from a single Perl one-liner, relying on process creation telemetry with full command-line arguments.

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. 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.