Incident response playbook · IR-47

Website or Web Application Compromise: Response Playbook

The public site shows content you did not publish, redirects visitors, serves malware, or a web application shows signs of attack. 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 business network hero network engineer tablet
From our sample report
See this playbook as we deliver it

This is the website or web application compromise page from the 50-playbook sample we prepared for a fictional distribution company.

Sample · fictional companySample playbook page IR-47 (Kestrel Harbor Distribution, fictional company)
Intelligence Center›Incident Response Playbook Library›Detection and vulnerabilities›IR-47
Usual severity SEV 2 HighCategory Detection and vulnerabilitiesCalled first Security leadPlaybook IR-47
The one-minute answer

What to do when this happens

What it is: The public site shows content you did not publish, redirects visitors, serves malware, or a web application shows signs of attack.

First call: Security lead, who works with the IT Director acting as Incident Commander.

The move that matters most: Take the site offline or show a static maintenance page. Change all site, hosting, database and API credentials. Block attacker addresses.

When your public website shows content you did not publish, redirects visitors elsewhere or serves malware, customers and search engines notice quickly. A compromised web application may also expose customer data entered through forms or portals.

This playbook takes the site offline or behind a maintenance page, changes every site, hosting, database and API credential, preserves logs, finds and closes the entry point, and restores from a clean copy before the site returns.

What it is

Common causes and early warning signs

Common causes

  • An outdated plugin, theme or content management system
  • Stolen administrator or hosting credentials
  • A vulnerable custom web application
  • A compromised third-party script or service

Early warning signs

  • Pages or content you did not publish
  • Visitors redirected to other sites
  • Browser or search engine warnings about malware
  • Unknown administrator accounts or files on the server
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. 1Security lead
  2. 2Website owner
  3. 3IT Director
  4. 4Communications lead
  5. 5Company attorney if customer data is involved

Departments involved

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

IT SecurityWeb teamCommunicationsLegal
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

Web application firewall. MFA for site administrators. Platform and plugins patched. Daily site backups kept off the server.

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. What visitors see, when it was noticed, and what the site connects to.

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

    Web server, application and WAF logs; file change list; admin user list; database query logs.

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

    Look for web shells, new admin users, injected scripts and database extraction. Find the entry point.

    Led by: Security team
  4. STEP 04
    PRESERVATION
    Preservation

    Copy the compromised site files and logs before restoring.

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

    List the site, payment page, customer portal and connected databases.

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

    Take the site offline or show a static maintenance page. Change all site, hosting, database and API credentials. Block attacker addresses.

    Led by: Security team
  7. STEP 07
    ANNOUNCEMENTS
    Announcements

    Inform the CISO and CIO within 30 minutes. Tell affected staff what to do through a trusted channel. No outside statement without the attorney.

    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, CISO
  9. STEP 09
    FIX
    Fix

    Restore from a clean backup taken before the compromise, then patch before going live.

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

    Rescan the site and request removal of browser and search warnings.

    Led by: Security 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. Outside statements only as the attorney approves.

    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. Keep evidence for as long as the attorney instructs.

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

    Hold a review within 5 business days with every department involved. Put the site behind a WAF and schedule patching.

    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-47: website or web application compromise (one page in the sample playbook set)
Playbook IR-47: website or web application compromise (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

  • Restoring a backup without closing the entry point
  • Leaving old credentials unchanged
  • Deleting malicious files before preserving logs
  • Ignoring customer data collected through the site

Most of these are prevented in the readiness stage. A Network Vulnerability Assessment 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 website or web application compromise, with your contacts, systems, call order and decision authority.

See what is included

Incident Response Advisory & Evidence Preservation

$3,500 per engagement

When this happens, we help you preserve evidence, coordinate the response with your IT team, attorney and insurer, and document every decision.

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

Should we take the site offline?

Yes, or put up a static maintenance page, so visitors are not harmed while the site is cleaned.

Can we just restore yesterday's backup?

Only after the entry point is found and closed, and only from a backup that predates the compromise. Otherwise the attacker returns.

Is customer data at risk?

If the site collects data through forms, accounts or payments, it may be. The attorney decides on notification.

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.