Linux Process Creation: Ruby -e Reverse Shell Socket Usage

Detects inline Ruby (-e) using rsocket/TCPSocket and shell keywords, which may indicate reverse-shell style behavior.

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

What it detects

This rule flags Linux process creation events where Ruby is executed with the "-e" flag and the command line includes socket-related identifiers such as "rsocket" and "TCPSocket". These strings are commonly associated with Ruby scripts that attempt to open network connections, a prerequisite for reverse-shell style behavior. It relies on process creation telemetry that records the Image name and full CommandLine.

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.