Website hacking prevention banner showing cyber security defence layers for Perth businesses

How Websites Get Hacked

Common attack vectors targeting Perth small business sites — and what you can do about them before it is too late.

Back to Blog

Most Perth small business owners assume their website is too small to be a target. "Why would anyone hack a local electrical contractor, a suburban law firm, or a Joondalup caf\u00e9?" It is a reasonable question — and a dangerous assumption. Automated bots do not discriminate by business size. They scan thousands of sites daily, looking for known vulnerabilities, weak passwords, outdated plugins, and misconfigured servers. If your site has one of these weaknesses, it does not matter if you are a two-person operation or a fifty-person firm — the bot will find it.

According to the Australian Cyber Security Centre (ACSC), cybercrime reports in Australia increased by 23% in the 2023–24 financial year, with a reported loss exceeding $10.2 million per day. Small businesses accounted for 43% of all cybercrime reports — and website compromise is one of the most common entry points. When your website gets hacked, the damage goes beyond the technical fix: your reputation takes a hit, your Google rankings can tank, and your customers lose trust in your brand.

This guide covers the six most common ways websites get hacked, how to spot the warning signs, and — most importantly — how to protect your Perth business from each attack vector. If you suspect your site has already been compromised, jump to our hacked website repair services for immediate assistance.

⚠️ Key Statistic

The ACSC received over 87,000 cybercrime reports in 2023–24, and the Office of the Australian Information Commissioner (OAIC) reported that cyber security incidents were the leading cause of notifiable data breaches for the fourth consecutive year. Website compromise consistently ranks among the top three attack vectors for small-to-medium enterprises.

1. Weak or Stolen Credentials

Weak passwords remain the single most common way websites get hacked. Attackers use automated tools to try thousands of username and password combinations against login pages — a technique called credential stuffing. If your site's admin panel uses "admin" as the username and "password123" as the password, it will be compromised within minutes of a bot scan.

The situation gets worse when credentials for other services (email, social media, banking) are reused on the website admin panel. A data breach at an unrelated service exposes those credentials, and attackers automatically try them on thousands of other sites. This is how many Perth businesses discover their website has been defaced or injected with spam content — because a password they used five years ago was leaked in a data breach.

How to protect yourself: Enforce strong, unique passwords for every user account on your website. Enable multi-factor authentication (MFA) on your CMS admin panel — most platforms like WordPress, Joomla, and Shopify support MFA via plugins or built-in settings. Use a password manager so your team does not resort to sticky notes or reused credentials. The ACSC's Essential 8 framework specifically lists MFA as a core mitigation strategy, and for good reason: it stops 99.9% of automated credential-based attacks.

2. Outdated Plugins, Themes, and Core Software

Content management systems like WordPress power over 40% of the web. Their popularity makes them a prime target. When a vulnerability is discovered in WordPress core, a plugin, or a theme, attackers race to exploit sites that have not applied the security patch. The ACSC's annual cyber threat report highlights that exploitation of public-facing applications — including unpatched CMS platforms — is one of the top initial access vectors used by cybercriminals.

The challenge for Perth small business owners is obvious: when you are running your business day-to-day, remembering to update every plugin and theme falls down the priority list. One missed update is all it takes. A vulnerability in a contact form plugin, an SEO plugin, or even a caching plugin can give an attacker a foothold. From there, they can inject malicious code, add spam links to your pages, steal customer data submitted through your forms, or redirect your visitors to phishing sites.

How to protect yourself: Enable automatic updates where your platform supports them. For WordPress sites, this means enabling auto-updates for plugin and theme security releases. Remove any plugins or themes you are not actively using — dormant software is a security risk with zero business benefit. Schedule a monthly review of your website's installed components. If managing updates feels like a burden, consider our website maintenance services, which include regular security patching as a core deliverable.

3. SQL Injection (SQLi)

SQL injection is a technique where an attacker inserts malicious SQL code into a website's input fields — a search box, a login form, or a URL parameter — to manipulate the database behind the site. In a successful SQLi attack, the attacker can extract customer data (names, email addresses, phone numbers, payment details), delete database tables, or gain administrative access to your site.

While SQL injection was more common a decade ago, it still accounts for a significant percentage of website breaches. Modern frameworks handle input sanitisation better, but custom-built websites, legacy applications, and poorly maintained plugins often skip proper validation. If your Perth business runs a site built on an older codebase or uses a developer who cut corners on security, SQL injection remains a real risk.

How to protect yourself: Ensure every input field on your site — contact forms, search bars, login panels — validates and sanitises user input. Use parameterised queries or prepared statements (the industry-standard defence against SQLi). If your site is built on a maintained platform like WordPress or Shopify, most SQL injection risks are handled by the platform itself, but third-party plugins and custom code are where gaps appear. A security audit of your codebase is the only way to be certain.

4. Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS) occurs when an attacker injects malicious JavaScript into a web page that other visitors then load in their browsers. Unlike SQL injection, which targets the server, XSS targets the users of your site. An attacker can use XSS to steal session cookies (allowing them to impersonate logged-in users), redirect visitors to malicious websites, deface your pages, or deliver malware to your visitors' devices.

For a Perth business handling customer enquiries through its website, an XSS attack is particularly dangerous. If an attacker injects a script that captures form submissions before they reach you, every customer who fills out your contact form has unknowingly handed their personal information — name, phone number, email, message content — to a third party. Under the Privacy Act 1988 and the OAIC's Notifiable Data Breaches scheme, you may be legally obligated to notify those affected customers and the regulator.

How to protect yourself: Apply Content Security Policy (CSP) headers to restrict which scripts can execute on your site. Sanitise all user-submitted content before rendering it — this is especially important for sites with blog comments, reviews, or forums. Use a web application firewall (WAF) that can detect and block XSS attempts. Many CDN providers, including Bunny CDN and Cloudflare, offer WAF capabilities as part of their service.

5. Malware Injection and SEO Spam

Malware injection is often the end goal of the attack vectors above. Once an attacker gains access to your site, they can inject various types of malicious content. The most common forms include:

  • Hidden spam links — Invisible links to pharmaceutical, gambling, or adult websites are injected into your pages. They are invisible to visitors but visible to search engines. Google penalises your site for hosting spam, tanking your rankings.
  • Phishing pages — Attackers create pages on your domain that look like legitimate login portals (often for banks, Microsoft 365, or payment processors) to steal credentials from visitors who land there.
  • Cryptominers — JavaScript that uses your visitors' CPU power to mine cryptocurrency while they browse your site. This slows your site down and drains your visitors' device batteries.
  • Backdoor shells — Hidden files that give the attacker persistent access, even if you change passwords. This is why simply "cleaning up" a hacked site without addressing the root cause guarantees a repeat infection.

SEO spam is particularly insidious because you may not notice it for weeks. Your site's search rankings gradually decline as Google detects the injected spam, but by the time you investigate, the damage to your organic traffic is already done. For Perth businesses that rely on local search to generate leads — trades, professional services, medical practices — a Google ranking drop can mean a direct loss of revenue.

If your site has already been flagged by Google as compromised, you may see a warning like "This site may be hacked" when you search for your business. This is Google's Safe Browsing feature in action, and it will severely reduce your click-through rates. Our hacked website repair service covers malware removal, backdoor cleanup, and Google blacklist recovery to restore your site's standing.

Think your site might already be compromised?

A hacked website can sit undetected for months, quietly stealing data and destroying your SEO. Get a free IT health check to identify hidden malware, backdoors, and vulnerabilities before Google flags your site.

Book a Free Health Check

6. Brute Force and Distributed Denial of Service (DDoS)

Brute force attacks use automated scripts to try every possible password combination until they find one that works. While MFA effectively neutralises brute force attacks against login pages, many older sites and admin panels do not enforce MFA. In a distributed brute force attack, thousands of compromised computers (a botnet) target your site simultaneously, making it much harder for rate-limiting defences to keep up.

DDoS attacks, while less common for small businesses, can still happen — often as a smokescreen for a more targeted attack. While the IT team is scrambling to restore the website, attackers may be exploiting a vulnerability in another part of your infrastructure. For Perth businesses that rely on their website for bookings, orders, or lead generation, even 30 minutes of downtime can cost significant revenue.

How to protect yourself: Rate-limit login attempts on your site — most platforms support this natively or via a plugin. Deploy a CDN with DDoS protection; both Bunny CDN and Cloudflare offer this as part of their standard plans. Ensure your hosting provider has DDoS mitigation capabilities. And most importantly, never rely on a single layer of defence. The best defence against brute force is a combination of MFA, rate limiting, and a strong password policy.

How to Detect a Hacked Website

Many Perth business owners do not realise their website has been hacked until a customer tells them — or until Google sends a notification that the site has been flagged. By then, the damage is already done. Here are the warning signs to watch for:

  • Unexplained changes — New pages, posts, or users appearing that you did not create. Check your CMS user list regularly.
  • Slow loading times — Malware injected into your pages consumes server resources. If your site has suddenly become sluggish, investigate.
  • Warning messages from Google — Google Search Console will notify you if your site has been flagged by Safe Browsing. If you have not set up Search Console yet, do it today.
  • Unusual outbound traffic — Your hosting provider may notify you of suspicious traffic patterns. Spam campaigns and phishing pages hosted on your site generate unusual bandwidth.
  • Browser warnings — When your team visits the site, Chrome or Firefox may display a "Deceptive site ahead" warning. This is a red flag that Safe Browsing has detected malicious content.
  • Customer reports — If a customer says your link redirected them to a strange site, act immediately. This is a clear sign of malware infection or a redirect injection.

If any of these sound familiar, do not wait. Every day a compromised site stays online increases the damage to your reputation and search rankings. Our hacked website repair specialists can assess the damage, remove the malware, and restore your site to a clean, secure state.

Prevention: Building a Defence That Lasts

The best defence against website hacking is not a single product — it is a layered approach. Here is a practical checklist for Perth business owners who want to protect their website without becoming security experts:

  • Use strong, unique passwords — Every user account on your site needs a password generated by a password manager. No exceptions.
  • Enable MFA everywhere — Add multi-factor authentication to your CMS admin, hosting control panel, and domain registrar account. These three accounts control your entire online presence.
  • Keep everything updated — Enable automatic updates for your CMS, plugins, themes, and server software. If you cannot manage this in-house, outsource it to a managed service.
  • Remove unused software — Delete any plugins, themes, or modules you are not actively using. They are attack surface with zero business value.
  • Use HTTPS with a valid SSL certificate — HTTPS encrypts data between your visitors and your server. Most hosting providers include free SSL via Let's Encrypt.
  • Monitor your site — Services like Google Search Console and security plugins can alert you to changes or infections. Check them at least weekly.
  • Back up your site regularly — Daily automated backups stored off-server ensure you can recover quickly if the worst happens. Test that your backups actually restore properly — quarterly at minimum.
  • Lock down wp-admin or your CMS admin panel — Restrict access by IP address where possible, or at least change the default login URL away from /wp-admin or /admin.

The ACSC's Essential 8 framework provides the most practical, government-endorsed baseline for Australian businesses. While it is primarily designed for endpoint and network security, many of its controls — application control, patching applications, restricting administrative privileges, and MFA — apply directly to website security as well. Aligning your website with Essential 8 principles is a strong step toward a resilient online presence.

If managing website security feels overwhelming, you are not alone. Most Perth small business owners are focused on running their business, not on keeping WordPress plugins patched. That is where ongoing website maintenance comes in — a scheduled, professional approach to keeping your site secure, updated, and performing well. Combined with our cyber security services, you get complete protection for both your website and your broader business infrastructure.

Worried about your website security?

Stride IT offers a no-obligation IT health check that covers your website security, patching status, backup configuration, and vulnerability assessment. Know exactly where you stand before an attacker finds the gap.

Start Your Free Health Check

What to Do If Your Site Is Already Hacked

If you suspect your website has already been compromised, do not panic — but do act quickly. Here is your emergency response plan:

  • Take the site offline — Put up a static maintenance page to stop visitors from being redirected or infected. This limits the damage while you investigate.
  • Change all passwords — Update passwords for your CMS admin, database, FTP/SFTP, hosting control panel, and domain registrar. Use a password manager to generate strong, unique replacements.
  • Revoke active sessions — Most CMS platforms allow you to force-logout all users. Do this immediately to kick out any attacker who is currently logged in.
  • Check your files — Look for files modified or created around the time of the compromise. Backdoor files often have names that blend in with legitimate files.
  • Restore from a clean backup — If you have a verified backup from before the compromise, restore from it. Make sure the vulnerability that caused the initial breach is patched before going live.
  • Engage professionals — Website hacking is complex to clean properly. One missed backdoor means the attacker can return. A professional hacked website repair service ensures the job is done right the first time.

After the immediate crisis is resolved, focus on preventing a repeat. Many hacked sites get hit again within weeks because the root cause — an outdated plugin, a weak password, a misconfigured server — was never addressed. A proper recovery includes both cleanup and hardening. The ACSC recommends that organisations conduct a post-incident review to identify the root cause and implement controls to prevent recurrence.

Why Prevention Beats Recovery

The cost of preventing a website hack is a fraction of the cost of cleaning one up. Beyond the immediate technical remediation, a compromised website can cost your Perth business in ways that are harder to quantify:

  • Lost search rankings — Google may penalise or de-index a compromised site. Recovering your rankings can take months of SEO rebuild work.
  • Customer trust erosion — If customers see a browser warning when visiting your site, or if their data was exposed, that trust is difficult to rebuild.
  • Legal and regulatory costs — If customer data is breached, you may face OAIC notification obligations, legal fees, and potential fines under the Privacy Act.
  • Business downtime — While your site is offline or in recovery mode, you are losing leads, bookings, and sales. For some Perth businesses, every day offline costs thousands.
  • Reputation damage — In Perth's close-knit business community, word travels fast. A hacked website that redirects visitors to spam sites damages your professional reputation beyond just search rankings.

Investing in proactive website security — patching, monitoring, backups, and a maintenance schedule — is one of the highest-ROI decisions a small business can make. Compared to the cost of recovery, it is a bargain.

📖 Related Reading

Stride IT is a Perth-based managed IT and cyber security provider helping local businesses protect their websites from compromise. Our hacked website repair and website maintenance services are built for small and medium businesses that want real protection without the complexity. Get in touch for a no-obligation discussion about your website security posture.