Network Logon Script T1037.003
- Tactics
- Persistence, Privilege Escalation
- Platform
- Windows
- Version
- 1.0
- Created
- 10 January 2020
- Last modified
- 24 October 2025
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.
Offense vs defense T1037.003
Is defensive coverage keeping up with adversary use? Eight counts, each ranked against all 697 ATT&CK techniques. Attack sits left, defense right, so a shape leaning left means adversaries are better documented here than defenders are equipped. Hover any spoke for its percentile and the share of techniques that have more. The timeline below shows when each side arrived.
Network Logon Script detection strategy DET0367
MITRE names one behaviour worth catching for this technique and breaks it into 1 analytic, one per platform. Each carries the log sources it needs and the fields you tune per environment.
Detect Network Logon Script Abuse via Multi-Event Correlation on Windows
AN1034 · Windows
Correlates Group Policy updates that configure network logon scripts with subsequent remote file execution behaviors triggered by user logons to identify potential persistence or execution chains tied to adversarial manipulation of logon scripts.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
| Data component | Name | Channel |
|---|---|---|
| Script ExecutionDC0029 | WinEventLog:System | EventCode=4016, 5312 |
| Process CreationDC0032 | WinEventLog:Security | EventCode=4688 |
| Network Share AccessDC0102 | WinEventLog:Security | EventCode=5145 |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| TargetObject | Path to network-based script execution; tuning required for environment-specific network shares. |
| ParentProcessName | Initial execution process that launches the script; may vary depending on script language or user context. |
| TimeWindow | Acceptable time window to correlate Group Policy update with script execution (e.g., 2–10 minutes). |
| UserContext | Account initiating execution; useful for filtering known administrative activity. |
Restrict write access to logon scripts to specific administrators.