Skip to content
WETNav

Community detections

ruby.exe

2 community detection rules look for suspicious ruby.exe command lines, most often for Windows Remote Management (T1021.006), Command and Scripting Interpreter (T1059). WETNav has no switch-by-switch reference for it yet, so the explainer reads its arguments generically and checks them against these rules.

Rules by level

2 medium

Worst caseMedium
Explain a ruby.exe command line

What defenders look for

  • Medium
    HackTool - WinRM Access Via Evil-WinRM

    Adversaries may use Valid Accounts to log into a computer using the Remote Desktop Protocol (RDP). The adversary may then perform actions as the logged-on user.

    T1021.006by frack113

  • Medium
    Ruby Inline Command Execution

    Detects execution of ruby using the "-e" flag. This is could be used as a way to launch a reverse shell or execute live ruby code.

    T1059by Nasreddine Bencherchali (Nextron Systems)

Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.

Questions

Is ruby.exe malicious?
Not by itself. These rules flag specific ways of running it: 2 rules, 0 rated high or critical. HackTool - WinRM Access Via Evil-WinRM; Ruby Inline Command Execution. Judge a run by its command line, its parent process, the account and the host.
What does ruby.exe have to do with ATT&CK?
The rules for it map to Windows Remote Management (T1021.006), Command and Scripting Interpreter (T1059).
How do I check a ruby.exe command line?
Paste it into the WETNav command explainer. It reads every argument, pulls out indicators and evaluates all 1,192 Sigma process creation rules in your browser, including these.