Cybersecurity incident response is the prepared, practiced way an organization handles a security incident: it confirms what happened, limits the damage, removes the attacker, restores normal service and tells the people it is legally obliged to tell. For most companies that comes down to a short written plan that says who decides what, logs that still exist when you need them, a few playbooks for the incidents you are most likely to face, and a list of the reporting deadlines that start running when you become aware of a breach. A security operations center (SOC) helps with detection, but a small team can do the rest without one.
We're a small software company. We build and maintain web apps, APIs and mobile apps for clients, and we're working toward ISO 27001 and preparing for SOC 2. Both expect a defined incident process that actually works: ISO 27001 covers it in Annex A controls 5.24 to 5.28 and 6.8, SOC 2 in criteria CC7.3 to CC7.5. This post is for small teams without a security department: a cloud account, a SaaS product or two, Microsoft 365 or Google Workspace, no night shift, and a handful of engineers who would be the ones woken up.
What counts as an incident
A security event is anything you can observe: a failed login, a port scan, an alert from your cloud provider. Most are noise. An incident is an event, or a chain of them, that harms or is likely to harm the confidentiality, integrity or availability of your systems or data. In a small software business that usually means something unglamorous: a cloud access key pushed to a public repository, a staff mailbox taken over through phishing, an admin panel open to the internet without authentication, an old dependency exploited on a public server, ransomware on one laptop, a former contractor whose access nobody removed.
A personal data breach, in GDPR terms, is an incident that leads to personal data being lost, destroyed, altered, disclosed or accessed without authorization. That is the kind with legal deadlines.
The life cycle: NIST's four phases and the 2025 revision
For more than a decade the standard reference was NIST SP 800-61 Revision 2 (2012), with its four phases: preparation; detection and analysis; containment, eradication and recovery; and post-incident activity. SANS teaches a six-step version of the same idea (preparation, identification, containment, eradication, recovery, lessons learned).
In April 2025 NIST replaced it with SP 800-61 Revision 3, which recasts incident response as a profile of the Cybersecurity Framework (CSF) 2.0. Govern, Identify and Protect are the preparation that happens before any incident; Detect, Respond and Recover are the response itself; lessons learned feed back into all six through the Improvement category. For a small team the practical change is modest. Rev. 3 doesn't ask you to rename the phases in your playbooks; it moves most of the work to before the incident, which is where the plan below comes in.
Before anything happens: a one-page plan
Nobody reads a forty-page plan at 2 a.m. Keep the core on one page and link out to the detail. It should answer seven questions:
- Who leads? One incident lead per incident, with a named deputy. The lead coordinates and decides, and ideally isn't the person typing the commands.
- Who can approve what? Taking production offline, telling customers, contacting a regulator or the police, bringing in an outside firm, paying anyone anything. Write down who may approve each, including out of hours.
- Who do we call? Your cloud provider's support, your domain registrar, a lawyer who knows data protection, your insurer, your data protection officer if you have one, and the security contacts of customers whose contracts require notice.
- Where do we talk? A channel that doesn't depend on the systems that may be compromised. If the attacker is inside your Microsoft 365 tenant, they can read your incident thread in Teams.
- What data lives where? Which systems hold personal data, which categories, roughly how many people. You'll be asked this within hours, and the answer decides who has to be told.
- Where are the logs, and how long do they last?
- What do the severity levels mean? So that "urgent" means the same thing to everyone.
Question 5 is easy to get wrong because sensitive data ends up in unglamorous systems. Oplist, a hospital rostering platform in Türkiye and a client we build for, receives leave types and reasons from hospitals' HR systems through API integrations, sick leave among them, because the scheduling rules depend on them. A rota tool doesn't look like a medical system, but a sick-leave record is health data, which Türkiye's data protection law (KVKK) treats as a special category, as the GDPR does. Systems like that belong on the list next to the obvious ones.
For question 6, check your defaults today. AWS CloudTrail's event history keeps 90 days of management events, one region at a time, and doesn't include data events such as reads of S3 objects. For anything longer or more detailed you need a trail or an event data store. Microsoft Purview Audit (Standard) keeps Microsoft 365 audit records for 180 days. Your application logs last as long as you configured them to. Keep security logs long enough to look back past the day an attacker probably got in; PCI DSS, for example, asks for at least 12 months, with the most recent three immediately available. Send them to a separate account or storage that production credentials can't delete, because a capable attacker will try.
For severity, reuse the scheme you already have for support if it fits (we've written about priority levels and response times in support SLAs). Three levels are usually enough:
Level | Examples | Response |
|---|---|---|
SEV-1 | Confirmed data theft, ransomware spreading, an attacker with admin rights | Incident lead and management straight away, legal advice the same day, reporting deadlines checked immediately |
SEV-2 | A leaked credential with no sign of use yet, one compromised mailbox | Incident lead and the engineers who own the system, same day |
SEV-3 | A reported phishing email nobody clicked, a blocked scan | Normal working hours, logged so you can spot patterns |
How small teams find out
Without a SOC, the first signal often comes from outside: a customer, your cloud provider, GitHub's secret scanning, a bank, a security researcher. Make that easy. Publish a security contact in a /.well-known/security.txt file (the format is defined in RFC 9116) and make sure someone actually reads what arrives there.
Then add a small number of alerts that are almost never false positives. Good first candidates: a new IAM user or access key, CloudTrail logging switched off, a root or global-admin sign-in, MFA removed from an admin account, a mailbox rule forwarding mail to an outside address, a new OAuth app granted broad access to mail, and an unusually large export from the production database. A dozen alerts like these, landing in a channel someone watches, are worth more than a SIEM full of rules nobody tunes.
The first hour
When something looks like an incident, these steps, roughly in this order, keep you out of the usual traps:
- Open an incident record and a timeline. A shared document with UTC timestamps: what was seen, by whom, what was done. Note the moment you became aware, because that is when the GDPR and NIS2 clocks start.
- Name the incident lead, and for a SEV-1, tell management.
- Scope quickly and roughly. Which systems and accounts, which data, is it still happening? Don't wait for certainty before you contain.
- Contain without destroying evidence. Disable accounts instead of deleting them. Snapshot a disk, and capture memory if you can, before you terminate an instance. Revoke keys and sessions. Collect the most volatile evidence first, as RFC 3227 recommends: memory and network connections disappear long before anything on disk.
- Work out who must be told, and by when. Use the deadlines below. If personal data might be involved, bring in your lawyer or DPO straight away; by day three the notification is already late.
- Pick one voice. One person speaks to customers and staff, and everyone else waits for an agreed statement.
Two playbooks to write first
A playbook is a short checklist for one type of incident. Start with the two most small teams will meet.
A cloud access key has leaked
This happens to careful teams too: a key in a committed .env file, a CI log or a screenshot. If GitHub's secret scanning finds an AWS key in a public repository, it reports it to AWS, and AWS may attach the AWSCompromisedKeyQuarantineV3 policy to the IAM user, which denies a set of actions commonly abused after a leak. AWS also opens a support case when it does this; follow its instructions rather than detaching the policy yourself. Treat it as a head start: the key still works for anything the policy doesn't block.
KEY_ID=AKIAIOSFODNN7EXAMPLE
KEY_USER=$(aws iam get-access-key-last-used --access-key-id "$KEY_ID" \
--query UserName --output text)
aws iam update-access-key --user-name "$KEY_USER" --access-key-id "$KEY_ID" --status Inactive
for region in $(aws ec2 describe-regions --region us-east-1 \
--query 'Regions[].RegionName' --output text); do
echo "== $region"
aws cloudtrail lookup-events --region "$region" \
--lookup-attributes AttributeKey=AccessKeyId,AttributeValue="$KEY_ID" \
--query 'Events[].[EventTime,EventName,EventSource]' --output text
doneThe first command looks up which IAM user owns the key, so you don't have to guess before switching it off. The loop is there because event history is kept per region, and an attacker will happily use regions you never touch. IAM changes appear in us-east-1.
The lookup only finds calls signed with that key. If the output shows GetSessionToken, GetFederationToken or AssumeRole, the attacker may also hold temporary credentials, whose key IDs start with ASIA. Switching off the original key isn't enough on its own: AWS says temporary credentials stay valid until they expire (up to 36 hours) and that you stop them by removing the permissions behind them. So attach the AWSDenyAll managed policy to the user until you're done, revoke active sessions on any role the key assumed, and run the same lookup for every ASIA key ID that appears. Then work through the rest:
- Deactivate first and delete later. An inactive key can be switched back on in seconds if a forgotten production job depended on it, which saves you an outage on top of the incident.
- Read the key's activity for signs of persistence: new IAM users, keys, roles or console passwords, changed trust policies, new Lambda functions, opened security groups, and instances in regions you never use (stolen keys are often used to mine cryptocurrency).
- Check the bill and any cost anomaly alerts.
- If the key could read S3 buckets holding personal data and data-event logging was off, you probably can't prove what was read. Tell your lawyer, because it affects whether you have to treat the incident as a breach.
- Replace the key with something that leaks less easily. For CI pipelines that usually means short-lived credentials through OIDC role assumption instead of long-lived keys, one of the DevSecOps basics.
- Remove the secret from the repository history, and assume it's compromised anyway.
A staff mailbox has been taken over
Many mailbox takeovers are about money: the attacker watches a thread with a customer or supplier, then sends "updated bank details" at the right moment. The playbook:
- Reset the password and revoke all existing sessions. A password reset on its own may leave the attacker's current sessions working.
- Check the account's MFA methods and remove any the user didn't add.
- Look for inbox rules and forwarding. Rules that move or delete messages mentioning invoices or payments are a classic sign.
- Review the OAuth apps the user has consented to and remove unknown ones.
- Search the audit log for what the attacker did, and read the sent items for messages to customers and suppliers.
- Tell your finance team immediately, and warn anyone the account emailed during the attack.
Other playbooks worth having: ransomware on a laptop or server, a vulnerable dependency exploited in production, a lost or stolen device, and access by a former employee or contractor. If a recent penetration test showed you weak spots, write playbooks for those first.
Who you have to tell, and how fast
These are the deadlines most likely to apply to a software business with international customers. Contracts can add stricter ones, and enterprise customers' data processing agreements often do, so read yours before you need them.
Rule | Applies to | Deadline |
|---|---|---|
GDPR Article 33 (and UK GDPR) | Controllers of personal data of people in the EU or UK | The supervisory authority without undue delay and, where feasible, within 72 hours of becoming aware, unless the breach is unlikely to result in a risk to people. Affected individuals without undue delay when the risk is high (Article 34). |
GDPR Article 33(2) | Processors, such as a SaaS vendor or an agency handling a client's data | The controller, without undue delay |
Medium-sized and larger essential and important entities in the EU, including cloud, data center and managed IT and security service providers | Early warning within 24 hours of becoming aware of a significant incident, notification within 72 hours, final report within one month | |
KVKK (Türkiye) | Controllers processing personal data of people in Türkiye, including controllers based abroad | The KVKK Board within 72 hours; affected people as soon as reasonably possible once they're identified |
Türkiye's Cybersecurity Law No. 7545 | Organizations in Türkiye that provide services, or collect or process data, through IT systems (the wording is broad) | Incidents and vulnerabilities detected in your service area: the Cybersecurity Presidency, without delay |
US SEC Form 8-K, Item 1.05 | Public companies that file with the SEC (foreign private issuers use Form 6-K instead) | Four business days after deciding the incident is material |
Under the GDPR you can notify in phases if you don't have all the facts by hour 72, and you must keep an internal record of every breach, including the ones you don't report. The authority will want to know what happened, which categories of data and roughly how many people and records, the likely consequences and what you've done about it (Article 33(3)); if your plan already answers "what data lives where", that part is quick. The European Commission's Digital Omnibus proposal would extend the deadline to 96 hours and limit notifications to the authority to high-risk breaches, but as of October 2026 it is still at committee stage in the European Parliament, so plan for 72 hours.
Recovery and the review afterwards
Recovery means restoring from backups you know are clean, rotating every credential the attacker could have seen, and watching for their return for several weeks. Rebuilding a compromised server from a known-good image is safer than trying to clean it.
Within a week or two, hold a blameless review: the timeline, how the incident was detected, what slowed the response, and a short list of actions with owners and dates. Track two numbers across incidents: the time from the first malicious activity to detection, and the time from detection to containment. If the second keeps shrinking and the first doesn't, you've become better at responding and no better at noticing.
A SOC, MDR, an MSSP or a retainer?
A round-the-clock in-house SOC is expensive in people long before it's expensive in tools. A week has 168 hours and an analyst works about 40, so keeping a single seat filled at all times takes more than four full-time people before holidays, sickness and training, and one person per shift is not a SOC anyone should rely on. For most companies with fewer than a few hundred staff that's out of reach, and that's fine.
The realistic options:
- Managed detection and response (MDR). A provider watches telemetry from your endpoint agents, identity provider and cloud accounts around the clock and can contain threats on your behalf, for example by isolating a laptop. This is the usual answer to "we can't cover nights".
- A managed security service provider (MSSP). Broader managed security, often log monitoring plus running firewalls and other devices. Check what "response" includes; some only open a ticket for you.
- An incident response retainer. A contract signed in advance with a forensics and response firm, so that during a SEV-1 you aren't negotiating terms at midnight. If you have cyber insurance, check first whether the policy requires you to use the insurer's approved firms.
Whether to buy a SIEM or an XDR product comes after these. A small team on Microsoft 365 or Google Workspace and one cloud provider can get a long way with the security tooling those platforms already include, plus an EDR agent on laptops and servers, before paying for either.
Practice with a tabletop exercise
An untested plan has gaps nobody has noticed: the deputy who doesn't have admin rights, the backup nobody has ever restored, the lawyer whose number lives only in the compromised mailbox. A tabletop exercise finds them for the cost of an hour. Pick a scenario (the leaked key above is a good first one), talk it through with the people who would really be involved, and write down every "we don't know". The UK NCSC's Exercise in a Box is free and comes with ready-made scenarios on ransomware, phishing and supply-chain attacks. Run one at least once a year, and again after a big change such as a new cloud provider.
Frequently asked questions
Is incident response the same as disaster recovery?
No. Incident response deals with a security incident: finding the attacker, containing them, keeping evidence and meeting reporting duties. Disaster recovery brings systems back after any outage, whether the cause is an attack, a fire or a failed migration. The two meet at the recovery step, which is why backups and restore tests matter to both.
Do we have to report every incident?
No. Most incidents need no external report at all. GDPR reporting covers personal data breaches, and not even those if they're unlikely to result in a risk to people, though you still record them. NIS2 covers significant incidents at entities within its scope. Türkiye is stricter on paper: KVKK has no risk threshold once personal data has been unlawfully obtained by others, and Law 7545 asks for the cyber incidents, and even the vulnerabilities, you detect in your service area to be reported to the Cybersecurity Presidency. Whatever you decide, write down why.
Should we pay a ransom?
It's a business and legal decision, so involve your lawyer, your insurer and law enforcement before making it. Paying doesn't guarantee the stolen data is deleted or that you won't be extorted again, and it doesn't remove your duty to report the breach. In the US, the Treasury's OFAC has warned that paying a sanctioned group can itself break sanctions law.
If you need help with the application side of this, such as logging, patching and fixing what an incident exposed in a web app or API, our maintenance and support team does that work.
Related Articles
DevSecOps Pipeline: What to Scan, Where, and What Should Block
Secret, code, dependency, image and DAST scans for a small team's CI/CD pipeline: where each runs, what should block a merge, and a working GitHub Actions file.
Read More: DevSecOps Pipeline: What to Scan, Where, and What Should BlockSecure SDLC: What Each Phase Should Produce
What a secure SDLC adds to each phase of development: requirements you can test, a worked threat model for a CSV import, and where a small team should start.
Read More: Secure SDLC: What Each Phase Should ProduceOWASP Top 10 2025: What Changed and How to Fix Each Risk
OWASP's 2025 list adds two categories and folds SSRF into access control. What each risk looks like in a real web app or API, and what to fix first.
Read More: OWASP Top 10 2025: What Changed and How to Fix Each Risk
