Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,155 of 9,155 pages
About the help in other languages
All help pages

Defacement

Runbook for a public website showing content nobody authorized - contain with maintenance mode, find out whether it came through an account (audit trail) or through the files (file consistency check), restore, and…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/government/operations/incidents/defacement.md

On this page

Defacement

This runbook is for administrators and incident leads when a public website shows text or images nobody in the organization published. Defacement of a government site damages trust quickly; contain first, investigate second. Start with Incident response basics; the deeper procedure is Compromised site (hosting runbook).

Contents

  1. Contain
  2. Through an account or through the files?
  3. Content defacement: repair
  4. File defacement: rebuild
  5. Communicate and close
  6. Related pages

Contain

php bin/php/maintenance.php on --message="This service is temporarily unavailable." --allow-admin --allow-ip=<your address> --allow-root-user

If the defacement may have come through an administrator account, restrict the administration at the network level too (Restricting the administration). Preserve evidence before changing anything (files, database dump, var/log/ with audit/).

Through an account or through the files?

CheckCommand or pagePoints to
Who published or edited the defaced items?the item's versions page (/content/history/<object id>): creator of each version; Audit tab, Console, channel contentan account
Who signed in recently, from where?./console exp:audit tail --channel=access --lines=50 --allow-root-useran account
Were roles changed?the admin_role_granted alert; audit access channelan account with escalated rights
Did kernel files change?php bin/php/checkmanifest.php --all --extensionsthe files
Are there unexpected PHP files where PHP can write?find var/storage -name '*.php'the files
Is the audit trail intact?./console exp:audit verify --allow-root-usertampering

Content defacement: repair

  1. Disable the account used (Suspected account compromise).
  2. For each defaced object, open its versions page and Make a new draft from the last good version, then publish it (it passes the approval workflow like any version) (Version history and accountability).
  3. Remove items the attacker created; check the trash for items they removed and restore them.
  4. Many items affected: consider restoring the database from the last clean backup instead, accepting the loss of legitimate edits since then (Rollback planning).

File defacement: rebuild

Do not trust files from the compromised tree: deploy the code of the version's tag from a known-good source, restore var/storage and settings from a clean backup, update to the newest 6.0.x if the hole may be known, and change every credential the site holds. Follow the hosting runbook's "Eradicate and rebuild" and "Recover" sections.

Communicate and close

  1. Clear every cache so no defaced page is served: php bin/php/ezcache.php --clear-all --allow-root-user, then ./console exp:velocity cache clear --apply --allow-root-user; purge a CDN if you use one.
  2. Bring the site back online and check from outside.
  3. Public statement as agreed with communications; if personal data may be involved, see Data breach notification framing.
  4. Report to your security team or national authority as your rules require; hold a post-incident review.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x