Article6 min read

The credential caching problem: why your infrastructure tools may be enabling attackers

Many IT management tools authenticate in a way that leaves privileged credentials sitting in server memory. One compromised machine is then enough to lose the domain.

If you manage IT infrastructure, you probably use monitoring and management tools. They're essential. You need to know what's running, what's broken, and what's about to fail. But there's a risk with these tools: the way they connect to your servers might be creating a vector for attackers to compromise your entire network.

Mimikatz: when convenience becomes catastrophe

In 2011, Benjamin Delpy, a French security researcher, released a tool called Mimikatz as a proof of concept to show Microsoft that its authentication protocols were vulnerable to attack. Mimikatz can extract passwords and authentication tokens from Windows memory. Instead, Delpy unknowingly created one of the most widely used and downloaded threat actor tools.

Here's what makes Mimikatz dangerous: many IT management tools use PowerShell remoting or similar methods that perform a full login to servers. When you do a full login, Windows caches your credentials in memory. This is convenient because it allows re-authentication without asking for your password again.

But if an attacker gains access to just one server where these credentials are cached, Mimikatz can extract them. Since many IT tools run with highly privileged accounts (often Domain Admin), compromising one server can give attackers the keys to your entire domain.

How a single compromised server becomes total network compromise

The progression from initial compromise to total network access happens faster than most organizations realize. A typical credential theft attack follows the timeline below.

Day 1

Your monitoring tool logs into 2,000 servers using PowerShell with a Domain Admin account. Each login caches those credentials in memory.

Day 14

An attacker exploits a vulnerability on one exposed server.

Day 14 + 6 hours

The attacker runs Mimikatz and extracts your monitoring tool's Domain Admin credentials.

Day 14 + 12 hours

Using stolen credentials, attackers move laterally through your network, accessing domain controllers, backup servers, and file servers.

Day 45

You discover the breach. Attackers have had full access for a month.

A more secure approach: WMI

There's an alternative that's been part of Windows since 1998: Windows Management Instrumentation (WMI). WMI queries information without performing a full login.

Here's a quick comparison between the two methods.

PowerShell remoting, full login Windows Management Instrumentation (WMI)
Creates a user profile on the target system Does not create a user profile
Caches credentials in LSASS memory Does not cache credentials in memory
Leaves authentication tokens Mimikatz can extract Does not leave exploitable authentication tokens
Establishes a persistent session Leaves no fingerprint attackers can detect

The security benefits of WMI

  1. No cached credentials. WMI authenticates, performs its query, and disconnects. No credentials remain in memory. Even if attackers compromise the server and run Mimikatz, they won't find the monitoring tool's credentials.
  2. No trace for attackers. With WMI, there's nothing on the endpoint to find. No agent files, no DLLs, no cached sessions. The monitoring is invisible.
  3. No single point of failure. Without agent code on endpoints, there's no software for attackers to compromise across your entire infrastructure.

The tradeoffs

WMI isn't perfect. Real limitations include:

  • Performance: can be slower than local agents, but faster than PowerShell
  • Firewall complexity: requires specific ports (135 + dynamic RPC)
  • Windows-centric: Linux and Unix need SSH instead
  • Requires privileges: still needs admin rights, though the benefit is that credentials aren't cached

Alternative approaches: a quick comparison

Agent-based tools

Pros: local control, no persistent network credentials.
Cons: caches credentials, supply chain attack risk, version drift, operational burden.
Risk: if agent software is compromised, all endpoints are at risk.

PowerShell remoting / full login

Pros: no agents, rich functionality.
Cons: caches credentials (the Mimikatz vector), leaves audit trails.
Risk: credential theft enables lateral movement.

WMI / agentless

Pros: no cached credentials, no agents to compromise, invisible to attackers.
Cons: Windows-only, firewall complexity, read-only limitations.
Risk: credentials not cached, no code on endpoints.

Before choosing an infrastructure monitoring tool

Ask these questions to better understand your risks when selecting your tools:

  1. How does your tool authenticate to my systems? If the answer involves agents or full login, understand the credential caching risk.
  2. What happens if one of my servers is compromised? Can attackers extract your tool's credentials? The honest answer should acknowledge the risk.
  3. What code runs on my production systems? If agents are required, ask about updating security and what happens if updates fail.
  4. If your company were breached tomorrow, what's my exposure? Understand your supply chain risk.

No single technical decision makes your infrastructure secure or insecure

Security is about layers. But choosing an authentication method that doesn't cache credentials removes an entire attack vector from your threat model.

Credential caching attacks via Mimikatz are:

  • Well understood by attackers
  • Widely used in real breaches
  • Completely preventable

They succeed because convenience often wins over security in tool design decisions.

The authentication method your infrastructure tools use determines whether a single compromised server stays isolated or becomes a gateway to your entire network.

Consider the following when evaluating your tools.

When evaluating infrastructure monitoring tools
1
Know your authentication

Understand how tools log in and what traces they leave.

2
Map credential caching

Identify where privileged credentials are stored in memory.

3
Assess supply chain exposure

Evaluate the risk of compromised agent software.

4
Choose your risks deliberately

Make conscious decisions about security tradeoffs.

The goal is to make informed choices about where you accept risk and where you don't. Your monitoring and discovery tools touch more systems than almost any other software in your environment.

That reach is precisely what makes them valuable. It's also what makes their authentication approach worth scrutinizing.

Ready to see the
shape of your it?

Stay ahead with Mugato: get product updates, event invites,
expert insights and more. Or let us show you how Mugato
can map your entire IT landscape without a single agent.

Book demo

Subscribe to newsletter