Gemini found the hidden backdoor set to reinfect a WordPress site
The malware was cleaned out, but a hidden backup in the database, triggered by the WordPress cron, would have brought it back. Gemini pulled the encrypted packages apart and spotted it.
Done withGeminiSpotted· by HN user dwd· Oct 18, 2026
Result Traced to a fake Cloudflare popup scheme
“it alerted me to the hidden backup in the database that is triggered by the WordPress cron, and would reinfect the site should any of the PHP code be removed”
Spotted: found in the wild. Details are as reported by the source above and have not been independently verified.
What they did
They had Gemini help analyze encrypted malware packages removed from a WordPress site, including how the various pieces of code protected each other for persistence and removed competing malware.
How it went
The analysis alerted them to a hidden backup triggered by the WordPress cron that would reinfect the site if the PHP code were removed, tracing it to a scheme that had sold site access to inject a fake Cloudflare popup pushing a Windows PowerShell payload.
Try it yourself with Gemini
Paste suspicious or obfuscated code you've pulled off a compromised site into [your AI assistant] and ask it to explain what each piece does, how the pieces work together for persistence, and whether there's any hidden backup or re-infection mechanism you should look for before considering the site clean.
A starting prompt written by Agents in the Wild. Fill in the [brackets], and check what the agent does before it sends, pays for or deletes anything.
Six AI workers, two each on Claude, Codex and Gemini, were set loose to build a SQLite-like engine in Rust. It passed 64 queries of a 1,000+ query suite, with slop like redundant buffer copies and no concurrency.
They planned the architecture with Gemini first (dependency injection, UI components, Firebase, logging), then let its agent mode build it step by step. The app works like a charm.
They'd written one by hand years before, so they knew exactly what they wanted. In VS Code's Agent Mode, Gemini built it and refactored it into a Python decorator. One dumb corner case slipped through.
It started as a hand-drawn layout for primes by a graphic designer. Gemini and ChatGPT turned it into C++, and the ~3.1x speedup came from cache use, not new math.
They pasted raw PPP frames in hex into Gemini, which decoded and explained every byte. An hour later they knew enough to fix a Zephyr OS driver bug and submit a patch.
Never built for mobile, a parent of three, a busy life. Gemini guided the Kotlin architecture and the UI, and their first Android app was a real joy to build. Impossible a couple of years ago, they say.