Suspicious Creation of PowerShell Profile Script for Persistence

PremiumReviewedSigma · Medium · v1
Product
windows
Category
file_event
Author
HuntRule
Published
2026-08-25
Updated
2026-08-28

ATT&CK techniques

Persistence → Priv Esc
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Defense Evasion

  6. Cred Access

  7. Discovery

  8. Lateral Movement

  9. Collection

  10. C2

  11. Exfiltration

  12. Impact

What it detects

This rule detects creation or modification of a PowerShell profile script. Backdoors abuse the automatic execution of the profile file on every PowerShell launch to gain stealthy persistence, running an obfuscated loader each time a session starts.

Related detections3 linkedT1546.013 — drag to rearrange
Windows File Changes to Microsoft.VSCode_profile.ps1 via PowerShell Profile
Windows PowerShell: Add-Content to $profile for Potential Persistence
Windows PowerShell Profile File Creation or Modification
Suspicious Creation of PowerShell Profile Script for Persistence
Pivot detection · T1546.013 · 3 related

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