Attack Surface Explained for Non-Technical Website Owners

Attack Surface Explained for Non-Technical Website Owners

If you own a website but don’t write code, you’ve probably seen the term attack surface in a report from your developer or hosting provider, with little explanation attached. Your attack surface is every point where someone outside your organization can interact with your site, and each of those points is a possible way in. This article explains what makes up a website’s attack surface, how it grows without anyone noticing, and what you can do to shrink it without becoming a security engineer.

What Attack Surface Means in Plain Terms

Think of your website as a building. The front door is obvious. The building also has side doors, windows, a loading dock, a forgotten basement hatch, and a spare key someone gave a contractor back in 2021.

All of those count as attack surface. On a website, that means login pages, contact forms, search boxes, file upload fields, plugins, APIs, subdomains, third-party scripts, old test sites and admin accounts. An attacker doesn’t need all of them. One unlocked door is enough.

Where a Website’s Attack Surface Actually Comes From

Most owners think of the attack surface as the pages they can see. Those visible pages are usually the smallest part.

A typical small business WordPress site with 25-30 plugins can expose dozens of endpoints that nobody on the team knows about: REST API routes, XML-RPC, AJAX handlers and plugin settings pages. Year after year, Patchstack’s WordPress security reports find that most newly disclosed vulnerabilities are in plugins, not in WordPress core. Every plugin you install is code you didn’t write and can’t easily review.

A lot of the surface also sits outside the main site. Say a marketing agency set up shop.example.com for a 2022 campaign. The campaign ended and the hosting was cancelled, but the DNS record was never removed. That’s the classic setup for a subdomain takeover, where someone else claims the abandoned service and serves their own content under your domain name.

Third-party JavaScript is part of it too. Chat widgets, analytics tags, A/B testing tools and payment scripts run in the visitor’s browser with the same privileges as your own code. If one of those vendors is compromised, your site is too.

A Scenario Agencies Will Recognize

A regional retailer runs a WooCommerce store. The developer who built it left 18 months ago. The owner logs in weekly to update products and assumes everything is fine because the site loads and orders keep arriving.

A security audit shows a different picture. It finds a staging copy at dev.example.com with no password protection that holds a clone of the production database, including around 4,000 customer records. Three administrator accounts still belong to former contractors. A slider plugin was last updated in 2020. The /wp-json/wp/v2/users endpoint lists every username on the site.

None of this was a hack. Each item was a door left open, and the staging site was a GDPR problem before any attacker showed up. Closing all of it took about two days of developer time. Recovering from a breach through any one of those gaps would have taken weeks.

Myth: “My Site Is Too Small to Be a Target”

This is the most common misconception among small business owners, and it comes from a wrong picture of how attacks work. Very few attackers choose a target and then look for weaknesses. They choose a weakness and then look for targets.

Tools like ZMap and Masscan can scan the entire IPv4 address space in under an hour. Shodan and Censys index exposed services continuously. Certificate transparency logs, searchable through crt.sh, publish every new subdomain that gets a TLS certificate. When a flaw in a popular plugin is disclosed, bots often start probing for it within hours. Your traffic numbers don’t matter, because how hackers find vulnerable websites depends on what software you run, not on who you are.

How to Reduce Your Website’s Attack Surface Step by Step

The goal isn’t zero attack surface. A website with no forms, no logins and no scripts isn’t much use to anyone. The goal is to remove what you don’t need and keep watching what you keep.

Step 1: Build an inventory. An experienced security auditor starts with a list, not with fixes. Ask your developer or hosting provider for a written list covering these five areas:

Domains and subdomains – every hostname with a DNS record, including old ones
Software – the CMS version, plugins and themes, with the date each was last updated
Accounts – every admin, editor and API user, and who each one belongs to
Third-party scripts – every external JavaScript file loaded on public pages
Non-production copies – staging, development and backup sites

Step 2: Delete what isn’t used. In WordPress, a deactivated plugin is not the same as a removed one. Its files stay on the server, and some of them can still be requested directly. If nobody can explain why a plugin is there, delete it. If a plugin is still needed but hasn’t been updated in over a year, follow the process for how to spot and replace abandoned plugins.

Step 3: Restrict what must stay. The admin login has to exist, but it doesn’t have to be open to the whole internet. Two-factor authentication, an IP allowlist and HTTP basic auth on staging sites each take less than an hour to set up.

Step 4: Monitor continuously. Your attack surface changes every week, whether or not anyone plans it. Daily website security scanning catches new vulnerabilities in software you already run, expiring SSL/TLS certificates, missing security headers and newly exposed files before attackers find them.

Some exceptions apply. On a fully hosted platform like Shopify or Squarespace, the vendor handles the server and platform code. Your surface narrows to installed apps, third-party scripts, DNS records and admin accounts. If you take card payments, PCI DSS 4.0 requirement 6.4.3 has required a documented, authorized inventory of payment page scripts since March 2025, so for you the inventory step is a compliance obligation, not an optional extra.

Common Mistakes That Keep the Attack Surface Wide Open

Assuming the firewall covers everything. A web application firewall filters known attack patterns. It doesn’t patch an outdated plugin’s broken permission check, and it does nothing for a staging site hosted on a different server.

Scanning only the main domain. Owners often check www.example.com and stop there. The forgotten subdomain, the old landing page builder and the agency’s test environment are usually where real problems sit.

Treating the inventory as a one-time project. Marketing teams add tracking tags through Google Tag Manager without asking a developer. Contractors create accounts and nobody removes them when the work ends. A list that was accurate in January is usually wrong by June.

FAQ

Is attack surface the same thing as a vulnerability?
No. Attack surface is exposure: everything an outsider can reach. A vulnerability is a specific weakness in one of those reachable points. A smaller attack surface means fewer places where vulnerabilities can hide.

How often should a website’s attack surface be reviewed?
A full manual inventory every quarter works for most small and mid-sized sites. Automated vulnerability scanning should run daily. Also do a review after any redesign, platform migration or change of agency.

Can a non-technical owner do this without a developer?
Partly. You can review admin accounts, ask for the inventory, remove plugins you know aren’t used, and turn on two-factor authentication yourself. Code-level fixes, DNS cleanup and server configuration still need someone technical.

The Practical Takeaway

You don’t need to understand SQL injection or XSS to manage your attack surface. You need to know what you have, remove what you don’t use, and keep checking as things change. Start this week by asking your developer for the five-part inventory above. The gaps that list reveals are almost always cheaper to close now than after someone else finds them.