Sub topic 8
Common Attacks and Threats
This chapter assumes you know the CIA triad from the fundamentals chapter, basic networking terms such as IP address and router, and how to use the Windows command line. The goal is to match an attack scenario to its name and to the control that counters it.
Attacks That Target Availability
A denial of service (DoS) attack floods a system or network with traffic or requests until legitimate users cannot reach it. A distributed denial of service (DDoS) attack does the same from many compromised machines at once, often a botnet. Because the attack comes from many sources, blocking one IP address does not stop it.
Common defenses are rate limiting, upstream filtering by the ISP or a mitigation service, and keeping spare capacity.
Attacks That Target Confidentiality and Integrity
An on-path attack (formerly called man-in-the-middle) places the attacker between two parties. The attacker can read and alter traffic. Rogue access points and "evil twin" Wi-Fi networks are common ways to get into that position. Encrypted protocols such as HTTPS and VPNs, plus avoiding unknown public Wi-Fi, reduce the risk.
An SQL injection attack sends database commands through a web form field. It works when the application passes user input to the database without validating it. Input validation and parameterized queries are the fixes. Cross-site scripting (XSS) is related. The attacker injects script into a page that other users then load in their browsers.
Attacks That Guess or Reuse Credentials
Brute force tries every possible password. A dictionary attack tries a list of likely words. Credential stuffing tries username and password pairs leaked from other breaches, relying on password reuse. Account lockout, multifactor authentication and long unique passwords counter all three.
The lockout policy below allows five failed attempts. It then locks the account for 30 minutes:
net accounts /lockoutthreshold:5 /lockoutduration:30 /lockoutwindow:30Attacks on Unknown Flaws
A zero-day attack exploits a vulnerability that the vendor has not yet patched, so no fix exists when the attack begins. Patching cannot stop a zero-day, so layered controls matter. Examples are a firewall, endpoint protection and least privilege. After the vendor releases a patch, apply it promptly.
An insider threat is a current or former employee or contractor who misuses legitimate access. Least privilege, logging and prompt account removal at termination limit the damage.
Matching Scenarios to Attacks
| Scenario | Attack | Best control |
|---|---|---|
| A web server stops responding under millions of requests | DDoS | Traffic filtering, rate limiting |
| A user on café Wi-Fi sees a certificate warning and their traffic is altered | On-path | VPN, HTTPS |
| A login form accepts `' OR 1=1 --` and shows all accounts | SQL injection | Input validation, parameterized queries |
| Thousands of sign-in attempts use passwords from another breach | Credential stuffing | MFA, unique passwords |
| Malware spreads on the day a flaw is disclosed, with no patch | Zero-day | Defense in depth, then patching |
Exercise
Attackers try a list of email and password pairs taken from a retailer's breach against your company's VPN login. Name the attack and give two controls that reduce the risk.
Show answer
This is credential stuffing, a form of password attack that relies on password reuse. Two controls are multifactor authentication and an account lockout policy. Requiring unique passwords also helps.