Skip to content
Mohammad Kazim
Colour theme

Hire me
← All case studies

Security · Remediated

A credential stealer behind repeated reinfection

A site that kept getting reinfected after every cleanup. The cause was a stealer in the theme sending each admin login to an outside server.

10–16 s → 2 stime to first byte after the fix

Illustrative screen. Designed for this portfolio with sample content.

Illustrative screen with sample content

Illustrative screen for A credential stealer behind repeated reinfection

What I did

The site had been compromised for about eight months, and a first cleanup was followed by reinfection within days.

  1. Took a full evidence backup of files, logs and database before touching anything.
  2. Found a credential stealer inside the theme that sent every admin login to an outside server.
  3. Removed a disguised web shell, three fake plugins, three mu-plugins files, two hidden admins and 45 injected theme lines.
  4. Verified WordPress core against official checksums and rotated the database password, keys and salts.
  5. Closed a public data exposure and disabled a runaway import job.

What changed

  • Every persistence layer removed and the reinfection cycle ended.
  • Time to first byte cut from 10–16 s to about 2 s.
  • Written incident report with timeline and follow-up checks.
Next case studyRecovering a site after a two-year, multi-actor compromise