WordPress · Drupal · Site Maintenance · Technical SEO · Editorial Policy

How to Tell if Your Ghost Site Has Been Compromised

A compromised Ghost site rarely announces itself. More often the site looks normal to you while visitors or search engines see something different. This guide covers the signs worth checking, how to confirm what you find, and what to do first.

Ghost is a Node.js publishing platform. You either run it yourself, usually with Ghost-CLI, or use the managed Ghost(Pro) service. That split matters here. On Ghost(Pro) the platform and server are looked after by Ghost, so your checks centre on accounts, content and integrations. On a self-hosted install you are also responsible for the server, Node.js, Ghost updates and file access.

Signs inside Ghost Admin

Start in the admin area, because most Ghost-level tampering leaves a trace there.

  • Unknown staff users. Open the Staff area in settings and read every name and email address. Check roles too. An Administrator or Editor you do not recognise is a serious warning. A familiar account whose email address has changed is just as suspicious.
  • Unfamiliar integrations. Ghost lets you create custom integrations, each with Admin API and Content API keys, and add webhooks to them. An integration nobody on your team set up could give someone access that survives a password change.
  • Edited code injection. Ghost has a Code injection setting that adds your own code to the site header and footer. Individual posts and pages can also carry their own header and footer code. This is a common place to hide a malicious script, because it loads on every page without touching the theme.
  • A theme you did not upload. Check the list of installed themes and which one is active. A theme you do not recognise, or one that changed without a deliberate update, deserves a closer look.
  • Changed redirects. Ghost supports a redirects file for sending old URLs to new ones. A redirect that sends real pages to an unfamiliar domain is a classic sign of tampering.
  • Content you did not write. Look for new posts, pages or members you did not create, along with edited links in older posts. Where your Ghost version offers post history in the editor, it helps you see what changed.

Signs visitors and search engines see

Some compromises only show up from the outside. Check these as well.

  • Spam pages. Search for your domain with the site: operator and scan the results for pages about topics you never publish, such as pharmaceuticals, gambling or counterfeit goods.
  • Browser or search warnings. A browser interstitial, or a security notice in Google Search Console, means a search engine has flagged something.
  • Unexpected redirects. Visitors, especially those arriving from search or on mobile devices, land on a site that is not yours. Test in a private window as well as when logged in.
  • Strange pop-ups, ads or forms that your theme and settings do not explain.
  • Sudden changes in traffic or email. A drop in search visibility, odd newsletter sends or unexplained bounce messages can all point to misuse.

How to confirm what you found

Do not trust a single symptom. Work through these steps and note what you see before you change anything.

  1. View the page source. In a private window, open your homepage and an article, then view the source. Look for script tags or iframes you do not recognise, especially ones loading from unfamiliar domains or containing long encoded strings.
  2. Compare against your own code injection. Anything that appears in the source but not in your theme or your Code injection settings came from somewhere else, such as an integration, a third-party embed or the server.
  3. Review the browser’s network panel. It lists every request a page makes. Requests to domains you cannot account for are worth tracing. The MDN guide to Content Security Policy explains one way to limit which sources a page may load from.
  4. Check search engine tools. Search Console reports security issues and shows which URLs are indexed. Pages you never published show up there.
  5. Check the theme files. Download the active theme and compare it with the original copy you or your developer have. Added or changed template files are a red flag.
  6. On self-hosted installs, check the server. Review recently modified files, unfamiliar user accounts, scheduled tasks and the access logs. Running ghost doctor checks your environment, though it will not tell you whether someone has broken in.

A false alarm is possible. A forgotten analytics snippet or a former colleague’s integration can look suspicious, so check with your team before concluding the worst.

First steps if the site is compromised

Order matters. Cut off access first, then clean up.

  1. Keep a record. Take screenshots and save the page source and any logs before you change anything. You will need them to work out how access happened.
  2. Change credentials. Reset the password for every staff user, starting with the Owner account, and use a unique password for each. Turn on any extra login protection your Ghost version offers, and keep device verification emails going to an address you control.
  3. Remove what does not belong. Delete unknown staff users, regenerate or delete suspicious integrations and their API keys, and clear out any code injection you did not add.
  4. Restore trusted files. Replace the theme with a clean copy from a source you trust, and review your redirects file against your own records.
  5. Restore content carefully. Ghost lets you export your content, and you can use a backup made before the problem started. Check that backups are clean before you restore from them, or you may bring the problem back.
  6. On self-hosted installs, secure the server. Update Ghost and Node.js, rotate SSH keys and any database or mail credentials, and remove unfamiliar server accounts. If you cannot tell how the intruder got in, rebuilding the server from a clean image is safer than patching it.
  7. On Ghost(Pro), contact support. Ghost’s team can check things you cannot see, such as platform-level logs.
  8. Ask search engines to re-review. If a warning appeared in Search Console, use its review request once you have cleaned up.

Reducing the chance of a repeat

Most compromises come through weak or reused passwords, outdated software or an over-trusted add-on. A few habits cover most of the risk.

  • Give every person their own staff account with the lowest role that does the job.
  • Review staff, integrations and code injection on a regular schedule, not only after an incident.
  • Only install themes and integrations from sources you trust, and read the code of anything custom.
  • If you self-host, apply Ghost and Node.js updates promptly. The Ghost documentation covers installing and updating.
  • Keep tested backups somewhere separate from the server.

The OWASP Top Ten gives a plain-language overview of the most common web application risks, which is useful background when you decide what to harden first.

Frequently asked questions

Can a Ghost(Pro) site be compromised?

Yes, although the platform and server are managed for you. Stolen staff passwords, a malicious integration or injected code added through the admin area can all affect a hosted site. The checks in the admin area apply equally to Ghost(Pro).

Is my site hacked if I see an unknown script in the source?

Not necessarily. Analytics, embeds, membership tools and ad code all add scripts. Trace each one to its origin in your theme, Code injection settings or an integration. If you cannot account for it, treat it as suspicious.

Should I take the site offline while I investigate?

If visitors are being redirected or served harmful content, limiting access while you clean up protects them and your reputation. Capture evidence first, and tell your hosting provider or Ghost support what you have found.

We use essential cookies to make this site work and remember your preferences. We do not use advertising or analytics cookies. Privacy Policy. Cookie Policy.