Skip to content
Back to Articles

Hacked by CoupDeGrace: The Defacement Owners Never See

Share:

The homepage loads. The shop takes orders. The owner sees nothing wrong. Yet a few clicks deeper, on a URL nobody on the team ever visits, the site says "Hacked by CoupDeGrace", and search engines, RSS readers and "related posts" widgets are happily passing that page around.

This defacement campaign is not over. In roughly one week of passive checks on public pages (late November 2026), I confirmed 14 sites that were still serving a live CoupDeGrace defacement, across Greek, Italian, EU and .com domains. Every one of them was a normal business site: real estate, manufacturing, news, retail. None of them had a defaced homepage.

This article explains how the defacement hides on WordPress and on Joomla, why updating alone does not remove it, and gives you read-only commands to check your own site in a few minutes.

🎭 One signature, two platforms

The same "Hacked by CoupDeGrace" banner shows up on two CMSs, planted in two completely different ways.

  • WordPress: the attacker publishes a regular post. Its slug is 12 hexadecimal characters followed by -htm (sometimes -htm.htm), for example /3f9a1c07be42-htm/. The title is "Hacked by CoupDeGrace". The homepage is left alone, especially on sites that use a static front page.
  • Joomla: owners on public Joomla forums describe a black screen with the text "Hacked By CoupDeGrace". A Russian web studio found the script in the active template style, under Custom Code, in the "Before" field. JoomShaper staff, answering a customer who reported a breach through the Helix Framework, pointed to Template Options → Custom Code → Custom JavaScript and to updating the Helix3 framework plugins to v3.1.2. Those reports are from July 2026.

On WordPress the defacement is content (a row in the database). On Joomla it is template configuration (a script stored in the template style's parameters). Neither one is a file you would spot by browsing the server, and neither one changes a core file, so a core checksum check comes back clean.

🙈 Why the owners never notice

On the WordPress sites I checked, the defacement never touched the front page. It surfaced in places owners rarely look:

  • The XML sitemap: the post is listed like any other article, so search engines are invited to index it.
  • "Related posts" and "Recent posts" widgets: on one real-estate site the title "Hacked by CoupDeGrace" was showing up under normal property listings.
  • The RSS feed, which feeds aggregators and newsletter tools.
  • The REST API: /wp-json/wp/v2/posts lists it to anyone who asks.

From the outside, the site looks fine. The owner sees the homepage every day and has no reason to open a random hex URL. Meanwhile the defacement can stay up for months: the post dates I saw ran from August to October 2026, and the posts were still live in late November.

🔓 What is publicly known about the entry point

I only looked at public pages, so I cannot tell how any of these particular sites were breached. Here is what others have published:

  • A detailed forensic write-up of one WordPress/WooCommerce site (published 29 July 2026) ties the campaign to a chain of two WordPress core REST API flaws it names CVE-2026-63030 and CVE-2026-60137 ("wp2shell"), abusing the /wp-json/batch/v1 endpoint without authentication. It lists the affected versions as 6.9.0–6.9.4 and 7.0.0–7.0.1, fixed in 6.9.5 and 7.0.2.
  • The same write-up describes much more than a defacement on that site: fake plugin folders, loaders in mu-plugins/ with names like wp-cache-handler-635fc220.php, a rogue administrator, a base64 payload in wp_options, cron persistence and a mail module.
  • On Joomla, the public threads point to the Helix3 template framework. The vendor's staff reply recommends updating the Helix3 plugins to v3.1.2. None of the threads publish the injected code itself.

Treat the defacement as the visible part of a compromise, not the whole of it. Someone who can publish a post as an administrator, or write into your template settings, could also have done things you cannot see.

🩹 Patched is not the same as clean

This is the part that surprised me. Of the 10 WordPress sites in my sample whose version I could read from the public pages, at least 7 were already running a release outside the published affected range (6.9.12, 7.1.3, 7.1.5) when I found the defacement. The door had been closed. The post was still there.

That makes sense once you remember what an update does: it replaces core files. It does not delete posts, users, options, mu-plugins or template settings. I reproduced this in an isolated lab: a WordPress 6.9.4 site with a planted "Hacked by CoupDeGrace" post, the read-only checks below, then an update to 7.1.5. The defacement still answers 200 after the update.

Isolated lab with no internet access: the homepage is clean, the REST API and sitemap reveal the post, and a core update to 7.1.5 leaves it online. The planted files are inert placeholders.

🔎 Check a WordPress site from the outside

These requests are read-only and work from any machine. Replace example.com with your domain.

# 1. Ask the REST API for posts that mention "hacked"
curl -s 'https://example.com/wp-json/wp/v2/posts?search=hacked&_fields=date,slug,link'; echo

# 2. Look for the 12-hex + "-htm" slug in the core sitemap
curl -s https://example.com/wp-sitemap-posts-post-1.xml | grep -oE '[0-9a-f]{12}-htm(\.htm)?'

# 3. Same check on the RSS feed
curl -s https://example.com/feed/ | grep -iE 'coupdegrace|[0-9a-f]{12}-htm'

If you use an SEO plugin, your sitemap may live at /sitemap_index.xml or /sitemap.xml instead. If the deface URL already returns 404 but you still suspect something, the REST search often finds the post under a different slug.

🗄️ Check WordPress on the server (read-only)

Take the database name and credentials from wp-config.php, and adjust the wp_ table prefix if yours is different. Nothing below changes anything.

-- Defacement posts, with their author and when that account was created
SELECT p.ID, p.post_date, p.post_status, p.post_name, u.user_login, u.user_registered
FROM wp_posts p
LEFT JOIN wp_users u ON u.ID = p.post_author
WHERE p.post_title LIKE '%CoupDeGrace%'
   OR p.post_name REGEXP '^[0-9a-f]{12}-htm';

-- Every administrator, newest first
SELECT u.ID, u.user_login, u.user_email, u.user_registered
FROM wp_users u
JOIN wp_usermeta m ON m.user_id = u.ID
WHERE m.meta_key = 'wp_capabilities' AND m.meta_value LIKE '%administrator%'
ORDER BY u.user_registered DESC;
cd /path/to/wordpress

# Core version (the published affected ranges are 6.9.0-6.9.4 and 7.0.0-7.0.1)
grep '^\$wp_version' wp-includes/version.php

# Must-use plugins load on every request; look for "name-.php" files
ls -la wp-content/mu-plugins/ 2>&1
ls wp-content/mu-plugins/ 2>&1 | grep -E -- '-[0-9a-f]{6,8}\.php$'

# Marker files named in the public forensic write-up
find . -maxdepth 4 \( -name cdg.txt -o -name cdg.html -o -name ganteng.html -o -name 0x.txt \) -ls

# PHP files inside uploads should not exist
find wp-content/uploads -name '*.php' -ls

# Plugin folders you do not recognise (compare with your own list)
ls -la wp-content/plugins/

An administrator account created a minute or two before the defacement post is a strong signal. So is a plugin folder with a random suffix that you never installed.

🧩 Check a Joomla site (read-only)

On Joomla, the place to look is the template style's stored parameters. In the administrator panel: System → Site Template Styles → your template → Template Options → Custom Code (Helix3), and check every custom code field (Custom JavaScript, Before </head>, Before </body>). From the database, take the prefix from $dbprefix in configuration.php and replace jos_:

-- Template styles whose stored settings contain the banner or any script tag
SELECT id, template, title, home
FROM jos_template_styles
WHERE params LIKE '%CoupDeGrace%'
   OR params LIKE '%<script%';

-- Super Users, newest first (group 8 is Super Users on a default install)
SELECT u.id, u.username, u.email, u.registerDate, u.lastvisitDate
FROM jos_users u
JOIN jos_user_usergroup_map g ON g.user_id = u.id
WHERE g.group_id = 8
ORDER BY u.registerDate DESC;
cd /path/to/joomla

# Joomla core version
grep -E "(MAJOR|MINOR|PATCH)_VERSION =|RELEASE =|DEV_LEVEL =" libraries/src/Version.php

# Helix3 framework plugin version (the vendor's fix is v3.1.2)
grep -h '<version>' plugins/system/helix3/helix3.xml plugins/ajax/helix3/helix3.xml 2>&1

A <script> tag in a custom code field is not automatically malicious: analytics and chat widgets live there too. Open each match and read it.

🧹 What cleaning it actually takes

Deleting the post, or blanking the custom code field, makes the banner disappear. It does not answer the real question: what else did the attacker leave behind? My general practice when a site shows a defacement like this:

  • Preserve evidence first: a full copy of the files, a full database dump and the web server logs, stored off the server.
  • Close the door: update core, the template framework and every extension. On WordPress, make sure you are outside the published affected ranges. On Joomla, update the Helix3 plugins.
  • Remove the visible defacement (the post, or the injected script in the template style).
  • Hunt for persistence: unknown administrators or Super Users, unfamiliar plugin folders, anything in mu-plugins/ you do not recognise, PHP files in uploads/, suspicious options or cron entries, and server-level crontabs.
  • Reinstall core and extensions from clean packages rather than trusting the files on disk, and verify checksums.
  • Rotate every credential the site knows: admin accounts, database password, hosting/FTP/SSH and API keys.
  • Clean up search results: request removal of the indexed deface URL, and resubmit the sitemap.

✅ Quick checklist

  • REST API search for "hacked" returns nothing unexpected
  • No [0-9a-f]{12}-htm slugs in the sitemap or RSS feed
  • No unknown administrators or Super Users, especially recent ones
  • mu-plugins/ contains only files you can explain
  • No PHP files in uploads/, no marker files (cdg.txt, cdg.html, 0x.txt)
  • Joomla template custom code fields contain only scripts you added
  • WordPress core outside 6.9.0–6.9.4 / 7.0.0–7.0.1; Helix3 plugins on v3.1.2 or later

🧷 Indicators

  • Page/post title: Hacked by CoupDeGrace (also "Hacked By CoupDeGrace")
  • WordPress post slug: ^[0-9a-f]{12}-htm, optionally ending in .htm
  • Joomla: script in the template style's custom code fields that draws a black full-screen banner
  • From the public WordPress forensic write-up: marker files cdg.txt, cdg.html, ganteng.html, 0x.txt; mu-plugins named wp-<plausible-name>-<hex>.php; fake plugin folders such as media-optimization-core-<hex>; HTTP 207 responses to /wp-json/batch/v1 in access logs; user agents containing wp2shell

❓ FAQ

My homepage looks fine. Can I still be affected?

Yes. On WordPress the defacement is a separate post, so a static homepage stays untouched. Run the three outside checks above.

I already updated WordPress. Am I clean?

Not necessarily. An update replaces core files only. Most of the defaced sites I found were already on a fixed release while the post was still online.

Is it only WordPress?

No. Joomla site owners have reported the same banner since July 2026, injected through the template style's custom code settings, with public threads pointing to the Helix3 framework.

Is deleting the post enough?

It removes the symptom. Check for rogue administrators, mu-plugins, unknown plugin folders and PHP files in uploads, and rotate credentials.

📚 Sources

Is your website one of them?

Request an on-demand scan

Your website gets checked the same way, by hand, with a written report of what we see.