You Have Been Breached
48 items · source
Contain first
- Verify there is a written first move for a suspected compromise, decided in advance.
- Verify you can revoke every session for every user with one action, and know how long it takes to propagate.
- Verify you can revoke a single user's or a single API key's access without revoking everyone's.
- Verify you can disable a compromised account without deleting it, so evidence survives.
- Verify you can take the service offline or into a maintenance mode deliberately, if containment requires it.
- Verify you can block an IP, a range or a country at the edge without a deploy.
- Verify isolating a compromised host does not destroy its memory and disk state.
Preserve evidence
- Verify logs are stored somewhere the attacker could not have altered, with enough retention to cover the time before you noticed.
- Verify log retention is long enough to matter — a breach is typically discovered long after it started.
- Verify you know how to snapshot a compromised instance before rebuilding it.
- Verify audit logs record who did what, including administrative actions, and that they cannot be deleted by the account that made them.
- Verify the incident timeline is recorded as you go, with timestamps and sources.
Rotate
- Verify there is a written, ordered list of every credential to rotate, so it is not assembled under pressure.
- Verify rotating each one is possible without downtime, or that the downtime is known.
- Verify rotation covers the ones people forget: signing keys, webhook secrets, database passwords, CI tokens, third-party API keys, OAuth client secrets, SSH keys, backup encryption keys.
- Verify a rotated credential is actually invalidated, not merely replaced.
- Verify sessions and tokens issued with an old signing key stop working after rotation.
- Verify you know which credentials cannot be rotated quickly, and have a plan for those specifically.
Size the blast radius
- Verify you can determine which data the compromised credential or account could reach — this is what every access-control item in
security/was for. - Verify you can tell whether data was actually accessed or exported, not only whether it could have been.
- Verify egress volume is visible historically, so a bulk export is detectable after the fact.
- Verify you can list which users are affected, because the notification obligation depends on it.
- Verify you check for persistence: new accounts, new keys, changed webhooks, scheduled jobs, forwarding rules, OAuth grants, modified CI workflows.
- Verify you can list, within an hour, every workflow run that executed a given third-party action between two timestamps and which secrets each of those jobs could read — that is the first question when an action's tags are found re-pointed to malicious code.
- Verify you check whether your service was used to attack someone else — see
security/core/18-abuse-and-availability.md.
Obligations
- Verify you know your breach notification deadline before you need it — under GDPR it is 72 hours from awareness, and other regimes differ.
- Verify you know who must be told: users, a supervisory authority, customers under contract, a cyber insurer, a payment processor.
- Verify contractual notification terms with business customers have been read, since they are often stricter than the law.
- Verify legal advice is obtainable quickly, and that you know who to call.
- Verify a breach notification template exists in advance — see
07-communication.md. - Verify you do not speculate publicly about cause or scope before you know; a correction is worse than a delay.
Extortion and ransom demands
- Verify whether you would pay a ransom or an extortion demand is decided and written down before an incident, together with who is allowed to make that call.
- Verify you know that paying can itself be unlawful — a payment to a sanctioned person or group breaks sanctions law (OFAC in the US, and its equivalents elsewhere) whoever asked for it — and that legal advice comes before any payment.
- Verify your cyber insurance terms on ransom, negotiators and approvals have been read, since many policies require their consent before you act.
- Verify the response team has a channel set up in advance that does not run on the company's own email, chat or identity provider, because an attacker inside often reads the response as it happens.
- Verify a claim of stolen data is checked against your own access and egress logs before anything is decided, since demands routinely overstate or invent what was taken.
- Verify nobody replies to the attacker who has not been told what not to say, since an unplanned reply confirms a live target and starts a negotiation.
- Verify reporting to law enforcement or the national cyber agency is a step in the runbook, with the contact written down before it is needed.
When the pressure moves to people
- Verify there is a plan for attackers contacting staff, founders or their families directly — threatening calls and messages, publishing home addresses (doxxing), false emergency calls that send armed police to a home (swatting) — and that people are told in advance it can happen.
- Verify staff know who to report a personal threat to, and that a person being targeted is not expected to keep working the incident alone.
- Verify the details an attacker would use are not public where avoidable: home addresses in company filings and domain
WHOIS, personal phone numbers on profiles, family members named in public posts. - Verify public filings use a registered office or agent address rather than a founder's home where the jurisdiction allows it.
- Verify support for a targeted person — time off, counselling, physical security at home — is decided before it is needed, not negotiated during the incident.
Recover
- Verify you rebuild from a known-good state rather than cleaning a compromised one.
- Verify the entry point is closed before the service is restored, or you will do this twice.
- Verify you can restore to a point before the compromise — see
04-data-loss.md. - Verify restored data is checked for attacker-planted changes, not only for completeness.
- Verify monitoring is heightened for a period afterwards, because a return visit is common.
# You Have Been Breached ## Contain first * [ ] Verify there is a written first move for a suspected compromise, decided in advance. * [ ] Verify you can revoke every session for every user with one action, and know how long it takes to propagate. * [ ] Verify you can revoke a single user's or a single API key's access without revoking everyone's. * [ ] Verify you can disable a compromised account without deleting it, so evidence survives. * [ ] Verify you can take the service offline or into a maintenance mode deliberately, if containment requires it. * [ ] Verify you can block an IP, a range or a country at the edge without a deploy. * [ ] Verify isolating a compromised host does not destroy its memory and disk state. ## Preserve evidence * [ ] Verify logs are stored somewhere the attacker could not have altered, with enough retention to cover the time before you noticed. * [ ] Verify log retention is long enough to matter — a breach is typically discovered long after it started. * [ ] Verify you know how to snapshot a compromised instance before rebuilding it. * [ ] Verify audit logs record who did what, including administrative actions, and that they cannot be deleted by the account that made them. * [ ] Verify the incident timeline is recorded as you go, with timestamps and sources. ## Rotate * [ ] Verify there is a written, ordered list of every credential to rotate, so it is not assembled under pressure. * [ ] Verify rotating each one is possible without downtime, or that the downtime is known. * [ ] Verify rotation covers the ones people forget: signing keys, webhook secrets, database passwords, CI tokens, third-party API keys, OAuth client secrets, SSH keys, backup encryption keys. * [ ] Verify a rotated credential is actually invalidated, not merely replaced. * [ ] Verify sessions and tokens issued with an old signing key stop working after rotation. * [ ] Verify you know which credentials cannot be rotated quickly, and have a plan for those specifically. ## Size the blast radius * [ ] Verify you can determine which data the compromised credential or account could reach — this is what every access-control item in `security/` was for. * [ ] Verify you can tell whether data was actually accessed or exported, not only whether it could have been. * [ ] Verify egress volume is visible historically, so a bulk export is detectable after the fact. * [ ] Verify you can list which users are affected, because the notification obligation depends on it. * [ ] Verify you check for persistence: new accounts, new keys, changed webhooks, scheduled jobs, forwarding rules, OAuth grants, modified CI workflows. * [ ] Verify you can list, within an hour, every workflow run that executed a given third-party action between two timestamps and which secrets each of those jobs could read — that is the first question when an action's tags are found re-pointed to malicious code. * [ ] Verify you check whether your service was used to attack someone else — see [`security/core/18-abuse-and-availability.md`](../security/core/18-abuse-and-availability.md). ## Obligations * [ ] Verify you know your breach notification deadline before you need it — under GDPR it is 72 hours from awareness, and other regimes differ. * [ ] Verify you know who must be told: users, a supervisory authority, customers under contract, a cyber insurer, a payment processor. * [ ] Verify contractual notification terms with business customers have been read, since they are often stricter than the law. * [ ] Verify legal advice is obtainable quickly, and that you know who to call. * [ ] Verify a breach notification template exists in advance — see [`07-communication.md`](07-communication.md). * [ ] Verify you do not speculate publicly about cause or scope before you know; a correction is worse than a delay. ## Extortion and ransom demands * [ ] Verify whether you would pay a ransom or an extortion demand is decided and written down before an incident, together with who is allowed to make that call. * [ ] Verify you know that paying can itself be unlawful — a payment to a sanctioned person or group breaks sanctions law (OFAC in the US, and its equivalents elsewhere) whoever asked for it — and that legal advice comes before any payment. * [ ] Verify your cyber insurance terms on ransom, negotiators and approvals have been read, since many policies require their consent before you act. * [ ] Verify the response team has a channel set up in advance that does not run on the company's own email, chat or identity provider, because an attacker inside often reads the response as it happens. * [ ] Verify a claim of stolen data is checked against your own access and egress logs before anything is decided, since demands routinely overstate or invent what was taken. * [ ] Verify nobody replies to the attacker who has not been told what not to say, since an unplanned reply confirms a live target and starts a negotiation. * [ ] Verify reporting to law enforcement or the national cyber agency is a step in the runbook, with the contact written down before it is needed. ## When the pressure moves to people * [ ] Verify there is a plan for attackers contacting staff, founders or their families directly — threatening calls and messages, publishing home addresses (doxxing), false emergency calls that send armed police to a home (swatting) — and that people are told in advance it can happen. * [ ] Verify staff know who to report a personal threat to, and that a person being targeted is not expected to keep working the incident alone. * [ ] Verify the details an attacker would use are not public where avoidable: home addresses in company filings and domain `WHOIS`, personal phone numbers on profiles, family members named in public posts. * [ ] Verify public filings use a registered office or agent address rather than a founder's home where the jurisdiction allows it. * [ ] Verify support for a targeted person — time off, counselling, physical security at home — is decided before it is needed, not negotiated during the incident. ## Recover * [ ] Verify you rebuild from a known-good state rather than cleaning a compromised one. * [ ] Verify the entry point is closed before the service is restored, or you will do this twice. * [ ] Verify you can restore to a point before the compromise — see [`04-data-loss.md`](04-data-loss.md). * [ ] Verify restored data is checked for attacker-planted changes, not only for completeness. * [ ] Verify monitoring is heightened for a period afterwards, because a return visit is common. 48 items · https://github.com/FarzamHabibi/pre-production-checklist · CC BY 4.0