Windows Terminal Profile Settings Modification By Uncommon Process

 Original Source: [Sigma source]
Title: Windows Terminal Profile Settings Modification By Uncommon Process
Status: test
Description:Detects the creation or modification of the Windows Terminal Profile settings file "settings.json" by an uncommon process.
References:
  -https://github.com/redcanaryco/atomic-red-team/blob/74438b0237d141ee9c99747976447dc884cb1a39/atomics/T1547.015/T1547.015.md#atomic-test-1---persistence-by-modifying-windows-terminal-profile
  -https://twitter.com/nas_bench/status/1550836225652686848
Author: frack113, Nasreddine Bencherchali (Nextron Systems)
Date: 2023-07-22
modified:None
Tags:
  • -'attack.privilege-escalation'
  • -'attack.persistence'
  • -'attack.t1547.015'
Logsource:
  • product: windows
  • category: file_event
Detection:
  selection:
    Image|endswith:
      -'\cmd.exe'
      -'\cscript.exe'
      -'\mshta.exe'
      -'\powershell.exe'
      -'\pwsh.exe'
      -'\wscript.exe'

    TargetFilename|endswith: '\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json'
  condition:selection
Falsepositives:
  -Some false positives may occur with admin scripts that set WT settings.
Level: medium