Ask where your attack surface ends and a lot of IT teams will still point at the firewall. That answer described a real boundary once. Today a client file can sit in SharePoint, sync to a laptop in a hotel, get read by an AI assistant, and be reachable through an app someone approved years ago, and none of that crosses your firewall in a way you would notice.
Attack surface analysis is the work of finding every point where someone could get in, cause an effect, or pull data out, then deciding which points deserve attention first. The method hasn’t changed much. Where the points live has. For a midsize firm on Microsoft 365 and Azure, they are mostly identities, permissions, connected apps, and the assistants and agents that now act on a user’s behalf.
What attack surface analysis covers
NIST defines an attack surface as the set of points on the boundary of a system, a system component, or an environment where an intruder could try to get in, affect the system, or extract data. The same glossary entry appears in several NIST publications, including SP 800-53 Rev. 5.
OWASP treats the exercise as a way to map which parts of a system need review and testing for vulnerabilities, and as a signal for when a change calls for a fresh threat assessment. Its guidance is written for applications and concentrates on external attacks, so a firm has to stretch it. The logic holds for a Microsoft 365 tenant, a SharePoint estate, or an agent platform just as it holds for a web app.
Why the perimeter stopped being the boundary
NIST SP 800-207 states the shift directly. Zero trust, as the standard describes it, grants no automatic trust to an asset or account because of where it sits on the network, and it treats company-owned and personally owned devices the same way. NIST ties that position to remote work, bring-your-own-device policies, and cloud-hosted assets that sit outside an enterprise-owned network boundary. Protection moves from network segments to resources: assets, services, workflows, and accounts.
What that means for the analysis is simple. A map drawn around network edges misses most of what an attacker can reach. Start from the resources, then ask who or what can act on them.
What the surface looks like for a midsize firm now
Identities and app consent
Every account is an entry point. So is every app that holds access on an account’s behalf. Microsoft describes consent as a user authorizing an app to reach protected resources for them, and what the user sees depends on tenant policy, the user’s role, and the permissions the app requests. Admins can disable user consent, turn on an admin consent workflow, or grant consent directly. Users can review and remove non-Microsoft apps attached to their own account at myapps.microsoft.com.
That leaves a question worth answering for the whole tenant, not one user at a time. Has anyone reviewed which third-party apps hold access to firm data, and is user consent still switched on?
Permissions inside Microsoft 365
Microsoft says Copilot surfaces only data that an individual user has at least view permission for, and it tells admins to rely on Microsoft 365 permission models, such as SharePoint permissions, to make sure the right people have the right access. Read that from the other direction. Copilot doesn’t create new access, but it makes existing access easy to use. A site shared too widely years ago was an obscure problem. With an assistant that can retrieve everything a user can see, it becomes a search problem.
That makes permission sprawl part of attack surface analysis, not a separate cleanup project. If you find it, permissions remediation for Microsoft 365 is where the work lands.
Cloud and storage configuration
Storage accounts, databases, and cloud settings enlarge the surface through configuration, not code. One public setting on one container can expose more than a software bug would. Two of our guides cover the common gaps in what cloud misconfiguration looks like and a single misconfigured Azure blob.
SaaS and shadow IT
Applications nobody inventoried are the hardest to analyze, because they never enter the map. Microsoft Defender External Attack Surface Management is built around that problem. It starts from known legitimate assets and works outward through observed connections to find infrastructure you may not be monitoring.
Look at what it covers, though. The asset types Microsoft lists are domains, IP address blocks, hosts, email contacts, autonomous system numbers, and Whois organizations. That is the outside view of your footprint. It doesn’t describe an overshared SharePoint library or an employee who connected a personal AI tool to work data, so you need an internal view as well. Our guides on shadow IT and shadow AI cover that side.
AI assistants and agents
Assistants and agents add a surface that behaves like a user. In the Power Platform default environment, Microsoft says all licensed users have the Environment Maker role, and that includes people holding Microsoft 365 licenses. Microsoft also says the default environment shouldn’t be used for production workloads. Put those together and any licensed employee can build automation in the one environment Microsoft says to keep production work out of.
Inventory what has been built there, which connectors it uses, and what it can send outside the firm. Controls that limit what leaves, such as data loss prevention implementation, belong in that conversation. Prompt injection adds another route, because content an assistant reads can try to steer what it does. Our prompt injection examples show how that looks, and the guide to zero trust agent deployment explains why permission cleanup has to come before the agents.
How to run the analysis
OWASP’s method translates well if you keep its sequence and swap in tenant-level equivalents.
- Map entry points by type. OWASP groups points by function, design, and technology, counts the points in each group, and picks representative cases to review. In a tenant, the groups are sign-in paths, connected apps, guest and external sharing, public-facing applications, storage, and agent platforms.
- Rank the remote and the extreme. OWASP says to focus on interfaces with outside systems and the internet, especially anonymous or public access, and to treat unauthenticated users and highly privileged administrators as the two extremes that matter most. Admin accounts and anything reachable without signing in go to the top.
- Check what stands in front of each high-ranking point. OWASP reviews compensating controls such as firewalls and intrusion detection. Do the same for each risky entry point, and test that the control works instead of assuming it does.
- Hunt for leftovers. OWASP warns that old features, backups, and unused code enlarge the surface. The tenant version, which is my judgment and not OWASP’s wording, is abandoned sites, stale guest accounts, and apps nobody owns anymore.
- Repeat when something changes. OWASP asks what has changed, what is being done differently, and what holes might have opened, and it flags changes to authentication, access control, and core architecture for review. Rolling out an AI assistant or an agent platform qualifies.
What you end up with is a ranked list of entry points, each with an owner and a next step. Scanners find known flaws on assets you point them at. The analysis decides what to point them at.
Where to start
If you want a read-only look at where AI and permissions have widened your exposure, the free AI Readiness Snapshot is a 60-minute working session followed by written findings and a 30-minute review. Read-only, no changes, no software.
If you would rather talk it through first, you can contact us for a discovery conversation.
Frequently asked questions
What is attack surface analysis?
Attack surface analysis is the process of finding every point where an attacker could enter a system, cause an effect, or extract data, then ranking those points so the riskiest get reviewed first. For a firm on Microsoft 365, that includes identities, connected apps, permissions, cloud settings, and AI assistants.
How is attack surface analysis different from a vulnerability scan?
A vulnerability scan checks assets you already know about for known flaws. Attack surface analysis comes first. It asks what exists, what can be reached, and by whom, then ranks which points deserve scanning, testing, or removal. A scan without that map only covers what someone remembered to include.
Does attack surface analysis cover Microsoft 365 Copilot?
Yes, through permissions. Microsoft says Copilot surfaces only data a user has at least view permission for. So content shared too widely becomes easier to retrieve once an assistant is in use. Reviewing SharePoint and Teams permissions belongs in the analysis before and after a Copilot rollout.
How often should a midsize firm repeat attack surface analysis?
OWASP gives no fixed interval. It ties review to change, such as changes to authentication, access control, or core architecture. A practical rule is to repeat the analysis when you add an identity provider, roll out an AI assistant or agent platform, or connect a new business system.
Who should own attack surface analysis at a midsize firm?
OWASP says security architects and penetration testers usually perform it, while the people who build and change systems should understand and watch the surface. A workable split at a midsize firm is that the IT lead owns the inventory and an experienced security practitioner, internal or outside, challenges the ranking.
Primary sources
- NIST Computer Security Resource Center, Glossary: Attack Surface
- NIST SP 800-207, Zero Trust Architecture (August 2020)
- OWASP Cheat Sheet Series, Attack Surface Analysis Cheat Sheet
- Microsoft Learn, What is Microsoft Defender External Attack Surface Management
- Microsoft Learn, Data, Privacy, and Security for Microsoft Copilot
- Microsoft Learn, Environments overview for Power Platform
- Microsoft Learn, Understanding the Microsoft Entra application consent experience



