Sigma rule: Potentially Suspicious Shell Script Creation in Profile Folder

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

Rule

Title
Potentially Suspicious Shell Script Creation in Profile Folder
Status
test
Level
low
Author
Joseliyo Sanchez, @Joseliyo_Jstnk
Date
2023-06-02
File
rules/linux/file_event/file_event_lnx_susp_shell_script_under_profile_directory.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects the creation of shell scripts under the "profile.d" path.

Log source

product
linux
category
file_event

Detection

selection:
    TargetFilename|contains: '/etc/profile.d/'
    TargetFilename|endswith:
        - '.csh'
        - '.sh'
condition: selection

False positives (as the rule lists them)

  • Legitimate shell scripts in the "profile.d" directory could be common in your environment. Apply additional filter accordingly via "image", by adding specific filenames you "trust" or by correlating it with other events.
  • Regular file creation during system update or software installation by the package manager

Tags

  • attack.persistence

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/file_event/file_event_lnx_susp_shell_script_under_profile_directory.yml

Sources and licences

  • SigmaHQ

    "Potentially Suspicious Shell Script Creation in Profile Folder" by Joseliyo Sanchez, @Joseliyo_Jstnk (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/file_event/file_event_lnx_susp_shell_script_under_profile_directory.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: Potentially Suspicious Shell Script Creation in Profile Folder",
entity page, dataset version ref-55852b75f3d7, updated 2023-06-02T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/13f08f54-e705-4498-91fd-cce9d9cee9f1 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 13f08f54-e705-4498-91fd-cce9d9cee9f1, 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.