The Segmented Nerd

· Josh Green

Service Accounts Are the Lateral Movement Surface No One Talks About


Every segmentation project locks down workload-to-workload access. Almost none of them scope what service accounts can reach. That gap is where lateral movement lives.

Service Accounts Are the Lateral Movement Surface No One Talks About

Walk through the deliverables of a typical microsegmentation engagement and you’ll find detailed documentation on application-tier isolation: which workloads are in which zones, what ports are permitted between them, what the default-deny catches. The work is real and it matters.

What you usually won’t find is equivalent documentation on service accounts. How many service accounts exist in the environment. What they’re permitted to reach. Whether their reach has been scoped by policy or whether they inherited the same broad access that existed before segmentation was deployed.

This is a gap, and it’s the gap that lateral movement campaigns exploit most reliably. An attacker who compromises a workload and pivots to a service account with broad, unscoped access has effectively bypassed the segmentation that was supposed to contain them. The workload-to-workload policy is enforced perfectly. The service account associated with that workload can reach twenty-five other systems anyway, because nobody audited it.

Why service accounts survive segmentation projects untouched

Service accounts get created to solve immediate problems. A monitoring agent needs to reach all the hosts it monitors. A deployment pipeline needs to push to application servers. A backup job needs to read database exports. Each creation is locally justified and quickly forgotten.

The lifecycle from there is typically: the service account is created with enough permissions to do its job, often with a few extra permissions added when the initial set turned out to be too narrow, and then it stays in that state indefinitely. Password rotation may or may not happen. MFA enrollment is usually not applicable. The account accumulates network reach over time as services it touches expand, and no one reviews whether the original scope is still appropriate.

When microsegmentation gets deployed, the policy work focuses on network paths between workloads. Service accounts often don’t map cleanly onto the network-layer model — they represent identities that can establish connections from many different network locations, and the policy question isn’t “can this IP reach that IP” but “can this identity reach that system.” That’s a different enforcement model, which is exactly why service account reach tends to fall through the gap between workload segmentation and identity governance.

What identity-aware policy looks like for service accounts

IDFW closes the gap by making identity the enforcement anchor rather than the network location. Instead of writing a rule that says “workload A can reach database B on port 5432,” you write a rule that says “the service account that workload A uses can reach database B on port 5432, regardless of which host it authenticates from.”

The practical effect is that service account access is explicitly declared in the same policy framework as workload access — it’s not managed in AD groups that have no connection to network policy, and it’s not implicit based on network location. When the IDFW engine sees a connection attempt from an authenticated service account identity, it evaluates the same allow/deny logic that applies to any other traffic. An account that isn’t explicitly permitted to reach a destination doesn’t reach it, even if the network path would otherwise allow it.

This makes service account reach auditable in a way it typically isn’t. The policy rule that grants a service account access to a system is a named, reviewable object — not a combination of an AD group membership and a network zone inclusion that requires cross-referencing two separate systems to understand.

The practical audit: finding unrestricted service account reach

Before you can scope service account access, you need to know what access currently exists. For most environments, that means correlating two data sources: identity information from AD and authentication logs, and flow data from DFW.

The identity side gives you the list of service accounts in use, which systems they authenticate to, and when. AD will show group memberships; authentication logs will show actual connections. The gap between group-implied access and observed access is where you find accounts that have permissions they aren’t using — which is a cleanup candidate, because an account with permissions it doesn’t use is an attacker prize waiting to be collected.

The flow data side gives you the network-layer view: what connections are actually being made, from which hosts, to which destinations. Cross-referencing observed service account authentications with observed network flows tells you which connections are identity-authenticated and which are anonymous — connections that look like service account behavior but aren’t using explicit identity credentials are worth investigating separately.

What you’re looking for in this audit:

Service accounts that authenticate to more systems than their documented function requires. A monitoring account that only needs to read metrics from application servers but is authenticated to database endpoints and management interfaces is over-scoped, and the over-scope creates a pivot path.

Service accounts that haven’t authenticated recently. A service account that was created for a project that ended six months ago but was never deprovisioned still has whatever network access it was given. If its credentials have been exposed in any way — a leaked config file, a compromised CI/CD pipeline, a misconfigured credential store — the account is still usable.

Service accounts with shared credentials. Multiple services sharing a single service account is an operational convenience that creates a lateral movement surface: compromise one service and you have credentials that work for all the others the account can reach.

Rolling it out without breaking authentication

The concern that comes up in every service account scoping conversation is breakage: if you add policy that restricts what service accounts can reach, you will break connections that existing services depend on. The concern is legitimate. The answer is to scope incrementally with monitoring before enforcement.

The IDFW deployment pattern that works is: start in detect mode for service account identity flows before moving to enforce. In detect mode, the policy evaluates every connection against the identity rules you’ve written and logs whether it would have been permitted or denied — but doesn’t actually block anything. The log output is a map of what your policy would break if you enforced it today.

Work through the deny candidates systematically. Some are legitimate connections that need a rule added before you enforce. Some are connections that shouldn’t be happening but are, which means either a misconfigured service or something unexpected reaching through a service account credential. Some are stale connections from services that are no longer active but whose sessions are still open.

Move to enforce only after the detect-mode log shows no unexpected denies for a period long enough to cover the full range of normal service account activity — including overnight batch jobs, monthly reporting runs, and anything else that might not show up in a typical business day. For most environments that’s two to three weeks of observation before you can be confident the policy is scoped correctly.

The alternative — deploying IDFW enforcement without the observation period — is how you get emergency 2 AM calls because a backup job that runs on the first of the month suddenly has no authentication path to the target it’s been writing to for two years.


vdefend · identity-firewall · lateral-movement · micro-segmentation