PortGate

Guides · Agencies · 4 min

The Agency Security Playbook: Looking After Client Sites Without a Security Team

Inventory, access, updates, backups, monitoring and a plan for the bad day. A practical routine for agencies and freelancers who host client sites.

Clients rarely ask about security, but they all assume it is handled. When a site gets hacked, the agency loses a weekend, and often the client. You do not need a security team to prevent most of it. You need a routine that runs every month, whoever is on shift.

1. Know what you look after

Keep one list of every site and server, with:

  • domain and where DNS is managed
  • host, plan and server IP
  • stack and versions (WordPress, PHP, Node, Laravel)
  • who has access, and how
  • where backups go and when one was last restored
  • the client contact for emergencies

A spreadsheet is fine. What matters is that it is the only list, and that it is updated when a site is launched or handed over. Old sites nobody remembers are the ones that get hacked.

2. Control access

  • No shared passwords. Every person gets their own login on every server, hosting panel and WordPress admin. When someone leaves, you remove one person, not change twenty passwords.
  • SSH keys only on servers, with password logins turned off.
  • Two-factor authentication on hosting accounts, DNS providers, domain registrars and WordPress admins. The registrar matters most: whoever controls the domain controls everything.
  • A password manager with a shared vault per client, so credentials are never in chat or email.
  • Review access every quarter. Remove former staff, contractors and plugins that still have API keys.

3. Update on a schedule, not when you remember

Pick a day each month. On that day:

  1. Take a backup.
  2. Update WordPress core, plugins and themes (or composer update / npm update for apps) on staging first if the site has one.
  3. Apply operating system updates, or confirm unattended upgrades are running.
  4. Remove plugins and themes that are installed but not active. They can still be attacked.
  5. Note what changed in the site's log.

Abandoned plugins, the ones not updated in over a year, are the most common way in. Replace them.

4. Backups you have actually restored

A backup is only real once you have restored it. For each site:

  • daily backups of files and database
  • stored off the server, ideally with a different provider
  • kept for at least 30 days, so you can go back before a quiet infection started
  • one test restore per quarter, timed, so you know how long recovery takes

5. Monitor the things that change

Most incidents start with a change: a new admin user, a PHP file in uploads, a port opening, a certificate expiring. Watch for:

  • Uptime and certificate expiry for every domain
  • New files in places code should not be, like the uploads folder
  • New cron jobs, users and SSH keys on servers
  • Open ports, especially databases and Docker containers
  • Login spikes that suggest brute-force attempts

Send alerts to a shared team channel, not one person's inbox, so they are seen when someone is on holiday.

6. Use the same standard for every site

Write down what "secure" means for each kind of site you build, and check it at launch and every handover. The free security checklists cover WordPress, Laravel, Node, Python and Docker on Ubuntu, RHEL, shared hosting and platforms, with the commands for each step. Download the list as Markdown and keep it with the client's documents.

7. Plan the bad day before it happens

Write a one-page plan, and agree it with the client before you need it:

  1. Who calls whom, and how fast you will respond.
  2. Put up a maintenance page and take a snapshot before changing anything.
  3. Find and quarantine the malicious files. See how to find and remove a WordPress webshell.
  4. Close the entry point and reset all passwords and keys.
  5. Tell the client what happened, what data was affected and what you changed.

If personal data may have been exposed, the client may have legal duties to report it. Know where to point them.

8. Put it in the contract

State what your maintenance plan covers (updates, backups, monitoring, response time) and what costs extra (clean-up after a hack on a site the client manages themselves). Clear terms protect you and give the client a reason to pay for the care.

How PortGate helps

One PortGate account watches all your client servers and domains. The Scale plan covers 30 servers, 30 domains and 30 malware hosts. Every finding comes with a copy-paste fix, and alerts go to Slack, Telegram, Discord, email or a webhook. Domains on shared hosting are checked from outside for SSL, headers and exposed files. Separate client workspaces and team seats are not available yet; today, one account holds everything.