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.

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

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

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.
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
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.
- 1Security lead
- 2Website owner
- 3IT Director
- 4Communications lead
- 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.
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.
Web application firewall. MFA for site administrators. Platform and plugins patched. Daily site backups kept off the server.
Owner: IT management- STEP 01
FIRST INFORMATIONFirst informationRecord 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 - STEP 02
DATA COLLECTIONData collectionWeb server, application and WAF logs; file change list; admin user list; database query logs.
Led by: Security team - STEP 03
DISCOVERY AND SCOPEDiscovery and scopeLook for web shells, new admin users, injected scripts and database extraction. Find the entry point.
Led by: Security team - STEP 04
PRESERVATIONPreservationCopy the compromised site files and logs before restoring.
Led by: Security team - STEP 05
SERVICE STATUSService statusList the site, payment page, customer portal and connected databases.
Led by: Service Desk / NOC - STEP 06
WORK ON THE INCIDENTWork on the incidentTake the site offline or show a static maintenance page. Change all site, hosting, database and API credentials. Block attacker addresses.
Led by: Security team - STEP 07
ANNOUNCEMENTSAnnouncementsInform 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 - STEP 08
LEGAL PROCEDURELegal procedureCall 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 - STEP 09
FIXFixRestore from a clean backup taken before the compromise, then patch before going live.
Led by: Security team - STEP 10
RECOVER AND VERIFYRecover and verifyRescan the site and request removal of browser and search warnings.
Led by: Security team, system owners - STEP 11
RECOVERY NOTICERecovery noticeTell 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
- STEP 12
FINALIZE AND DOCUMENTFinalize and documentClose 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 - STEP 13
LESSONS LEARNEDLessons learnedHold 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.
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.

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.
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 rule | What it expects |
|---|---|
| NIST CSF 2.0 | RS.MA (incident management), RS.CO (incident response reporting and communication), RC.RP (incident recovery plan execution) |
| NIST SP 800-61 Rev. 3 | Incident response recommendations mapped to the CSF 2.0 functions |
| ISO/IEC 27001:2022 | Annex A 5.24 to 5.27 (incident management), 5.29 (security during disruption), 5.30 (ICT readiness for business continuity) |
| HIPAA Security Rule | 45 CFR 164.308(a)(6) security incident procedures and 164.308(a)(7) contingency plan, where the business handles ePHI |
| SOC 2 | CC7.4 and CC7.5 (respond and recover), A1.2 and A1.3 (availability: recovery infrastructure and testing) |
| PCI DSS v4.0.1 | Requirement 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.
Turn this sample into your own plan
Incident Response Plan & Playbooks
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 includedIncident Response Advisory & Evidence Preservation
When this happens, we help you preserve evidence, coordinate the response with your IT team, attorney and insurer, and document every decision.
Learn moreAlready 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
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.
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.
More from the playbook library
Sources: NIST SP 800-61 Rev. 3, Incident Response Recommendations; NIST Cybersecurity Framework 2.0. Playbook steps are from OC Security Audit’s sample incident response playbooks for a fictional company. Every name and figure in the sample is invented.