---
title: "CAPEC-20: Encryption Brute Forcing"
url: https://radicalnotion.ai/capec/capec-20
type: capec
description: "An attacker, armed with the cipher text and the encryption algorithm used, performs an exhaustive (brute force) search on the key space to determine the key that decrypts the cipher text to obtain the plaintext."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-20: Encryption Brute Forcing

- **Abstraction:** Standard
- **Status:** Draft
- **Typical severity:** Low
- **Likelihood of attack:** Low
- **CAPEC catalog version:** 3.9

## Description

An attacker, armed with the cipher text and the encryption algorithm used, performs an exhaustive (brute force) search on the key space to determine the key that decrypts the cipher text to obtain the plaintext.

## Execution flow

### Step 1: Explore

Determine the ciphertext and the encryption algorithm.

### Step 2: Experiment

Perform an exhaustive brute force search of the key space, producing candidate plaintexts and observing if they make sense.

## Prerequisites

- Ciphertext is known.
- Encryption algorithm and key size are known.

## Skills required

- **Low:** Brute forcing encryption does not require much skill.

## Resources required

- A powerful enough computer for the job with sufficient CPU, RAM and HD. Exact requirements will depend on the size of the brute force job and the time requirement for completion. Some brute forcing jobs may require grid or distributed computing (e.g. DES Challenge). On average, for a binary key of size N, 2^(N/2) trials will be needed to find the key that would decrypt the ciphertext to obtain the original plaintext. Obviously as N gets large the brute force approach becomes infeasible.

## Indicators

- None. This attack happens offline.

## Consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality | Read Data | - |

## Mitigations

- Use commonly accepted algorithms and recommended key sizes. The key size used will depend on how important it is to keep the data confidential and for how long.
- In theory a brute force attack performing an exhaustive key space search will always succeed, so the goal is to have computational security. Moore's law needs to be taken into account that suggests that computing resources double every eighteen months.

## Example instances

In 1997 the original DES challenge used distributed net computing to brute force the encryption key and decrypt the ciphertext to obtain the original plaintext. Each machine was given its own section of the key space to cover. The ciphertext was decrypted in 96 days.

## Related weaknesses (CWE)

- [CWE-326](https://radicalnotion.ai/cwe/cwe-326): Inadequate Encryption Strength
- [CWE-327](https://radicalnotion.ai/cwe/cwe-327): Use of a Broken or Risky Cryptographic Algorithm
- [CWE-693](https://radicalnotion.ai/cwe/cwe-693): Protection Mechanism Failure
- [CWE-1204](https://radicalnotion.ai/cwe/cwe-1204): Generation of Weak Initialization Vector (IV)

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Parent | [CAPEC-112](https://radicalnotion.ai/capec/capec-112) | Brute Force |
| Can precede | [CAPEC-668](https://radicalnotion.ai/capec/capec-668) | Key Negotiation of Bluetooth Attack (KNOB) |
| Related | [CAPEC-97](https://radicalnotion.ai/capec/capec-97) | Cryptanalysis |

## Frequently asked questions

### What is CAPEC-20?

An attacker, armed with the cipher text and the encryption algorithm used, performs an exhaustive (brute force) search on the key space to determine the key that decrypts the cipher text to obtain the plaintext.

### How does a Encryption Brute Forcing attack work?

It typically unfolds over 2 phases. It begins with: Determine the ciphertext and the encryption algorithm.

### How do you prevent CAPEC-20?

Use commonly accepted algorithms and recommended key sizes. The key size used will depend on how important it is to keep the data confidential and for how long.

### What weaknesses does CAPEC-20 target?

CAPEC-20 exploits 4 CWE weaknesses: CWE-326 (Inadequate Encryption Strength), CWE-327 (Use of a Broken or Risky Cryptographic Algorithm), CWE-693 (Protection Mechanism Failure) and CWE-1204 (Generation of Weak Initialization Vector (IV)).

### How severe is CAPEC-20?

MITRE rates CAPEC-20 as Low severity with low likelihood of attack.

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

---

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