{"id":"f426547a-e0f7-441a-b63e-854ac5bdf54d","title":"Perl Inline Command Execution","description":"Detects execution of perl using the \"-e\"/\"-E\" flags. This is could be used as a way to launch a reverse shell or execute live perl 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_perl_inline_command_execution.yml","source_sha256":"ca9229556a0ae19d229783979e77c8738d77eecb93f65a510c9d77e36f4304e2","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_perl_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: Perl Inline Command Execution\nid: f426547a-e0f7-441a-b63e-854ac5bdf54d\nstatus: test\ndescription: Detects execution of perl using the \"-e\"/\"-E\" flags. This is could be used as a way to launch a reverse shell or execute live perl 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: '\\perl.exe'\n        - OriginalFileName: 'perl.exe' # Also covers perlX.XX.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/f426547a-e0f7-441a-b63e-854ac5bdf54d.json","kind":"sigma"}
