What is security incident response: stages, plan and what to do in the first hours
Incident response is the process to notice, contain and resolve a security problem, such as a hacked account or ransomware, and get back to operating. See the stages, what goes into the plan, what to do in the first hours, what the LGPD requires and where AI helps.
Published on December 1, 2026. 11 min read
Incident response is the set of steps a company follows when a security problem happens, such as a hacked account, fake emails going out in the company's name, files locked by an attack or exposed data. The goal is to notice the problem early, contain the damage, remove the cause, get back to normal operation and record what to change so it does not happen again.
This is a term from the UEEK glossary of technology, AI and security, in the Security area. Below are the definition, what counts as an incident, the stages, what a plan needs, what to do in the first hours, the link with Brazil's data protection law (LGPD) and where AI helps at each stage.
What is incident response?
The term is often shortened to IR. People also talk about security incident management and about an incident response plan, when the subject is the document that describes the process.
In practice, incident response answers simple questions that get hard in the middle of a scare: who gets notified, who decides, what gets shut down first, what is kept as evidence, who talks to customers and when the matter is closed. A company that answered these questions before the problem loses less time and less data when it arrives.
What counts as a security incident?
An incident is any event that threatens the confidentiality, integrity or availability of systems and data. Some common examples in companies of any size:
- Hacked account: someone gets into the corporate email, Microsoft 365 or the cloud account with an employee's password.
- Fake email in the company's name: customers and suppliers receive invoices or malicious links from the company's domain.
- Ransomware: files and servers locked, with a ransom demand.
- Data leak: a customer database exposed on the internet or copied by someone who should not have access.
- Exposed credential: an access key published by mistake in a code repository.
- Improper action by an AI agent: an agent with too many permissions changes or deletes data it should not touch.
Not every alert is an incident. A login from another country may be an employee on a trip. Separating what is normal from what is an attack is the first task of the response.
What are the stages of incident response?
The current NIST guide treats incident response as part of risk management. The cycle below organizes preparation, response, recovery, and lessons learned into practical steps:
- Preparation: Written plan, contacts, system inventory, logging turned on and tested backups.
- Detection and triage: Notice what is out of the ordinary and decide whether it is an incident and how severe it is.
- Containment: Stop the damage: block accounts, end sessions, isolate machines, revoke keys.
- Eradication: Remove the cause: the exploited flaw, the improper access, the malicious program.
- Recovery: Return to operation safely, restoring backups and watching closely.
- Lessons learned: Record what happened, what worked and what changes in the plan and in the systems.
Lessons learned feed back into preparation: each incident improves the plan for the next one.
1. Preparation
This is the work done before any problem: a written plan, the list of who gets called and how, an inventory of the systems and of who owns each one, logs turned on and kept long enough, backups that have already been restored in a test and administrator access protected with two-factor authentication.
Where AI helps: building the inventory from documentation, repositories and cloud accounts, and writing the first draft of the playbooks for the most likely incidents. The company approves the plan and the people responsible.
2. Detection and triage
The incident shows up through a monitoring alert, an employee who found an email strange, a customer complaint or an unexplained slowdown. Triage decides whether it is really an incident, what was affected and how severe it is.
Where AI helps: connecting signals from different sources (the same address trying to get into email and into the cloud, for example), discarding noise and explaining the alert in plain language. This is what an AI-powered SOC does day to day. Confirmation stays with a person, often the account owner: was it them or not.
3. Containment
With the incident confirmed, the goal is to keep it from growing: change passwords and end open sessions, block the affected account, isolate the infected machine from the network, revoke exposed access keys and, when the problem involves an AI agent, pause the agent and cut its credentials.
Where AI helps: suggesting the containment steps for that type of incident and preparing the commands. Actions that can stop the operation are carried out by a person, because shutting down the wrong server also causes damage. The article on where a person needs to be in the loop in an AI SOC details this split.
4. Eradication
Once the problem is contained, it is time to remove the cause: fix the flaw that allowed the entry, delete accounts and rules created by the attacker (such as a hidden email forwarding rule), clean or reinstall the affected machines and update whatever was out of date.
Where AI helps: reviewing a large volume of logs to find everything the attacker touched, not only the first entry point, and suggesting the code fix, which the team reviews and tests before publishing.
5. Recovery
Systems come back online, from clean backups when needed, and stay under closer watch for a few days, because attackers often try to come back the same way. Software fixes go through the normal delivery flow, with the tests and security checks of the CI/CD pipeline, instead of a manual change made directly in production.
Where AI helps: comparing behavior after the return with the normal history and flagging anything that is still out of pattern.
6. Lessons learned
After things calm down, the team records the incident timeline, the cause, what worked, what took too long and what changes: a new monitoring rule, a reduced permission, an automated test that keeps the flaw from coming back, an adjustment to the plan.
Where AI helps: building the timeline from the logs and from the messages exchanged during the incident and writing the first draft of the report, which the person in charge reviews.
What should an incident response plan include?
A useful plan fits in a few pages and is kept outside the systems that can be attacked, printed included. It usually has:
- People and contacts: who coordinates, who decides to shut systems down, who talks to customers, legal and the press, with each person's phone number.
- Severity levels: what is low, medium and high, and who needs to be called at each level.
- Playbooks for the most likely cases: hacked account, fake email, ransomware, data leak, exposed credential.
- Inventory: systems, suppliers, administrator accounts and where the backups are.
- Evidence preservation: what to keep before cleaning up (logs, copies of the affected machines, messages received).
- Communication: notice templates for customers and the path to notify the data protection authority when personal data is involved.
- Review: when the plan is tested and updated, for example with one tabletop exercise a year.
| Severity | Example | Who gets called |
|---|---|---|
| Low | Blocked login attempt, phishing email received and not opened | IT lead, during business hours |
| Medium | One hacked account, with no sign of access to sensitive data | IT and the area manager, the same day |
| High | Ransomware, customer data leak, main system down | Incident coordination, leadership and legal, right away |
What to do in the first hours of an incident?
- Do not delete anything. Logs, suspicious emails and affected machines are the evidence of how the attack happened.
- Contain what is obvious. Change the password of the affected account, end the sessions and turn on two-factor authentication. Disconnect the machine with locked files from the network, without turning it off.
- Call the people in the plan. If there is no plan, pick one person on the spot to coordinate and write everything down with timestamps.
- Find out the scope. Which accounts, systems and data were affected, and whether personal data is involved.
- Tell those who need to know. Customers who may receive fake emails, connected suppliers and, when applicable, the data protection authority.
- Do not pay a ransom on impulse. Paying does not guarantee the data comes back, and the decision involves leadership and legal.
What is the difference between incident response, a SOC and DevSecOps?
The three come up together in security conversations and cover different moments:
| Practice | When it acts | What it delivers |
|---|---|---|
| DevSecOps | Before, while the software is built | Security checks on every change, so fewer flaws reach production |
| SOC and monitoring | During, with systems live | Continuous watch and alerts when something is out of the ordinary |
| Incident response | When the problem happens | Containment, fix, return to operation and lessons for the next time |
Monitoring shortens the time between the attack and its discovery. Incident response defines what is done with that discovery. And DevSecOps reduces the flaws that lead to incidents. In teams that use AI agents in development, DevSecOps in the hybrid squad adds a specific step to the response: revoke the credentials and pause the agent involved.
On the Itaú Mulher Empreendedora platform, security was handled in three layers, in the code, in the infrastructure and in delivery, with CI/CD with SAST, SCA and DAST analysis and high-availability infrastructure on AWS. A foundation like this makes recovery easier: the fix goes through the usual checks and reaches production through the pipeline.
Does a company in Brazil need to notify the ANPD about an incident?
When an incident involving personal data may cause relevant risk or harm to data subjects, the controller must notify Brazil's data protection authority (ANPD) and the people affected. The general deadline under Resolution CD/ANPD No. 15/2024 is three business days from when the controller learns that personal data was affected. Check for applicable deadlines, including the rules for small processing agents. Keep a record of incidents that were not reported as well, and specify who assesses the risk and submits the notices.
Frequently asked questions
Does a small company need an incident response plan?
Yes, in a lean format. One page with the people in charge, contacts, the steps for a hacked account and ransomware and where the backups are already prevents many wrong decisions in the middle of a scare.
What is the difference between an incident and a vulnerability?
A vulnerability is a flaw that can be exploited, such as an outdated system. An incident is when something actually happened: someone exploited a flaw, got into an account or exposed data.
Can AI respond to an incident on its own?
It can suggest and prepare actions, and in well-defined cases carry out simple steps, such as ending a suspicious session. Decisions that can stop the operation or that involve customer data stay with a person.
How long does it take to respond to an incident?
It depends on the type and on preparation. A hacked account noticed early can be contained in minutes. Ransomware without a tested backup can leave the company stopped for days. Preparation is what shortens that time the most.
Does monitoring replace incident response?
No. Monitoring warns that something happened, and someone has to act on the warning. See what each layer covers in basic security or real monitoring.
How often should the plan be tested?
At least once a year, with a tabletop exercise in which the team walks through a scenario, such as a fake email going out in the company's name, and checks that contacts and steps still hold. Also after every real incident and after big changes to the systems.
How UEEK can help
With the systems live, Urutau Sec is UEEK's security monitoring product, in operation 24x7. It watches the AWS cloud, Microsoft 365, Linux servers and Windows computers, connects the signals between these sources and explains in plain language what happened and what to do, with a simple confirmation ("it was me" or "I don't recognize it") and escalation if nobody answers. The connection to AWS and Microsoft 365 uses read-only permission. The same page has the free exposure test and a direct contact for anyone dealing with a problem right now, such as a hacked account, fake emails or locked files.
In the DevSecOps assessment, UEEK reviews the delivery pipeline, secrets, infrastructure and monitoring, and ranks the weak points by real risk, which reduces the flaws that turn into incidents and prepares the way to fix things fast when something happens. In maintenance and support, the team that knows the code takes care of security updates, monitoring and fixes. That is 14 years in the market and more than 500 projects delivered for more than 200 clients in 6 countries.
Other security terms, such as pentest and CI/CD and pipeline, are in the UEEK glossary.
Topics
- incident response
- security incident
- incident response plan
- what is incident response
- information security
- glossary