Sub topic 6
Social engineering: phishing, tailgating, and shoulder surfing
This chapter assumes you know the CIA triad, the physical controls from the earlier chapters (badges, mantraps, locks), and the basics of authentication and multifactor authentication (MFA). It covers how attackers manipulate people instead of software, how to recognize each attack on the CompTIA A+ Core 2 exam, and which control stops it.
What social engineering is
Social engineering is the use of deception to get a person to give up access, information, or money. The attacker targets human habits such as helpfulness, fear of authority, and urgency. Firewalls and antivirus tools do not stop a user who willingly hands over a password.
Most attacks use one or more of these pressure points:
- Authority: "This is the CEO, I need this now."
- Urgency: "Your account will be closed in one hour."
- Helpfulness: "Could you hold the door? My hands are full."
- Familiarity: a message that looks like it comes from a vendor you know.
Social engineering often is the first step. A stolen password or an open door lets the attacker run malware, copy data, or move deeper into the network.
Digital attacks: the phishing family
Phishing is a fraudulent message, usually email, that pretends to be a trusted sender. It tries to make you click a link, open an attachment, or enter credentials on a fake site. The attacker sends it to many people and expects a small share to respond.
The exam tests the variants by name.
| Attack | Channel | Key detail |
|---|---|---|
| Phishing | Broad, generic message sent to many people | |
| Spear phishing | Aimed at one person or group, with personal details | |
| Whaling | Spear phishing aimed at executives | |
| Vishing | Voice call | Phone or VoIP caller pretends to be a bank or help desk |
| Smishing | SMS text | Text message with a malicious link |
| Pharming | DNS or hosts file | Redirects a correct web address to a fake site, with no click on a bad link needed |
| Business email compromise | Impersonates an executive or vendor to request a payment |
Pharming differs from phishing in one way. In phishing the user is lured to the fake site. In pharming the user types the real address and still lands on the fake site, because name resolution was tampered with.
Spotting a phishing message
Check these signs before you act on any message:
- The sender address does not match the claimed organization (for example
[email protected]). - The greeting is generic, such as "Dear customer."
- The message creates urgency or threatens a penalty.
- Hovering over a link shows a destination that differs from the link text.
- The message has unexpected attachments, spelling errors, or an odd request such as gift cards.
Responding to a suspected phish
A user who receives a suspicious email should take these actions:
- Do not click links or open attachments.
- Report the message using the organization's reporting button or process.
- Delete it after reporting, as policy directs.
If the user already clicked or entered a password, treat it as a security incident. Change the password right away, report it to the security team, and scan the workstation. This links to the malware removal process in a later chapter.
Physical attacks
Physical social engineering happens in person. It defeats badge readers and locks by persuading someone to open the way.
Tailgating and piggybacking
Tailgating is following an authorized person through a secured door without presenting your own credentials. The attacker may carry boxes, wear a delivery uniform, or simply look like they belong. Many sources use piggybacking for the same act, and some define it as entering with the authorized person's knowledge. For the exam, treat the two terms as close synonyms and look at the controls offered.
The strongest control is an access control vestibule, also called a mantraps. It is a small room with two doors. The second door will not open until the first has closed and the person has authenticated. Because only one person fits through at a time, it blocks tailgating. Other controls include:
- Security guards who check badges.
- Turnstiles that admit one person per badge scan.
- Employee training that encourages staff to challenge strangers politely.
- Badge readers combined with cameras to record who enters.
Shoulder surfing
Shoulder surfing is watching someone's screen, keyboard, or PIN entry to capture information. It happens in cafes, airports, offices, and at ATMs. The attacker may use a camera or binoculars from a distance.
Controls include:
- A privacy screen filter that narrows the viewing angle of a monitor or laptop.
- Positioning screens away from windows and walkways.
- Shielding the keypad when typing a PIN.
- Screen locks that activate quickly.
- Not working with sensitive data in public places.
Dumpster diving
Dumpster diving is searching discarded trash for documents, sticky notes, or old drives. The control is secure disposal: shred paper and destroy media. A later chapter covers the methods in detail.
Other in-person tactics
- Impersonation: pretending to be a technician, auditor, or executive to gain trust.
- Evil twin: a rogue wireless access point that copies a legitimate network name so that users connect to the attacker. It is a network attack that relies on user trust.
- Baiting: leaving an infected USB drive where an employee will find and plug it in.
How the attacks reach the target
Matching a scenario to the attack
Exam questions describe a situation and ask you to name the attack or the best control. The table below pairs common clues with answers.
| Scenario clue | Attack | Best control |
|---|---|---|
| Email from "IT" asks you to confirm your password | Phishing | User training and reporting |
| Email addressed by name to the CFO about a wire transfer | Whaling | Verify by phone, MFA |
| A caller claims to be from the bank and asks for a code | Vishing | Hang up and call the official number |
| Text says your package is held, with a link | Smishing | Do not tap the link |
| A stranger enters behind you as the door closes | Tailgating | Access control vestibule, badge challenge |
| Someone looks at your PIN as you type | Shoulder surfing | Privacy filter, shield the keypad |
| Typed address opens a fake bank page | Pharming | Check certificates, DNS protections |
Defending against social engineering
No single tool fixes a human problem. Layer these defenses:
- Training: run regular awareness sessions and simulated phishing tests. Make reporting easy and free of blame.
- MFA: a stolen password alone no longer grants access. Attackers can still trick users into approving prompts, so teach users to deny unexpected requests.
- Email filtering: spam and phishing filters block many messages before users see them.
- Policies: require identity verification before password resets or sensitive changes. Help desk staff should never reset a password based on a caller's word alone.
- Least privilege: if an account is tricked, limited permissions limit the damage.
- Physical controls: badges, vestibules, guards, and cameras.
Common errors
- Confusing phishing with pharming. Phishing needs the victim to act on a lure. Pharming redirects without a lure.
- Choosing antivirus as the answer to a social engineering question. Antivirus detects malware, not a convincing phone call.
- Treating whaling as a different channel. It is still email, only with an executive as the target.
- Picking a lock or badge reader to stop tailgating. A single-door reader still lets a second person follow. A vestibule or guard addresses it.
Exercise
An accountant receives an email that appears to come from the company's CEO. It uses the accountant's first name and a real project name, and it asks for an urgent wire transfer to a new vendor. Name the attack and give two actions the accountant should take.
Show answer
This is spear phishing, and more specifically whaling or business email compromise, because it impersonates an executive and uses personal details. The accountant should not send the payment and should verify the request by calling the CEO on a known number, not by replying to the email. The accountant should also report the message to the security team following company procedure.
Exercise
A data center wants to stop visitors from following employees through the main entrance. A badge reader is already on the door. Which control best closes the gap, and why does the badge reader alone fail?
Show answer
An access control vestibule (mantrap), or a guard or turnstile. A badge reader authenticates only the person who swipes, so anyone walking close behind can pass through the open door. A vestibule lets only one person pass at a time and keeps the inner door locked until the outer door closes and the person is verified.