Sigma rule: Suspicious File Write to SharePoint Layouts Directory

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-66c9b6409e81, updated 2025-07-24T00:00:00.000Z.

Rule

Title
Suspicious File Write to SharePoint Layouts Directory
Status
experimental
Level
high
Author
Swachchhanda Shrawan Poudel (Nextron Systems)
Date
2025-07-24
File
rules/windows/file/file_event/file_event_win_susp_filewrite_in_sharepoint_layouts_dir.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects suspicious file writes to SharePoint layouts directory which could indicate webshell activity or post-exploitation.
This behavior has been observed in the exploitation of SharePoint vulnerabilities such as CVE-2025-49704, CVE-2025-49706 or CVE-2025-53770.

Log source

product
windows
category
file_event

Detection

selection:
    Image|endswith:
        - '\cmd.exe'
        - '\powershell_ise.exe'
        - '\powershell.exe'
        - '\pwsh.exe'
        - '\w3wp.exe'
    TargetFilename|startswith:
        - 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\'
        - 'C:\Program Files (x86)\Common Files\Microsoft Shared\Web Server Extensions\'
    TargetFilename|contains:
        - '\15\TEMPLATE\LAYOUTS\'
        - '\16\TEMPLATE\LAYOUTS\'
    TargetFilename|endswith:
        - '.asax'
        - '.ascx'
        - '.ashx'
        - '.asmx'
        - '.asp'
        - '.aspx'
        - '.bat'
        - '.cmd'
        - '.cer'
        - '.config'
        - '.hta'
        - '.js'
        - '.jsp'
        - '.jspx'
        - '.php'
        - '.ps1'
        - '.vbs'
condition: selection

False positives (as the rule lists them)

  • Unknown

Tags

  • attack.initial-access
  • attack.t1190
  • attack.persistence
  • attack.t1505.003

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

Sources and licences

  • SigmaHQ

    "Suspicious File Write to SharePoint Layouts Directory" by Swachchhanda Shrawan Poudel (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/file/file_event/file_event_win_susp_filewrite_in_sharepoint_layouts_dir.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: Suspicious File Write to SharePoint Layouts Directory",
entity page, dataset version ref-66c9b6409e81, updated 2025-07-24T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/1f0489be-b496-4ddf-b3a9-5900f2044e9c (accessed 2026-11-03).
Underlying source: SigmaHQ rule 1f0489be-b496-4ddf-b3a9-5900f2044e9c, 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.