• Home
  • Blog
  • Web Security
  • Types of Cyber Attacks: 6 Attack Scenarios Against a Website and How to Defend Against Them

Types of Cyber Attacks: 6 Attack Scenarios Against a Website and How to Defend Against Them

Last updated on 26 Nov 2026
Types of cyber attacks: a website protected by a shield against bots and phishing
One Monday morning, an online store’s home page redirects to a casino. Nobody knows how long it’s been happening. The site was hardly a target: a small business, a few hundred visits a day. But cyber attacks don’t pick names first, they look for weaknesses. And most of them follow well-known scenarios.

This guide covers the main types of cyber attacks that hit websites and businesses, then walks through them as cyber attack scenarios: how the attack unfolds, what it’s after, how to spot it and how to defend against it. A checklist helps you gauge your level of protection.

At a glance

  • The most common types of cyber attacks are phishing, account takeover, brute force, injection, plugin vulnerabilities, ransomware, denial of service and malicious redirects.
  • In the FBI’s 2025 Internet Crime Report, phishing remains the most reported cybercrime, and business email compromise is the second costliest.
  • An attack scenario describes the attacker’s path, from entry point to goal: it’s the best way to choose your defenses.
  • Most attacks on websites are automated: a small site is as much a target as a large one.
  • Updates, two-factor authentication, off-server backups, a web application firewall and monitoring stop most scenarios.

What is a cyber attack?

A cyber attack is a malicious action against an information system (website, server, email, workstation) to steal its data, take control of it, stop it from working or use it against others. It exploits a weakness: a software flaw, a weak password, a forgotten setting, or a user’s trust.

The main types of cyber attacks

Each type of cyber attack is defined by its entry point and its goal. Here are the ones that matter most to websites and businesses.

Type of attack How it works Usual goal
Phishing a fake message that tricks people into entering credentials or paying account theft, fraud
Account takeover logging in with stolen or guessed credentials access to the admin area or email
Brute force automated password guessing taking over an account
Vulnerability exploitation using a flaw in a CMS, plugin or server installing a backdoor
Injection (SQL, XSS) malicious code slipped into a form or URL data theft, session hijacking
Ransomware encrypting files and databases extortion
Denial of service (DDoS) a flood of requests taking the site offline
Malicious redirects, SEO spam injected code that diverts visitors or creates pages fraud, reselling traffic
Business email compromise impersonating a supplier or an executive diverting a payment
The main types of cyber attacks targeting websites and businesses.

What the data says

The FBI’s Internet Crime Complaint Center (IC3) received more than one million complaints in 2025, according to its annual Internet Crime Report. Phishing and spoofing remained the most reported crime type, while business email compromise ranked second by losses, at about $3 billion.

For web applications, the OWASP Top 10 published at the end of 2025 ranks broken access control first, followed by security misconfiguration and software supply chain failures (dependencies, plugins, third-party libraries).

What is a cyber attack scenario?

An attack scenario describes the full path an attacker follows: their motive, entry point, the steps to move forward and the end goal. Instead of listing threats in isolation, it tells a plausible story, which shows at which step a defense could have stopped it.

Risk analysis methods use the same approach: they distinguish who attacks and why from how it’s done technically. For a website, a handful of well-chosen scenarios is enough to set priorities.

The six scenarios below are typical cases built from the most common attacks. Each follows the same structure: how it unfolds, warning signs, defenses.

Scenario Entry point Key defense
1. Brute force exposed login page two-factor authentication
2. SQL injection poorly filtered form prepared statements, web application firewall
3. Vulnerable plugin component not updated fast updates
4. Phishing a tricked employee two-factor authentication, training
5. Ransomware intrusion, then encryption tested offline backups
6. Redirects and SEO spam an already compromised site file integrity monitoring
The six cyber attack scenarios at a glance.

Scenario 1: brute force on the login page

How it unfolds

A bot keeps testing thousands of credential combinations on the admin login page (/wp-admin, /admin…), often using passwords from data breaches. An admin account protected by a reused password eventually gives way.

Warning signs

Spikes in login attempts in the logs, locked accounts, an unknown new admin user.

Defenses

Two-factor authentication on every admin account, limited login attempts, long unique passwords, a login URL protected by a web application firewall.

Scenario 2: SQL injection through a form

How it unfolds

The attacker types code into a poorly protected search box or form. The database interprets that code and returns information it shouldn’t: customer accounts, email addresses, password hashes.

Warning signs

Strange requests in the logs (quotes, SQL keywords), database errors on screen, customers reporting a data leak.

Defenses

Prepared statements in the code, input validation, CMS and module updates, a web application firewall, code audits for custom development. Our guide to PHP security covers good practices on the development side.

Scenario 3: the vulnerable plugin

How it unfolds

A flaw is disclosed in a popular WordPress plugin or PrestaShop module. Within days, bots scan the web for sites that haven’t applied the patch, then drop a backdoor. It’s the most common scenario on CMS-based sites.

Warning signs

Unknown PHP files in upload folders, new accounts, spam pages indexed by Google, alerts from your host.

Defenses

Fast updates, removing unused plugins, monitoring vulnerability disclosures, regular file scans.
Cyber attack scenario: an attacker's path from entry point to goal, and the defenses that stop it

Scenario 4: phishing aimed at an employee

How it unfolds

An employee gets an email impersonating a supplier, a bank or the site’s host, with a link to a fake login page. They enter their credentials: the attacker gets into the mailbox, the admin area or the hosting account, and can launch a payment fraud.

Warning signs

Logins from unusual countries, mail forwarding rules you didn’t create, customers receiving fake invoices.

Defenses

Two-factor authentication everywhere, staff training, a verification procedure for changes to bank details, email authentication for your domain (SPF, DKIM, DMARC).

Scenario 5: ransomware

How it unfolds

After getting in (poorly protected remote access, a booby-trapped attachment, a stolen account), the attacker encrypts files and databases, then demands a ransom. Often, they also threaten to publish the stolen data.

Warning signs

Renamed, unreadable files, a ransom note, backups deleted or encrypted too.

Defenses

Regular, tested backups stored off the server and offline, separate admin accounts, updates, segmented access. Don’t pay the ransom: nothing guarantees you’ll get your data back.

Scenario 6: malicious redirects and SEO spam

How it unfolds

Once inside, the attacker quietly adds code that redirects some visitors (often only those arriving from Google, on mobile) to fraudulent sites, or creates thousands of spam pages. The owner, who visits the site directly, sees nothing.

Warning signs

Security alerts in Search Console, unknown pages in Google results, a sudden traffic drop, “dangerous site” warnings in browsers.

Defenses

File integrity monitoring, Search Console checks, reviewing indexed pages. If you’re infected, follow our guide on what to do when your website is hacked.

Is your site ready to withstand these scenarios? See our website security services

Why small sites are targeted too

“My site is too small to interest hackers” is the most dangerous misconception. The vast majority of attacks on websites are automated. Bots crawl the web without choosing their targets, looking for vulnerable versions, weak passwords or exposed files. A compromised site is then used to send spam, host fraudulent pages or attack other sites. Its size doesn’t matter.

What to do if you’re attacked

  1. Contain: put the site in maintenance mode or cut off the compromised access, without wiping everything.
  2. Change every password (admin, hosting, database, FTP, email) from a clean device.
  3. Keep evidence: logs, suspicious files, screenshots. They’ll help you understand the attack and, if needed, report it.
  4. Clean up or restore a clean backup, then apply every update before going back online.
  5. Notify if personal data was exposed: depending on where you and your customers are, breach notification laws may apply (US state laws, PIPEDA in Canada, UK GDPR).
  6. Report it: in the US, file a complaint with the FBI’s IC3; elsewhere, contact your national cybersecurity agency.

Types of cyber attacks: protecting a website with updates, two-factor authentication, backups and monitoring

Checklist: is your website protected against common attacks?

Checklist: is your website protected against common attacks? (nothing is stored)

Conclusion

Knowing the types of cyber attacks only matters if it leads to concrete defenses. Thinking in scenarios shows exactly where each attack can be stopped: at the entry point (passwords, two-factor authentication, updates), while it moves forward (firewall, monitoring) or at the end (backups, incident response). For a website, a few measures kept up over time are enough to deter the vast majority of automated attacks. Security isn’t a product you install, it’s upkeep. Our website security guide goes further.

Frequently asked questions about types of cyber attacks

What are the most common types of cyber attacks?

The most common are phishing, account takeover, business email compromise, brute force on login pages, plugin vulnerabilities, injection, ransomware and denial of service. Phishing is consistently the most reported cybercrime in the FBI’s annual Internet Crime Report.

What is a cyber attack scenario?

It’s a description of the path an attacker follows, from entry point to goal, step by step. It shows where a defense can stop the attack. Risk analysis methods rely on scenarios to prioritize security measures.

What is the goal of a cyber attack?

Most goals are financial: stealing data to resell, extorting a ransom, diverting payments or using the site for fraud and spam. Other attacks aim to disrupt a service, damage a reputation or spy on an organization.

Can a small website be attacked?

Yes. Most attacks on websites are automated and don’t choose their targets: bots look for known flaws and weak passwords on every site they find. A small site that isn’t updated is an easy target.

How can I tell if my website has been attacked?

Watch for Search Console alerts, unknown pages in Google, new admin accounts, modified files, redirects reported by visitors and browser warnings. A file integrity monitoring tool helps detect an intrusion quickly.

How can I protect my site from cyber attacks?

Apply updates quickly, turn on two-factor authentication, use unique passwords, remove unused plugins, install a web application firewall, keep tested off-server backups and monitor the site. These measures stop most common scenarios.

Sources

    Download the module

    Enter your first name and email address and we will email you the module:


      Téléchargement du module

      Laissez-nous votre prénom et votre adresse de courriel pour vous envoyer le module par courriel:


        Pssssst Attendez...

        Laissez nous votre meilleure adresse email et vous recevrez le premier nos prochaines publications...