CompTIA Exam Prep - ITF+, A+, Network+, Security+, CySA+
This blog is here to help those preparing for CompTIA exams. This is designed to help the exam candidate to understand the concepts, rather than trust a brain dump. CHECK OUT THE BLOG INDEXES!!!
CompTIA Security+ Exam Notes
Let Us Help You Pass
Friday, June 5, 2026
DMVPN Explained: Architecture, Components, Phases, and Benefits
DMVPN
DMVPN (Dynamic Multipoint Virtual Private Network) is a Cisco networking solution that enables organizations to build scalable, secure, and dynamic VPN networks, especially useful for connecting multiple branch offices without complex static configurations.
DMVPN is a hub-and-spoke VPN architecture that allows:
- Branch sites (spokes) to dynamically connect to each other
- Secure communication using encryption
- Reduced need for static VPN tunnels
It combines several technologies:
- mGRE (Multipoint GRE)
- NHRP (Next Hop Resolution Protocol)
- IPsec (Encryption)
Key Components of DMVPN
1. Hub-and-Spoke Topology
- Hub router: Central site
- Spoke routers: Remote sites
Initially, all traffic goes through the hub.
2. mGRE (Multipoint GRE)
- Allows a single GRE interface to support multiple tunnels
- Eliminates the need for point-to-point tunnels between every site
Without mGRE:
- Each pair of sites requires a separate tunnel
With mGRE:
- One interface = many dynamic tunnels
3. NHRP (Next Hop Resolution Protocol)
- Maps logical VPN (tunnel IP) to physical IP addresses
- Works like “ARP for VPNs”
Example:
- Spoke A wants to talk to Spoke B
- It asks NHRP for B’s real IP
- Then builds a direct tunnel
4. IPsec
- Provides encryption and security
- Protects all GRE tunnel traffic
DMVPN operates in 3 phases, each improving efficiency:
Phase 1: Hub-and-Spoke Only
- All traffic flows through the hub
- No direct spoke-to-spoke communication
Simple
- Inefficient (hub becomes bottleneck)
Phase 2: Direct Spoke-to-Spoke Tunnels
- Spokes can create direct tunnels dynamically
- NHRP provides mappings
- Better performance
- Routing complexity (requires specific routing configs)
Phase 3: Intelligent Routing (Best)
- Spokes dynamically learn routes via routing protocols
- Supports dynamic next-hop updates
- Most scalable
- Best performance
- Simplifies routing
This is the most commonly used phase today
How DMVPN Works (Step-by-Step)
1. Spoke connects to the hub via an mGRE tunnel
2. Spoke registers its IP with the hub using NHRP
3. Spoke A wants to reach Spoke B
4. Hub provides B’s real IP via NHRP
5. Spoke A builds a direct IPsec tunnel to Spoke B
6. Traffic flows directly (not via hub)
Advantages of DMVPN
Scalability
- Easily supports large networks
Reduced configuration
- No need for many static VPN tunnels
Dynamic connectivity
- Spokes automatically discover each other
Improved performance
- Direct spoke-to-spoke communication
Cost-effective
- Uses the Internet instead of MPLS
Disadvantages
- More complex than traditional VPNs
- Requires Cisco-specific knowledge
- Troubleshooting can be challenging
- Security policies must be carefully managed
Real-World Use Case
A company with:
- Headquarters (hub)
- Multiple branch offices (spokes)
Instead of configuring:
- 20 branches → 190 tunnels (full mesh)
With DMVPN:
- Only 20 tunnels to the hub are needed
- Spokes dynamically connect when needed
DMVPN vs Traditional VPN
Key Takeaway
DMVPN is a dynamic, scalable VPN solution that:
- Uses mGRE + NHRP + IPsec
- Enables on-demand secure tunnels
- Eliminates the need for complex static tunnel configurations
Tuesday, June 2, 2026
MPO Connectors: Enabling High-Speed, High-Density Fiber Networks
Multifiber Push-on (MPO)
A multifiber push-on (MPO) connector, often called MTP (a branded, high-performance MPO), is a fiber-optic connector that terminates multiple fibers in a single connector. It’s widely used in high-density data centers and telecom networks where space, speed, and scalability are critical.
1. What “Multifiber Push-On” Means
- Multifiber: Unlike a single fiber (e.g., LC or SC connectors), MPO supports multiple fibers, typically 12, 24, 48, or more.
- Push-On: It uses a simple push-to-connect mechanism (no twisting or screwing). You align it and push it into place.
2. Physical Structure
An MPO connector has several key components:
Ferrule
- A flat, rectangular plastic block (usually MT ferrule)
- Contains precision holes where fibers are aligned
- Ensures exact positioning of each fiber
Fibers
- An array of fibers arranged in rows
- Common configurations:
- 12 fibers (1 row)
- 24 fibers (2 rows)
Guide Pins
- Small metal pins on one side (male connector)
- Ensure perfect alignment when mated with a female connector
Housing
- Outer casing that protects the ferrule
- Contains the push-on locking mechanism
3. How It Works
- Fibers are aligned inside the ferrule
- The connector is pushed into an MPO adapter or another MPO
- Guide pins ensure precise alignment
- Fibers connect simultaneously
- Light signals are transmitted across all fibers at once
- No rotation needed
- Quick insertion/removal
- High repeatability
4. Types of MPO Connectors
By Fiber Count
- MPO-8
- MPO-12 (very common)
- MPO-24
- MPO-48 / MPO-72 (high-density)
Male vs Female
A male connector always mates with a female connector
Polarity Types
Polarity ensures that signals are routed to the correct transmit/receive fibers.
- Type A (Straight): Same fiber positions
- Type B (Reversed): Flips order (mirrored)
- Type C (Pair-flipped): Swaps fiber pairs
5. Advantages
High Density
- Replaces many single-fiber connectors
- Saves rack and panel space
Fast Deployment
- Plug-and-play installation
- Ideal for pre-terminated trunk cables
Supports High Speed
- Used in:
- 40G Ethernet
- 100G Ethernet
- 400G and beyond
Cleaner Cable Management
- Fewer cables for the same capacity
6. Applications
Data Centers
- Spine-leaf architecture
- High-speed interconnects
Telecom Networks
- Backbone links
- Fiber distribution
Enterprise Networks
- High bandwidth requirements
7. MPO vs Single-Fiber Connectors
8. MPO vs MTP
- MPO = Standard defined by IEC/TIA
- MTP = Enhanced version (better alignment, durability, lower loss)
All MTPs are MPOs, but not all MPOs are MTPs
9. Key Considerations
When using MPO:
- Proper polarity planning is critical
- Requires cleaning tools for the multi-fiber ferrule
- Testing must check all fibers simultaneously
10. Simple Analogy
Think of an MPO connector like a multi-lane highway connector:
- Instead of one lane (single fiber), you have 12 or more lanes bundled together
- Cars (data) move across all lanes simultaneously
- Faster and more efficient for heavy traffic
In short:
A multifiber push-on (MPO) connector is a high-density, multi-fiber optical connector that allows many fibers to connect at once using a simple push-in mechanism, making it essential for modern high-speed networks.
Saturday, May 30, 2026
Secure Erase Explained: A Complete Guide to Truly Deleting Data
Secure Erase
When you “delete” a file or format a drive, you might assume your data is gone forever. Unfortunately, that’s not how most storage systems work. In reality, data can often be recovered, even after deletion, unless a process called secure erase is used.
This blog post walks you through everything you need to know about secure erase: what it is, how it works, the different methods, and why it’s essential for protecting sensitive data.
What Is Secure Erase?
Secure erase is a method of permanently deleting data from a storage device so that it cannot be recovered by any means, including forensic tools.
Unlike normal deletion, secure erase:
- Overwrites the actual data on the storage medium
- Eliminates recoverable remnants
- Works at a deeper level than operating system commands
Why Normal Deletion Isn’t Enough
When you delete a file:
- The operating system removes the file reference, not the data itself
- The storage space is marked as “free.”
- The actual data remains intact until overwritten
Example:
Deleting a file is like removing a book from a library catalog, but leaving the book on the shelf. Anyone who knows where to look can still find it.
How Secure Erase Works
Secure erase ensures data is unrecoverable by:
1. Overwriting Data
It replaces existing data with:
- Zeros (0x00)
- Ones (0xFF)
- Random patterns
2. Eliminating Metadata
Removes file system traces that might help reconstruct files
3. Targeting Entire Storage Areas
Including:
- Unallocated space
- Hidden partitions
- Slack space
- Bad sectors (if accessible)
Secure Erase on Different Storage Types
Hard Disk Drives (HDDs)
On traditional spinning disks:
- Data is stored magnetically
- Secure erase overwrites all sectors
Common Standards:
- Single-pass overwrite (often enough today)
- DoD 5220.22-M (3–7 passes)
- Gutmann method (35 passes, mostly obsolete)
Modern research shows single-pass overwrite is sufficient for most use cases.
Solid-State Drives (SSDs)
SSDs behave very differently:
- Use flash memory and wear leveling
- Data isn’t stored in fixed physical locations
- Overwriting isn't reliable at the OS level
Specialized Methods:
ATA Secure Erase command
- Built into SSD firmware
- Resets all cells efficiently
TRIM + Garbage Collection
- Helps mark blocks as unused
- But not a full secure erase
Key point:
- Traditional overwriting tools may fail on SSDs
Methods of Secure Erase
1. Software-Based Wiping Tools
Examples:
- DBAN (Darik’s Boot and Nuke)
- Eraser
- BleachBit
- Disk Utility (macOS)
Pros:
- Easy to use
- Flexible
Cons:
- Slower
- Less reliable on SSDs
2. Firmware / Hardware Commands
ATA Secure Erase (for SSDs and HDDs)
- Built directly into the drive firmware
- Fast and highly reliable
Pros:
- Most effective method for SSDs
- Completes in minutes
Cons:
- Requires compatible tools (e.g., hdparm, manufacturer utilities)
3. Cryptographic Erase
Used in encrypted drives:
- Delete encryption keys
- All data instantly becomes unreadable
Pros:
- Extremely fast
- Effective
Cons:
- Only works if encryption was already enabled
4. Physical Destruction
Methods:
- Shredding
- Drilling
- Crushing
- Incineration
Pros:
- Absolute data destruction
Cons:
- Irreversible
- Environmental concerns
When Should You Use Secure Erase?
You should perform a secure erase when:
- Selling or recycling devices
- Decommissioning company hardware
- Handling sensitive data (financial, personal, legal)
- Wiping servers or storage arrays
- Resetting SSDs for performance issues
Common Misconceptions
“Formatting deletes everything.”
- It doesn’t, data remains recoverable.
"Deleting files is permanent.”
- Not unless overwritten.
“More overwrite passes = safer”
- Modern drives don’t require multiple passes.
“SSDs erase like HDDs.”
- They require special handling (firmware commands).
Best Practices for Secure Erase
- Identify your storage type (HDD vs SSD)
- Use built-in secure erase tools when available
- Enable encryption early (for future cryptographic erase)
- Verify completion (if possible)
- Combine methods when handling extremely sensitive data
Example: Secure Erase Workflow
For HDD:
1. Boot into wiping tool (DBAN)
2. Select disk
3. Run single-pass overwrite
4. Verify wipe
For SSD:
1. Use the manufacturer's tool (Samsung Magician, Intel SSD Toolbox)
2. Run ATA Secure Erase
3. Confirm reset
Legal & Compliance Considerations
Many regulations require secure data destruction:
- GDPR (EU)
- HIPAA (Healthcare)
- NIST guidelines (U.S.)
- ISO/IEC 27001
Failure to properly erase data can lead to:
- Legal penalties
- Data breaches
- Reputation damage
Final Thoughts
Secure erase is not just a technical feature; it’s a critical part of data security. Whether you're an individual selling an old laptop or an organization retiring servers, ensuring your data is completely unrecoverable is essential.
Quick Summary
- Secure erase permanently destroys data
- Normal deletion leaves recoverable traces
- HDDs use overwrite methods
- SSDs require firmware-based erase
- Physical destruction is the ultimate fallback
Friday, May 29, 2026
MITRE ATT&CK for CySA+: Understanding All 14 Adversary Tactics
MITRE ATT&CK 14 Stages
The "stages" of the MITRE ATT&CK Framework are officially called Tactics. In the widely used Enterprise Matrix, there are 14 Tactics that capture the tactical goals of a cyber-adversary.
Unlike linear models like the Lockheed Martin Cyber Kill Chain, the MITRE ATT&CK framework is non-linear. Attackers can skip stages, repeat them, or run them simultaneously.
The 14 distinct stages are broken down chronologically below into Pre-Attacking, Initial Compromise, Internal Operations, and Ultimate Objectives phases.
_______________________________________
Phase 1: Pre-Attacking
These steps occur outside the victim's network before the actual compromise takes place.
1. Reconnaissance: The adversary gathers data to plan future attacks. They use techniques like active port scanning, tracking public social media accounts, or leveraging Open Source Intelligence (OSINT).
2. Resource Development: The adversary builds or purchases infrastructure to support operations. This includes creating fake accounts, purchasing malicious domains, renting virtual servers, or buying pre-made malware.
Phase 2: Initial Compromise
This phase marks the transition from planning to active entry into the environment.
3. Initial Access: The adversary uses various means to gain a baseline foothold in your network. Classic examples include sending phishing emails, exploiting public-facing software vulnerabilities, or using stolen remote desktop (RDP) credentials.
4. Execution: The attacker triggers malicious code on a local or remote target machine. They often abuse native system tools (like executing a malicious PowerShell command or Windows Management Instrumentation) to evade traditional antivirus software.
Phase 3: Internal Operations (Post-Compromise)
Once inside, attackers navigate the environment to secure and expand their control.
5. Persistence: The adversary deploys methods to maintain their access across computer restarts, system reconfigurations, or credential resets. Common methods include creating rogue scheduled tasks or modifying system registry keys.
6. Privilege Escalation: The attacker attempts to bypass restrictive safety configurations to gain higher-level administrative, system, or root permissions. They achieve this by leveraging zero-day software bugs or exploiting weak system configurations.
7. Defense Evasion: The adversary actively works to avoid detection by security teams. They will hide their activities by disabling system firewalls, deleting computer event logs, masquerading malware files as legitimate applications, or encrypting their files.
8. Credential Access: The attacker targets authentication secrets to gain broader system access. They dump RAM caches to steal login tokens, run keyloggers to record typing, or force brute-force attacks against system passwords.
9. Discovery: The attacker explores your network to figure out what systems, user accounts, databases, and network architectures exist. They run system discovery queries to locate valuable data repositories.
10. Lateral Movement: The adversary shifts from the initially compromised device to explore and infect other servers or workstations across the network. They usually leverage legitimate system tools using stolen credentials.
11. Collection: The attacker locates and gathers the critical data aligned with their mission objectives. They aggregate database structures, sensitive text files, or email communications into compressed ZIP files to prepare them for extraction.
12. Command and Control (C2): The adversary establishes communication lines between inside-the-perimeter malware and an external server they control. They use these covert channels to send remote execution instructions to the infected machines.
Phase 4: Ultimate Objectives
This is the final phase where the attacker extracts value or inflicts damage.
13. Exfiltration: The adversary transfers the collected corporate data out of your target network. They sneak data out using encrypted web protocols, cloud storage accounts, or corporate email.
14. Impact: The adversary manipulates, corrupts, or outright destroys data and systems. This includes deploying ransomware to encrypt files for extortion, or executing data-wiping scripts to disrupt business operations entirely.
Thursday, May 28, 2026
Inside War Driving: Techniques, Motivations, and Wireless Security Risks
War Driving
War driving is one of those cybersecurity concepts that sounds dramatic, but at its core it’s simply about mapping wireless networks, and understanding it is important because it shows how attackers gather information long before they ever try to break in.
Here’s the clear, structured breakdown you asked for.
What War Driving Is (Core Idea)
War driving is the practice of driving around with a Wi‑Fi–capable device to detect and record wireless networks in an area.
It doesn’t automatically mean hacking, the act itself is just scanning. Think of it as “Wi‑Fi mapping from a moving vehicle.”
How War Driving Works
- A typical war‑driving setup includes:
- A laptop, tablet, or smartphone
- A wireless network card capable of monitor mode
- A GPS receiver
- Software such as:
- Kismet
- NetStumbler
- WiGLE app
- Airodump‑ng (part of Aircrack‑ng suite)
The device continuously scans for:
- SSID (network name)
- BSSID (MAC address of the access point)
- Channel
- Signal strength
- Encryption type (WEP, WPA2, WPA3, or none)
- GPS coordinates
The result is a map of all Wi‑Fi networks encountered along the route.
Why People Do War Driving
There are legitimate and malicious motivations.
Legitimate Uses
- Security audits: Companies test their own wireless footprint.
- Finding rogue access points: Unauthorized Wi‑Fi devices installed by employees or attackers.
- Coverage mapping: Checking signal strength across a campus or neighborhood.
- Research: Studying wireless density or encryption adoption.
Malicious Uses
Identifying networks with:
- Weak encryption (WEP, open networks)
- Default router names (indicating default passwords)
- Poor placement (signal leaking into public areas)
Attackers use this data to plan:
- Wi‑Fi password cracking
- Evil twin attacks
- Man‑in‑the‑middle attacks
- Unauthorized network access
- War driving itself is passive, but it enables active attacks later.
How the Data Is Used
War drivers often upload results to public databases like WiGLE, which contains millions of mapped Wi‑Fi networks worldwide.
Each entry typically includes:
- SSID
- GPS location
- Encryption type
- First/last seen dates
This makes it easy for anyone to find networks with weak security in a given area.
How to Protect Against War‑Driving‑Based Attacks
You can’t stop someone from detecting your Wi‑Fi signal, but you can make your network useless to them.
1. Use strong encryption
- WPA3 if available
- WPA2‑AES minimum
- Never use WEP or “open” networks
2. Disable WPS
- WPS PIN attacks are still common.
3. Use a strong, unique Wi‑Fi password
- Long passphrases (16+ characters) resist brute‑force attacks.
4. Reduce signal bleed
- Move the router away from windows
- Lower transmit power if possible
- Use directional antennas in business environments
5. Hide management interfaces
- Change default router username/password
- Disable remote administration
- Use HTTPS for router login
6. Monitor for rogue devices
- Enterprise environments should use:
- Wireless intrusion detection systems (WIDS)
- Periodic wireless audits
Why Understanding War Driving Matters
War driving is a perfect example of how attackers gather intelligence quietly and legally (in many jurisdictions) before doing anything overt.
Wednesday, May 27, 2026
Evilginx: The Phishing Tool That Outsmarts MFA
Evilginx
Evilginx is a well-known adversary-in-the-middle (AiTM) phishing framework primarily used in cybersecurity testing and, unfortunately, by attackers to bypass modern authentication protections such as multi-factor authentication (MFA). Below is a detailed but safe, high-level explanation of how it works, why it’s dangerous, and how to defend against it.
What Evilginx Is
Evilginx is an open-source tool that serves as a reverse-proxy phishing framework. Instead of just tricking users into entering credentials on a fake page, it:
- Sits between the victim and the real login site
- Transparently relays data back and forth
- Captures credentials and session cookies in real time
Because of this, it’s far more advanced than traditional phishing pages.
How Evilginx Works (Conceptual Overview)
1. Reverse Proxy Setup
Evilginx creates a phishing domain that appears to be a legitimate site (e.g., a fake Microsoft, Google, or bank login page).
- The victim visits the attacker-controlled domain
- The tool proxies traffic to the real website
- The user sees what appears to be the real login page
2. Real-Time Credential Interception
When the user enters login details:
- Credentials are forwarded to the real service
- The attacker intercepts them simultaneously
No obvious error appears to the victim because the login actually works.
3. MFA Bypass via Session Hijacking
This is the key capability:
- After login, the legitimate site issues a session cookie
- That cookie proves the user has already authenticated (including MFA)
Evilginx captures that session cookie.
Result:
- The attacker can reuse the cookie
- They gain access without needing the password or MFA code again
4. Full Account Access
Using the stolen cookie, the attacker can:
- Log in to the victim’s account
- Operate as the legitimate user
- Bypass MFA protections entirely
Why Evilginx Is Dangerous
Traditional phishing vs Evilginx:
Evilginx is dangerous because it exploits trust in session-based authentication, not just passwords.
Key Concepts behind Evilginx
1. Adversary-in-the-Middle (AiTM)
Unlike man-in-the-middle attacks that intercept traffic passively, AiTM tools:
- Actively terminate and re-establish connections
- Control the entire session
2. Session Cookies
After login, websites issue session tokens:
- Stored in the browser
- Used instead of repeatedly entering credentials
Evilginx steals these tokens.
3. Phishing Domains & TLS
Modern phishing frameworks even use:
- Valid HTTPS certificates (e.g., Let’s Encrypt)
- Lookalike domains
This makes detection harder for users.
How to Defend Against Evilginx
Since Evilginx beats basic MFA, stronger protections are needed.
1. Use Phishing-Resistant MFA
Not all MFAs are equal.
Strong protection:
- FIDO2 / hardware security keys (e.g., YubiKey)
- Passkeys (WebAuthn)
Weaker:
- SMS codes
- Authenticator apps (can still be proxied)
Why:
- These bind authentication to the real domain and cannot be replayed.
2. Check URLs Carefully
Evilginx relies on tricking users into visiting a fake domain.
Watch for:
- Slight misspellings (e.g., micr0soft.com)
- Extra subdomains (login.microsoft.verify-user.com)
3. Browser-Based Protections
Modern browsers help:
- Safe Browsing warnings
- Built-in phishing detection
- Passkey/domain binding protections
4. Conditional Access & Zero Trust
Organizations can implement:
- Device-based authentication
- Behavioral analysis (location, device fingerprint)
- Session risk evaluation
5. Session Security Controls
Web apps can reduce risk:
- Short session lifetimes
- Token binding to device/IP
- Continuous re-authentication
6. User Awareness
Train users to:
- Avoid clicking on unknown links
- Verify login URLs directly
- Recognize suspicious login prompts
Ethical and Legal Context
Evilginx itself is not inherently illegal:
- Used in penetration testing and red teaming
- Helps organizations identify weaknesses
However:
- Using it without authorization is illegal in most jurisdictions
- Often associated with real-world phishing campaigns
Summary
Evilginx is a sophisticated phishing framework that:
- Proxies real websites instead of mimicking them
- Captures credentials and session cookies in real time
- Can bypass traditional MFA protections
- Enables attackers to hijack authenticated sessions