Sigma rule: Execution Of Script Located In Potentially Suspicious Directory

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

Rule

Title
Execution Of Script Located In Potentially Suspicious Directory
Status
test
Level
medium
Author
Joseliyo Sanchez, @Joseliyo_Jstnk
Date
2023-06-02
File
rules/linux/process_creation/proc_creation_lnx_susp_shell_script_exec_from_susp_location.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects executions of scripts located in potentially suspicious locations such as "/tmp" via a shell such as "bash", "sh", etc.

Log source

product
linux
category
process_creation

Detection

selection_img:
    Image|endswith:
        - '/bash'
        - '/csh'
        - '/dash'
        - '/fish'
        - '/ksh'
        - '/sh'
        - '/zsh'
selection_flag:
    CommandLine|contains: ' -c '
selection_paths:
    # Note: Add more suspicious paths
    CommandLine|contains: '/tmp/'
condition: all of selection_*

False positives (as the rule lists them)

  • Unknown

Tags

  • attack.execution

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/linux/process_creation/proc_creation_lnx_susp_shell_script_exec_from_susp_location.yml

Sources and licences

  • SigmaHQ

    "Execution Of Script Located In Potentially Suspicious Directory" by Joseliyo Sanchez, @Joseliyo_Jstnk (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/process_creation/proc_creation_lnx_susp_shell_script_exec_from_susp_location.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: Execution Of Script Located In Potentially Suspicious Directory",
entity page, dataset version ref-fcfd2001f59e, updated 2023-06-02T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/30bcce26-51c5-49f2-99c8-7b59e3af36c7 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 30bcce26-51c5-49f2-99c8-7b59e3af36c7, 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.