---
title: "CAPEC-96: Block Access to Libraries"
url: https://radicalnotion.ai/capec/capec-96
type: capec
description: "An application typically makes calls to functions that are a part of libraries external to the application. These libraries may be part of the operating system or they may be third party libraries. It is possible that the application does not handle situations properly where access to these libraries has been blocked. Depending on the error handling within the application, blocked access to libraries may leave the system in an insecure state that could be leveraged by an attacker."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-96: Block Access to Libraries

- **Abstraction:** Detailed
- **Status:** Draft
- **Typical severity:** Medium
- **Likelihood of attack:** Medium
- **CAPEC catalog version:** 3.9

## Description

An application typically makes calls to functions that are a part of libraries external to the application. These libraries may be part of the operating system or they may be third party libraries. It is possible that the application does not handle situations properly where access to these libraries has been blocked. Depending on the error handling within the application, blocked access to libraries may leave the system in an insecure state that could be leveraged by an attacker.

## Execution flow

### Step 1: Explore

Determine what external libraries the application accesses.

### Step 2: Experiment

Block access to the external libraries accessed by the application.

### Step 3: Experiment

Monitor the behavior of the system to see if it goes into an insecure/inconsistent state.

### Step 4: Experiment

If the system does go into an insecure/inconsistent state, leverage that to obtain information about the system functionality or data, elevate access control, etc. The rest of this attack will depend on the context and the desired goal.

## Prerequisites

- An application requires access to external libraries.
- An attacker has the privileges to block application access to external libraries.

## Skills required

- **Low:** Knowledge of how to block access to libraries, as well as knowledge of how to leverage the resulting state of the application based on the failed call.

## Consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Availability | Alter Execution Logic | - |
| Confidentiality | Other | - |
| Confidentiality, Access Control, Authorization | Bypass Protection Mechanism | - |

## Mitigations

- Ensure that application handles situations where access to APIs in external libraries is not available securely. If the application cannot continue its execution safely it should fail in a consistent and secure fashion.

## Example instances

A web-based system uses a third party cryptographic random number generation library that derives entropy from machine's hardware. This library is used in generation of user session ids used by the application. If the library is inaccessible, the application instead uses a software based weak pseudo random number generation library. An attacker of the system blocks access of the application to the third party cryptographic random number generation library (by renaming it). The application in turn uses the weak pseudo random number generation library to generate session ids that are predictable. An attacker then leverages this weakness to guess a session id of another user to perform a horizontal elevation of privilege escalation and gain access to another user's account.

## Related weaknesses (CWE)

- [CWE-589](https://radicalnotion.ai/cwe/cwe-589): Call to Non-ubiquitous API

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Parent | [CAPEC-603](https://radicalnotion.ai/capec/capec-603) | Blockage |

## Frequently asked questions

### What is CAPEC-96?

An application typically makes calls to functions that are a part of libraries external to the application. These libraries may be part of the operating system or they may be third party libraries. It is possible that the application does not handle situations properly where access to these libraries has been blocked. Depending on the error handling within the application, blocked access to libraries may leave the system in an insecure state that could be leveraged by an attacker.

### How does a Block Access to Libraries attack work?

It typically unfolds over 4 phases. It begins with: Determine what external libraries the application accesses.

### How do you prevent CAPEC-96?

Ensure that application handles situations where access to APIs in external libraries is not available securely. If the application cannot continue its execution safely it should fail in a consistent and secure fashion.

### What weaknesses does CAPEC-96 target?

CAPEC-96 exploits one CWE weakness: CWE-589 (Call to Non-ubiquitous API).

### How severe is CAPEC-96?

MITRE rates CAPEC-96 as Medium severity with medium likelihood of attack.

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

---

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