Write the Pretext
A social engineering exercise with a willing target. You look me up, write a message that could fool me, and then work out how I could have seen through it.
- 9
- Challenges
- 35
- Objectives
- 505
- Points
First time? Start here
What a pretext is
A pretext is the story an attacker tells to get someone to do something. It has an invented sender, a reason why it is happening now, and a small request that seems reasonable at that moment. Phishing is a pretext sent by email. A phone call from "the help desk" is a pretext too. Any malware or fake login page comes afterwards. The pretext is the part that gets a careful person to go along.
You learn to write one here for a simple reason: it is hard to recognise something you have never seen being made. By the end you can say which lever a message pulls, how to tell, and what stops it.
The loop you will repeat
- 01Research
Gather what is public and note where each detail came from.
- 02Profile
Pick out what makes the target reachable.
- 03Pretext
Build a sender, a reason and one small ask.
- 04Pressure-test
Attack your own story and find where it breaks.
- 05Debrief
Name the lever, list the tells, write the control.
An introduction to social engineering
Some background before you start. None of it is specific to this exercise. It is how these attacks work everywhere.
Attacking the person, not the system
Social engineering is getting someone to do something they would not do if they saw the whole picture: open a file, share a code, approve a payment, hold a door. It goes around the technology. A firewall does not help when an employee is talked into letting the attacker in.
It is popular because it is cheap and it works. Finding a flaw in well-kept software can take weeks. Writing a convincing email takes an afternoon, and it only needs one person to act on it. That is why most real intrusions start with a message or a phone call and not with an exploit.
The people who fall for it are not stupid or careless. They are busy and helpful, and they trust that a message is what it looks like. Those are normal and useful habits, and that is exactly what makes them a target.
Two ways of thinking
The psychologist Daniel Kahneman describes two modes of thinking in Thinking, Fast and Slow. System 1 is fast and automatic. It recognises a face, reads a word, and decides that an email from a colleague looks fine, all without effort. System 2 is slow and deliberate. It checks a sum, compares two addresses letter by letter, and asks whether a request makes sense.
System 1
Fast and automatic
- Speed
- Instant
- Effort
- None, it runs by itself
- Works on
- Habit, feeling, first impressions
In your inbox"Looks like the usual request, click."
System 2
Slow and deliberate
- Speed
- Slow
- Effort
- Takes attention, and tires you
- Works on
- Rules, comparison, doubt
In your inbox"Wait, why is this coming from that address?"
We spend most of the day in System 1, because System 2 is tiring and there is too much to do. A pretext is built to keep the target there. It looks familiar so nothing stands out, it is urgent so there is no time to think, and the ask is small so checking feels like more work than complying. A pretext fails the moment the target slows down and switches to System 2.
This gives you both sides of the exercise. As the attacker you try to keep me in System 1. As the defender you look for what would wake System 2 up: a habit, a rule or a pause.
The levers
To keep someone in System 1, an attacker leans on a small number of shortcuts that people use to decide quickly. Robert Cialdini described them in his research on persuasion. They are useful shortcuts in daily life, which is why they are so easy to abuse.
- Authority: we do what someone in charge asks. "This is the CFO, I need this done now."
- Urgency: a deadline pushes us to act before we think. "Your account closes in ten minutes."
- Scarcity: we want what is about to run out. "Only three seats left."
- Reciprocity: we return favours. "I fixed that for you last week, can you help me with one thing?"
- Liking: we say yes to people we know or like. A message in the voice of a friend or a colleague.
- Commitment: after a small yes, a bigger one follows more easily. "You already confirmed your address, now just confirm the code."
A good pretext usually leans on one lever and does it well. In Section 2 you pick yours, and in Section 3 you learn to name the lever in someone else's message. The reference lists what blunts each one.
Your target
The target is the person running this session: me. I have agreed to be researched and to receive a simulated pretext as part of the training. That consent is the whole basis for the exercise. It covers me and nobody else, and it ends when the session ends.
Target file
Case no. RN-001
Opened: start of session
Closes: end of session
NEFS, R.RN-001
- Name
- Roald Nefs
- Role
- Your trainer, and the only person in scope
- Last seen
- On this website. Start here, the rest is for you to find
- Approach
- Do not approach. Nothing is sent, I review your pretext in the room
Consent
given
Cleared for research
- What I have published myself
- What is openly indexed
Off limits
- My family, friends and colleagues
- My employer's systems
- Any account that needs a login
Valid for this session only. Destroy your notes afterwards.
This file is short on purpose. Filling it in is Section 1. If you find something you think I would not want public, tell me instead of using it.
Rules of engagement
You research only me, and only through public sources: what I have published myself or what a search engine finds. My family, friends and colleagues are off limits, even when they show up in your search, and so is anything that needs a login or a guessed password. You write a pretext, but you send nothing: no email, message or call, to me or to anyone else. I review it with you in the room. Your pretext may ask me to click a harmless link, and it never asks for a password, a payment, a code or access. Keep your notes on your own machine and delete them when we finish.
These rules are what makes this a training exercise and not an attack. They hold only because I agreed to this, for this session. Used on someone who has not agreed, or to get money, passwords or access, the same techniques are harassment or fraud.
Choose your route
Pick the short route if you have about half an hour. It takes you through the whole loop once. The full route adds finding the hook, testing your own pretext and writing the defence. You can switch at any time and your progress is kept.
Your score
Tick an objective when you have done it. Nobody checks your notes, so be honest with yourself. Only the quiz in Section 3 is checked by the page. Your progress is stored in this browser.
Your rank
Bystander
0 of 0 objectives done
Social Engineer
You researched a pretext, built it, then took it apart.
Section 1
Research
Before you can write to me as if you know me, you need to know me a little. In this section you collect what I have made public and sort it. Keep to the rules: only me, only public sources, and write down where you found each thing.
Challenge 01 // Set the rules
Start by writing down the boundaries. It takes five minutes, and on a real assignment it is the document that separates a test from a crime. Testers call it the rules of engagement and get it signed before they touch anything.
Done when your notes say who the target is, what you may use, what you may not, and when you stop.
Hint 1
Not sure whether a source is allowed? Ask yourself whether I put it there for anyone to read. If you need to log in, guess or ask someone else, it is not allowed.
Show the walkthrough
Four lines are enough. Target: Roald Nefs, consent given for this session. Allowed: my own website and posts, public profiles, talks, public code. Not allowed: anything behind a login, private messages, my family and colleagues. Stop: when the timer ends, and the notes are deleted when the session ends.
What just happened
You wrote the scope down before you looked anything up. It protects the tester as much as the target, because it shows afterwards what was agreed.
Challenge 02 // Public footprint
Find out what I have put online about myself. You are not looking for secrets. You are looking for ordinary details that would make a message sound like it comes from someone who knows me: where I work, what I organise, what I talk about, what I build.
Done when you have five to ten facts about me, each with the place you found it.
Hint 1
Start at this website and follow the links out: the about page, the talks, the profiles in the menu. One source usually points to the next.
Hint 2
The useful details are rarely the headline facts. Look at the edges: an event I mention, a tool I recommend, a person I thank, the way I sign off.
Show the walkthrough
Read the about and training pages here, then the public profiles linked from the menu. Note my role, the events I am involved in, the projects I maintain and the topics I speak about. Put the URL behind each fact. If two sources disagree, or a fact is years old, mark it unconfirmed.
What just happened
You built a small, sourced profile from things I published myself. Nobody had to be hacked for it. That is the uncomfortable part: this is all an attacker needs to get started.
Challenge 03 // Find the hook
A list of facts is not yet a way in. The hook is the one fact that gives a stranger a believable reason to contact me: something I am expecting, something I care about, or something I do regularly.
Done when you have picked one hook and can explain in one sentence why a message about it would not surprise me.
Hint 1
The best hook is something I am already waiting for or already busy with. A message about that does not need to explain why it exists.
Show the walkthrough
Go through your facts and ask of each one: who would normally contact me about this, and how? An event I help organise means venues, sponsors and speakers write to me. A project I maintain means users and contributors do. Pick the one with the most everyday reason, and be honest about what you are assuming.
What just happened
You went from what is true about me to what is usable. A defender asks the same question the other way round: which of my public details gives a stranger a reason to write to me?
Section 2
Pretext
Now you write the story. A pretext has three parts: who the message seems to come from, why it comes now, and one small thing it asks for. Keep to the rules here too. You write it down, you do not send it, and the ask is never more than clicking a harmless link.
Challenge 04 // Choose the frame
Decide the outline before you write a sentence. Four choices: the sender, the channel, the lever and the ask. Fixing them first keeps the message simple, and simple messages are the ones people believe.
Done when you can say all four in one breath: sender, channel, lever, ask.
Hint 1
Use one lever. A message that is urgent, flattering and official all at once reads like a scam. The ones that work do a single thing well.
Hint 2
Let the hook pick the sender. If your hook is an event, the sender is someone who would write to me about that event.
Show the walkthrough
Example of a frame: sender is the organiser of an event I spoke at, channel is email, lever is liking, ask is to open a link to "the photos from your talk". Yours will differ, but it should fit in one line like this.
What just happened
You fixed the frame before writing. A reviewer does the same in reverse: who does it claim to be, which lever does it pull, and what does it want?
Challenge 05 // Write the brief
Write your pretext as a short brief that a teammate can read in a minute. It is a brief and not a finished message, because nothing gets sent and because a brief is easier to discuss in the group.
Sender who it seems to come from, and how they know me Channel email, chat or phone, and why that fits Hook the public detail the story is built on Lever the one shortcut it leans on Opening the first line or two, in your own words Ask the one small thing, and by when Tell what you expect me to overlook
Done when someone who reads your brief can explain back to you how it is meant to work.
Hint 1
Make the ask the easy way out. If clicking is less work than checking, most people click. That difference is the whole mechanism.
Hint 2
Leave out what you cannot back up. One detail that is off does more damage than three details that are missing.
Show the walkthrough
Fill in the template line by line. Keep the opening to one or two sentences that mention the hook naturally, and the ask to one sentence with a soft deadline. Then read it aloud. If it sounds like a scam to you, it will to me.
What just happened
You wrote a pretext that fits on a postcard. Notice how little it takes. Your colleagues receive messages built this way every week.
Challenge 06 // Pressure-test it
Now read your brief as I would on a day when I am paying attention. Every pretext has weak spots. Find yours before someone else does.
Done when you have found two weak spots and repaired or removed the worst one.
Hint 1
Assume I check through another channel: I call the real organiser, or I reply to an address I already had. Does your story survive that?
Hint 2
Swap briefs with a neighbour. Other people see in ten seconds what you have stopped seeing.
Show the walkthrough
Go through sender, timing and ask. Does the sender exist, and would they write like this? Is there a real reason for the deadline? Would I normally get this request this way? Fix the weakest point, then check you did not make the ask bigger while fixing it.
What just happened
You attacked your own work. Every weak spot you found is also a point where a defender can catch the message, which is what the next section is about.
Section 3
Defend
This is what the exercise is for. You take a pretext apart and turn it into something useful: which lever it pulls, how you can tell, and what stops it. The quiz answers are checked in the page.
Challenge 07 // Name the lever
A lever loses much of its force once you can name it. Read each line and type the lever it leans on most. They are listed in the introduction.
Done when all five are answered.
- "This is the director. I need you to handle this now, I will explain later." Which lever?
- "Reply within ten minutes or your account will be closed." Which lever?
- "Only three seats left, and the offer ends at noon." Which lever?
- "I sorted out that problem for you last week. Could you do me one quick favour?" Which lever?
- A message that seems to come from a good friend, in their usual tone. Which lever?
Hint 1
The six are authority, urgency, scarcity, reciprocity, liking and commitment. Pick the one that does most of the work in each line.
Show the walkthrough
In order: authority (the rank is the reason), urgency (a deadline forces a decision), scarcity (there is little left), reciprocity (a favour that has to be returned) and liking (a sender you know and trust).
What just happened
You put a name to five levers. Someone who thinks "that is just urgency" while reading a message is a lot harder to rush.
Challenge 08 // Spot the tells
Scroll up to the example email at the top of this page. It was written to fool me, and it leaves traces. Find them, then look for the same traces in your own brief.
Done when you have found at least four tells in the example and written down the one check that would have stopped it.
Hint 1
Ask three questions of any message: who is it really from, how does it make me feel, and is this the normal way to get this request?
Hint 2
Look at the times. When was it sent, and when does the deadline end?
Show the walkthrough
The address has a zero where an "o" should be and comes from outside, as the External label shows. It was sent at 16:12 with a deadline of 17:00, which leaves no time to ask anyone. "Yours is the last signature missing" adds group pressure. A contract does not need my work account to open, and the attachment is one I did not expect. The check that stops it: ask a crew member through a channel I already use.
What just happened
You read a message the way a defender does. Those three questions (who, how does it feel, is this normal) work on almost every pretext, and they are easier to remember than a list of warning signs.
Challenge 09 // Write the defence
Finish with something people can use. For your own pretext, write down what would have stopped it: one habit for the person receiving it, and one measure for the organisation around them. Then share it with the group.
Done when you have one habit and one measure, and you have told the group.
Hint 1
A habit is something to do, not something to be afraid of. "Check urgent requests through a channel you already had" is useful. "Be careful with email" is not.
Hint 2
For the measure, think about what makes the habit easy: a known number to call, a report button, a rule that payments always need a second person.
Show the walkthrough
Pair a habit with a measure. Habit: when a message asks for speed, slow down and check it another way. Measure: an easy way to report a suspicious message, a call-back rule for payments and account changes, and a label on mail from outside. The habit catches what the measure misses, and the other way round.
What just happened
The exercise started as an attack and ends as advice. That is why it is worth learning how these messages are made.
Quick reference
The levers and what blunts them
| Lever | How it is used | What blunts it |
|---|---|---|
| Authority | The message seems to come from someone senior or official | Check the person, not the title, through a channel you already had |
| Urgency | A deadline or a crisis leaves no time to think | Treat the hurry as the warning sign and slow down |
| Scarcity | Something is about to run out or close | Ask who gains if you hurry |
| Reciprocity | A small favour or gift comes first, the request after | Judge the request as if the favour never happened |
| Liking | The sender is familiar, friendly or flattering | Check that it really is them, not only their tone |
| Commitment | A small yes is followed by a bigger request | Judge each request separately |
Three questions for any message
- 01
- Who is it really from? Look at the address or the number, not the name next to it.
- 02
- How does it make me feel? Hurried, flattered, worried or guilty are all reasons to slow down.
- 03
- Is this the normal way? If this request usually comes another way, check it that way.
When you get one yourself
- Stop. Nothing in your inbox is so urgent that it cannot wait two minutes.
- Check another way. Call or message the sender through contact details you already had, not the ones in the message.
- Report it. Tell your IT or security team, also when you already clicked. Reporting early is what limits the damage.
Where public information comes from
- Work: employer and team pages, conference talks and slides, articles, public code.
- Social: public profiles and posts that someone keeps themselves.
- Records: company registers, event programmes, anything a search engine has indexed.
Ethics and the law
Doing this to someone who has not agreed is not a grey area. Pretending to be someone else to get money, passwords or access is fraud. Collecting personal data about a person without a good reason can break privacy law such as the GDPR. This exercise is allowed because I agreed, because the scope is written down, and because the notes are deleted afterwards.
Going deeper
- Thinking, Fast and Slow by Daniel Kahneman: the book behind System 1 and System 2.
- Influence by Robert Cialdini: where the levers come from.
- Training and workshops: run this as a guided session for your team, meetup or conference.
- More in the playground: other exercises you can do in a browser.