Study guide · Vulnerabilities and Attack Surfaces
Vulnerabilities and Attack Surfaces
This page is about the weaknesses attackers actually get in through. You will learn what an attack surface is and how it grows. Then you will work through the typical kinds of vulnerabilities: legacy systems, misconfigurations, coding flaws, secrets in repositories, weaknesses in virtualization, cloud, mobile devices and wireless, and weak identities. The running example is once again a mid-sized online retailer with a web shop, a warehouse, and its own IT team. How vulnerabilities are named and rated, that is CVE, CWE, and CVSS, is covered in the course “Threat Actors and Threat Vectors”.
What makes up the attack surface
The attack surface is the sum of all points where an attacker can get a foothold. It includes open ports, running services, accounts, interfaces, devices, and cloud services. Each of these points can have a vulnerability. What is not running cannot be attacked. That is why shutting down unneeded ports and services is part of the basic hardening of every system.
The attack surface often grows without anyone noticing. Unmanaged systems are not in any inventory. Think of forgotten test servers or old devices in a corner of the warehouse. They are neither patched nor monitored, and nobody reviews their configuration or access. IT cannot protect what it does not know about. A complete asset inventory is therefore the foundation of all vulnerability management.
Shadow IT means systems and services that a department uses without IT's approval or knowledge. One example is a free cloud storage service for customer data. Such services are not covered by security controls or backups, and often not by a data processing agreement. A ban alone rarely helps. Shadow IT usually appears because staff lack suitable tools or because approved solutions are too slow. What works is good alternatives, an easy request process, and technical detection, for example through a cloud access security broker or proxy logs.
A rogue device is an unauthorized device on the company network. If an employee plugs a personal wireless router into a network jack in the office, they may open an unprotected way in from outside. Two measures help. With 802.1X on the switch ports, only an authenticated device gets network access. And regular searches for unknown wireless access points, for example with a wireless IPS, find foreign access points.
Legacy and unpatched systems
With software vulnerabilities, what matters is whether a fix exists and whether one is still coming. You need to tell three cases apart.
- An unpatched system has a known flaw for which the vendor has already released a patch. It just has not been installed yet. Many successful attacks use flaws that could have been fixed months ago.
- With a zero-day vulnerability, there is no patch yet. The name says that defenders had zero days to prepare. Attackers exploit the flaw before the vendor and the public know about it.
- A legacy system, also called end of life, is no longer maintained by its vendor. After support ends, no more patches appear. Every newly discovered flaw stays open for good, and attackers know it.
Unpatched systems call for orderly patch management. No patch helps against zero-days; behavior-based detection, segmentation, and least privilege do. Legacy systems are replaced. If that is not possible, they are shielded with compensating controls.
Misconfigurations
A misconfiguration is a vulnerability that sits not in the code but in the settings. A database server that is reachable from the internet with the vendor's default password after installation is a classic example. Misconfigurations are among the most common causes of security incidents. Typical cases are these:
- Enabled default accounts with the vendor's password.
- Directory listing on a web server, which shows every file in a folder.
- Exposed admin interfaces and services that were opened up without need.
- Overly broad permissions in cloud roles.
They come from default values, convenience, or missing reviews. Hardening guides and benchmarks such as the CIS Benchmarks describe the secure target state. Automated configuration checks find deviations.
Fixed once does not mean fixed for good. An audit at the retailer finds firewalls disabled on 30 percent of the servers, even though the standard requires them. Manual fixes drift again over time. The only lasting remedy is to enforce the configuration centrally and report deviations automatically. Group policies, configuration management, and tools that enforce a desired state do exactly that.
Operating system vulnerabilities affect the kernel, drivers, services, and the operating system's default configuration. Typical examples are kernel flaws that let a normal account gain administrator rights, and insecure default settings after installation. Flaws in applications or cloud configurations are separate categories.
Cryptographic vulnerabilities arise when encryption is weak or used incorrectly. If a web server still allows SSL 3.0 and weak cipher suites, downgrade attacks become possible. Servers should only offer current TLS versions and strong cipher suites. Common causes are outdated algorithms such as MD5 or DES and weak random numbers during key generation. Long keys and key rotation, on the other hand, are protective measures, not causes.
A well-known pattern in devices shows how much randomness matters. A device generates its TLS keys on first boot, before enough randomness is available. Experts call this low entropy. As a result, thousands of devices end up with the same keys. Anyone who analyzes a single device then knows many other devices' keys. They can decrypt those devices' connections or impersonate them.