It's not accurate to generalize that Layer 4 (L4) attacks typically target home connections, while Layer 7 (L7) attacks exclusively focus on webservers. L4 and L7 attacks can target a variety of network resources, and their choice depends on the attacker's objectives and the vulnerabilities they seek to exploit.
While L4 attacks can affect home connections, they can also impact enterprise networks, cloud services, or any network infrastructure that relies on the Transport Layer protocols like TCP or UDP. These attacks aim to overwhelm network resources, such as bandwidth or server connections, by flooding the target with a high volume of traffic or exploiting protocol vulnerabilities.
L7 attacks, on the other hand, predominantly target application-specific vulnerabilities and often focus on webservers or other application servers. These attacks aim to exhaust application-level resources by targeting the application layer protocols specific to web services, file transfers, email, or other network-based applications. L7 attacks can exploit vulnerabilities in the application code or overwhelm the server with requests, potentially affecting the availability or performance of the targeted service.
It's essential to note that both L4 and L7 attacks can be launched against various targets, including home connections, enterprise networks, cloud services, or any networked system accessible over the internet. The choice of attack type depends on the attacker's goals and the vulnerabilities they intend to exploit in the target system. Network administrators and security professionals must employ appropriate measures to mitigate the impact of both L4 and L7 attacks, regardless of the nature of the target network or application.