Recap Security Guide
Home/Security topics/How attacks happen

Security essentials

How attacks happen

A five-stage view of how attacks usually unfold, from gathering information to impact, and how defenders notice or block each stage.

3 min read

Key points

  • Attacks usually follow stages from information gathering to impact.
  • Each stage leaves signals that defenders can learn to watch for.
  • Reducing exposure early makes later stages harder.
  • Layered defences mean one failure does not decide the outcome.

Most attacks on computer systems follow a recognisable sequence. The details differ widely, but thinking in stages helps defenders ask a useful question at each step: what would we see here, and what could stop it? Not every attack uses every stage, and attackers often loop back to earlier ones, but the sequence below is a reliable map.

Reconnaissance: gathering information about the target

Before acting, an attacker learns what exists. This can mean reading public pages, noting which technologies a site uses, listing staff roles, finding exposed services, or probing a network to see which ports answer. Much of it is passive and leaves no trace on the target.

Defenders limit what is exposed, remove unneeded services and keep public information tidy. Active probing, such as repeated scans from one address, shows up in firewall and intrusion-detection logs, and can be rate limited or blocked.

Entry: gaining initial access

Entry is the first successful step inside. Common routes include a deceptive message that tricks someone into running a file or giving up credentials (see phishing), a reused or guessed password, or an unpatched vulnerability in an internet-facing service.

Prompt patching, multi-factor sign-in, mail filtering and user awareness all reduce the chance of success. Failed sign-in bursts, unusual locations and unexpected attachments are typical signals.

Foothold: establishing a presence in the system

Having got in, an attacker wants to stay. They may create new accounts, schedule tasks that run at start-up, or install software that reconnects on a timer, so that losing the first entry point does not end the access.

Defenders watch for new accounts, new scheduled tasks and unfamiliar programs, compare systems against a known-good baseline, and use endpoint monitoring that flags suspicious behaviour. Restricting what ordinary accounts may install makes persistence harder.

Movement: moving laterally to reach valuable assets

The first system reached is rarely the one that matters. The attacker explores, collects further credentials and uses legitimate administration tools to reach servers, databases or backups. This often involves privilege escalation to gain wider rights.

Network segmentation, least privilege and separate administrator accounts slow this stage. Unusual internal connections, a user account reaching systems it never touched before, and administrative tools used at odd times are common detection points.

Impact: achieving the attacker's goals

The final stage is where harm happens: data is copied out, records are altered, services are disrupted, or files are locked for payment. The goal depends on the attacker, whether financial gain, espionage or disruption.

Tested backups, data-loss monitoring, outbound traffic controls and a rehearsed plan for incident response limit the damage. Sudden large transfers or mass file changes are strong signs that this stage has begun.

No single control stops every stage, which is why defence in depth matters. Layers such as patching, strong identity and access controls, network security, monitoring and backups mean that a failure at one point is caught at another.