Incident response playbook · IR-35

Database Corruption or Data Loss: Response Playbook

A database is corrupt, or data was deleted or overwritten by a script, an application fault or failed storage. Here is who to call first, what to do in order, and how to close it out.

IT team working through an incident in a server room
One page · one incident
Every step has an owner
13stages from readiness to lessons learned
5calls in order
11numbered response steps

Each playbook in our sample plan fits on one printed page, so it still works when systems are down.

ocsa bcdr sample hero engineer laptop rack
From our sample report
See this playbook as we deliver it

This is the database corruption or data loss page from the 50-playbook sample we prepared for a fictional distribution company.

Sample · fictional companySample playbook page IR-35 (Kestrel Harbor Distribution, fictional company)
Intelligence Center›Incident Response Playbook Library›Servers, storage and applications›IR-35
Usual severity SEV 1 CriticalCategory Servers, storage and applicationsCalled first Database administratorPlaybook IR-35
The one-minute answer

What to do when this happens

What it is: A database is corrupt, or data was deleted or overwritten by a script, an application fault or failed storage.

First call: Database administrator, who works with the IT Director acting as Incident Commander.

The move that matters most: Take the application offline or restrict the database to read access to stop further damage.

When a database is corrupt, or data has been deleted or overwritten by a script, an application fault or failing storage, the most important fact is when the damage started. That time decides the restore point and how much work must be redone.

This playbook stops further damage by taking the application offline or making the database read-only, identifies the cause, restores to the right point, and checks whether the loss is a reportable event.

What it is

Common causes and early warning signs

Common causes

  • A failing disk or storage controller
  • Human error: a script or query run against the wrong database
  • An application bug that overwrote records
  • Deliberate damage by an insider or attacker

Early warning signs

  • Consistency check errors or I/O errors in the database log
  • Users report missing or wrong records
  • A script or job ran shortly before the problem appeared
  • Reports suddenly show totals that do not match
Who to call

Call order and departments involved

The playbook lists who is told, in order, so nobody spends the first half hour deciding whom to call. This is the call order from the sample plan; in your plan the names, alternates and phone numbers are your own.

  1. 1Database administrator
  2. 2Application owner
  3. 3IT Director (Incident Commander)
  4. 4Backup lead
  5. 5CIO

Departments involved

Each department has a defined role during the incident, described on the departments page of the playbook set.

DatabaseApplication ownerBackupExecutive
The 13 stages

Step by step: before, during and after

Every playbook follows the same 13 stages, so the team always knows where it is. The steps below are the sample playbook’s own words.

Before the incident · readiness

Full, differential and log backups with tested point-in-time restore. Change scripts reviewed and run in test first.

Owner: IT management
During the incident · steps 1 to 11
  1. STEP 01
    FIRST INFORMATION
    First information

    Record who reported it, when and what they saw. Which database and tables, when the damage started, and what ran at that time.

    Led by: Service Desk, Database team
  2. STEP 02
    DATA COLLECTION
    Data collection

    SQL error log; DBCC CHECKDB output; backup history; change and job history; storage error logs.

    Led by: Database team
  3. STEP 03
    DISCOVERY AND SCOPE
    Discovery and scope

    Fix the exact time the damage started; it sets the restore point. Decide between storage fault, human error, application bug or deliberate action.

    Led by: Database team
  4. STEP 04
    PRESERVATION
    Preservation

    Take a tail-log backup of the damaged database as it is before any repair. Stop retention jobs from deleting older backups.

    Led by: Database team
  5. STEP 05
    SERVICE STATUS
    Service status

    List the applications and reports that use the data and whether they must stop.

    Led by: Service Desk / NOC
  6. STEP 06
    WORK ON THE INCIDENT
    Work on the incident

    Take the application offline or restrict the database to read access to stop further damage.

    Led by: Database team
  7. STEP 07
    ANNOUNCEMENTS
    Announcements

    Inform the business owner and executives within 30 minutes and open an emergency meeting. Tell all staff what is down, the workaround and the next update time, through a channel that still works.

    Led by: Incident Commander, Communications
  8. STEP 08
    LEGAL PROCEDURE
    Legal procedure

    Call the company attorney before any outside statement. The attorney decides whether this is a reportable breach and sets each deadline. Notify the cyber insurance carrier before hiring vendors.

    Led by: Attorney, Compliance
  9. STEP 09
    FIX
    Fix

    Restore to a point just before the damage on a separate server and compare. Choose with the owner: full point-in-time restore or copying only the lost data back.

    Led by: Database team
  10. STEP 10
    RECOVER AND VERIFY
    Recover and verify

    The application owner verifies the data and signs off. Identify transactions to re-enter.

    Led by: Database team, system owners
  11. STEP 11
    RECOVERY NOTICE
    Recovery notice

    Tell the same audience that service is restored, what they must do now, and who to call if a problem remains.

    Led by: Incident Commander, Communications
After the incident · steps 12 and 13
  1. STEP 12
    FINALIZE AND DOCUMENT
    Finalize and document

    Close the incident record with the timeline, evidence list, downtime and cost. Issue the incident report.

    Led by: Incident Commander
  2. STEP 13
    LESSONS LEARNED
    Lessons learned

    Hold a review within 5 business days with every department involved. Executives accept the amount of data lost; add safeguards against the cause.

    Led by: All departments

Time targets in the announcement step belong to the fictional sample company. OC Security Audit does not promise response or recovery times; your own targets are agreed during planning.

From our sample report

What this playbook looks like when we deliver it

These are real pages from the incident response sample we prepared for Kestrel Harbor Distribution, a fictional company. Use the arrows or thumbnails, and click a page to zoom in.

Sample report page (Kestrel Harbor Distribution, fictional company): Playbook IR-35: database corruption or data loss (one page in the sample playbook set)
Playbook IR-35: database corruption or data loss (one page in the sample playbook set)1 / 3
Sample · Kestrel Harbor Distribution is a fictional company
Mistakes to avoid

What turns this incident into a longer one

  • Keeping the application running and letting damage spread
  • Restoring the latest backup without checking it predates the damage
  • Overwriting the damaged database before saving a copy
  • Skipping the legal step when personal data may be lost

Most of these are prevented in the readiness stage. A Database Security Audit checks the settings behind them, and an incident response readiness assessment checks whether the people, contacts and decisions are in place.

Frameworks

Where auditors and insurers expect this

A documented and tested playbook for this incident is evidence for several frameworks and for cyber insurance questionnaires.

Framework or ruleWhat it expects
NIST CSF 2.0RS.MA (incident management), RS.CO (incident response reporting and communication), RC.RP (incident recovery plan execution)
NIST SP 800-61 Rev. 3Incident response recommendations mapped to the CSF 2.0 functions
ISO/IEC 27001:2022Annex A 5.24 to 5.27 (incident management), 5.29 (security during disruption), 5.30 (ICT readiness for business continuity)
HIPAA Security Rule45 CFR 164.308(a)(6) security incident procedures and 164.308(a)(7) contingency plan, where the business handles ePHI
SOC 2CC7.4 and CC7.5 (respond and recover), A1.2 and A1.3 (availability: recovery infrastructure and testing)
PCI DSS v4.0.1Requirement 12.10.1, an incident response plan ready to activate, where card data is in scope

General information, not legal advice. Your attorney and auditor confirm what applies to your business.

Get it written for your business

Turn this sample into your own plan

Incident Response Plan & Playbooks

$3,500 fixed

We write your incident response plan and the playbooks for the incidents most likely to hit your business, including database corruption or data loss, with your contacts, systems, call order and decision authority.

See what is included

Incident Response Tabletop Exercise

$3,500 fixed

We run this scenario with your leadership and IT team in a two-hour session, then give you an after-action report with dated fixes.

Learn more

Already in the middle of an incident? See Incident Response Advisory & Evidence Preservation. Want to know how ready you are first? Start with the readiness assessment. All options are on the incident response and outage resilience page and the pricing page.

Ali Hassani, CISO, CISSP
Written by

Ali Hassani, CISO

Ali Hassani is a Certified CISO (C|CISO) and CISSP with more than 25 years in IT, cybersecurity and infrastructure. He has designed, implemented and secured more than 100 business networks. OC Security Audit is based in Irvine, California, works on-site across Orange County, Los Angeles and Southern California, and remotely nationwide.

FAQ

Questions about this playbook

Why does the exact time matter?

It sets the restore point. Restoring a backup taken after the damage brings the damage back; restoring too early loses good work.

Is data loss a reportable breach?

It can be if personal or regulated data was destroyed or exposed. The attorney decides and sets any deadline.

Should we keep the damaged database?

Yes. Save a copy before any repair or restore. It is evidence and may hold data not in the backup.

Is this playbook legal advice?

No. The legal step tells the team when to involve the company attorney and the cyber insurance carrier. The attorney decides whether an incident is reportable and confirms every deadline.

Can OC Security Audit write playbooks for our business?

Yes. Incident Response Plan & Playbooks is a $3,500 fixed engagement: we write your plan and the playbooks for the incidents most likely to affect you, with your own contacts, systems and call order.