Inside the Black Box: Testing MSP Servers Like a Hacker
How I approached testing traditional Managed Service Provider infrastructure — from surface recon to privilege escalation — and what defenders can learn from it.
Intro
Managed Service Providers (MSPs) are the behind‑the‑scenes powerhouses of modern IT — trusted with root, admin, and often full access to dozens or even hundreds of client environments. That level of trust concentrates risk: compromise one MSP and you can potentially pivot into a broad swath of their customer base. This post walks through how I tested an MSP environment with a red‑team mindset and what lessons teams on both sides of the table can take from it.
Why MSPs Are Juicy Targets
MSPs sit at a privileged intersection of identities, networks, and tooling. They inherit elevated accounts, long‑lived service credentials, legacy systems that linger for operational reasons, and sprawling third‑party integrations. Many environments are multi‑tenant, and weak scoping can turn a single authentication event into cross‑client access. In short: the blast radius is large, the segmentation is often optimistic, and the incentives to attack are high.
Testing Approach
I approached the environment like a patient adversary rather than a loud scanner. Recon came first: subdomain enumeration surfaced staging portals without authentication banners, Shodan indexed an unpatched RDP listener and a forgotten Citrix gateway, and a dusty FTP service still responded with its vintage banner. This mapped the public edge and identified paths likely ignored by routine hygiene.
Next, I focused on the authentication layer and tenancy boundaries. Instead of noisy password spraying, I probed logic: MFA fallback flows with weak rate limits, password reset paths that leaked timing signals, and legacy endpoints that bypassed modern SSO controls. Once inside, I tested whether changing a tenant identifier in cookies or hidden form fields would drift my session into another client’s context — and in more than one place, it did.
Interesting Findings
The most worrying issues weren’t single CVEs but systemic patterns. Decommissioned customer portals and admin panels were left online long after contracts ended, providing reconnaissance value and, at times, working credentials. SSO implementations mixed modern JWT‑based flows with brittle redirects, and a weak signing configuration enabled partial token forgery in a lab setting.
Just as concerning was “client context drift.” Multiple internal apps inferred authorization from user‑agent hints or unvalidated parameters rather than from server‑side entitlements. In practice, that meant a properly authenticated user could sometimes nudge the application into treating them as staff for a different tenant. Finally, administrative actions were either unlogged or buried in noisy logs with no review loop — the kind of gap that turns a small intrusion into a long one.
Tools Used
I blended custom automation with dependable tradecraft. Homegrown DNS brute‑forcers and wordlists flushed out stale subdomains. Burp Suite Pro with JWT and SSO helpers made short work of token experiments and redirect chains. Once a foothold existed, CrackMapExec and Kerbrute supported internal enumeration, while lightweight Python wrappers turned exploratory requests into repeatable, sanitized test chains that could be shared with the defenders.
Lessons Learned
This engagement reinforced that MSP security is mostly a problem of trust boundaries, not patch cadence. Providers tend to trust their own plumbing by default, and customers rarely verify how that trust is enforced. The result is a house of cards built on assumptions: that decommissioned spaces really are gone, that SSO covers every path, and that tenant context is always enforced server‑side. When any of those assumptions fail, the impact multiplies quickly.
Recommendations
Start by revoking access like you mean it: when a client leaves, rotate and retire every path — API keys, service accounts, VPN profiles, and dormant portals. Treat logging as a control, not a checkbox; record administrative actions with searchable fields and review them on a cadence that matches the risk. Enforce tenant scope on the server for every action, regardless of what the frontend claims, and build tests that try to cross that boundary deliberately. Finally, segment identity and network layers so that a compromise in one client does not casually expose another; if a tenant can influence or even see another without explicit authorization, you’ve already lost the plot.
If you’re an MSP, the mandate is to tighten trust boundaries and delete the “temporary” exceptions. If you’re a customer, ask hard questions, demand proofs of revocation and logging, and test the MSP environment with you in the room. Black boxes don’t harden themselves.