Back to Home

ASR Logic and Methodology

Back to Index

“Security isn’t just about controls — it’s about choices.”

Attack Surface Reduction (ASR) is a development methodology, not a product you install. What it asks for is deliberate subtraction in how we design, build, ship, and maintain systems.


1. The Subtraction Mindset

Most organizations answer a breach with more: more monitoring, more scanning, more dashboards, more tools. None of that touches the root cause. The threat is excess — excess code, excess access, excess services, excess complexity.

ASR inverts it: complexity gets eliminated, not managed. Shut down unneeded services, delete dormant credentials, remove unused features, and avoid introducing fragile or bloated dependencies.

“You don’t need to secure what you don’t expose.”

Example in practice: A team running 15 microservices finds that 3 of them handle edge cases worth less than 2% of traffic. They fold those three into the main services and decommission them, rather than patch, monitor, and maintain them separately. Attack surface down 20%, zero feature loss.

Concrete action: Run docker ps or kubectl get pods in production. For each service, ask: “What happens if we turn this off for 24 hours?” If the answer is “probably nothing,” that is your first candidate.

The same instruction now arrives from outside the security team. In May 2026 the NCSC’s chief technology officer, Ollie Whitehouse, told organisations to prepare for an AI-driven “patch wave” by shrinking what an attacker can reach, not by patching everything in it: “All organisations must take steps to identify and minimise their internet-facing (and other externally-exposed) attack surfaces as soon as is possible.” Where a system is out of support the answer is not a patch — “patching alone will not always suffice”, he wrote, and “organisations will need to replace technologies, or bring them back within support”. NCSC, Preparing for a ‘vulnerability patch wave’ (1 May 2026)

Five weeks after Whitehouse’s blog, the EU’s three financial supervisors published a statement on frontier AI model risk, and its annex carries the same instruction as an example action. Under Reduce the attack surface they list: “Eliminate unnecessary exposures, enforcing segmentation, and decommissioning legacy systems.” The reason given is speed: “A larger attack surface provides more entry points for cyberattacks, which highly capable AI models may rapidly scan and analyse to identify weak spots, misconfigurations, or unpatched vulnerabilities at scale.” The annex is honest about its own weight: “This Annex does not establish additional requirements.” So: supervisors describing what works rather than ordering it, and naming deletion as the control. EBA, EIOPA and ESMA, Toward a consistent and risk-based approach for ICT risks from frontier AI models (31 July 2026)

Case studies: APRA decommissioned the system it used to collect bank data · Stack Overflow, 209 million requests a day, nine web servers · Vercel deleted 80% of its data agent’s tools and it started finishing the queries

Further reading:


2. Trust and Complexity Are Enemies

Modern systems trust too much, too easily. Your app trusts a CI job that trusts a cloud role that trusts an identity provider, and nobody wrote down where the chain stops. Each new tool, abstraction, or library is another attack surface, another trust boundary, and somewhere for a misconfiguration to hide.

Transitive trust is the enemy. The replacement is explicit trust boundaries, single-purpose roles and tokens, no implicit privileges, and flat systems instead of deep dependency chains.

Case studies: SolarWinds distributed a compromised update to 18,000 customers

Configuration example — Bad vs. Good IAM:

# BAD: Transitive trust, overly permissive
role: ci-deploy
permissions:
  - "*:*"  # Full access to everything

# GOOD: Explicit, scoped
role: ci-deploy-webapp
permissions:
  - s3:PutObject
    resource: "arn:aws:s3:::production-webapp/*"
  - cloudfront:CreateInvalidation
    resource: "arn:aws:cloudfront::123456789:distribution/E1234"

If you can’t explain how a system works in three sentences, you probably can’t secure it either.

Further reading:


3. Intentional Development Practices

Every dependency, service, and API endpoint should be a decision someone made, not a default they inherited.

Code and Dependencies

Write the internal code yourself instead of importing dozens of npm packages. Pick one tool per function rather than five alternatives, and keep the number of moving parts low enough that you can patch, monitor, and reason about all of them.

Example: Instead of pulling in a 50KB library to parse date strings, write 20 lines that handle your three specific date formats. You’re down a dependency, you understand the code completely, and there is nothing transitive to audit.

Development Environment Discipline

Too many development machines carry redundant SaaS tools, dozens of CI plugins, unused IDE extensions, and a bloated local toolchain. Keep the local environment minimal, lock the build system’s versions, run fewer and deeper integrations, and drop anything that needs elevated access to install — root installers, kernel modules.

Audit your developer machine:

# macOS: See what's listening
sudo lsof -iTCP -sTCP:LISTEN -n -P

# Linux: Check installed packages
dpkg -l | wc -l  # How many packages?
apt list --installed | grep -i dev  # Development tools

Ask yourself: Do I know what each of these does? When’s the last time I used it?

Case studies: event-stream, the npm package thousands of projects trusted without looking · CISA and nine partner agencies made security a prerequisite to features

Further reading:


4. Context-Aware Minimalism

A side project can experiment freely. Production carries the long tail: maintenance, monitoring, upgrade risk, supply chain attacks.

The principle: Don’t bring 12 vendors and 30 dependencies to solve a problem 3 teammates could handle with code you own.

That isn’t an argument for reinventing every wheel. Critical systems minimize dependencies, prefer mature libraries, and own their core logic. Internal tools can afford more experimentation, but still avoid bloat. Prototypes use whatever gets to validation fastest.

Decision framework:

System CriticalityDependency ToleranceVendor IntegrationMonitoring Burden
Production (user-facing)Very lowMinimal, vettedFull observability required
Internal toolsModerateAcceptable if reputableBasic monitoring
Prototypes/POCsHighAcceptableMinimal

Example: A payment processing system should not run on a web framework released last year with 200 dependencies. It should run on something battle-tested, with a decade of patches behind it. The internal admin dashboard can get away with more.

Further reading:


5. Cultural Transformation

ASR is a cultural shift as much as a technical one. Teams have to say no to feature requests that don’t earn their place, justify every new service, tool, and integration with a business case, and treat deleting code as a contribution.

Security improves most when simplicity becomes a habit, not a constraint.

How to shift culture:

  1. Make deletion visible: Track “lines of code removed” in sprint reviews
  2. Require justification: a new dependency needs a written explanation of why the existing solutions won’t work
  3. Schedule cleanup sprints: reserve time for removing unused features, credentials, and services
  4. Reward simplicity: Recognize engineers who simplify systems, not just those who build new ones

Case studies: Basecamp says no to most feature requests · The US Navy terminated 11 legacy systems and saved more than $100 million

Metrics that matter: active services, dependency count, IAM roles, and the time it takes to understand a new codebase. The direction you want is down on all four.

Further reading:


6. The Bottom Line

“You don’t need 100% visibility if your footprint is 10% of what it used to be.”

Deliberate subtraction outperforms defensive sprawl. Design around what we don’t build, don’t expose, and don’t trust by default, and the result is a system that is inherently more secure.

The ASR promise: fewer breaches because there’s less to breach, faster incident response because there’s less to investigate, lower costs because there’s less to maintain, and better sleep.

Getting started checklist:

  1. ☐ Audit your running services and kill 20%
  2. ☐ Review your dependencies and remove unused ones
  3. ☐ Delete dormant user accounts and service credentials
  4. ☐ Turn off unused features and APIs
  5. ☐ Consolidate redundant tools and integrations
  6. ☐ Document what you removed and why

Build less. Expose less. Trust less.

Further reading: