CompTIA Security+ Exam Notes

CompTIA Security+ Exam Notes
Let Us Help You Pass

Wednesday, September 9, 2026

CVE vs. CVSS: What Security+ and CySA+ Candidates Must Know

 CVE vs. CVSS

What every Security+ (SY0-701) and CySA+ (CS0-003) candidate needs to know about identifying vulnerabilities versus scoring them

Why this pair of acronyms trips people up

Ask a room full of Security+ or CySA+ candidates to define CVE and CVSS separately, and most will mix them up. Put both terms in the same exam question — "A scan returns CVE-2024-3094 with a CVSS score of 10.0; what should the analyst do first?" — and the wheels start to wobble. That's because CVE and CVSS aren't competing concepts you choose between. They're two different layers of the same vulnerability management stack, and CompTIA loves to test whether you know which layer does what.

Here's the one-sentence version, which is worth memorizing before anything else in this article:

CVE tells you what the vulnerability is. CVSS tells you how bad it is.

Everything below unpacks that sentence — first CVE alone, then CVSS alone, then how the two work together, and finally how each shows up on the SY0-701 and CS0-003 exam objectives, with sample question patterns you're likely to see.

CVE: Common Vulnerabilities and Exposures

CVE is a naming and cataloging system, not a scoring system. Its entire job is to make sure that everyone on the planet — vendors, researchers, scanners, ticketing systems, threat intel feeds — refers to the same vulnerability by the same identifier.

Who runs it? The CVE Program is sponsored by the U.S. Department of Homeland Security / CISA and operated by MITRE Corporation, which maintains the CVE List and the cve.org website. Individual vulnerabilities aren't only assigned by MITRE, though — over 300 organizations worldwide (vendors like Microsoft, Cisco, Red Hat; researchers; bug bounty platforms) are authorized as CVE Numbering Authorities (CNAs) and can mint CVE IDs directly for vulnerabilities in their own products or research scope.

What a CVE ID looks like.

CVE-2024-3094
  • CVE — fixed prefix
  • 2024 — the year the ID was assigned (not necessarily the year it was disclosed or exploited — an ID reserved in December 2024 can be published in early 2025 and still carry the 2024 year)
  • 3094 — a sequence number with no fixed length (older entries have 4 digits; newer ones can run to 7+)

What a CVE record actually contains. A minimal CVE entry is deliberately sparse:

  • The CVE ID
  • A brief description of the flaw
  • References (vendor advisories, patches, mailing list posts)
  • Affected products/versions, at a basic level

What a CVE record does not contain. This is the exam-critical part: a bare CVE entry carries no severity rating, no exploitability score, and no risk assessment. MITRE's CVE List is a dictionary, not a risk report. Two CVEs — one for a denial-of-service bug in a niche embedded printer driver and one for an unauthenticated remote code execution flaw in a widely deployed web server — are, as CVE entries, structurally identical: an ID, a description, some references. Severity is bolted on afterward by a separate system — which is exactly where CVSS comes in.

Common exam trap: A question states "the vulnerability has a CVE identifier" and then asks you to judge urgency from that fact alone. The correct instinct is that having a CVE tells you nothing about severity — you need a CVSS score (or other risk context) to prioritize.

CVSS: Common Vulnerability Scoring System

CVSS is a severity-scoring framework maintained by FIRST.org (Forum of Incident Response and Security Teams), an industry consortium — not a government agency and not MITRE. Where CVE answers "what is this flaw and where did it come from," CVSS answers "how severe is this flaw, technically, in a defined and repeatable way."

CVSS produces two things for a given vulnerability:

  1. A numeric score from 0.0 to 10.0
  2. A qualitative severity rating derived from that score
CVSS Score Range Qualitative Rating
0.0 None
0.1 – 3.9 Low
4.0 – 6.9 Medium
7.0 – 8.9 High
9.0 – 10.0 Critical

Memorize this table. Both exams expect you to map a score to a rating (and vice versa) without a calculator.

The metric groups

CVSS scores are built from metrics, grouped by who can set them and when:

  • Base Metrics — the only metrics required to compute a score, and the ones vendors/NVD publish by default. They describe the vulnerability's intrinsic characteristics, which don't change over time or context (Exploitability metrics + Impact metrics).
  • Temporal Metrics (CVSS v3.1) / Threat Metrics (CVSS v4.0) — adjust the base score based on real-world factors that do change over time, chiefly whether working exploit code exists and whether a fix is available.
  • Environmental Metrics — let the consuming organization re-weight the score based on their own environment (e.g., "this system isn't internet-facing for us" or "this data isn't confidential in our context").

The score everyone quotes — the one on an NVD page or a scanner report — is almost always the Base Score alone. Temporal/Threat and Environmental scores require extra input that most publishers don't supply, so treating a bare Base Score as "the final word on risk" is a common and testable mistake.

Base metrics, CVSS v3.1 (still widely deployed and fair game on both exams)

Metric Abbreviation What it captures
Attack Vector AV How the attacker reaches the vulnerability (Network, Adjacent, Local, Physical)
Attack Complexity AC How much difficulty/preparation the attack requires (Low, High)
Privileges Required PR What access level the attacker needs beforehand (None, Low, High)
User Interaction UI Whether a victim must do something (None, Required)
Scope S Whether the exploited component can affect resources beyond its own security scope (Unchanged, Changed)
Confidentiality Impact C Loss of data confidentiality (None, Low, High)
Integrity Impact I Loss of data trustworthiness (None, Low, High)
Availability Impact A Loss of access/uptime (None, Low, High)

A CVSS v3.1 vector string packages all of this into one readable line, e.g.:

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Read left to right: network-reachable, low complexity, no privileges or user interaction needed, scope unchanged, and full loss of confidentiality, integrity, and availability. That vector computes to a 9.8 (Critical) — the profile of a classic "wormable" remote code execution flaw.

What changed in CVSS v4.0

FIRST published CVSS v4.0 in late 2023 to fix long-standing complaints about v3.1 (the ambiguous "Scope" metric, weak differentiation among High/Critical scores, and no clean way to separate threat intelligence from environmental context). You don't need to hand-calculate v4.0 vectors for either exam, but you should recognize the shape of the changes if a question references it:

  • Scope (S) is removed, replaced by separate Vulnerable System and Subsequent System impact metrics (VC/VI/VA and SC/SI/SA).
  • Attack Requirements (AT) is added as a new Base metric, distinct from Attack Complexity.
  • Threat Metrics formally replace Temporal Metrics, built around the single metric "Exploit Maturity."
  • A new optional Supplemental Metrics group adds factors like Safety (S), Automatable (AU), and Recovery (R) — reflecting a push toward OT/ICS and larger-scale automated-exploitation scenarios.
  • Naming convention adds a suffix indicating which metric groups were scored, e.g. CVSS-BTE (Base + Threat + Environmental) versus a Base-only CVSS-B score — a hint that not every published score is created equal.

Exam framing: Expect SY0-701 to test CVSS at the conceptual level (know what it is, what a score means, that it's separate from CVE). CS0-003 goes deeper — expect you to reason about which metric would change a score in a given scenario, and to know that a Base Score alone can overstate or understate actual organizational risk.

CVE and CVSS side by side

CVE CVSS
Full name Common Vulnerabilities and Exposures Common Vulnerability Scoring System
Governing body MITRE / CVE Program (CISA-sponsored) FIRST.org
Purpose Uniquely identify and catalog a vulnerability Quantify a vulnerability's severity
Output An ID string (e.g., CVE-2024-3094) + description A 0.0–10.0 score + qualitative rating (None–Critical)
Changes over time? No — the ID and core description are fixed Yes — Temporal/Threat and Environmental metrics can shift the effective score
Answers the question "What is this flaw, and has anyone seen it before?" "How dangerous is this flaw, technically?"
Analogous to A disease's name and ICD code A disease's severity/triage rating

How they actually work together

In practice, you rarely encounter a CVE ID with no CVSS score attached, because the National Vulnerability Database (NVD) — run by NIST — ingests every published CVE and enriches it with a CVSS score, CWE mapping, and affected-product (CPE) data. A vulnerability scanner report that lists "CVE-2024-3094 — CVSS 10.0 (Critical)" is really showing you two independent systems stapled together: MITRE's identifier and NVD's CVSS score.

This is also where two adjacent acronyms belong in your mental map, because exam writers enjoy mixing all four into one scenario:

  • CWE (Common Weakness Enumeration) — a taxonomy of vulnerability types (e.g., CWE-79 Cross-Site Scripting, CWE-89 SQL Injection). A CVE is one specific instance of a CWE category. CWE answers "what kind of bug is this," which sits a level above the specific instance.
  • CPE (Common Platform Enumeration) — a standardized naming scheme for the affected hardware/software/OS (e.g., cpe:2.3:a:apache:log4j:2.14.1). CPE tells you where a CVE applies.
  • NVD (National Vulnerability Database) — the U.S. government repository that takes raw CVE entries and adds the CVSS score, CWE classification, and CPE applicability that make the entry actionable.

Quick mental chain: CWE (the category of bug) → CVE (this specific instance of that bug, in this specific product) → CPE (exactly which product/version is affected) → CVSS (how severe this specific instance is) → NVD (the database that stitches all four together).

Where this shows up on Security+ (SY0-701)

Vulnerability management lives in Domain 4.0 – Security Operations of the SY0-701 objectives. CompTIA expects you to recognize CVE and CVSS as part of the vulnerability identification and analysis workflow — alongside vulnerability scanning, application security testing, threat feeds, and OSINT as identification methods, and CVSS/CVE/vulnerability classification/exposure factor as analysis criteria used to prioritize what gets remediated first.

For Security+, keep the expectations at the conceptual level:

  • Recognize CVE as an identifier, not a severity indicator.
  • Recognize CVSS as the standard framework for turning a vulnerability's characteristics into a comparable severity score.
  • Know the qualitative bands (None/Low/Medium/High/Critical) and roughly which numeric ranges map to which band.
  • Understand that CVSS Base Score alone doesn't equal organizational risk — risk also depends on asset criticality, exposure, compensating controls, and business context, which is why Security+ also tests concepts like risk tolerance and exposure factor in the same breath.

Where this shows up on CySA+ (CS0-003)

CySA+ pushes the same material considerably deeper, primarily in the Vulnerability Management domain, where "given a scenario, analyze data to prioritize vulnerabilities" is an explicit objective. CVE and CVSS interpretation are named directly, alongside vulnerability classification, exposure factor, environmental variables, industry/organizational impact, risk tolerance, and — increasingly — supplementary prioritization signals like EPSS (Exploit Prediction Scoring System) and whether a flaw is a documented/active exploit versus proof-of-concept only.

For CySA+, be ready to:

  • Read and reason about a CVSS vector string, not just recognize the acronym — e.g., spot that AV:N plus PR:N plus UI:N signals a remotely exploitable, no-interaction flaw that should jump the remediation queue.
  • Explain why two vulnerabilities with similar CVSS Base Scores might warrant different remediation priority once Environmental metrics, asset value, or active exploitation intelligence are factored in.
  • Distinguish CVSS (technical severity) from risk (technical severity plus business context) from EPSS (likelihood of exploitation in the near term) — CS0-003 scenario questions often present all three and ask which one drives a specific decision.
  • Correlate a CVE to its CWE class to reason about whether a pattern of vulnerabilities (not just one instance) needs a systemic fix — e.g., recurring CWE-89 findings suggesting a broader input-validation problem across an application portfolio, rather than one-off patching.

CySA+ framing to internalize: "Highest CVSS score" is not automatically "patch first." A Medium-severity CVSS score on an internet-facing, actively-exploited, business-critical system can outrank a Critical-severity CVSS score on an isolated, air-gapped test server. The exam rewards candidates who treat CVSS as one input to prioritization, not the whole decision.

Common exam gotchas, summarized

  • "A CVE was found" is not the same as "a severe vulnerability was found." Severity requires CVSS (or another scoring method) layered on top.
  • CVSS scores a vulnerability's technical characteristics — not your organization's actual risk. Risk = severity × exposure × asset value × likelihood, and CVSS only supplies the first piece cleanly.
  • The commonly displayed CVSS score is usually the Base Score only. Temporal/Threat and Environmental scores can move that number — and often aren't shown unless someone explicitly calculates them.
  • MITRE and NVD are not the same organization, even though they both touch CVE data — MITRE assigns/catalogs CVE IDs; NIST's NVD enriches them with CVSS, CWE, and CPE data.
  • CVSS is versioned (v2.0 legacy, v3.0, v3.1, v4.0) — a v3.1 score and a v4.0 score for the same flaw are not guaranteed to match, because the metrics changed.
  • CWE ≠ CVE ≠ CPE ≠ CVSS. If a question strings several of these together, determine which one it's asking about: category (CWE), instance (CVE), affected platform (CPE), or severity (CVSS).

Practice-style questions

1. (Security+ style) A vulnerability scan returns a finding with a CVE identifier but no severity information. What should the analyst do next? Look up the CVE in a database such as the NVD to retrieve its CVSS score and severity rating — the CVE ID alone does not indicate how serious the flaw is.

2. (Security+ style) Which organization is responsible for maintaining the CVSS specification? FIRST.org — not MITRE (which manages CVE) and not NIST (which runs the NVD).

3. (CySA+ style) Two findings both carry a CVSS v3.1 Base Score of 8.8. Finding A affects a public-facing customer portal; Finding B affects an internal print server with no network path to sensitive data. Which should be remediated first, and why? Finding A — because Environmental context (public exposure, likely higher asset/data sensitivity) elevates its effective risk even though the Base Scores are identical; CVSS Base Score alone doesn't account for exposure or business impact.

4. (CySA+ style) An analyst reviews the vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. What does the UI:R component indicate, and how should it affect prioritization relative to a comparable finding with UI:N? UI:R means the attack requires a victim to take some action (e.g., open a file, click a link), which is a meaningfully higher bar than UI:N (no interaction needed). All else equal, the UI:N finding is typically the more urgent one, since it can be exploited without tricking a user.

Quick-reference cheat sheet

Concept One-line definition Owning body
CVE Unique ID + description for a known vulnerability    MITRE / CVE Program
CVSS 0.0–10.0 severity score + qualitative rating    FIRST.org
CWE Category/type of software weakness    MITRE
CPE Standardized name for affected platform/product    NIST
NVD U.S. database enriching CVEs with CVSS/CWE/CPE    NIST
EPSS Predicted likelihood of near-term exploitation    FIRST.org

Further study: cve.org and nvd.nist.gov for live CVE/CVSS lookups, first.org/CVSS for the full specification, and CompTIA's official SY0-701 and CS0-003 exam objectives documents for the authoritative, current wording of each domain.

Sunday, September 6, 2026

Data Poisoning in Cybersecurity: How Attackers Corrupt AI

Data Poisoning in Cybersecurity: 
Security+ and CySA+ Exam Prep

As artificial intelligence (AI), machine learning (ML), and data-driven security platforms become increasingly common, attackers are shifting their focus from simply compromising systems to corrupting the data those systems rely upon. One of the most important emerging threats for cybersecurity professionals is data poisoning.

What Is Data Poisoning?

Data poisoning is a cyberattack in which an adversary intentionally manipulates training data, operational data, or datasets used by an organization to cause inaccurate results, poor decision-making, or compromised machine learning outcomes.

Instead of attacking a system directly, attackers target the data itself.

Simple Definition

Data poisoning occurs when malicious or misleading data is injected into a dataset to influence the behavior of analytics systems, security tools, or machine learning models.

Think of it this way:

  • Malware attacks software
  • Credential attacks target users
  • Data poisoning attacks trust in data

If a security system learns from poisoned data, it may begin making incorrect decisions while appearing to operate normally.

Modern cybersecurity solutions increasingly rely on:

  • Security Information and Event Management (SIEM) systems
  • User and Entity Behavior Analytics (UEBA)
  • Machine learning threat detection
  • Fraud detection platforms
  • Threat intelligence feeds
  • Automated response systems

All of these technologies depend on accurate data.

If attackers can influence that data, they may:

  • Evade detection
  • Generate false alerts
  • Hide malicious activity
  • Cause business disruption
  • Reduce confidence in security platforms

This makes data poisoning a threat to the Confidentiality, Integrity, and Availability (CIA) triad, especially Integrity.

Data Poisoning vs. Traditional Data Tampering

Many students confuse data poisoning with ordinary data manipulation.

Data Tampering

An attacker modifies information after it has been created.

Example:

  • Altering financial records
  • Modifying login logs
  • Changing database entries

Data Poisoning

An attacker intentionally introduces bad data so future analysis produces incorrect results.

Example:

  • Feeding fake malicious traffic into training datasets
  • Injecting fraudulent behavior into machine learning training records
  • Polluting threat intelligence feeds

Data poisoning focuses on influencing future decisions rather than simply changing existing information.

The Machine Learning Connection

Data poisoning is most commonly associated with machine learning systems.

Machine learning models learn patterns from historical data.

The general process looks like this:

1 Training Data

2

3 Machine Learning Model

4

5 Predictions/Decisions

If the training data becomes corrupted:

1 Poisoned Data

2

3 Compromised Model

4

5 Bad Decisions

A model is only as trustworthy as the data it learns from.

This concept is often summarized as:

  • "Garbage In, Garbage Out" (GIGO)

A phrase frequently referenced in cybersecurity and information assurance.

Types of Data Poisoning Attacks

1. Training Data Poisoning

The attacker modifies the dataset used to train a machine learning model.

Example

  • An organization trains malware detection software using millions of files.
  • An attacker successfully inserts malicious samples labeled as "safe."
  • The model learns that malicious behavior appears legitimate.

Result:

  • Malware bypasses detection
  • Detection accuracy decreases

This is one of the most common forms discussed in cybersecurity literature.

2. Label Poisoning

In supervised machine learning, data is labeled.

Examples:

1 Email A = Spam

2 Email B = Not Spam

Attackers may change labels.

Example:

1 Malicious File = Safe

2 Safe File = Malicious

The model learns incorrect relationships and begins making poor decisions.

3. Availability Attacks

The goal is to reduce overall model effectiveness.

Attackers flood the training data with:

  • Noise
  • False information
  • Random data

The result is a model that becomes unreliable.

Effects include:

  • Excessive false positives
  • Excessive false negatives
  • Operational inefficiencies

4. Targeted Poisoning

Instead of breaking the entire model, attackers target a specific outcome.

Example:

An attacker wants a particular malware family to evade detection.

They poison only data associated with that malware.

The rest of the model functions correctly.

This makes detection difficult because overall performance appears normal.


5. Backdoor Attacks

A special type of poisoning attack.

The attacker trains a hidden behavior into the model.

A facial recognition system is poisoned so that:

1 Normal Face → Correct Identification

2 Face + Specific Pattern →

3 Always Grants Access

The hidden trigger activates the attacker's desired outcome.

Backdoor attacks are considered particularly dangerous because they may remain dormant for long periods.

Real-World Data Poisoning Scenarios

Scenario 1: Email Security

An organization uses machine learning spam filtering.

Attackers submit thousands of spam messages that appear legitimate.

Over time, the filter learns incorrect characteristics.

Results:

  • Increased spam delivery
  • Reduced detection rates
  • User frustration

Scenario 2: Threat Intelligence Feeds

Organizations depend on external threat intelligence.

Attackers introduce inaccurate indicators such as:

  • Fake IP reputations
  • False domains
  • Incorrect malware signatures

This can produce:

  • False blocking decisions
  • Missed threats
  • Resource waste

Scenario 3: Autonomous Security Operations

Security orchestration and automated response (SOAR) platforms increasingly use AI.

If training data is poisoned:

  • Incorrect response actions may occur
  • Benign systems may be quarantined
  • Actual threats may remain active

The impact can spread throughout the organization.

How Attackers Conduct Data Poisoning

The attack lifecycle often looks like this:

1 Reconnaissance

2

3 Identify Data Sources

4

5 Gain Data Access

6

7 Inject Malicious Data

8

9 Model Retraining

10

11 Altered Model Behavior

12

13 Exploitation

Attackers may target:

  • Public datasets
  • Crowdsourced data
  • Log collection systems
  • Threat intelligence repositories
  • Third-party suppliers

This is why supply chain security has become increasingly important.

Artificial Intelligence Risks

Security+ candidates should recognize:

AI systems depend on trustworthy data

Compromised training data can affect outcomes

Data validation is essential

Supply Chain Risk

Security+ often emphasizes third-party dependencies.

Poisoned data may enter through:

  • Vendors
  • Partners
  • Open-source repositories
  • Threat intelligence providers

CySA+ Exam Perspective

Expect scenarios involving:

  • Analytics platforms
  • Threat hunting
  • SIEM tuning
  • Behavioral analysis systems
  • Machine learning security controls

You may be asked to determine:

  • Why a model's accuracy degraded
  • Why alerts suddenly increased
  • Why previously detected threats are bypassing controls

The answer may involve corrupted training data.

Indicators of Data Poisoning

Security analysts should watch for:

Unexpected Accuracy Drops

Examples:

  • Malware detection rates decrease
  • Fraud detection misses attacks
  • Spam filters become ineffective
  • Excessive False Positives

Example:

  • Normal Traffic
  • Flagged as Malicious

Excessive False Negatives

Example:

  • Actual Malware
  • Not Detected

Strange Learning Patterns

Models suddenly making unusual decisions may indicate poisoned training data.

Defending Against Data Poisoning

Data Validation

Verify:

  • Source authenticity
  • Data quality
  • Integrity checks

Techniques include:

  • Hashing
  • Digital signatures
  • Validation workflows

Access Control

Limit who can modify datasets.

Apply:

  • Role-Based Access Control (RBAC)
  • Least privilege
  • Segregation of duties

Data Provenance

Data provenance tracks:

  • Where data came from
  • Who modified it
  • When changes occurred

This creates accountability and auditability.

Dataset Monitoring

Monitor for:

  • Unexpected changes
  • Statistical anomalies
  • Unusual volume increases

Automated alerting can identify poisoning attempts early.

Human Review

Critical training datasets should undergo manual review.

Especially important for:

  • Security datasets
  • Threat intelligence
  • High-risk AI systems

Secure Supply Chains

Verify third-party datasets using:

  • Vendor assessments
  • Integrity controls
  • Contractual security requirements
  • Continuous monitoring

Incident Response for Data Poisoning

If poisoning is suspected:

Step 1: Identify the Scope

Determine:

  • Which datasets were affected
  • When poisoning occurred
  • Which systems relied on the data

Step 2: Isolate Affected Systems

Prevent further model training on compromised datasets.

Step 3: Restore Clean Data

Recover trusted datasets from:

  • Backups
  • Known-good repositories
  • Verified sources

Step 4: Retrain Models

Rebuild systems using validated data.

Step 5: Investigate Root Cause

Determine:

  • Initial access method
  • Weaknesses exploited
  • Security control failures

Security+ and CySA+ Exam Tips

Memorize these key points:

  • Data poisoning primarily attacks Integrity
  • Common target: Machine Learning training data
  • Result: Inaccurate predictions and poor decisions
  • Indicators include false positives, false negatives, and degraded model accuracy
  • Defenses include:
    • Data validation
    • Access controls
    • Data provenance
    • Monitoring
    • Supply chain security
  •  Attack goal:
    • Influence the system's future behavior

Saturday, September 5, 2026

CompTIA Security+ SY0-701 practice questions

CompTIA Security+ SY0-701 practice questions            

The questions are fairly easy but the explanations will help people understand what CompTIA as an answer. If this experiment goes well we will start adding multiple questions to this quiz. Plus we will consider adding questions for the Tech+, A+, Network+, and CySA+ exams.

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

Thursday, September 3, 2026

What Every Security+ and CySA+ Candidate Should Know About Beaconing

Beaconing in Cybersecurity: 
Security+ and CySA+ Exam Prep

Beaconing is a critical concept for both the CompTIA Security+ (SY0-701) and CompTIA CySA+ (CS0-003) exams. It frequently appears in questions related to malware, command-and-control (C2) communications, network traffic analysis, threat hunting, indicators of compromise (IOCs), and incident response.

Understanding how beaconing works, how attackers use it, and how analysts detect it is essential for passing certification exams and performing effectively in a Security Operations Center (SOC).

Beaconing explained:

Beaconing is the periodic communication between a compromised device and an external system, typically a command-and-control (C2) server controlled by an attacker.

Once malware infects a system, it often attempts to "phone home" at regular intervals to:

  • Report that the infected system is active
  • Receive instructions
  • Download additional malware
  • Upload stolen data
  • Maintain communication with attackers

Exam Definition

Beaconing is recurring network communication between a compromised host and a command-and-control server used to maintain attacker access and exchange information.

Beaconing is associated with:

  • Malware infections
  • Advanced Persistent Threats (APTs)
  • Botnets
  • Remote Access Trojans (RATs)
  • Data exfiltration
  • Command-and-control frameworks

A successful attack often relies on an attacker maintaining communication with compromised systems.

Without beaconing, attackers may lose their ability to:

  • Issue commands
  • Collect data
  • Control malware
  • Move laterally

How Beaconing Works

A typical beaconing process follows this sequence:

1 1. Initial Compromise

2

3 2. Malware Installation

4

5 3. Establish Persistence

6

7 4. Contact C2 Server

8

9 5. Receive Commands

10

11 6. Execute Actions

12

13 7. Repeat Communication

Unlike normal user-driven traffic, beaconing often follows predictable timing patterns:

  • Every 5 minutes
  • Every 30 seconds
  • Every hour

The consistent timing can help analysts identify malicious activity.

Command-and-Control (C2) Server:

A command-and-control server is an external system used by attackers to manage compromised devices.

The C2 server may:

  • Send commands
  • Receive stolen data
  • Update malware
  • Deploy ransomware
  • Coordinate botnet activity

Example:

1 Compromised Laptop

2

3 Internet

4

5 Attacker C2 Server

The compromised device continuously checks in with the C2 server.

This periodic communication is known as beaconing.

Common Beaconing Methods

HTTP and HTTPS Beaconing

Most modern malware uses web traffic because it blends into normal network activity.

Examples:

1 GET /update

2 POST /checkin

Using HTTPS encryption allows attackers to hide communication contents.

Security+ Exam Tip

Traffic encrypted with HTTPS is not automatically safe.

Many malware families use HTTPS for command-and-control communications.

DNS Beaconing

DNS is frequently abused because nearly every organization allows outbound DNS traffic.

Example:

1 checkin.attackerdomain.com

The malware encodes information within DNS requests.

Benefits for attackers include:

  • Stealth
  • Widespread access
  • Firewall evasion

ICMP Beaconing

Attackers sometimes hide communications within ICMP traffic.

Examples:

1 ping requests

2 ping replies

Because ICMP is commonly allowed for troubleshooting, it may be overlooked.

Email-Based Beaconing

Some malware communicates using email accounts or email protocols.

The malware may:

  • Read instructions
  • Send reports
  • Exchange commands

Although less common today, it still appears in advanced attack scenarios.

Beaconing and Malware

Several malware categories rely heavily on beaconing.

Remote Access Trojans (RATs)

A RAT provides attackers with remote control of a victim system.

Examples:

  • Screen capture
  • File access
  • Command execution
  • Keystroke logging

The RAT continuously communicates with its operator through beaconing.

Botnets

A botnet is a collection of compromised devices under centralized control.

Each infected system:

1 Bot

2

3 C2 Server

4

5 Attacker

Beaconing allows synchronization across thousands of compromised systems.

Ransomware

Before deployment, ransomware operators often use beaconing to:

  • Identify valuable systems
  • Escalate privileges
  • Move laterally
  • Exfiltrate data

Many modern ransomware attacks involve command-and-control communication before encryption occurs.

Indicators of Beaconing Activity

Security analysts are often tasked with identifying beaconing behavior in network logs.

Consistent Time Intervals

One of the strongest indicators is regular communication.

Normal user activity is typically irregular.

Beaconing tends to be machine-driven and highly predictable.

Repeated Connections to the Same Destination

Analysts should investigate hosts repeatedly connecting to:

  • Unknown domains
  • Suspicious IP addresses
  • Foreign infrastructure
  • Known malicious servers

Low-Volume Traffic

Beacon traffic is often very small.

Example:

1 Request: 250 bytes

2 Response: 300 bytes

The goal is often simply to check in and await instructions.

Connections During Off-Hours

Unexpected communications occurring at:

  • Midnight
  • Weekends
  • Holidays

may indicate automated malware activity.

Detecting Beaconing

Security Information and Event Management (SIEM)

SIEM platforms help identify recurring patterns.

Examples:

  • Microsoft Sentinel
  • Splunk
  • QRadar

Detection capabilities include:

  • Log correlation
  • Behavioral analysis
  • Alert generation
  • Threat intelligence matching

Network Traffic Analysis

Security teams review:

  • Firewall logs
  • Flow data
  • Packet captures
  • Proxy logs

Common tools include:

  • Wireshark
  • Zeek
  • tcpdump

Analysts look for repetitive communication patterns.

Endpoint Detection and Response (EDR)

EDR solutions monitor endpoint behavior.

Examples:

  • Microsoft Defender for Endpoint
  • CrowdStrike Falcon
  • SentinelOne

They can identify:

  • Suspicious processes
  • Unauthorized outbound connections
  • Malware behaviors
  • Threat persistence mechanisms

Threat Hunting for Beaconing

Threat hunters frequently search for beacon activity.

A common hunting methodology includes:

Step 1

Identify systems making recurring outbound connections.

Step 2

Determine communication frequency.

Step 3

Analyze destination reputation.

Step 4

Inspect associated endpoint activity.

Step 5

Validate whether malicious command-and-control activity exists.

Beaconing Evasion Techniques

Sophisticated attackers know defenders look for predictable patterns.

As a result, they often employ:

Jitter

Instead of beaconing every 60 seconds:

1 52 seconds

2 67 seconds

3 49 seconds

4 71 seconds

Random intervals make detection more difficult.

CySA+ Exam Tip

If a question mentions randomized communication intervals, think jittered beaconing.

Domain Generation Algorithms (DGAs)

Malware may generate hundreds or thousands of domains daily.

Example:

1 abc123.com

   xyz987.net

This helps attackers evade domain blocking.

Encrypted Communications

Attackers increasingly use:

  • HTTPS
  • TLS
  • VPN tunnels

to conceal command-and-control traffic.

Mitigating Beaconing Activity

Network Monitoring

Continuously monitor:

  • DNS traffic
  • Firewall logs
  • Proxy logs
  • Endpoint telemetry

Visibility is critical.

Egress Filtering

Control outbound communications.

Example:

1 Allow:

2 HTTPS to approved destinations

3 Block:

4 Unknown outbound traffic

This reduces attacker communication opportunities.

Threat Intelligence

Use threat intelligence feeds to identify:

  • Known malicious IPs
  • Malicious domains
  • Command-and-control infrastructure

Blocking known indicators can quickly disrupt attacks.

Endpoint Protection

Implement:

  • EDR
  • Antivirus
  • Application control
  • Behavioral monitoring

These defenses help detect malware before beaconing begins.

Network Segmentation

Segmentation limits attacker movement (VLANS, firewalls)

  • User Network
  • Servers
  • Critical Assets

If one segment is compromised, beaconing activity may be contained.

Beaconing in Incident Response

When beaconing is detected:

Containment

  • Isolate affected systems
  • Block suspicious domains
  • Disable compromised accounts

Investigation

  • Determine infection source
  • Analyze malware behavior
  • Identify affected systems

Eradication

  • Remove malware
  • Close vulnerabilities
  • Reset credentials

Recovery

  • Restore systems
  • Monitor for recurring activity
  • Validate remediation

These steps align closely with the Security+ and CySA+ incident response lifecycle.

Security+ Exam Takeaways

  • Beaconing is periodic communication between malware and a command-and-control server.
  • Command-and-control infrastructure enables attackers to manage compromised systems.
  • DNS, HTTP, HTTPS, and ICMP can all be used for beaconing.
  • Consistent communication intervals often indicate malicious activity.
  • HTTPS encryption does not mean traffic is legitimate.
  • Threat hunting frequently involves identifying beaconing patterns.
  • EDR, SIEM, and network monitoring are primary detection methods.

Beaconing refers to the regular communication between a compromised system and an attacker's command-and-control server. It is a common behavior of malware, botnets, RATs, and ransomware operators. For Security+ and CySA+, focus on understanding command-and-control concepts, recognizing indicators such as periodic outbound traffic and repeated connections, and knowing how SIEM, EDR, network monitoring, and threat hunting techniques are used to detect and respond to beaconing activity. Mastering beaconing concepts will help you answer questions covering network security, malware analysis, threat detection, and incident response across both certification exams.

Mastering Remote Code Execution (RCE): A Complete Security+ and CySA+ Exam Study Prep

Remote Code Execution (RCE): 
CompTIA CySA+ and Security+ Exam Prep

Remote Code Execution (RCE) is one of the most dangerous vulnerabilities discussed in cybersecurity and is a critical topic for both the CompTIA Security+ and CompTIA CySA+ certification exams. Understanding how RCE works, how attackers exploit it, and how defenders detect and mitigate it is essential for exam success and real-world security operations.

What Is Remote Code Execution (RCE)?

Remote Code Execution (RCE) is a vulnerability that allows an attacker to execute arbitrary commands or code on a target system from a remote location. If successful, the attacker can gain control over the affected system and perform actions with the privileges of the compromised application or service.

Exam Definition

Remote Code Execution is a security vulnerability that enables an attacker to run malicious code on a target system without physical access.

RCE vulnerabilities are often classified as critical severity because they can lead to:

  • Full system compromise
  • Data theft
  • Malware installation
  • Ransomware deployment
  • Privilege escalation
  • Lateral movement within a network

Why RCE Matters

For Security+ and CySA+ candidates, RCE represents the intersection of:

  • Vulnerability Management
  • Threat Intelligence
  • Secure Coding
  • Incident Response
  • Threat Detection

Many of the largest cyberattacks in recent history originated from an RCE vulnerability.

Examples include:

  • Microsoft Exchange ProxyLogon
  • Log4Shell (Apache Log4j)
  • WannaCry propagation mechanisms
  • SolarWinds-related exploitation techniques

How Remote Code Execution Works

An RCE attack generally follows these steps:


1 1. Discover Vulnerability

2

3 2. Craft Malicious Input

4

5 3. Trigger Application Weakness

6

7 4. Execute Arbitrary Commands

8

9 5. Gain System Access

10

11 6. Establish Persistence


The attacker identifies a flaw that allows specially crafted input to be interpreted as executable instructions.

Common Causes of RCE Vulnerabilities

1. Input Validation Failures

Applications that fail to validate user input may unintentionally execute malicious commands.

Instead of treating input as data:

  • username=ken

The application accepts:

  • username=ken; malicious command

Result:

The server processes both the expected input and the attacker's command.

Security+ Exam Tip

Always remember:

Improper input validation is one of the primary causes of RCE vulnerabilities.

2. Command Injection

Command injection occurs when user-supplied data is passed directly to the operating system shell.

Vulnerable Logic

  • ping <user_input>

If the application does not sanitize the input, an attacker may append additional commands.

Potential Consequences

  • Reading sensitive files
  • Creating new accounts
  • Installing malware
  • Downloading malicious payloads

Exam Objective

Expect questions involving:

  • Command Injection
  • Shell Injection
  • OS Command Injection

These are frequently associated with RCE.

3. Deserialization Vulnerabilities

Serialization converts objects into a storable or transmittable format.

Deserialization restores those objects.

If applications deserialize untrusted data, attackers may inject malicious objects that execute code.

4. Buffer Overflow Attacks

A buffer overflow occurs when data exceeds allocated memory boundaries.

Attackers may overwrite:

  • Memory locations
  • Function pointers
  • Return addresses

This can allow execution of attacker-controlled code.

Security+ Reminder

Buffer overflows are often associated with:

  • Legacy software
  • C and C++ applications
  • Memory corruption vulnerabilities

5. Vulnerable Libraries and Dependencies

Many modern applications rely on third-party components.

If a dependency contains an RCE flaw, applications using it become vulnerable.

Famous Example: Log4Shell

Apache Log4j contained a critical RCE vulnerability that allowed attackers to execute code through specially crafted log messages.

CySA+ Relevance

Analysts must:

  • Monitor vulnerability feeds
  • Track CVEs
  • Assess software inventories
  • Implement patch management

Types of Remote Code Execution

Authenticated RCE

Requires valid credentials before exploitation.

Example:

A malicious insider uses administrator access to exploit a vulnerable management console.

Risk:

  • High impact
  • Lower likelihood

Unauthenticated RCE

Requires no credentials.

This is considered significantly more dangerous.

Example:

A publicly exposed service executes attacker commands directly from the Internet.

Risk:

  • Extremely high
  • Frequently exploited by threat actors

Real-World RCE Attack Scenario

Imagine an organization hosts a vulnerable web application.

Step 1: Reconnaissance

  • An attacker scans public-facing systems.

Step 2: Vulnerability Discovery

  • A command injection flaw is identified.

Step 3: Exploitation

  • Malicious input is submitted through a web form.

Step 4: Shell Access

  • The attacker gains command-line access.

Step 5: Privilege Escalation

  • Administrative permissions are obtained.

Step 6: Data Exfiltration

  • Sensitive information is stolen.

Step 7: Persistence

  • Backdoors are installed.

This sequence reflects the attack lifecycle commonly discussed in CySA+ scenario-based questions.

Indicators of RCE Activity

Security analysts must recognize signs of exploitation.

Endpoint Indicators

  • Unknown processes
  • New user accounts
  • Abnormal services
  • Unexpected scheduled tasks
  • Modified system files

Example

  • cmd.exe launched by webserver.exe

This would be highly suspicious.

Network Indicators

Look for:

  • Unusual outbound traffic
  • Connections to known malicious IPs
  • Unexpected DNS requests
  • Downloads from external sites

Exam Tip

Unusual outbound communications often indicate:

  • Malware
  • Command-and-control activity
  • Active compromise

Log Indicators

Review:

  • Web server logs
  • Authentication logs
  • Application logs
  • Endpoint telemetry

Potential findings:

1 Repeated malformed requests

2 Unexpected process execution

3 Numerous failed validation events

Detecting Remote Code Execution

Security Information and Event Management (SIEM)

SIEM solutions help identify suspicious patterns.

They can correlate:

  • Network events
  • Authentication events
  • Endpoint logs
  • Application logs

Examples:

  • Microsoft Sentinel
  • Splunk
  • QRadar

Endpoint Detection and Response (EDR)

EDR solutions monitor endpoints for suspicious behavior.

Common detections include:

  • PowerShell misuse
  • Privilege escalation
  • Process injection
  • Fileless attacks

Examples:

  • Microsoft Defender for Endpoint
  • CrowdStrike Falcon
  • SentinelOne

Vulnerability Scanning

Organizations use scanners to identify RCE vulnerabilities before attackers do.

Examples:

  • Nessus
  • Qualys
  • OpenVAS

CySA+ Focus

Know the difference between:

  • Vulnerability scanning
  • Penetration testing
  • Threat hunting
  • Security assessments

Mitigating Remote Code Execution

1. Patch Management

The most effective defense is timely patching.

Best practices:

  • Maintain inventories
  • Monitor vendor advisories
  • Apply security updates promptly
  • Prioritize critical vulnerabilities

2. Input Validation

Applications should:

  • Validate input length
  • Use allowlists
  • Reject unexpected characters
  • Sanitize user input

3. Principle of Least Privilege

Applications should run with only necessary permissions.

Benefits:

  • Limits attacker capabilities
  • Reduces impact of successful RCE

4. Network Segmentation

Segmentation limits attacker movement after compromise.

Example:

1 DMZ

2

3 ├─ Web Servers

4

5 └─ Internal Network

Compromising a web server should not automatically provide access to sensitive systems.

5. Application Whitelisting

Only approved executables are allowed to run.

Benefits:

  • Prevents unauthorized code execution
  • Blocks many malware payloads

6. Web Application Firewalls (WAF)

WAFs inspect HTTP traffic for malicious payloads.

They can detect:

  • Injection attempts
  • Exploitation signatures
  • Malicious requests

RCE in the Cyber Kill Chain

Remote Code Execution often appears during the:

CySA+ questions frequently test where exploitation occurs in attack frameworks.

Security+ Exam Takeaways

Remember these key points:

  • RCE allows attackers to execute code remotely.
  • Command injection commonly results in RCE.
  • Input validation mitigates many RCE vulnerabilities.
  • Patch management is the most important defense.
  • Unauthenticated RCE vulnerabilities are extremely critical.
  • Vulnerable third-party libraries can introduce RCE risk.
  • Indicators include unusual processes, network traffic, and system modifications.

CySA+ Analyst Perspective

As a cybersecurity analyst, your responsibilities include:

  • Monitoring threat intelligence feeds
  • Reviewing vulnerability scan results
  • Investigating alerts
  • Correlating log data
  • Identifying indicators of compromise (IOCs)
  • Supporting incident response efforts
  • Recommending remediation actions