Home
VAPT Web Application PentestAPI PentestMobile App PentestInfrastructure PentestAI & LLM PentestOT / ICS PentestIoT PentestPenetration TestingAll VAPT services
Red Team Red Team EngagementAdversary SimulationAssumed BreachPurple TeamingSocial Engineering
Sectors Banking & Financial ServicesGovernment & Public SectorHealthcareOil, Gas & EnergyAviation & LogisticsRetail & E-commerceManufacturing & IndustryTelecommunicationsTechnology & SaaS
CompanyResourcesBlogFree Consultation

What to detect during a social engineering test

A social engineering test also tests your logs. This names the record each channel should leave, so you can see what your team caught and what it missed.

Joel Aviad OssiJoel Aviad OssiRed Team Lead, RedTeam Security
8 min read
Isometric row of an inbox, a telephone handset, a badge reader and a laptop, each joined by a red line to a central log server with one marker lit.

Key takeaways

  • A social engineering test is judged on the gap between the tester's action and the first record on your side, not on how many alerts fired.
  • Every channel in scope needs a named log source and an owner before the test starts, because an unlogged phone call cannot be detected by anyone.
  • The identity provider holds the record that outlasts the email, so sign-in protocol, application and source address matter more than the click.
  • A missed row in the timeline is a detection finding, and it is more useful to fix than a count of employees who clicked.

The second question a social engineering test answers

A social engineering test checks whether people can be talked into something. The question that gets less attention: when they were, did anything on your side notice? This article is about that second question. It covers five channels: email, identity, endpoint, telephone and physical access, and names the record each one should leave.

Scope comes before telemetry. The article on how a social engineering test is scoped explains how pretext, channels and rules of engagement are agreed. Whatever channels that agreement lists, each one needs a named detection owner. A call to the help desk that nobody logs cannot be detected by anyone, however good the SOC is. The social engineering service covers phishing, pretext and physical work, and the detection questions below apply to all three.

Detection is judged against the test's own timeline, not against alert volume. The useful measure is the gap between when the tester acted and when someone on your side recorded it. NIST SP 800-115 lists social engineering among the testing techniques and treats the output as evidence for the organisation to act on. That is the right reading here: the tester supplies timestamps, and your logs either match them or they do not.

Email and click telemetry: the first record on the timeline

The mail gateway sees the message first. Its delivery log should hold the sender, the SPF, DKIM and DMARC results, and a verdict of delivered, quarantined or rejected. A pretext message sent from a lookalike domain should leave at least a delivery record with the authentication result, even when nothing blocks it. If the gateway scores newly registered domains, that score belongs in the same record.

The click is the second record. A URL rewriting or safe-link service logs who followed a link, when, from which client and from which address. Without it, the only evidence of a click is the tester's own report, and you cannot check your side against it. MITRE ATT&CK groups the delivery methods under phishing, technique T1566, which is a useful vocabulary when you map gaps back to detection rules.

The user report is also a detection control, and the only one that depends on a person. A report button that opens a ticket gives you a timestamp for the human response. Measure the time from delivery to first report, and the time from report to analyst action. Set your own target for both before the test, because no external figure describes your staff or your mail flow.

Each box is a record you should be able to pull for the test window, in this order, with a timestamp.

Identity signals: the record that outlasts the email

Email can be purged. The sign-in record stays. When a lure ends in a credential or a token, the identity provider log is where phishing turns into access, and it holds the application, the client, the authentication protocol, the source address and the multi-factor result. A lure that needs no fake login page still leaves a real sign-in. The article on OAuth device code abuse shows how that chain runs, and the sequence below marks where the defender gets a record.

Platform note: the query below uses Microsoft Sentinel table and field names. Splunk, Elastic and Chronicle users will need to map the same ideas onto their own schema, which means protocol, user, application, source address and result. The logic carries over, the field names do not.

Beyond the protocol, watch for a new consent grant to an application nobody approved, a sign-in from an address the user has never used, and token use from a different address than the sign-in. The strongest rule correlates a link click with a sign-in by the same user within a short window. Alone, each event is ordinary. Together they are the shape of the attack.

KQL, Sentinel field names
SigninLogs
| where TimeGenerated > ago(1d)
| where AuthenticationProtocol == "deviceCode"
| project TimeGenerated, UserPrincipalName, AppDisplayName,
          IPAddress, ResultType
| order by TimeGenerated desc
An attacker sends an employee a lure containing a device code. The employee enters it and approves multi-factor. The identity provider issues a token to the attacker's session, then logs the sign-in with the device code protocol. The SOC correlates the click, the sign-in and a new address.
The weakness is not the employee alone: the sign-in is genuine, so only a rule on protocol and address separates it.

Endpoint, telephone and physical channels: the records people forget

When the pretext carries a payload, the endpoint should speak. The alert classes worth confirming are an Office application starting a script host, a script host launched from a downloaded archive or disk image, an executable run from the Downloads folder with a mark-of-the-web zone identifier, a scheduled task or run key created soon after a download, and a browser starting an unsigned binary. If your EDR raises none of these for a benign test file, the gap is in the product configuration, not in the staff.

Voice phishing leaves nothing on the endpoint. Its records sit in the telephone system and the help desk. Look for call detail records from the PBX or softphone platform, inbound external calls that present an internal extension, and tickets for password or multi-factor resets. Detection here is largely procedural. Did the agent follow the callback procedure, did the ticket record the verification outcome, and did anyone flag the request as unusual?

Physical access has its own log. Badge reader events can show a door held open, a badge denied and then used, or use outside normal hours. The visitor register and time-matched camera footage complete the picture. Tailgating is the awkward case, because a reader records one badge for two people. That is a finding about the control, and it should be written as one. When the test moves on from persuading a person to working from a foothold, the telemetry questions change, and the assumed-breach exercise is built for that stage.

Scoring detection: channel, signal and owner

A scoring table turns the above into something a CISO can sign. For each channel in scope, it names the signal that should fire, the system that records it and the team that owns the answer. A row with no owner is already a finding before the test begins.

The timeline below is an illustrative record, constructed for this article and not drawn from any client. It shows how a test is read afterwards. The user report at 00:41 is the first detection. The device code sign-in nine minutes after the click raised no alert, so the real finding is a missing identity rule rather than the click itself.

Turning a missed row into a rule, and then proving the rule fires, is the work of a purple team session. Re-run the same pretext after the fix and compare the timestamps. A rule nobody has tested against the original action is a hope, not a control.

Illustrative timeline, constructed example
T+00:00  Pretext email sent      Gateway: delivered, no alert
T+00:07  Link clicked            Click log: user, 203.0.113.20, no alert
T+00:09  Device code sign-in     IdP: protocol deviceCode, new address, no alert
T+00:41  Employee reports mail   Report ticket opened  <- first detection
T+01:55  Analyst revokes tokens  Containment recorded
Detection scoring sheet for a social engineering test, one row per channel in scope.
ChannelSignal that should fireWhere it is recordedOwner
EmailLookalike sender with authentication resultMail gateway delivery logMessaging team
ClickRewritten URL followed, with user and addressSafe-link serviceSOC
User reportReport button opens a ticketMail client add-inSOC
IdentityUnusual protocol or new source addressIdentity provider sign-in logIdentity team
EndpointOffice application starts a script hostEDR telemetrySOC
TelephoneExternal call presenting an internal extensionPBX call detail recordsIT operations
Help deskReset ticket with skipped verificationTicketing systemService desk
PhysicalDoor held open, badge denied then usedAccess control logFacilities

Detection evidence for social engineering tests in Abu Dhabi and Dubai

In the UAE, four regimes name security testing: CBUAE for banks and other licensed financial institutions, DESC for Dubai government entities and their suppliers, ADHICS for Abu Dhabi healthcare through the Department of Health, and the federal UAE Information Assurance Regulation published by NESA. The article on the UAE rules for social engineering testing sets out what each one says. Read the sources themselves: CBUAE, DESC, the Department of Health for ADHICS, and the UAE Information Assurance Regulation.

The practical point is the evidence a reviewer reads. A Dubai supplier answering to DESC, or an Abu Dhabi hospital working to ADHICS, is better served by a dated record linking each tester action to a log entry than by a click rate. A bank asked by CBUAE what it does about phishing can show the same timeline. Where a channel is in scope, such as the help desk or the front door, its log should be named in the report with an owner, so the finding is a gap in a control and not a vague observation about awareness.

Frequently asked questions

What is detection coverage in a social engineering test?

It is a record of which tester actions produced a log entry or alert on your side, and how long each took. The test supplies the timeline and your systems supply the matching records. Gaps in the match are the findings.

How does a social engineering test differ from a phishing simulation?

A phishing simulation measures how many staff click a template message. A social engineering test follows a pretext across the channels in scope and checks whether your controls recorded each step. The first yields a rate, the second yields a detection timeline.

Which logs should be kept for a social engineering test?

Keep mail gateway delivery logs, click logs, identity provider sign-ins, EDR telemetry, telephone call records, help desk tickets and badge reader events for the test window. Confirm retention before the test, because some of these logs expire quickly.

Can vishing be detected?

Partly. The telephone system records the call and the help desk records the request, so you can detect an external call using an internal extension or a reset with skipped verification. The persuasion itself leaves no technical trace.

Do physical intrusion tests produce detectable evidence?

Yes, when badge readers, visitor registers and cameras are time-synchronised. Door held open and badge denied then used events are the common signals. Tailgating is harder, because a reader records one badge for two people.

Does a click count as a failure?

A click is a data point, not the result. If the click was followed by a sign-in your identity rules caught within minutes, the control worked. A click that led to unalerted access is the failure.

What time should a user report take?

There is no universal threshold. Set a target for delivery to first report and for report to analyst action before the test, then measure against it. A target you chose in advance is more honest than one fitted to the result.

Do the detection queries here work on Splunk or Elastic?

The logic does, the field names do not. The example uses Microsoft Sentinel names. Map the protocol, user, application, source address and result fields onto your own schema before running anything.

The engagements this applies to

Joel Aviad Ossi, Red Team Lead at RedTeam Security
Joel Aviad OssiRed Team Lead, RedTeam Security

Joel Aviad Ossi is Red Team Lead at RedTeam Security, the Dubai-licensed trading brand of WebSec FZCO. He scopes and runs objective-based engagements across the UAE.

Let's talk about your security

Tell us the objective you want tested. We will come back with a scope, a timeline and a quote, under NDA from the first conversation.

Email [email protected]
IFZA Business Park, Building A2
Nadd Hessa, Dubai Silicon Oasis
Dubai, United Arab Emirates