Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

3.9 KB
Raw Blame
id: mitre-car-car-2021-11-002
name: Registry Edit with Modification of Userinit, Shell or Notify
description: Detection of modification of the registry key values of `Notify`, `Userinit`,
  and `Shell` located in `HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\`
  and `HKEY_LOCAL_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\`. When
  a user logs on, the Registry key values of `Notify`, `Userinit` and `Shell` are
  used to load dedicated Windows component. Attackers may insert malicious payload
  following the legitimate value to launch a malicious payload.
severity: medium
enabled: false
tags:
  mitre:
  - T1547
  - T1112
  categories:
  - endpoint
references: []
logsource:
  category: Process,Registry
detection:
  implementations:
  - name: Userinit/Shell/Notify Registry Modifications
    type: Pseudocode
    code: 'processes = search Process:create

      logon_reg_processes = filter processes where command_line CONTAINS("*\\Microsoft\\Windows
      NT\\CurrentVersion\\Winlogon*") AND (command_line CONTAINS("*Userinit*") OR
      command_line CONTAINS("*Shell*") OR command_line CONTAINS("*Notify*")) AND (((command_line
      CONTAINS("*reg*") OR command_line CONTAINS("*add*") OR command_line CONTAINS("*/d*"))
      OR (command_line CONTAINS("*Set-ItemProperty*") OR command_line CONTAINS("*New-ItemProperty*")
      OR command_line CONTAINS("*-value*"))))

      reg_keys = search Registry:value_edit

      logon_reg_keys = filter reg_keys where (value="Userinit" OR value="Shell" OR
      value="Notify")

      output logon_reg_processes, logon_reg_keys

      '
  - name: Splunk Search - Modification of Userinit, Shell or Notify
    type: Splunk
    code: '(((((EventCode="4688" OR EventCode="1") ((CommandLine="*reg*" CommandLine="*add*"
      CommandLine="*/d*") OR ((CommandLine="*Set-ItemProperty*" OR CommandLine="*New-ItemProperty*")
      CommandLine="*-value*")) CommandLine="*\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon*"
      (CommandLine="*Userinit*" OR CommandLine="*Shell*" OR CommandLine="*Notify*"))
      OR ((EventCode="4657") (ObjectValueName="Userinit" OR ObjectValueName="Shell"
      OR ObjectValueName="Notify"))) OR ((EventCode="13") (TargetObject="*Userinit"
      OR TargetObject="*Shell" OR TargetObject="*Notify"))))

      '
  - name: Elastic Search - Modification of Userinit, Shell or Notify
    type: Elastic
    code: '(((EventCode:("4688" OR "1") AND ((process.command_line:*reg* AND process.command_line:*add*
      AND process.command_line:*\/d*) OR (process.command_line:(*Set\-ItemProperty*
      OR *New\-ItemProperty*) AND process.command_line:*\-value*)) AND process.command_line:*\\Microsoft\\Windows\
      NT\\CurrentVersion\\Winlogon* AND process.command_line:(*Userinit* OR *Shell*
      OR *Notify*)) OR (EventCode:"4657" AND winlog.event_data.ObjectValueName:("Userinit"
      OR "Shell" OR "Notify"))) OR (EventCode:"13" AND winlog.event_data.TargetObject:(*Userinit
      OR *Shell OR *Notify)))

      '
  - name: LogPoint Search - Modification of Userinit, Shell or Notify
    type: LogPoint
    code: '(((EventCode IN ["4688", "1"] ((CommandLine="*reg*" CommandLine="*add*"
      CommandLine="*/d*") OR (CommandLine IN ["*Set-ItemProperty*", "*New-ItemProperty*"]
      CommandLine="*-value*")) CommandLine="*\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon*"
      CommandLine IN ["*Userinit*", "*Shell*", "*Notify*"]) OR (EventCode IN "4657"
      ObjectValueName IN ["Userinit", "Shell", "Notify"])) OR (EventCode IN "13" TargetObject
      IN ["*Userinit", "*Shell", "*Notify"]))

      '
provenance:
  source: mitre-attack/car
  source_id: CAR-2021-11-002
  source_commit: 1b922fe
  license: Apache-2.0
  license_url: https://github.com/mitre-attack/car/blob/master/LICENSE.txt
  imported_at: '2026-05-04'
  imported_by: car_importer
  upstream_path: analytics/CAR-2021-11-002.yaml
notes:
  car_status: needs_implementation