Potentially Suspicious Shell Script Creation in Profile Folder (via file_event)

This rule detects the creation of shell scripts under the "profile.d" path.

SigmalowLinuxv1
sigma
title: Potentially Suspicious Shell Script Creation in Profile Folder (via file_event)
id: d82238c1-5de9-51d3-a0e1-dece5423df96
status: stable
description: This rule detects the creation of shell scripts under the "profile.d" path.
references:
    - https://blogs.jpcert.or.jp/en/2023/05/gobrat.html
    - https://jstnk9.github.io/jstnk9/research/GobRAT-Malware/
    - https://www.virustotal.com/gui/file/60bcd645450e4c846238cf0e7226dc40c84c96eba99f6b2cffcd0ab4a391c8b3/detection
    - https://www.virustotal.com/gui/file/3e44c807a25a56f4068b5b8186eee5002eed6f26d665a8b791c472ad154585d1/detection
author: Huntrule Team
date: 2026-06-22
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.t1546.004
logsource:
    product: linux
    category: file_event
detection:
    selection:
        TargetFilename|contains: '/etc/profile.d/'
        TargetFilename|endswith:
            - '.csh'
            - '.sh'
    condition: selection
falsepositives:
    - Unknown
level: low

Known false positives

  • Unknown

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.