In this guide
What AI is genuinely good at
- Decoding obfuscated code. Paste a suspicious block (with secrets removed) and ask what it does. AI is fast and usually accurate at unpacking base64, gzinflate and similar layers.
- Reading logs. Thousands of access log lines are tedious for a person. AI can quickly point out suspicious POST requests, odd user agents or a burst of activity around the time of the infection.
- Explaining things. What does
wp core verify-checksumsoutput mean? What’s this.htaccessrule doing? AI is a patient explainer. - Writing search commands. It can help you build
grepandfindcommands to look for patterns across thousands of files.
Where it goes wrong
- False confidence. AI can declare a site “clean” based on the files you showed it, without knowing about the database, cron jobs or other sites in the account.
- Destructive suggestions. “Delete all files modified in the last 30 days” sounds reasonable and can destroy a working site, including your uploads.
- Missing persistence. Reinfection sources are by nature in places you didn’t look, and an AI can only analyze what’s in front of it.
- Security of your access. Pasting real database passwords or giving an agent unrestricted SSH access creates its own risks.
- Confidently wrong details. WordPress internals change; an AI may suggest outdated commands or settings with total conviction.
How to use AI safely in a cleanup
- Back up first, files and database, before letting any tool or person change anything.
- Remove secrets from anything you paste: passwords, API keys, salts, customer data.
- Use AI to understand, not to delete. Let it explain code and logs; make the decisions yourself.
- Review every command before running it, especially anything with
rm,chmod -Ror database writes. - Verify independently. Re-scan, compare checksums, check the database, and test the site from a phone through a Google search.
- Follow a complete process, not just whatever the conversation leads to. My step-by-step guide to fixing a hacked WordPress site is a good checklist to keep AI on track.
From my cleanup work: AI tools are genuinely useful for decoding obfuscated payloads and scanning long logs faster. But the cases owners bring me after an AI-assisted cleanup failed tend to look the same: the visible files were removed nicely, while the database payload or the cron job that restores everything was never found, because nobody asked the AI to look there.
When to bring in a person
If the malware has come back after an AI-assisted cleanup, if the site is a store, or if you’re not comfortable judging the commands an AI suggests, that’s when an experienced human is worth it. See WordPress malware that keeps coming back, or send me what you’ve found so far.