Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. The attack
surface of a software environment is the code within a computer system
that can be run by unauthenticated users. This includes, but is not
limited to: user input fields, protocols, interfaces, and services. One
approach to improving information security is to reduce the attack
surface of a system or software. By turning off unnecessary
functionality, there are fewer security risks. All code has a nonzero
probability of containing vulnerabilities. By having less code available
to unauthenticated users, there will tend to be fewer failures. Although
attack surface reduction helps prevent security failures, it does not
mitigate the amount of damage a hacker could inflict once a
vulnerability is found.