Boot or Logon Initialization Scripts: Network Logon Script

Adversaries may use network logon scripts automatically executed at logon initialization to establish persistence. Network logon scripts can be assigned using Active Directory or Group Policy Objects.[1] These logon scripts run with the privileges of the user they are assigned to. Depending on the systems within the network, initializing one of these scripts could apply to more than one or potentially all systems.

Adversaries may use these scripts to maintain persistence on a network. Depending on the access configuration of the logon scripts, either local credentials or an administrator account may be necessary.

ID: T1037.003
Sub-technique of:  T1037
Platforms: Windows
Version: 1.0
Created: 10 January 2020
Last Modified: 24 March 2020

Mitigations

ID Mitigation Description
M1022 Restrict File and Directory Permissions

Restrict write access to logon scripts to specific administrators.

Detection

ID Data Source Data Component Detects
DS0026 Active Directory Active Directory Object Modification

Monitor for changes made in the Active Directory that may use network logon scripts automatically executed at logon initialization to establish persistence.

DS0017 Command Command Execution

Monitor executed commands and arguments for logon scripts

DS0022 File File Creation

Monitor for newly constructed files by unusual accounts outside of normal administration duties

File Modification

Monitor for changes made to files for unexpected modifications to unusual accounts outside of normal administration duties

DS0009 Process Process Creation

Monitor for newly constructed processes and/or command-lines that execute logon scripts

References