Offensive Social Engineering
Social engineering exploits human trust, authority bias, and procedural gaps rather than technical vulnerabilities. While phishing is the most common vector, a comprehensive red team engagement tests the full spectrum: voice calls, text messages, physical access, and planted devices. You are simulating an adversary who combines OSINT, psychological manipulation, and physical access techniques to breach an organization's defenses at the human layer.
Every technique described here requires explicit written authorization. Physical social engineering carries additional legal considerations -- trespassing, impersonation of officials, and recording laws vary by jurisdiction. Confirm your scope covers each vector before execution.
Quick Workflow
- Conduct OSINT to map the target organization's structure, key personnel, physical locations, and communication patterns.
- Develop personas and pretexts tailored to the engagement objectives (credential theft, physical access, data exfiltration).
- Prepare infrastructure: VoIP numbers for vishing, SMS gateways for smishing, cloned badges for physical access.
- Execute attacks in phases -- start with remote vectors (vishing, smishing), escalate to physical if in scope.
- Document every interaction with timestamps, recordings (where legally permitted), and outcomes.
- Debrief with the client; provide actionable recommendations for security awareness and procedural improvements.
Pretexting and Psychological Manipulation
Pretexting is the foundation of all social engineering. You construct a believable scenario that gives you a reason to request information or access. The pretext must hold up under casual scrutiny and, for high-value targets, under deliberate verification.
Persona Development
Build a persona with enough depth to answer follow-up questions. A thin pretext collapses under the first challenge.
Persona Template:
Name: [Realistic for the region and industry]
Role: [IT support, vendor account manager, building inspector]
Organization: [Real vendor the target uses, or plausible third party]
Contact Info: [Burner phone, spoofed email, LinkedIn profile]
Backstory: [Why you are calling/visiting today]
Verification: [What to say if they try to verify your identity]
Fallback: [Graceful exit if the pretext fails]
Example -- IT Support Persona:
Name: Mark Chen
Role: Senior Support Engineer, Contoso IT Services
Backstory: Contoso manages the target's endpoint security.
Calling about a critical vulnerability patch that
requires the user to verify their credentials on
a portal to receive the update.
Verification: "You can check our contract reference CON-2024-0847
with your procurement team."
Fallback: "No problem, I will have your account manager
Sarah reach out to coordinate instead."
Psychological Triggers
Effective social engineering leverages cognitive biases. You apply these deliberately, not randomly.
Authority:
- Impersonate someone with organizational power (CISO, VP, auditor)
- Reference internal projects or systems by name
- Use confident, directive language
Urgency / Scarcity:
- "This must be resolved before end of business today"
- "Your account will be locked if we cannot verify now"
- Artificial deadlines compress the target's decision-making time
Social Proof:
- "I have already confirmed this with your colleague [name]"
- "Everyone in your department has completed this step"
Reciprocity:
- Offer help before making a request ("I fixed that ticket for you")
- Small favors create obligation
Commitment / Consistency:
- Get the target to agree to small requests first
- Escalate to the actual objective after initial compliance
Liking / Rapport:
- Mirror the target's communication style
- Find common ground (shared frustrations, industry knowledge)
- Use their name; reference specifics from OSINT
Vishing (Voice Phishing)
Voice calls add a human element that email cannot replicate. The real-time interaction lets you adapt, overcome objections, and build trust dynamically.
VoIP Infrastructure Setup
Set up a dedicated voice infrastructure that supports caller ID spoofing and call recording.
# Option 1: Twilio for caller ID manipulation
# Register a Twilio account and purchase a local number
pip install twilio
python3 <<'PYEOF'
from twilio.rest import Client
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
auth_token = "your_auth_token"
client = Client(account_sid, auth_token)
# Place a call with spoofed caller ID
call = client.calls.create(
to="+1XXXXXXXXXX", # Target number
from_="+1XXXXXXXXXX", # Your Twilio number (displayed)
url="http://your-server.com/twiml/pretext.xml" # TwiML script
)
print(f"Call SID: {call.sid}")
PYEOF
# TwiML script for IVR-style pretext
cat <<'XML' > pretext.xml
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say voice="alice">
This is an automated message from your IT security team.
A suspicious login was detected on your account.
Press 1 to verify your identity and secure your account.
</Say>
<Gather numDigits="1" action="/handle-key" method="POST">
<Say>Press 1 now.</Say>
</Gather>
</Response>
XML
# Option 2: Asterisk PBX for full control
# Install Asterisk on a VPS
apt-get install asterisk
# Configure a SIP trunk with a VoIP provider that permits
# caller ID passthrough (check provider TOS for compliance)
> 📎 Detailed content (full examples / references / data tables) has been split into `reference.md` in the same directory; use Read to load the relevant section on demand.