Explore our new Cybersecurity Terms Glossary, explained by our experts.
Cybersecurity Terms Glossary
Containment is the phase that stops an incident spreading while the investigation continues: isolating hosts, revoking access, and cutting attacker communications without destroying the evidence.

What Is Containment in Incident Response?
Containment is the point in an incident where you stop the bleeding. It sits between detection and eradication in the NIST SP 800-61 lifecycle, and its purpose is narrow: limit the damage the adversary can still do while you work out what they have already done. Done well, it buys the investigation time. Done hastily, it destroys the evidence that would have told you how far the intrusion reached.
Short-term containment is immediate and often blunt. Isolate the affected endpoint through the EDR console so it can still be reached by the response team but not by anything else. Disable the compromised account. Block the command-and-control domain at the resolver and the egress firewall. Suspend the API key. Take the public-facing application offline if it is actively serving a web shell. These actions are measured in minutes, and the right people need standing authority to take them at three in the morning without convening a committee.
Long-term containment is what keeps the environment usable while rebuilding happens over days or weeks: temporary firewall rules, a tightened conditional access policy, an application left in read-only mode, additional monitoring on the segment where the attacker was active. These measures have business cost and should be recorded with an owner and a review date, because temporary controls have a habit of becoming permanent by accident.
Every containment action changes the system. Pulling the power cord loses memory, and with it injected code, decryption keys, open connections, and process arguments that may never be recoverable from disk. Reimaging a laptop before it is imaged erases the only record of initial access. Deleting a malicious mailbox rule removes the artefact that shows the account was compromised rather than merely misused.
The sequence that usually works is: isolate at the network layer, capture memory, snapshot or image the disk, then remediate. On virtual machines and cloud instances this is straightforward, since isolation is a security group change and acquisition is a snapshot. On physical endpoints, EDR network containment achieves the same result in seconds. Where the two genuinely conflict, the business decision belongs to the incident lead, and the reasoning belongs in the log.
There is a real argument for leaving an attacker in place briefly to map their footholds before acting. It is the right call less often than people think. Delay is defensible when the intrusion is clearly reconnaissance-stage, telemetry coverage is good, and the data at risk is limited. It is indefensible when encryption is imminent, when exfiltration is running, or when a regulator would ask why you watched. Agree the criteria in advance rather than debating them during the incident.
When you do cut, cut everything at once. Attackers with multiple persistence mechanisms respond to partial containment by falling back to the footholds you missed, and a visible half-measure tells them they have been found. That is why eradication planning should be complete before containment ends — see eradication for what a full sweep involves.
Most of these become obvious in a rehearsal and painful in a real incident. At Privia Security, we test containment authority and sequencing during investigation and incident response services, because the delay that costs an organisation most is rarely technical.
Isolate it rather than unplug it. Network containment through an endpoint agent cuts the attacker’s access while leaving the host running and reachable by responders, which preserves memory and running processes. Physically pulling the cable has the same containment effect but loses remote access, and powering the machine off discards volatile evidence that may be the only record of what executed.
Until you have identified every persistence mechanism and are ready to remove them in one coordinated action. That is typically days rather than hours in a significant intrusion. Ending containment early invites the attacker to return through a foothold you missed, which is the most common cause of a second incident within weeks of the first.
Occasionally, and only with clear criteria agreed beforehand. It can be justified when activity is limited to reconnaissance, telemetry is comprehensive, and the exposure is contained. It is not justified when data is actively leaving, when ransomware deployment looks imminent, or when you would struggle to explain the delay to a regulator or an insurer afterwards.
It is part of what you report. Article 33 of the UK GDPR requires a description of the measures taken or proposed to address the breach and mitigate its effects, so containment actions and their timings belong in the notification. They do not stop the 72-hour clock, which starts when you become aware of the breach, not when it is resolved.
You May Be Interested In These
We use a few cookies that are needed to make this website work, and they are always on. We would also like to set analytics cookies, to see which pages are useful; functional cookies, so that our live chat works; and advertising cookies, to measure our campaigns. We will not set any of those until you say yes, and you can change your mind at any time from the Cookie Settings link in the footer.
Choose the cookies you are happy for us to use. Strictly necessary cookies are always on; everything else is off until you turn it on.
These cookies keep the website working: they hold your security checks, your form submissions and the choice you make here. The site cannot run without them, so they are always on.
These let our live chat open and remember your conversation, and let the newsletter sign-up work. Switch them off and the chat window will not appear.
These tell us which pages are read and how people find us, so that we can improve the site. The reports are about groups of visitors, never about you personally.
These let us measure our advertising and show you our adverts on other websites, such as LinkedIn, Google and Meta. Switch them off and you will still see adverts, but they will be less relevant.