---
title: "CAPEC-564: Run Software at Logon"
url: https://radicalnotion.ai/capec/capec-564
type: capec
description: "Operating system allows logon scripts to be run whenever a specific user or users logon to a system. If adversaries can access these scripts, they may insert additional code into the logon script. This code can allow them to maintain persistence or move laterally within an enclave because it is executed every time the affected user or users logon to a computer. Modifying logon scripts can effectively bypass workstation and enclave firewalls. Depending on the access configuration of the logon scripts, either local credentials or a remote administrative account may be necessary."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-564: Run Software at Logon

- **Abstraction:** Detailed
- **Status:** Draft
- **CAPEC catalog version:** 3.9

## Description

Operating system allows logon scripts to be run whenever a specific user or users logon to a system. If adversaries can access these scripts, they may insert additional code into the logon script. This code can allow them to maintain persistence or move laterally within an enclave because it is executed every time the affected user or users logon to a computer. Modifying logon scripts can effectively bypass workstation and enclave firewalls. Depending on the access configuration of the logon scripts, either local credentials or a remote administrative account may be necessary.

## Mitigations

- Restrict write access to logon scripts to necessary administrators.

## Related weaknesses (CWE)

- [CWE-284](https://radicalnotion.ai/cwe/cwe-284): Improper Access Control

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Parent | [CAPEC-542](https://radicalnotion.ai/capec/capec-542) | Targeted Malware |

## Taxonomy mappings

| Taxonomy | Entry | Id |
| --- | --- | --- |
| ATTACK | Boot or Logon Initialization Scripts | 1037 |
| ATTACK | Create or Modify System Process: Launch Agent | 1543.001 |
| ATTACK | Create or Modify System Process: Launch Daemon | 1543.004 |
| ATTACK | Boot or Logon Autostart Execution | 1547 |

## Frequently asked questions

### What is CAPEC-564?

Operating system allows logon scripts to be run whenever a specific user or users logon to a system. If adversaries can access these scripts, they may insert additional code into the logon script. This code can allow them to maintain persistence or move laterally within an enclave because it is executed every time the affected user or users logon to a computer. Modifying logon scripts can effectively bypass workstation and enclave firewalls. Depending on the access configuration of the logon scripts, either local credentials or a remote administrative account may be necessary.

### How do you prevent CAPEC-564?

Restrict write access to logon scripts to necessary administrators.

### What weaknesses does CAPEC-564 target?

CAPEC-564 exploits one CWE weakness: CWE-284 (Improper Access Control).

Primary source: [MITRE CAPEC](https://capec.mitre.org/data/definitions/564.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/capec/capec-564). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
