Sigma rule: Perl Inline Command Execution

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-2e78f8565b41, updated 2023-01-02T00:00:00.000Z.

Rule

Title
Perl Inline Command Execution
Status
test
Level
medium
Author
Nasreddine Bencherchali (Nextron Systems)
Date
2023-01-02
File
rules/windows/process_creation/proc_creation_win_perl_inline_command_execution.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

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.

Log source

product
windows
category
process_creation

Detection

selection_img:
    - Image|endswith: '\perl.exe'
    - OriginalFileName: 'perl.exe' # Also covers perlX.XX.exe
selection_cli:
    CommandLine|contains: ' -e'
condition: all of selection_*

False positives (as the rule lists them)

  • Unknown

Tags

  • attack.execution
  • attack.t1059

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_perl_inline_command_execution.yml

Sources and licences

  • SigmaHQ

    "Perl Inline Command Execution" by Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_perl_inline_command_execution.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Perl Inline Command Execution",
entity page, dataset version ref-2e78f8565b41, updated 2023-01-02T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/f426547a-e0f7-441a-b63e-854ac5bdf54d (accessed 2026-11-03).
Underlying source: SigmaHQ rule f426547a-e0f7-441a-b63e-854ac5bdf54d, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.