---
title: "CAPEC-641: DLL Side-Loading"
url: https://radicalnotion.ai/capec/capec-641
type: capec
description: "An adversary places a malicious version of a Dynamic-Link Library (DLL) in the Windows Side-by-Side (WinSxS) directory to trick the operating system into loading this malicious DLL instead of a legitimate DLL. Programs specify the location of the DLLs to load via the use of WinSxS manifests or DLL redirection and if they aren't used then Windows searches in a predefined set of directories to locate the file. If the applications improperly specify a required DLL or WinSxS manifests aren't explicit about the characteristics of the DLL to be loaded, they can be vulnerable to side-loading."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-641: DLL Side-Loading

- **Abstraction:** Detailed
- **Status:** Stable
- **Typical severity:** High
- **Likelihood of attack:** Low
- **CAPEC catalog version:** 3.9

## Description

An adversary places a malicious version of a Dynamic-Link Library (DLL) in the Windows Side-by-Side (WinSxS) directory to trick the operating system into loading this malicious DLL instead of a legitimate DLL. Programs specify the location of the DLLs to load via the use of WinSxS manifests or DLL redirection and if they aren't used then Windows searches in a predefined set of directories to locate the file. If the applications improperly specify a required DLL or WinSxS manifests aren't explicit about the characteristics of the DLL to be loaded, they can be vulnerable to side-loading.

## Prerequisites

- The target must fail to verify the integrity of the DLL before using them.

## Skills required

- **High:** Trick the operating system in loading a malicious DLL instead of a legitimate DLL.

## Consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Integrity | Execute Unauthorized Commands, Bypass Protection Mechanism | - |

## Mitigations

- Prevent unknown DLLs from loading through using an allowlist policy.
- Patch installed applications as soon as new updates become available.
- Properly restrict the location of the software being used.
- Use of sxstrace.exe on Windows as well as manual inspection of the manifests.
- Require code signing and avoid using relative paths for resources.

## Related weaknesses (CWE)

- [CWE-706](https://radicalnotion.ai/cwe/cwe-706): Use of Incorrectly-Resolved Name or Reference

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Parent | [CAPEC-159](https://radicalnotion.ai/capec/capec-159) | Redirect Access to Libraries |

## Taxonomy mappings

| Taxonomy | Entry | Id |
| --- | --- | --- |
| ATTACK | Hijack Execution Flow:DLL Side-Loading | 1574.002 |

## Frequently asked questions

### What is CAPEC-641?

An adversary places a malicious version of a Dynamic-Link Library (DLL) in the Windows Side-by-Side (WinSxS) directory to trick the operating system into loading this malicious DLL instead of a legitimate DLL. Programs specify the location of the DLLs to load via the use of WinSxS manifests or DLL redirection and if they aren't used then Windows searches in a predefined set of directories to locate the file. If the applications improperly specify a required DLL or WinSxS manifests aren't explicit about the characteristics of the DLL to be loaded, they can be vulnerable to side-loading.

### How do you prevent CAPEC-641?

Prevent unknown DLLs from loading through using an allowlist policy.

### What weaknesses does CAPEC-641 target?

CAPEC-641 exploits one CWE weakness: CWE-706 (Use of Incorrectly-Resolved Name or Reference).

### How severe is CAPEC-641?

MITRE rates CAPEC-641 as High severity with low likelihood of attack.

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

---

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