{"id":"20a5ffa1-3848-4584-b6f8-c7c7fd9f69c8","title":"Ruby Inline Command Execution","description":"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.","author":"Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"medium","date":"2023-01-02","modified":"","tags":["attack.execution","attack.t1059"],"technique_ids":["T1059"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Unknown"],"references":["https://pentestmonkey.net/cheat-sheet/shells/reverse-shell-cheat-sheet","https://www.revshells.com/"],"source_path":"rules/windows/process_creation/proc_creation_win_ruby_inline_command_execution.yml","source_sha256":"b29d9180dd4a46e0c8cb9f4ad2e4558ba9547626691a8cb89de430d367696d65","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_ruby_inline_command_execution.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Ruby Inline Command Execution\nid: 20a5ffa1-3848-4584-b6f8-c7c7fd9f69c8\nstatus: test\ndescription: 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.\nreferences:\n    - https://pentestmonkey.net/cheat-sheet/shells/reverse-shell-cheat-sheet\n    - https://www.revshells.com/\nauthor: Nasreddine Bencherchali (Nextron Systems)\ndate: 2023-01-02\ntags:\n    - attack.execution\n    - attack.t1059\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_img:\n        - Image|endswith: '\\ruby.exe'\n        - OriginalFileName: 'ruby.exe'\n    selection_cli:\n        CommandLine|contains: ' -e'\n    condition: all of selection_*\nfalsepositives:\n    - Unknown\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1059","id":"T1059","name":"Command and Scripting Interpreter","page":"techniques/enterprise/T1059/"}],"data_path":"data/detection-rules/20a5ffa1-3848-4584-b6f8-c7c7fd9f69c8.json","kind":"sigma"}
