Onomastics Gymnastics: How Darktrace Detects Spoofing and Business Email Compromise in Multi-Name Users
Spanish-language naming conventions complicate identity mapping for spoofing & especially whale-spoofing detection. Darktrace / EMAIL incorporates parsing logic that allows for faithful spoofing detection in conjunction with anomaly detection.
Darktrace cyber analysts are world-class experts in threat intelligence, threat hunting and incident response, and provide 24/7 SOC support to thousands of Darktrace customers around the globe. Inside the SOC is exclusively authored by these experts, providing analysis of cyber incidents and threat trends, based on real-world experience in the field.
Written by
Roberto Romeu
Senior SOC Analyst
Share
05
Nov 2024
Note: For privacy reasons, actual surnames and email addresses observed in these incidents below have been replaced with fictitious placeholder names, using the common Spanish names “Fulano” and “Mengano”.
Naming conventions
Modeling names and their variants of members of an organization is a critical component to properly detect if those same names and variants are being spoofed by malicious actors. For many predominantly English-speaking organizations, these variants can largely be captured by variants of a person’s given name (e.g. James-Jimmy-Jim) and a consistent, singular surname or family name (e.g. Smith). Naming conventions, however, are far from universal. This piece will review how Darktrace / EMAIL manages the common naming conventions of much of the Spanish-speaking world, and can use its modeling to create high-fidelity detections of multiple types of spoofing attempts.
A brief summary of the common convention across Spain and much of Spanish-speaking America: most people are given one or two given names (e.g. Roberto, Juan, María, Natalia), and their surnames are the first surname of their father, followed by the first surname of their mother. While there are various exceptions to this norm, the below graphic Wikipedia [1][2] highlights the general rule.
Figure 1: Example Spanish naming convention for father “José García Torres” and mother “María Acosta Gómez” for child “Pablo García Acosta”. If shortened to one surname, the convention holds the child would be referred to as “Pablo García” [1].
Detection of improper name usage
Implicit in the above comment that shortening to one surname follows the convention of using the first surname, shortening to the second surname is often a tell-tale sign of someone unfamiliar with the person or their broader culture. This can be a useful corroborating feature in detecting a spoof attempt – analogous to a spelling error.
In the case of a Spanish customer, this misuse of name shortening contributed to the detection of a spoof attempt trying to solicit a response by impersonating an internal user forwarding information about ‘Data Protection’.
Figure 2: The Cyber AI Analyst summary of the Darktrace / EMAIL detections shows the use of the Gmail sender impersonating Isabel Maria Fulano Mengano, but incorrectly uses the second surname Mengano.
While the limited communication history from the sender and the nature of the text content already marks the mail as suspicious, Darktrace / EMAIL notes the personal name used in the email is similar to a high-value user (‘whale’ to use the terminology of spearphishing). The additional context provided by the detection of the attempted spoof prompted more severe actioning of this email, leading to a ‘Hold’ action instead of a less-severe ‘Unspoof’ action via a banner on the email.
Figure 3: The content summary of the sender showing the ‘Personal’ field of the email being ‘Isabel Mengano’, breaking from the standard name-shortening convention. The additional metrics identify features that might be anomalous about the sender.
Malicious email properly using both surnames
Misusing the name-shortening convention is not the only way that Darktrace / EMAIL can detect spoofing attempts. In the case of another Spanish customer, Darktrace observed a whale impersonation being sent to 230 users with solicitation content, but no links or attachments. Although the name was modeled internally in the “Surname, Given-name” format, Darktrace identified the spoofing attempt targeting a high-value user and took action, blocking the series of emails from reaching end-user inboxes to prevent unsuspecting users from responding.
Figure 4: Cyber AI Analyst summary of a suspicious email. The personal field is visible as ‘juan fulano mengano’, which is consistent with the reverse-order modelled user ‘fulano mengano, juan’. The subject line ‘Urgent Request’ sent to 230 users gives an intuitive indicator of the emails potentially being part of a malicious solicitation campaign.
In Summary: A case of onomastics gymnastics
The variety in valid usage of human language can be a barrier to evaluating when a given text is benign or malicious. Despite this, Darktrace / EMAIL is designed to manage this variety, as exemplified by the detections of two spoofing attempts seen against organizations using the distinct Spanish-speaking world’s common naming convention. The scope of this design as seen in this onomastic context, extends to a wide range of detections surrounding emails and their behavioral anomalies.
Credit to Roberto Romeu (Principal Cyber Analyst), Justin Torres (Senior Cyber Analyst) and Natalia Sánchez Rocafort (Senior Analyst Consultant).
Discover the most advanced cloud-native AI email security solution to protect your domain and brand while preventing phishing, novel social engineering, business email compromise, account takeover, and data loss.
Gain up to 13 days of earlier threat detection and maximize ROI on your current email security
Experience 20-25% more threat blocking power with Darktrace / EMAIL
Stop the 58% of threats bypassing traditional email security
Darktrace cyber analysts are world-class experts in threat intelligence, threat hunting and incident response, and provide 24/7 SOC support to thousands of Darktrace customers around the globe. Inside the SOC is exclusively authored by these experts, providing analysis of cyber incidents and threat trends, based on real-world experience in the field.
Darktrace / EMAIL Expands Behavioral Defense Across Email and Collaboration Workflows
New capabilities help employees understand suspicious content, give administrators more control over sensitive data, and show security teams where risky workflows sit across the organization.
For more than a decade, Darktrace has developed behavioral security technology designed to understand the patterns specific to each organization. That foundation is what enables us to defend against evolving threats as communications and business technologies have changed. We’re proud of our recognition in both reports – we believe this reflects our continued investment in people, technology and R&D over recent years.
Darktrace / EMAIL is a standalone solution that secures business communications by combining organization-specific behavioral understanding with analysis of message content, intent, relationships and technical artifacts. This helps identify suspicious interactions that may look legitimate in isolation, including attacks that exploit trusted identities and familiar business processes. While advancing core email protection, we’re also extending its capabilities into emerging AI risks.
Let’s take a look at how Darktrace is evolving behavioral security innovation to meet changing customer needs.
Darktrace / EMAIL learns how your organization communicates to stop targeted and novel email threats without relying on previously seen attacks or threat intelligence.
As attackers use legitimate accounts, trusted relationships and convincing requests, this organization-specific analysis helps identify interactions that do not fit the business context.
This understanding helps customers detect sophisticated, targeted communications, particularly business email compromise (BEC) and supply chain attacks, that can look legitimate when assessed through isolated indicators. Darktrace / EMAIL also applies behavioral analysis to outbound communications, helping detect unusual disclosures.
In Gartner Critical Capabilities for Email Security Platforms, Darktrace scored 3.775 out of 5 for Core Email Protection (among the three highest-scoring vendors); Integrated Email Security: 3.42 out of 5; Outbound Security: 3.59 out of 5.
Extending behavioral security innovation to AI-driven risks
AI assistants and agentic workflows create new opportunities for attackers to manipulate trusted communications and automated processes.
Darktrace has developed new capabilities in Darktrace / EMAIL to detect email-borne prompt-injection attempts and, with Darktrace / SECURE AI, to provide visibility into potential unauthorized AI usage through email – helping customers identify emerging AI threats in their communications ecosystem and extend protection into their AI environments.
These capabilities complement Darktrace / SECURE AI, a separately priced and licensed solution for securing AI environments, applications and agentic workflows.
In Gartner Critical Capabilities for Email Security Platforms, Darktrace was ranked among the three highest scoring vendors for AI-Era Threat Defense and Observability, with a score of 3.62 out of 5.
Protecting the conversations that drive modern business
Attackers exploit more than email. They can impersonate colleagues, manipulate conversations and move between messaging environments, while isolated alerts may obscure a broader pattern.
Darktrace / EMAIL extends behavioral analysis to Microsoft Teams, Slack and Zoom messaging, examining language, relationships and interaction patterns alongside technical indicators. This helps customers to identify social engineering, insider risk, and communication-based attacks that payload-focused approaches struggle to detect, and to investigate them with relevant context.
In Gartner Critical Capabilities for Email Security Platforms, Darktrace was ranked among the three highest scoring vendors for Communication and Collaboration Security, with a score of 3.59 out of 5.
Gartner, Magic Quadrant for Email Security, Max Taggett, Franz Hinner, Deepak Mishra, November 2026. Gartner, Critical Capabilities for Email Security, Franz Hinner and Max Taggett, November 2026. Gartner, Magic Quadrant and Peer Insights are trademarks of Gartner, Inc., and/or its affiliates.
Gartner does not endorse any company, vendor, product or service depicted in its publications, and does not advise technology users to select only those vendors with the highest ratings or other designation. Gartner publications consist of the opinions of Gartner’s business and technology insights organization and should not be construed as statements of fact. Gartner disclaims all warranties, expressed or implied, with respect to this publication, including any warranties of merchantability or fitness for a particular purpose.
Gartner Peer Insights content consists of the opinions of individual end users based on their own experiences with the vendors listed on the platform, should not be construed as statements of fact, nor do they represent the views of Gartner or its affiliates. Gartner does not endorse any vendor, product or service depicted in this content nor makes any warranties, expressed or implied, with respect to this content, about its accuracy or completeness, including any warranties of merchantability or fitness for a particular purpose.
Beyond the AI Kill Switch: Precise Containment for AI Agents
Key takeaways
Precise containment: Adopting a behavioral approach to AI security goes beyond ‘kill switches’ by detecting deviations from expected activity, containing threats with precision, and avoiding runtime disruption.
Connect intent to action: Consider how your organization can correlate what an agent was instructed to do (prompt analysis) with what its workload identity actually did (cloud telemetry) to help inform more effective and less disruptive response actions.
Check response dependencies: Identify the narrowest point in your agent workflows where you can enforce a containment action and avoid more widespread disruption.
As organizations put AI agents to work, it’s becoming increasingly important to be able to understand and secure what AI can do. In the current evolving market for AI security, most solutions are attempting to solve this mostly with visibility and detection. Recent announcements have also suggested the implementation of a ‘kill switch’ that cuts an agent off from an individual model (or all model access) when something appears to be wrong. That can be a useful backstop, but it’s a blunt one: it stops both the risky action and the legitimate work alongside it, disrupting normal business operations.
Most approaches to AI security also give little to no context on whether a specific action was unusual for that agent or not, which is an increasingly hard challenge to solve given the non-deterministic nature of AI agents and prompts. Without visibility of the entire attack chain, and the context of each observed behavior, it becomes extremely difficult to remediate early and limit operational impact.
In this post, we’ll look at how Darktrace can go beyond both conventional security approaches and kill switches to provide precise containment for AI agent behavior. This includes a deep behavioral understanding of AI agent and workload activity, and responding at the narrowest point that can stop threats. This isn’t new to Darktrace – we’ve pioneered precise and autonomous containment to cyber threats for over 10 years, first releasing this technology back in 2016, which has since proved that ‘all or nothing’ approaches to containment do not go far enough.
We’ll walk through two scenarios in a controlled Amazon Bedrock AgentCore lab:
An unusual tool invocation from a trusted identity
A prompt written with malicious intent
Scenario 1: Detecting an unusual tool invocation
Let’s look at the first scenario. In this case, Darktrace / HYBRID NETWORK is deployed to a test environment with Amazon Bedrock AgentCore. An ordinary inventory prompt is used to trigger the agent: “List all EC2 resources running in eu-west-2”.
The Bedrock AgentCore runtime sent it to the Model Context Protocol (MCP) gateway, which invoked the Lambda function ec2-agent-tool, whose internal MCP handler was ec2_list_instance. The agent trace shows EC2 List Instances returning HTTP 200 and the requested inventory.
Figure 1. The agent’s response to the inventory prompt shows a successful tool call (HTTP 200).
In this instance, there was nothing unusual about the gateway identity, or the Lambda function itself. In the context of normal behavior for this specific environment, what had changed was the timing. Rather than relying on a fixed rule about odd hours, Darktrace / HYBRID NETWORK monitors all related cloud activity, and it noticed a deviation from this identity’s usual timing for invoking the function. Darktrace used a custom behavioral model to detect the event - Antigena Unusual Bedrock Tool Activity - with a configured response action.
Figure 2. Darktrace / HYBRID NETWORK flags unusual timing for the gateway identity’s Lambda invocation.
Stopping the tool call without affecting runtime
In this case, Darktrace acted by autonomously triggering the response action Disable Role to the gateway’s AWS Identity and Access Management (IAM) execution role. While Darktrace could have been configured in ‘human confirmation mode’ to apply the response action manually, humans likely would not have been able to respond in time. The very nature of AI agents operating at speed and scale is why autonomous containment, based on a behavioral understanding of the unique environment, is necessary to combat this.
Figure 3. Darktrace / HYBRID NETWORK response history records the Disable Role action on the gateway execution role.
A subsequent inventory request selected the same tool, but the gateway was denied when it tried to invoke Lambda, and the inventory request was not completed. Enforcement happened before the tool executed, not at the EC2 API. It did not shut down the agent runtime or require changes to agent code or the Lambda handler.
Figure 4. The follow-up request reaches tool selection, but the gateway’s Lambda invocation is denied due the containment action applied by Darktrace / HYBRID NETWORK.
This scenario shows how a behavioral approach to detection and response can uniquely prevent sophisticated agentic risks in comparison to conventional security techniques that rely on policies and static rules.
Scenario 2: Adding context with dedicated AI security
So far, we’ve seen how Darktrace can help secure what AI can do by taking a behavioral approach to cloud security and precise containment. However, let’s take this one step further with a second scenario, and see how we can add Darktrace / SECURE AI to bring even more context during investigations.
Let’s take the same Bedrock session, but this time a prompt is entered with malicious intent, either from a rogue insider or due to the agent being compromised by an external threat actor. Instead of simply asking the agent to list all running EC2 instances, the prompt attempts to override safeguards and ask the agent to also terminate them.
What the session adds to the investigation
Darktrace initially recorded an overall score of 0 for a routine inventory request, but it recorded a policy detection for the prompt that attempted to override safeguards and terminate running EC2 instances. That session scored 99 for manipulation.
Figure 6a. A routine Bedrock inventory session: overall score 0.
Figure 6b. A separate Bedrock session where a prompt showed malicious intent: overall score 99.
Figure 6c. Darktrace / SECURE AI session detail, AI Usage policy violation and manipulation score.
Session analysis reveals what the agent was asked to do, including the model's inability to call the tool once the triggered action revoked its permissions. This is seen directly in the / SECURE AI interface to add even more context into what led to these events. Analysts can use this to speed up investigations and go beyond ‘this is what happened’ to answer ‘why’ it happened in the first place.
Check what shares the enforcement point
Going beyond the scenarios shared above, Darktrace can also map the wider Bedrock architecture and its connected assets: the runtime, MCP gateway, IAM roles, and Lambda targets. That view helps them put identity and network anomalies in context and look for misconfigurations and potential attack paths. In the lab, the Lambda target uses the gateway’s WorkloadIdentity, which is distinct from the gateway IAM execution role that Darktrace disabled. Lambda has its own execution role. Mapping those dependencies helps identify other tools that could lose access when a role is disabled.
Figure 7. Darktrace shows Bedrock assets and identity-anomaly priorities.
Three places to contain an agent action
Permissions state what can happen, whereas behavioral context helps establish whether an action fits what is expected activity for a specific workload, time, and sequence. This lab environment only tested the gateway-to-tool boundary. With the right visibility and enforceable controls, the same approach can work before inference or at the downstream API, presenting three ways to prevent an agent from carrying out its intended actions:
1. Before inference
Agent → precise containment→ model. Stop an unexpected request carrying sensitive inventory data before it reaches inference. Depending on the control’s scope, other requests or routes can remain available.
2. Before tool execution
Agent → MCP gateway → precise containment → tools. In the lab, disabling the gateway’s execution role denied the Lambda invocation without stopping the runtime. Other tools that share the role may also lose access.
3. Before a downstream API action
Agent → MCP gateway → tool → precise containment → API. Let the tool run, but deny the selected API action before it takes effect. Where controls distinguish reads from writes, a response could preserve approved inventory reads while blocking an unexpected change.
Containing AI agent behavior with precise actions
As AI agents become part of day-to-day operations, shutting one down can interrupt the workflows that modern organizations depend on. A kill switch is still a useful last resort, but it’s too blunt to be the default action. Policies set the limits on what an agent can do, but on their own they can’t tell you whether a permitted action makes sense for that agent, at that moment, in that sequence. That’s where a behavioral approach is required.
Governing agents at runtime means learning what normal looks like for each workload, using context to assess deviations, and intervening at the narrowest point that can reliably stop risky behavior. Judgment is also required before acting to check what else depends on that control – some containment actions can be permitted to run autonomously while others can require human confirmation. In the scenarios provided above, we saw how a precise approach to response can be used to contain the suspicious or threatening behaviors, without shutting down the agent runtime. That’s the standard to aim for - stop what puts your organization at risk without stopping the work it relies on.
For more information about how Darktrace can help you secure what AI can do, and see it in action in your own environment, contact the Darktrace team.