Phishing
A complete guide to Phishing: social engineering tactics, spear phishing, whaling, business email compromise, and email authentication standards.
Imagine a building protected by heavy security doors, security cameras, and security guards. An attacker realizes that climbing the fence or picking the lock would be very difficult. Instead, the attacker dresses up in a delivery uniform, carries a cardboard box, walks up to the security desk, and politely asks the guard to buzz them through. The guard trusts the appearance and opens the door. That is social engineering in the physical world, and Phishing is its most common digital form. Phishing attacks do not rely on cracking complex mathematical encryption or discovering hidden software bugs. Instead, they target human psychology. Attackers use urgency, authority, fear, and curiosity to trick people into revealing passwords, opening infected attachments, or sending money to fraudulent accounts.
Definition
Phishing is a social engineering attack where an attacker impersonates a trustworthy person, brand, or organization to manipulate victims into revealing sensitive information, clicking malicious links, or transferring funds.
Why It Matters
Phishing is one of the most common ways security breaches begin. An organization might invest heavily in firewalls and endpoint security, but if an employee enters their login credentials into a fake login page, an attacker can log into the network using valid account details. Phishing also powers Business Email Compromise (BEC), where criminals impersonate executives or trusted suppliers to trick finance departments into transferring large sums of money. Because it targets people rather than software bugs, technical controls must be paired with user education.
How It Works
Phishing attacks vary widely in their targets and techniques: 1. Common Types of Phishing: • Mass Phishing: Automated, generic emails sent to millions of random addresses, pretending to come from well-known brands like shipping companies, streaming services, or online retailers. • Spear Phishing: Highly customized attacks aimed at a specific individual or organization. Attackers research the target on social media, public company directories, or code repositories to make the email look convincing and relevant. • Whaling: A focused spear phishing attack that targets high-profile executives, such as CEOs, CFOs, or board members, to authorize large wire transfers or reveal sensitive business plans. • Smishing and Vishing: Phishing conducted through SMS text messages (smishing) or telephone calls (vishing), often pretending to be bank fraud departments or government tax offices. • Business Email Compromise (BEC): An attack where an intruder compromises or spoofs a legitimate executive or vendor email account to request urgent payments or redirect invoice deposits to fraudulent bank accounts. 2. Psychological Triggers Used in Phishing: • Urgency: 'Your account will be suspended in 24 hours unless you verify your password now.' • Authority: 'Message from the Chief Financial Officer: Please process this confidential vendor wire immediately.' • Fear: 'Your computer has been compromised. Contact security support immediately.' • Curiosity or Greed: 'Review the attached spreadsheet to view the updated quarterly staff bonus list.' 3. Email Authentication Standards (SPF, DKIM, and DMARC): Because traditional email protocols did not verify sender addresses, the industry developed three complementary standards to prevent domain spoofing: • SPF (Sender Policy Framework): A DNS record that lists which mail servers and IP addresses are authorized to send email on behalf of a specific domain. • DKIM (DomainKeys Identified Mail): Adds a cryptographic digital signature to outgoing emails, allowing the receiving server to verify that the email genuinely came from the sender domain and was not altered in transit. • DMARC (Domain-based Message Authentication, Reporting, and Conformance): Connects SPF and DKIM. It tells receiving servers what to do if an email fails verification (such as quarantine the message into spam or reject it completely) and generates reporting data for domain owners.
The Email Authentication Pipeline: How SPF, DKIM, and DMARC Work
Key Points
- Phishing attacks target human psychology (urgency, fear, curiosity) rather than software bugs.
- Spear phishing targets specific individuals using research; whaling focuses specifically on executives.
- SPF, DKIM, and DMARC work together to stop attackers from spoofing your domain in email headers.
- FIDO2 hardware keys protect against credential-harvesting pages and reverse-proxy phishing attacks.
- Business Email Compromise (BEC) targets payment procedures and financial workflows through deceptive emails.
Steps
Enforce a Strict DMARC Policy (p=reject)
Set up SPF and DKIM records, then move your DMARC policy from monitoring mode (p=none) to strict rejection (p=reject) to prevent domain spoofing.
Use Phishing-Resistant MFA (FIDO2)
Adopt hardware security keys or WebAuthn standards. Because hardware keys bind authentication to the genuine website domain, they cannot be tricked by reverse-proxy phishing sites.
Run Regular Phishing Awareness Training
Conduct realistic, educational phishing simulations with employees. Provide immediate, supportive feedback when someone clicks so they learn how to spot red flags.
Verify Financial Transfers Out-of-Band
Establish a clear operational rule: any request to change bank details or send a wire transfer received via email must be verified over a known phone number.
Deploy Modern Email Ingress Filtering
Use email security solutions that analyze email language patterns, inspect attached links, and display clear warning banners on external messages.
Examples
The Delivery Driver Scam Analogy
Imagine someone wearing a delivery uniform knocks on your door and says: 'I have an urgent package for you, but there is a small fee. Please swipe your bank card on this device right now or the package will be returned.' If you swipe your card, you have been scammed. The uniform was fake, the package did not exist, and the machine recorded your card details. Phishing uses that exact same deception digitally.
Real-World Examples
The Political Campaign Spear Phishing Incident (2016)
Campaign staff received an email disguised as an urgent Google security alert warning that someone had their password. The email included a link to a fake login portal. Thinking it was legitimate, staff entered their credentials, allowing attackers to access email accounts and release thousands of internal campaign messages.
The Leoni AG Wire Fraud Incident (2016)
Leoni AG, an automotive supplier, lost approximately $44 million in an executive impersonation attack. Attackers researched company operations and sent a carefully written email to a regional finance officer that closely matched the tone and style of top executives, requesting an urgent wire transfer for an acquisition. The money was sent to criminal accounts overseas.
Technical Examples
; ─── 1. SPF RECORD (TXT) ─────────────────────────────────────────────
; Specifies authorized sending servers (Google Workspace and company mail IP)
; -all enforces a hard failure for unauthorized senders
mycompany.com. IN TXT "v=spf1 include:_spf.google.com ip4:198.51.100.25 -all"
; ─── 2. DKIM RECORD (TXT) ────────────────────────────────────────────
; Publishes the public key used to verify digital signatures on outgoing emails
google._domainkey.mycompany.com. IN TXT (
"v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA3v9...IDAQAB"
)
; ─── 3. DMARC POLICY RECORD (TXT) ───────────────────────────────────
; Enforces rejection of unaligned emails and configures reporting addresses
_dmarc.mycompany.com. IN TXT (
"v=DMARC1; p=reject; sp=reject; pct=100; "
"rua=mailto:dmarc-reports@mycompany.com; "
"ruf=mailto:dmarc-forensics@mycompany.com; "
"fo=1; aspf=s; adkim=s"
)Mass Phishing vs Spear Phishing
| Aspect | Mass Phishing | Spear Phishing |
|---|---|---|
| Targeting Scope | Sent broadly to thousands or millions of random addresses | Carefully customized for specific people, teams, or organizations |
| Preparation Required | Minimal: Uses generic templates like parcel notices or account alerts | Extensive: Gathers background details on projects, colleagues, and tools |
| Success Rate | Low per email, but relies on high volume to find victims | Higher, because the message appears relevant and credible |
| Greeting and Tone | Generic greetings such as 'Dear Customer' or 'Valued Member' | Names real coworkers, current projects, or specific company events |
| Primary Objective | Gathering consumer credentials, fake fees, or spreading broad malware | Gaining corporate network access, executing wire fraud, or intellectual property theft |
Adversary-in-the-Middle and Reverse-Proxy Phishing
Advantages
- Domain Protection: Enforcing strict DMARC rules stops malicious actors from sending fake emails from your domain name.
- Informed Employees: Regular awareness training turns staff into active defenders who report suspicious messages quickly.
Limitations
- Human Factor: Even experienced technical professionals can be tricked when distracted, busy, or stressed.
- Reverse-Proxy Tooling: Modern proxy phishing kits can intercept temporary session tokens alongside passwords in real time.
Interview Questions
How do SPF, DKIM, and DMARC work together to prevent email spoofing?
SPF verifies that the sending server's IP address is listed in the sending domain's DNS records. DKIM adds a cryptographic signature to the email header that the receiving server verifies using the sender's public key in DNS. DMARC ties them together by requiring 'alignment': the domain in the visible 'From' address must match the domain verified by SPF or DKIM. If alignment fails, DMARC tells the receiving mail server whether to monitor, quarantine, or reject the email entirely.
Practice Questions
- Check your organization's domain using `nslookup -type=TXT _dmarc.yourdomain.com`. Is DMARC configured with `p=reject`, `p=quarantine`, or `p=none`?
- Inspect the raw headers of an email in your inbox. Look for the `Authentication-Results:` line to see whether SPF, DKIM, and DMARC passed.
