AP Cybersecurity · Study guide

Common Physical Attacks

AP® Cybersecurity · Unit 2 · Risk, Adversaries & Physical Security

Common Physical Attacks

Piggybacking, tailgating, shoulder surfing, dumpster diving, and card cloning: how attackers get in, or get information, by being physically close.

1Why physical attacks matter

An attacker who can stand in a server room, sit at an unlocked computer, or read a sticky note on a monitor can skip many of the digital defenses an organization relies on. Physical attacks go after that access. They often depend on social engineering: being friendly, confident, busy-looking, or official enough that people let their guard down.

2Getting through the door

Restricted areas are usually protected by doors that open only with a badge, key, or code. Two attacks get past them by following someone who has access.

Piggybacking: the attacker uses social engineering to get an authorized person to let them into a restricted area. Common approaches:

  • carrying something large or heavy so a polite person holds the door;
  • pretending to be an employee who forgot their badge (“I left it at my desk, can you let me in?”);
  • pretending to be a maintenance worker or inspector who needs to get into a certain area.

Tailgating: the attacker gets into a restricted area by following close behind an authorized person without that person's awareness, slipping through before the door closes.

Figure 1. The difference is awareness. In piggybacking the authorized person is manipulated into letting the intruder in; in tailgating they never notice.

3Stealing information by being nearby

Shoulder surfing: the attacker watches as someone enters or views sensitive information, such as a password, PIN, or account number, so they can use it later. They might look over a shoulder at a café, watch a keypad from across a lobby, or use a camera (even a phone propped up nearby) to record the screen or keypad and study it afterward.

Dumpster diving: the attacker goes through the target's physical trash looking for useful information: printed emails, org charts, account statements, sticky notes with passwords, old invoices, discarded drives. Even scraps that seem harmless (a phone list, a vendor's name) help with later social engineering.

4Copying an access card

Card cloning: the attacker makes a copy of an authorized user's access card. Many badge systems use cards that send an ID number by radio when held near a reader. Some older cards send that number without any protection, so a hidden reader brought close to the card (in an elevator, a line, a crowded hallway) can capture it and write it to a blank card. The cloned card opens every door the real card can, and the logs show the real employee's name.

5Comparing the five attacks

Figure 2. All five rely on getting physically close: to a door, a screen, a trash bin, or a badge.
AttackDoes the victim know?Main defense
PiggybackingYes, they chose to help (but were manipulated)Training and a firm rule: everyone badges in, no exceptions
TailgatingNoDoors that admit one person at a time, guards, door alarms that detect a held door
Shoulder surfingUsually noPrivacy screens, shielding keypads, being aware of who is nearby
Dumpster divingNoShredding documents, secure disposal bins, wiping old devices
Card cloningNoNewer cards that use encryption, sleeves that block card signals, reviewing badge logs
The key idea

Piggybacking and tailgating get the attacker inside. Shoulder surfing and dumpster diving get information. Card cloning gets a working key. All of them depend on being physically close and unnoticed.

6Worked examples

Worked Example 1 Name the attack

The forgotten badge

A well-dressed man waits by a staff entrance. When an employee arrives, he says, “Ugh, I left my badge upstairs. Mind letting me in? I'm with the audit team.” The employee holds the door.

  1. 1
    Did the authorized person know they were letting someone in? Yes.
  2. 2
    Did the intruder use social engineering? Yes: a story (forgot badge) and a claim of authority (audit team).
Answer: Piggybacking. The fix: politely direct him to reception, where visitors and forgotten badges are handled.
Worked Example 2 Name the attack

Through the closing door

Security camera footage shows an employee badging into a lab and walking straight in. Two seconds later, before the door closes, a person in a hoodie slips through behind them. The employee never turns around.

  1. 1
    The employee was not asked and did not notice.
  2. 2
    The intruder relied on timing and closeness, not persuasion.
Answer: Tailgating. Defenses: doors or turnstiles that admit one person per badge, and alarms when a door stays open too long.
Worked Example 3 Name the attack

The phone on the counter

At a store's checkout, a customer behind a cashier props a phone against a display, camera facing the register. Later, someone logs into the store's payment system using the manager's PIN.

  1. 1
    The phone was positioned to record the keypad as staff entered PINs.
  2. 2
    The recording let the attacker read the manager's PIN afterward.
Answer: Shoulder surfing with a camera. Defenses: shield keypads, position registers so customers can't see them, and change PINs regularly.
Worked Example 4 Name the attack

The recycling bin

An attacker collects bags from behind a company's office and finds: printed emails with employee names and titles, a vendor invoice with account numbers, and a sticky note reading “wifi: Brightway2024!”.

  1. 1
    The attacker searched the target's physical trash.
  2. 2
    Each item helps later attacks: names and titles for phishing, the invoice for payment fraud, the Wi-Fi password for network access.
Answer: Dumpster diving. Defenses: shred anything with names, numbers, or internal details; use locked disposal bins.
Worked Example 5 Name the attack

The crowded elevator

The badge system shows a senior engineer entering the server room at 11 PM on a Saturday. The engineer was at home. Two days earlier, the engineer rode a crowded elevator with a stranger carrying a large bag.

  1. 1
    The real badge stayed with the engineer, yet it appears to have been used.
  2. 2
    A reader in the bag, held close in a crowded elevator, could have copied an older, unprotected card.
  3. 3
    The copy works anywhere the engineer's card works, and the logs blame the engineer.
Answer: Card cloning. Defenses: badges that use encryption, card sleeves that block signals, and reviewing logs for impossible entries.
Worked Example 6 Pick the defense

One rule for the lobby

A company is choosing one change to reduce both piggybacking and tailgating at its main entrance. Which is best: (a) more cameras, (b) a turnstile that admits one person per badge, (c) a poster reminding staff about passwords?

  1. 1
    (a) Cameras record what happened but do not stop anyone: detective, not preventative.
  2. 2
    (b) A turnstile physically allows one person per badge swipe, so neither holding the door nor slipping behind works.
  3. 3
    (c) Passwords are unrelated to door entry.
Answer: (b) the turnstile. It prevents both attacks; cameras can be added to detect attempts.

7Common mistakes

Common Mistake 1 · Mixing up piggybacking and tailgating

Ask whether the authorized person knew. If they were persuaded to let the person in, it is piggybacking. If they never noticed, it is tailgating.

Common Mistake 2 · Thinking politeness is harmless

Holding a door is kind, but at a restricted entrance it is the very thing piggybacking counts on. Direct people to reception instead.

Common Mistake 3 · Assuming trash is worthless to attackers

Printed emails, invoices, and notes give attackers names, numbers, and context for convincing attacks. Shred them.

Common Mistake 4 · Trusting badge logs completely

A cloned card shows up as the real owner. An entry at a time the owner could not have been there is a sign of cloning.

Identify an attack like this

“This is tailgating: the adversary entered the restricted lab by following closely behind an authorized employee without the employee's knowledge, so the adversary never needed a badge.”

Name the attack, say how the attacker got access or information, and point to the detail that distinguishes it from similar attacks.