CompTIA Security+ Exam Notes

CompTIA Security+ Exam Notes
Let Us Help You Pass

Friday, September 4, 2026

Cryptographic Vulnerabilities for CompTIA Security+: Complete Exam Prep

Cryptographic Vulnerabilities: 
Security+ Exam Prep

Cryptography is one of the most heavily tested domains on the CompTIA Security+ exam. While understanding encryption algorithms and certificate management is important, Security+ also expects candidates to identify and mitigate cryptographic vulnerabilities.

A cryptographic vulnerability occurs when weaknesses in encryption algorithms, implementations, key management practices, or configurations allow attackers to undermine the confidentiality, integrity, authentication, or non-repudiation of data.

This guide covers the most important cryptographic vulnerabilities you need to understand for the Security+ exam and real-world cybersecurity operations.

Why Cryptographic Vulnerabilities Matter

Organizations use cryptography to protect:

  • Passwords
  • Payment information
  • Personally Identifiable Information (PII)
  • Healthcare records
  • Intellectual property
  • Authentication systems
  • VPN communications

When cryptography is improperly implemented or outdated, attackers may be able to:

  • Read sensitive information
  • Impersonate legitimate users
  • Modify protected data
  • Bypass authentication controls
  • Decrypt confidential communications

Common Cryptographic Vulnerabilities

Weak Encryption Algorithms

One of the most common cybersecurity mistakes is continuing to use outdated encryption standards.

Examples

DES (Data Encryption Standard)

DES uses:

  • 56-bit key

Modern computing power can crack DES relatively quickly.

3DES

  • 56-bit key

RC4

RC4 was once popular in:

  • SSL
  • TLS
  • WEP

Researchers discovered multiple weaknesses allowing attackers to recover encrypted information.

MD5 (128-bit)

Although technically a hashing algorithm rather than encryption, MD5 suffers from collision vulnerabilities and should not be used for security-sensitive applications.

SHA-1 (160-bit)

SHA-1 has known collision attacks and is largely deprecated.

Security+ Exam Tip

If the exam asks which algorithm should be replaced immediately, common insecure choices include:

  • DES
  • 3DES
  • RC4
  • MD5
  • SHA-1
  • WEP

Key Management Vulnerabilities

Even strong encryption becomes ineffective if key management is poor.

Hard-Coded Keys

Developers sometimes embed encryption keys directly into source code.

If attackers obtain the code, they obtain the key.

Poor Key Storage

Keys stored in:

  • Plaintext files
  • Shared network drives
  • Configuration files

can be easily stolen.

Lost Key Control

If cryptographic keys are shared among too many users:

  • Accountability decreases
  • Insider threats increase
  • Key compromise becomes difficult to detect

Key Reuse

Reusing identical keys across:

  • Multiple applications
  • Several databases
  • Entire environments

creates a single point of failure.

Compromise of one system may compromise all systems using the same key.

Weak Random Number Generation

Encryption relies heavily on randomness.

Cryptographic operations require:

  • Session keys
  • Encryption keys
  • Initialization vectors
  • Nonces

If predictable random values are generated, attackers may predict cryptographic secrets.

Poor Certificate Management

Digital certificates are frequently targeted on Security+ exams.

Expired Certificates

Expired certificates can:

  • Break TLS communications
  • Generate browser warnings
  • Reduce user trust

Self-Signed Certificates

Self-signed certificates lack trusted third-party validation.

Risks include:

  • Impersonation attacks
  • Reduced trust
  • Easier spoofing

Weak Certificate Authorities

Compromise of a Certificate Authority (CA) can result in fraudulent certificates being issued.

Attackers may then perform:

  • Website impersonation
  • SSL/TLS interception
  • Man-in-the-middle attacks

Man-in-the-Middle (MITM) Attacks

A MITM attack occurs when an attacker intercepts communication between two parties.

Potential outcomes:

  • Credential theft
  • Session hijacking
  • Data modification

Why Cryptography Fails Here

Poor certificate validation often enables MITM attacks.

Examples include:

  • Ignoring certificate warnings
  • Accepting invalid certificates
  • Using self-signed certificates

Downgrade Attacks

A downgrade attack forces communication to use weaker security protocols.

Example

Both systems support:

  • TLS 1.3

An attacker forces negotiation to:

  • TLS 1.0

The attacker then exploits weaknesses in the older protocol.

Deprecated Protocols

SSL

Secure Sockets Layer (SSL) is obsolete.

Avoid:

  • SSL 2.0
  • SSL 3.0

Early TLS Versions

Weak versions include:

  • TLS 1.0
  • TLS 1.1

Modern systems should use:

  • TLS 1.2
  • TLS 1.3

WEP

WEP uses weak encryption and poor key management.

Common vulnerabilities include:

  • IV reuse
  • Weak keys
  • Rapid key cracking

Modern wireless networks should use:

  • WPA2
  • WPA3

Hashing Vulnerabilities

Hashing protects:

  • Passwords
  • File integrity
  • Digital signatures

Weak hashing implementations create vulnerabilities.

Collision Attacks

A collision occurs when:

  • Hash(A) = Hash(B)

for two different inputs.

Algorithms vulnerable to collisions:

  • MD5 (128-bit)
  • SHA-1 (160-bit)

Unsalted Password Hashes

Without salting:

  • password123

always generates the same hash.

With salting (exact same password for 10 users)

Each password hash will be unique

Attackers can leverage:

  • Rainbow tables
  • Precomputed hash databases

Proper Password Hashing

Modern implementations include:

  • Salt
  • Iterations
  • Key stretching

Examples:

  • bcrypt
  • PBKDF2
  • Argon2
  • scrypt

Digital Signature Vulnerabilities

Digital signatures provide:

  • Integrity
  • Authentication
  • Non-repudiation

Weaknesses arise when:

  • Signing keys are stolen
  • Weak hashing algorithms are used
  • Certificates expire

Private Key Compromise

If a signing key is stolen:

Attackers can:

  • Forge signed software
  • Create malicious updates
  • Impersonate legitimate organizations

Side-Channel Attacks

Not all attacks break the encryption algorithm itself.

Some attacks observe how cryptography operates.

Timing Attacks

Attackers measure:

  • Response Time

to infer information about cryptographic operations.

Power Analysis

Attackers monitor:

  • Power Consumption

during encryption processes to recover secret keys.

Electromagnetic Analysis

Attackers observe electromagnetic emissions from systems performing cryptographic operations.

Side-channel attacks exploit implementation weaknesses, not algorithm weaknesses.

Quantum Computing Risks

A sufficiently powerful quantum computer could weaken:

  • RSA
  • Diffie-Hellman
  • ECC

Organizations are researching:

  • Post-Quantum Cryptography (PQC)

to prepare for future threats.

Using HTTP Instead of HTTPS

  • Data remains unencrypted and vulnerable to interception.

Improper Key Rotation

  • Organizations that fail to rotate keys increase the likelihood of long-term compromise.

Sharing Service Accounts

Shared accounts often result in shared cryptographic credentials and poor accountability.

Security+ Quick Review Sheet

Weak Algorithms

Avoid:

  • DES
  • 3DES
  • RC4
  • MD5
  • SHA-1

Weak Protocols

Avoid:

  • SSL 2.0
  • SSL 3.0
  • TLS 1.0
  • TLS 1.1
  • WEP

Important Vulnerabilities

Know:

  • Plain Text
  • Downgrade attacks
  • MITM attacks
  • Collision attacks
  • Side-channel attacks
  • Key management failures
  • Certificate weaknesses

No comments:

Post a Comment