Skip to Content

CIM - Eradication

September 16, 2026 by
CIM - Eradication
Resilix, Hendrik Noben

In the previous post, we covered Containment: stopping the bleeding and preventing the attacker from spreading further through your environment. Containment buys you time, but it doesn't solve the problem. The attacker's tools, access methods, and footholds are still present in your systems. They're just temporarily blocked from causing more damage.

Eradication is where you actually remove the attacker from your environment. Not just block them, but eliminate their presence entirely so you can lift containment measures and return to normal operations without fear of immediate recompromise.

Think of it this way: if containment is sealing off the wing of your building where an intruder was found, eradication is the thorough search that finds every door they propped open, every key they copied, every hiding spot they prepared. Until you complete that search, the intruder isn't really gone. They're just waiting for you to unseal the doors.

This is where incidents often go wrong. The pressure to return to normal operations is intense. Every day of disruption costs money, frustrates customers, and strains employees. The temptation to declare victory prematurely is enormous. But incomplete eradication leads to recompromise, sometimes within days, and then you're back where you started, having wasted all the effort of your initial response.

The Fundamental Question

Do you actually know what happened?

Before you can remove an attacker, you need to understand how they got in, what they did, and everywhere they went. This sounds obvious, but the pressure of an active incident often pushes teams to skip this step.

Here's the trap: your security team identifies malicious software on a server. The natural instinct is to clean that server immediately. Problem solved, right? But what if that server was just one stop on a longer journey? What if the attacker entered through a different system entirely, moved laterally to the server you found, and has already established presence on five other systems you haven't discovered?

If you clean the one server you know about without understanding the full picture, you've accomplished nothing. The attacker still has access through their other footholds. Worse, you've signaled that you're onto them, potentially triggering more aggressive action before you're ready to respond.

This is why eradication must be based on a thorough understanding of the incident's scope. Your team needs to trace the attack back to its origin (what security professionals call "patient zero"), map everywhere the attacker traveled from there, and identify every tool and access method they deployed along the way. Only then can eradication be comprehensive.

The management implication: don't let urgency override thoroughness. Eradication that's 90% complete is actually 0% complete from a security perspective, because that remaining 10% is everything the attacker needs to return.


Two Approaches to Eradication

Rebuild vs. targeted removal

When it comes to actually removing the attacker's presence, there are two fundamentally different approaches. Each has significant implications for time, cost, and confidence in the result.

Rebuilding from scratch means wiping affected systems entirely and reconstructing them from known-good sources: your standard system images, verified backups, or fresh installations. This approach offers the highest confidence that the attacker's presence is truly eliminated. You're not trying to find and remove every piece of malicious code; you're simply replacing the entire system with something you know is clean.

The tradeoff is time and operational impact. Rebuilding a workstation might take hours. Rebuilding a critical server that runs complex business applications might take days or weeks, especially if you need to restore data, reconfigure integrations, and verify that everything works correctly. For some systems, rebuilding simply isn't practical in the timeframe the business can tolerate.

Targeted removal means surgically identifying and removing each piece of the attacker's presence while keeping the underlying system intact: removing malicious software, closing unauthorized accounts, revoking stolen credentials, reversing configuration changes. This approach causes less operational disruption because the system remains largely functional throughout.

The tradeoff is confidence. Targeted removal only works if you've identified everything the attacker left behind. Miss one backdoor, one hidden account, one piece of code set to activate later, and the attacker can return. This approach requires significant expertise and carries inherent risk that something will be overlooked.

In practice, most incidents use a combination. Workstations and easily replaceable servers get rebuilt. Critical systems that can't tolerate extended downtime get targeted removal with enhanced monitoring afterward. The mix depends on what was affected, how confident your team is in their understanding of the attacker's actions, and what the business can tolerate.

This is a leadership decision, not just a technical one. Your security team can assess the tradeoffs, but the choice between "higher confidence but longer recovery" and "faster recovery but some residual risk" involves business judgment about acceptable risk levels.


Root Cause Analysis

Preventing the next incident

Eradication isn't complete when you remove the attacker's tools. It's complete when you close the door they used to enter.

If an attacker gained access because an employee clicked a malicious link in an email, removing the resulting malware addresses the symptom but not the cause. The vulnerability that let the attack succeed (whether that's inadequate email filtering, insufficient employee awareness, or lack of detection when credentials are stolen) still exists. Another attacker, or the same attacker with a new phishing email, can use exactly the same path.

Root cause analysis asks: Why did this attack succeed against us? Not just technically (which vulnerability was exploited) but organizationally (why was that vulnerability present, why wasn't it detected sooner, why did our defenses fail at each stage).

This isn't blame assignment. It's honest assessment of what needs to change. Common root causes include delayed security updates that left known vulnerabilities open, insufficient monitoring that allowed attackers to operate undetected for extended periods, inadequate access controls that let attackers move freely once they gained initial entry, lack of network segmentation that allowed one compromised system to access everything, and gaps in employee security awareness that made social engineering attacks successful.

For leadership, root cause analysis produces two things: an honest picture of what failed and a prioritized list of what needs to improve. Some improvements will be quick (patching a specific vulnerability). Others will require sustained investment (improving monitoring capabilities, redesigning network architecture, upgrading employee training programs). Both types matter.

The temptation after an incident is to move on quickly and put the experience behind you. Resist this. The weeks immediately following an incident are when you have maximum organizational attention on security. Use that window to drive changes that might otherwise languish in backlogs.


Coordinated Execution

Why timing matters

When you're ready to execute eradication, timing and coordination matter enormously.

Imagine you've identified that the attacker has presence on ten systems and is using three stolen employee accounts. If you clean one system and reset one account while leaving the others untouched, what happens? The attacker notices something has changed, realizes they've been detected, and either accelerates their remaining activity or goes quiet and waits for attention to fade before resuming through their other footholds.

Effective eradication happens all at once. You prepare all your removal actions, coordinate the timing, and execute them simultaneously (or as close to simultaneously as practical). The attacker wakes up to find that all their access methods have stopped working at once, with no time to adapt or respond.

This requires careful preparation. Every affected system needs to be identified and a remediation plan developed before any action is taken. All the teams involved (security, IT operations, application owners, potentially external specialists) need to be briefed and ready to execute their part. The timing needs to be coordinated, often scheduled for a specific moment when all teams are standing by.

For leadership, this means accepting a period of apparent inaction while preparation happens. Your team may spend days or weeks identifying scope and developing plans before any visible remediation occurs. This can be frustrating when the pressure is to "do something," but rushing to piecemeal action often extends the incident rather than ending it.


Verification

How do you know you're done?

One of the hardest questions in eradication is knowing when it's actually complete. The attacker isn't going to send you a notification confirming they've been evicted.

Verification happens at multiple levels. At the technical level, your security team should be scanning for any remaining indicators of the attacker's presence, testing that all removed access methods are truly closed, and monitoring for any signs of the attacker attempting to return. At the process level, you should be confirming that all systems identified in the scope have been addressed and that all remediation actions were actually completed as planned.

Enhanced monitoring should continue well beyond the apparent end of eradication. Many attackers leave multiple fallback access methods precisely because they expect to be detected eventually. The first few weeks after eradication are high-risk: if anything was missed, that's when it's most likely to be used.

For leadership, the practical question is: when is it safe to lift containment measures and begin returning to normal operations? The honest answer is that you're making a judgment call based on incomplete information. Your security team can tell you what verification they've done and their confidence level. They can tell you what monitoring is in place to detect problems. But they cannot guarantee with certainty that eradication is 100% complete.

The decision to proceed involves accepting some residual risk while balancing it against the costs of continued containment. This is a business decision informed by technical assessment, not a purely technical decision.


Counter-Compromise Actions

Reducing the value of what was lost

Eradication removes the attacker from your systems, but it doesn't undo what they've already accomplished. If data was stolen, that data is still in the attacker's hands. If credentials were captured, those credentials were valid at the time.

Counter-compromise actions are steps you take to reduce the value of what the attacker obtained. Reset all passwords that might have been exposed, invalidating any credentials in the attacker's possession. Rotate encryption keys and certificates that could have been captured. Notify affected parties (customers, partners, employees) so they can take protective action on their end. Work with partners and service providers to watch for misuse of stolen information.

Some of these actions create operational disruption (a company-wide password reset is not convenient for anyone), but they're necessary to close the loop. Eradicating the attacker's presence in your environment while leaving them holding valid credentials to that environment isn't actually solving the problem.

For leadership, counter-compromise decisions often involve difficult tradeoffs. Resetting every password in the organization is disruptive and may not be necessary if you're confident about which accounts were compromised. But if there's uncertainty about the scope, broader action may be prudent. These are risk decisions that require leadership judgment.


Common Pitfalls

Where eradication goes wrong

Several patterns consistently cause eradication efforts to fail.

Rushing to action before understanding scope means some attacker footholds are missed. The attacker returns through the overlooked access method, and you're back to containment with even less time and more damage.

Piecemeal remediation alerts the attacker without eliminating their access. They adapt, potentially becoming more aggressive or more stealthy, and the incident becomes harder to resolve.

Inadequate root cause analysis means the same attack vector remains open. A different attacker (or the same one with a new approach) exploits the same weakness, and you face a similar incident months later.

Pressure to restore operations leads to lifting containment too early. Systems return to production before eradication is complete, and the attacker uses the reconnection to spread to previously unaffected areas.

Insufficient verification creates false confidence. The team believes eradication is complete, monitoring returns to normal levels, and attacker activity goes undetected when it resumes.

Each of these pitfalls has the same root: prioritizing speed over thoroughness. The business pressure to return to normal is real and legitimate, but yielding to it prematurely makes the total incident duration longer, not shorter.


Wrapping Up

Eradication is where you actually win the incident, or where you set yourself up for a rematch. The difference is thoroughness: understanding the full scope before acting, executing removal in a coordinated way, closing the root causes that enabled the attack, and verifying your work through enhanced monitoring.

The pressure to rush through eradication is understandable. Every day of disruption is painful. But incomplete eradication is worse than slow eradication, because recompromise means starting over with a more difficult situation.

Your role as a leader is to create space for your security team to do this work properly: time to understand scope before acting, resources to execute comprehensively, and support for the root cause improvements that prevent recurrence. The investment in proper eradication pays off in incidents that actually end.

In the next post of the Incident Management Roadmap, we'll move to Recovery: returning your organization to normal operations while maintaining vigilance against the attacker's return.


Five Questions Every C-Level Executive Should Ask

1. Before we start removing the attacker, do we actually understand how they got in and everywhere they went?

Eradication based on incomplete understanding leads to incomplete results. Is our security team confident they've traced the attack from initial entry through every system the attacker touched? Or are we acting on partial information?

2. For each affected system, are we rebuilding from scratch or doing targeted removal, and why?

These approaches have different confidence levels and different operational impacts. Do we understand the tradeoffs for our most critical systems? Are we making conscious choices or just defaulting to whatever's fastest?

3. When we execute eradication, will all actions happen in a coordinated way, or will we be removing access piecemeal?

Piecemeal action alerts attackers and gives them time to adapt. Is our plan designed for coordinated execution? Do all the teams involved understand the timing and their role?

4. What root causes have we identified, and when will they be addressed?

Removing the attacker without fixing what let them in just sets up the next incident. What specific weaknesses did this incident reveal? What's our plan and timeline for addressing them?

5. After we believe eradication is complete, what monitoring will be in place to detect if we missed something?

→ Perfect certainty isn't possible. What's our plan for the days and weeks after eradication when residual access might be used? How quickly would we detect an attacker returning through something we missed?

If these questions reveal that your team is moving faster than their understanding warrants, that's important information. Slowing down at the eradication stage is usually faster overall than dealing with a recompromise because eradication was incomplete.


Let's Connect

Are you in need of assistance from our Incident Management Experts, or want to discuss how these technical foundations apply to your organization? Don't hesitate to fill out the contact form below!