Sub topic 9
Common Attacks and Threats
This chapter assumes you know basic networking terms (IP address, port, router, Wi-Fi), can use the Windows command line, and have read the earlier chapters on the CIA triad and social engineering. Here you learn to match an attack to its description, name the control that counters it, and spot the common mistakes on the A+ Core 2 (220-1102) exam.
How to Think About Attacks
A threat is something that can cause harm. A vulnerability is a weakness the threat can use. An attack is the threat acting on the vulnerability. Each attack below damages at least one part of the CIA triad (confidentiality, integrity, availability). Naming that part helps you pick the right control.
| Attack | Main goal damaged | Typical countermeasure |
|---|---|---|
| Denial of service (DoS) | Availability | Firewall rules, rate limiting, upstream filtering |
| Distributed DoS (DDoS) | Availability | Traffic scrubbing, CDN, ISP help |
| On-path attack | Confidentiality, integrity | Encryption (HTTPS, VPN), certificate checks |
| Brute force | Confidentiality | Lockout, long passwords, MFA |
| Dictionary attack | Confidentiality | Unique, non-word passwords, lockout |
| Zero-day | All three | Defense in depth, patching once a fix exists |
| SQL injection | Confidentiality, integrity | Input validation, parameterized queries |
| Cross-site scripting (XSS) | Confidentiality, integrity | Output encoding, input validation |
Denial of Service and DDoS
A denial of service (DoS) attack floods a system with traffic or requests so legitimate users cannot reach it. One source sends the flood. A distributed denial of service (DDoS) attack uses many machines at once, often a botnet. A botnet is a group of infected computers that an attacker controls remotely.
A DDoS is hard to block by address, because the traffic comes from thousands of sources. A reflection or amplification variant sends small requests with a forged source address to public servers. Those servers then send much larger replies to the victim.
On a SOHO network, a single DoS source can be stopped with a firewall rule. A real DDoS needs help from your ISP or a traffic-scrubbing service.
On-Path Attacks
An on-path attack (older name: man-in-the-middle) places the attacker between two parties. The attacker can read and change traffic that each side thinks is going straight to the other. Common ways in are a rogue access point, an evil twin (a fake Wi-Fi network with a trusted name), or ARP poisoning on the local network.
Signs include certificate warnings in the browser and a Wi-Fi network that appears twice. Encryption is the main defense. HTTPS and a VPN make intercepted data unreadable. The user's job is to never click through a certificate warning.
Password Attacks
- Brute force tries every possible combination of characters. It is slow against long passwords but guaranteed to succeed given enough time.
- Dictionary attack tries common words and known passwords from a list. It is much faster than brute force when the password is weak.
- Credential stuffing tries username and password pairs leaked from one site against other sites. It works because people reuse passwords.
- Password spraying tries one or a few common passwords against many accounts. It avoids lockout because each account sees only a few failures.
The controls are the ones from the account policy chapter: length, uniqueness, lockout, and multifactor authentication. The exam often pairs "repeated failed sign-ins" with an account lockout policy. This command sets five failed attempts, a 30-minute lockout and a 30-minute counting window:
net accounts /lockoutthreshold:5 /lockoutduration:30 /lockoutwindow:30Lockout has a trade-off. An attacker can lock out real users on purpose, which is a small DoS against accounts. This is one reason MFA is a better main defense.
Zero-Day Attacks
A zero-day vulnerability is a flaw that the vendor does not yet know about or has not yet fixed. Defenders have had "zero days" to prepare. No patch exists, so patching cannot help. Layered controls reduce the damage: least privilege, application allow lists, network segmentation, up-to-date antimalware with behavior detection, and backups.
Do not confuse a zero-day with an unpatched known vulnerability. If a patch exists and you have not installed it, the attack is not a zero-day. The fix is to patch.
Injection Attacks
Injection happens when a program treats user input as code. The attacker types commands into a form field and the application runs them.
SQL injection targets a database. Suppose a login page builds this query from text typed in the form:
SELECT * FROM users WHERE name = '' OR '1'='1' -- ' AND password = '';The condition '1'='1' is always true, and -- turns the rest into a comment. The login check passes without a password. Defenses are input validation and parameterized queries, which keep data separate from code.
Cross-site scripting (XSS) injects script into a web page that other users then load. The script runs in the victim's browser with that site's trust, and can steal session cookies. Defenses are encoding output and validating input.
Both are mainly fixed by developers. A help desk technician's role is to recognize them and report them.
Other Threats to Recognize
- Spoofing forges an identity, such as a fake sender address or IP address.
- Insider threat is harm from someone with legitimate access, either malicious or careless. Least privilege and logging limit it.
- Non-compliant or unmanaged systems lack patches or required controls and weaken the whole network.
- End-of-life (EOL) systems no longer receive security updates, so every new flaw stays open. Replace or isolate them.
- Evil twin and rogue access point attacks are wireless on-path setups, covered in the wireless chapter.
Attack Flow at a Glance
The diagram shows how a typical on-path attack on public Wi-Fi works and where encryption stops it.
Common Errors on the Exam
- Mixing up DoS and DDoS. One source is DoS. Many sources is DDoS.
- Calling a patched-but-unapplied flaw a zero-day. A zero-day has no fix yet.
- Choosing a firewall for injection. A basic firewall does not read web form content. Input validation fixes it.
- Choosing lockout for password spraying. Spraying stays under the threshold. MFA and banned common passwords work better.
- Confusing brute force with dictionary. Brute force tries all combinations. Dictionary tries likely words.
Practice
Exercise
A user on airport Wi-Fi sees a browser certificate warning for their bank's site. Which attack is most likely happening, and what should the user do?
Show answer
An on-path attack, likely through an evil twin access point. The user should not continue past the warning, should disconnect from the network, and should use a VPN or a trusted connection.
Exercise
A company's web server becomes unreachable. Logs show millions of requests per minute from thousands of different IP addresses. Name the attack and say why blocking one address will not fix it.
Show answer
This is a DDoS attack. The traffic comes from many sources, often a botnet, so blocking one address removes only a tiny part of it. The company needs upstream filtering or a traffic-scrubbing service.
Exercise
An attacker tries the password "Summer2026!" against 500 accounts, one attempt per account. Why does a lockout threshold of five attempts not stop this, and what control helps?
Show answer
This is password spraying. Each account sees only one failure, which is below the threshold. Multifactor authentication, banned common passwords, and monitoring for failures across many accounts help.
Exercise
Vendor X has not released a fix for a flaw that attackers are already using. Is this a zero-day, and what can you do?
Show answer
Yes. Because no patch exists, you reduce risk with layered controls such as least privilege, segmentation, behavior-based antimalware and backups, then patch when the fix is released.