The SC backdoor is a WordPress infection that comes back after you delete it. Sucuri found it stored in at least eight places at once, and each copy can rebuild the others, so deleting one file is not enough. How it reached these sites is not yet known.

What happened

  • It was named SC after the “SC_” markers in the injected code.
  • It keeps copies in files, in the database and in shared memory, and each place can restore the others.
  • A hidden file in mu-plugins is rebuilt from a copy in the plugins folder, an encoded stub in the cache folder or a ZIP bundle with a random name; a db.php drop-in in wp-content also loads it.
  • It hides from the plugin list and update checks, can create a hidden administrator, and takes commands through the Ethereum blockchain.
  • It can inject scripts into pages, run PHP code and switch off or remove plugins.

What to do now

  1. Make a full backup of the files and the database before you touch anything.
  2. Look in wp-content for files you did not put there: the mu-plugins folder, db.php and other drop-ins, hidden files that start with a dot, and ZIP files with random names.
  3. Check the administrators for accounts you do not know, and the scheduled tasks for odd names.
  4. Do not clean one piece at a time: the others rebuild it. Clean all copies in one pass, or restore from a clean backup and then update everything.
  5. Change every password and the security keys, then scan again until nothing new appears. If you are not sure, ask for help.

How the Baza Helper antivirus helps

Baza Helper Pro scans files and the database, compares WordPress and plugins with their official files and checks changed files every five minutes. It finds what is already on the site and is not a firewall, so update first. See the WordPress antivirus plugin, the documentation and our guide on how to check a WordPress site for malware.

Questions

How do I know whether my site has the SC backdoor?

There is no single sign. Look for unknown files in mu-plugins and wp-content, hidden administrators and odd scheduled tasks, and run a full scan.

Why does it come back after I delete it?

Because it lives in several places and each one can rebuild the rest, including a copy in shared memory on some servers.

Can a scanner remove it?

A scanner can find files and database entries and help you quarantine them. Shared memory sits outside WordPress files, so ask your host if you suspect it.

Source: The Hacker News (thehackernews.com).

Find malware before your visitors do

Baza Helper Pro scans your files and database for malware, compares WordPress and plugins with their official files and watches code changes while the site runs. A suspicious file goes to quarantine and comes back in one click.

  1. 01

    Scans every file and the database

  2. 02

    Compares with the official files

  3. 03

    Quarantine and restore in one click

Written by