Join our Newsletter — 33% off our NHI Course

How do attackers use BOOTRASH?

BOOTRASH is used to maintain persistence on compromised systems by targeting the boot process and loading before the operating system. That makes removal harder and can hide later malware activity. Defenders should verify boot integrity, monitor changes to boot components, protect firmware and recovery settings, and investigate unexpected startup behaviour after compromise or privileged access.

How BOOTRASH Persistence Works

Attackers use BOOTRASH to survive reboots by tampering with the boot chain, so the malicious code starts before the operating system has finished loading. That placement gives the attacker durable control, makes cleanup harder, and can let follow-on payloads blend into normal startup activity rather than running as an obvious user-space process.

Because the boot path runs so early, the attacker is not just hiding malware, they are shaping the trust point the machine uses to start. If that trust point is altered, later scans may see a clean operating system while the boot-layer change remains in place and keeps reintroducing the compromise.

In practice, this kind of technique is most useful after the attacker already has privileged access or another way to write to sensitive startup components. That is why boot-level persistence often appears after an initial intrusion has already succeeded, not as a standalone first step.

What Changes When the Boot Chain Is the Target

The main security consequence is that normal host-based removal can miss the real persistence mechanism. Reimaging or deleting a visible payload may not help if the boot component itself has been altered, and even a partial cleanup can fail if the compromised startup path reloads the attacker’s code on the next reboot.

BOOTRASH-style activity also changes how defenders should interpret system behaviour. Unexpected startup delays, altered boot settings, recovery changes, or unexplained changes to firmware-adjacent components matter more than a single suspicious process, because the attacker is operating below the level where many endpoint detections are strongest.

Once boot trust is weakened, the compromise can become sticky. The attacker may use that foothold to maintain access, conceal later action, and make restoration more expensive because the defender has to verify the integrity of the startup path, not just the running operating system.

What Defenders Should Verify After Suspected Use

The first verification question is whether the boot path itself still matches the expected configuration. That means checking for unexpected changes to boot records, bootloaders, recovery settings, firmware-facing configuration, and other startup components that should not have changed during routine operations.

Defenders should also look for evidence that the machine was already compromised before the boot-layer change appeared. A bootkit is often a persistence layer, not the original intrusion, so confirming the initial access path and reviewing pre-reboot activity can reveal whether the attacker also collected credentials, staged tools, or moved laterally.

When startup behaviour has changed, the safest assumption is that the host may have been modified at more than one layer. A clean application scan does not prove the machine is clean if the startup chain is still untrusted.

Risk and Threat Considerations

BOOTRASH is dangerous because it abuses the system’s earliest trust boundary, which can let an attacker keep control even after visible malware is removed. That makes the technique attractive for stealthy persistence, especially when the goal is to survive remediation and keep re-establishing access after reboot.

Failure mechanism: The attacker alters the boot process or adjacent startup components so malicious code loads before the operating system and can reassert control each time the machine starts.

Impact: Cleanup becomes harder, detection becomes less reliable, and the host may keep reintroducing the compromise unless the startup path is validated and rebuilt from a trusted state.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK addresses the attack and risk surface, while CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
MITRE ATT&CK T1542 — Pre-OS Boot: Bootkit BOOTRASH targets the boot process before the OS loads.
Recommendation — Map boot-layer tampering to T1542 and hunt for persistence below the operating system.
CIS Controls v8 CIS-8 — Audit Log Management Startup and boot changes must be visible to detect persistence and tampering.
Recommendation — Log and review boot-related configuration changes and startup anomalies.
NIST SP 800-53 Rev 5 SI-7 — Software, Firmware, and Information Integrity Boot integrity and firmware-adjacent trust are central to this attack path.
Recommendation — Validate software and firmware integrity before trusting a host after suspected boot compromise.

Practitioner Guidance

What to verify: Treat any unexpected boot-setting change, recovery change, or startup anomaly as a potential persistence indicator, especially if the host recently had privileged access events or unexplained malware activity.

Decision rule: If the boot path cannot be trusted, prioritize integrity restoration over incremental cleanup, because removing visible malware without fixing the startup layer can leave the persistence mechanism intact.

What good looks like: The device boots from known-good components, startup settings are consistent with baseline, and the host can be restored without reintroducing the compromise on the next reboot.

Practitioner takeaway: For boot-level persistence, the real question is not whether the running system looks clean, but whether the machine still trusts the code path that makes it boot.