Free tech learning for everyone, from basics to pro

Cyber Security FundamentalsCyber SecurityBeginner

Attack surface and attack vectors: how breaches start

In short: The attack surface is every point where an attacker could try to get in. An attack vector is the route actually used, such as phishing or an exposed remote access service. Shrinking the surface and closing common vectors prevents most breaches.

Surface and vector

Your attack surface is the total of all the places an attacker could try to interact with or misuse: internet-facing servers, user accounts, cloud storage, staff inboxes, Wi-Fi networks, even the reception desk. An attack vector is the specific path used in an attack, for example a malicious email attachment or a password-guessing attack against a VPN login.

A useful way to think about it: the surface is the number of doors and windows in a building; the vector is the one the burglar actually used.

Parts of the attack surfaceAttack surfaceall ways inDigitalservers, apps,APIsCloudstorage,consolesHumanstaff, helpdeskPhysicaloffices,devicesSupply chainvendors,software
Figure 1. The attack surface has digital, cloud, human, physical and supply chain parts.

Common attack vectors

VectorHow it worksMain defence
PhishingTricks a user into clicking, opening a file or entering a passwordEmail filtering, MFA, awareness
Exploiting public servicesAttacks a known flaw in a VPN, firewall or web appFast patching, reducing exposure
Stolen or weak credentialsLogs in with leaked or guessed passwordsMFA, password checks, monitoring
Exposed remote accessRDP or SSH open to the internetVPN or zero trust access, no direct exposure
Misconfigured cloudPublic storage buckets, open admin consolesPosture management, secure defaults
Supply chainCompromise of a supplier, update or libraryVendor assessment, least privilege for suppliers
Removable media and physicalInfected USB drives, tailgating into officesDevice control, visitor procedures

Why surfaces grow

Organisations rarely mean to expand their exposure. It happens through ordinary change: a test server left online after a project, a marketing team signing up for a new SaaS tool without telling IT (shadow IT), a firewall rule opened "temporarily" years ago, or remote workers connecting from home networks. Mergers and new suppliers add more. If you do not have an accurate inventory, you cannot protect what you do not know exists.

Reducing your exposure

Managing exposureDiscoverfind every assetAssesswhat is exposed?Reduceremove, close, patchMonitorwatch for change
Figure 2. Attack surface management is continuous, because new systems and services appear all the time.
  1. Inventory everything. Keep a list of hardware, software, cloud accounts, domains and public IP addresses.
  2. Check from the outside. Review what the internet can see: open ports, login pages, certificates and DNS records. Scan only ranges you own or have written permission to test.
  3. Remove what is not needed. Shut down unused services, delete old accounts and close forgotten firewall rules.
  4. Harden what stays. Patch, apply secure configuration baselines and require MFA on every remote login.
  5. Put services behind controls. Admin interfaces should only be reachable over a VPN or a zero trust access gateway.
  6. Monitor for change. Alert when new public services or cloud resources appear.

Tip: a common exam and interview question is "how would you reduce the attack surface of a server?" Good answers include removing unused software and services, closing ports, applying least privilege, patching and enabling logging.

Practice

What is the difference between an attack surface and an attack vector?
The attack surface is all possible points of entry; an attack vector is the particular path used in an attack.
Give two examples of shadow IT and why they increase risk.
For example, a team using an unapproved file-sharing service or a personal cloud account for work data. IT cannot secure, monitor or back up what it does not know about.
A company has RDP open to the internet on a server. Suggest two ways to reduce this exposure.
Close the port to the internet and require access through a VPN or zero trust gateway with MFA; restrict source addresses and monitor logins.

Key takeaways

  • The attack surface is every point an attacker could try to use.
  • An attack vector is the route actually used, such as phishing or an unpatched service.
  • Surfaces grow through shadow IT, forgotten servers and temporary rules.
  • Inventory, remove, harden, gate and monitor to shrink exposure.
  • Most initial access comes from phishing, stolen credentials and unpatched public services.
Tracks your learning on this device only. See your progress on the learning paths.

About the author

Mohamed Fayas

Founder of FM TecHub. CCNA certified, with a BTEC HND in Network Engineering, and BEng (Hons) in Computer Networking and Cloud Security. He writes practical, plain-English guides on networking, security and cloud.

More about the author

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Stay up to date by email

New notes, tools and security news from FM TecHub, explained simply. Free.

We only use your email to send these updates. See our privacy policy.