This week’s backdoored WP Connect plugins are a good excuse to check that the code on your WordPress server is the code WordPress.org actually published. WP-CLI can compare your files against the official checksums in one command. I run this on my own sites after any scare.
1. Check WordPress core
cd /path/to/your/wordpress
wp core verify-checksums
You want Success: WordPress installation verifies against checksums. Anything listed as modified or added in core deserves a look.
2. Check every plugin
wp plugin verify-checksums --all
It reports files that don’t match and files that shouldn’t be there. Premium or custom plugins that aren’t on WordPress.org will show as unverifiable, and that’s expected, so check those against the vendor’s download instead.
3. Look for the usual leftovers
wp plugin list --fields=name,version,status,update
wp cron event list --fields=hook,next_run_relative
find wp-content/uploads -name '*.php' -newer wp-config.php
PHP files under uploads and cron hooks you don’t recognize are the classic signs of a web shell or persistence, the exact tricks the WP Connect backdoor used.
4. If something doesn’t match
Take a backup first for evidence, then reinstall the plugin cleanly with wp plugin install NAME --force, rotate admin passwords and application passwords, and re-run the checks.
Review before you install: read the release notes yourself, back up your config, and try new versions somewhere you can afford to break first.
God Bless, and May the Source Be with You!