Security1/1/2026• 5 min read

Post-Compromise Credential Rotation

After a breach, rotate every credential: DB, WP salts, FTP/SSH, admin accounts, API keys.

Ali Khaleghi

Systems Engineer

Post-Compromise Credential Rotation

Overview

After a compromise, attackers often leave behind stolen credentials that they'll use later. I perform a thorough credential rotation across the entire server — database passwords, WordPress salts, FTP/SSH keys, admin accounts, and API keys — closing the backdoor for good.

Changing passwords is not enough. You must change every secret the attacker may have touched.

What I Do

  • Database Credentials: Rotate all DB user passwords, update wp-config and app configs
  • WordPress Salts: Regenerate AUTH_KEY, SECURE_AUTH_KEY, and all salts
  • FTP/SSH Keys: Rotate SSH keys, reset FTP passwords, remove unauthorized keys
  • Admin Accounts: Audit and purge rogue admins, reset legitimate admin passwords
  • API Keys: Rotate hosting panel, third-party, and webhook secrets
  • Env Files: Secure .env files, fix permissions (600)

My Approach

  1. Audit (0-2h): Identify all credential stores and potential leaks
  2. Rotate (2-12h): Systematic rotation with config updates
  3. Verify (12-18h): Confirm all services functional with new credentials
  4. Document (18-24h): Credential handover and rotation log

Proof: 113 wp-config.php secured (640 perms), 10 .env hardened (600), rogue admins purged, salts rotated across 57 accounts.

Pricing

Price range: 10–25M Toman
Turnaround: 6-24 hours
Includes: Full credential audit, rotation, config updates, verification, documentation
Platforms: DirectAdmin, WHM/cPanel, cPanel
Follow-up: 7 days monitoring included

10000000–25000000 Toman6-24 hours
SecurityCredentialsBreachWordPressDirectAdminWHMcPanel

Written by Ali Khaleghi

Building and rescuing servers since 2010.

Reviews (2)

CA
Client A★★★★★

Excellent work, fast turnaround.

2026-01-15

CB
Client B★★★★☆

Professional and reliable.

2026-02-20