cve.bz

CAPEC-20

Encryption Brute Forcing

Low severityLow likelihoodStandard pattern

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.

On this page

Ask an AI about this attack pattern

Show the promptExplain the attack pattern CAPEC-20: Encryption Brute Forcing: how it unfolds, what it needs and how to prevent and detect it in my systems. Use https://capec.mitre.org/data/definitions/20.html and https://cve.bz/cve/capec/20?via=ask-ai-copy, which lists recent CVEs with the weaknesses it exploits. Cite the sources.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this attack pattern's id and public links.

How the attack unfolds

  1. Explore

    The attacker looks for a way in.

    1. Determine the ciphertext and the encryption algorithm.

  2. Experiment

    They probe what they found.

    1. 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 skill

    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.

Signs of an attack

  • None. This attack happens offline.

Consequences

What a successful attack can lead to
ImpactAffectsNote
Read DataConfidentiality

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.

Weaknesses it exploits

  • CWE-326 Inadequate Encryption Strength
  • CWE-327 Use of a Broken or Risky Cryptographic Algorithm
  • CWE-693 Protection Mechanism Failure
  • CWE-1204 Generation of Weak Initialization Vector (IV)

Recent CVEs with these weaknesses

  1. 2.0CVE-2026-138390

    A flaw has been found in agent0ai agent-zero up to 2.16. Affected by this vulnerability is the function InfectionChecker.gate of the file plugins/_infection_check/helpers/checker.py. Executing a manipulation can lead to protection mechanis…

  2. 0.9CVE-2026-138386

    A security flaw has been discovered in Aider-AI Aider up to 0.86.2. The impacted element is the function confirm_ask of the file aider/io.py of the component Shell Command Confirmation Handler. The manipulation results in protection mechan…

  3. 5.5CVE-2026-138100

    A security flaw has been discovered in MassGen up to 0.1.97. Affected by this issue is the function __init__ of the file massgen/filesystem_manager/_filesystem_manager.py. Performing a manipulation results in protection mechanism failure. …

  4. 3.1CVE-2026-107951

    Improper Content Security Policy (CSP) configuration in the BigFix MCM WebUI allowed the data: URI scheme as a source in the img-src directive of the CSP header. This potentially weakens the application's defense-in-depth security mechanis…

  5. 0.9CVE-2026-107967

    HCL Verse for Android included a decryption code for compatibility with locally stored values and attachment files created by older application versions (no longer used for data stored by newer versions). HCL Verse for Android version 14.5…

  6. 2.5CVE-2026-80509

    Dell Secure Connect Gateway - Virtual Edition, versions prior to 5.36.00.16, contains a Use of a Broken or Risky Cryptographic Algorithm vulnerability. A low privileged local attacker could potentially exploit this vulnerability, leading t…

  7. 8.2CVE-2026-137564

    web-token jwt-framework and jwt-library before 3.4.13, 4.0.x before 4.0.9, 4.1.x before 4.1.11, and 4.2.x before 4.2.6 (and jwt-encryption through 3.2.10) do not check the key length in JWEBuilder and JWEDecrypter for direct (dir) encrypti…

  8. 6.3CVE-2026-137562

    web-token jwt-framework before 3.4.13, 4.0.0 before 4.0.9, 4.1.0 before 4.1.11, and 4.2.0 before 4.2.6 does not check oct key length in the AESKW, AESGCMKW, and experimental AESCTR and chacha20-poly1305 key encryption algorithms, so OpenSS…

The newest records naming one of them. Each weakness's page lists them all.

Part of
Can lead to
  • CAPEC-668 Key Negotiation of Bluetooth Attack (KNOB)

Examples

In 1997 the original DES challenge used distributed net computing to brute force the encryption key and decry…

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.

MITRE's words, unchanged: CAPEC-20 at MITRE. CAPEC is Copyright © 2007–2026, The MITRE Corporation, used under the CAPEC terms of use: “The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use Common Attack Pattern Enumeration and Classification (CAPEC™) for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE’s copyright designation and this license in any such copy.” CAPEC and the CAPEC logo are trademarks of The MITRE Corporation. Credits. All attack patterns.