Detection queries Provider reportProvider-side

APT42 uses Gemini for phishing and a 'Data Processing Agent'

Iranian APT42 used Gemini to draft phishing lures and attempted to build an agent that turns natural language into SQL queries over sensitive personal data.

What happened

Iranian APT42 used Gemini for phishing lure drafting, translation, and geopolitical research. Also attempted to build a 'Data Processing Agent' that turns natural language into SQL over sensitive personal schemas (phone→owner, travel patterns).

Read the original source

How it happened

Select a stage to explore its defenses
Detect this stage
Detect this stage
Detect this stage
Select a stage · Drag to explore · + / − to zoom · Dashed edges are loopsSelect a stage · Arrows show reported connectionsReported sequence
Read the flow as text & sources

A catalog reconstruction of the supplied source account. Unknown steps remain explicit; an edge describes the reported relationship between steps.

  1. 01 · Actor requests lure and research help

    APT42 uses geopolitical research and translated phishing material.

    Hunt: A model-provider investigation correlates related accounts, repeated offensive requests and shared infrastructure or exposed operator sessions.

    Attacker-side planning is generally absent from victim SIEM logs. These templates require provider-owned audit data and do not identify AI use from a victim process alone.

    Source for step 1
  2. 02 · Gemini supports content generation

    The model drafts lures and assists a proposed natural-language data-processing agent.

    Hunt: A model-provider investigation correlates related accounts, repeated offensive requests and shared infrastructure or exposed operator sessions.

    Attacker-side planning is generally absent from victim SIEM logs. These templates require provider-owned audit data and do not identify AI use from a victim process alone.

    Source for step 2
  3. 03 · Phishing and agent development

    The reported activity includes phishing preparation and attempted SQL-over-sensitive-schema tooling.

    Hunt: An impersonating message, ad or website leads to a suspicious download, consent request, pasted command or payment instruction.

    Polished text, AI branding and a novel domain do not prove maliciousness or AI generation. Follow-on evidence matters.

    Source for step 3
  4. 04 · Agent deployment is unconfirmed

    The data-processing agent is described as an attempt, not a confirmed deployed capability.

    Source for step 4

Why it matters

Reported impact: the cited report does not establish a confirmed victim outcome; reported targets include Think-tank and geopolitics-related phishing targets; Israeli defense research noted; using the named AI products does not by itself establish exposure.

Read the original report

What you can do

Protection & prevention

Phishing awareness for AI-polished lures; monitor for novel NL-SQL agents on sensitive DBs

Catalog defensive guidance based on the reported behavior. Confirm scope and current mitigations in the original source.

Review the original guidance
Investigate each phase

Detection queries

Draft query starters grouped by the attack stages where they apply.

Download stage pack

Start with the logs you collect. Each hunt identifies its required visibility, field mapping and limits. Queries are catalog-authored drafts using reusable behavior profiles; test with known activity and your normal baseline before alerting.

01Actor requests lure and research helpProvider-side abuse investigationCustom schema · Draft

APT42 uses geopolitical research and translated phishing material.

What to look for

A model-provider investigation correlates related accounts, repeated offensive requests and shared infrastructure or exposed operator sessions.

Research and translated lure requests are provider-side evidence, not a victim-side AI detector.

Visibility: Provider / operator records

Required logs

  • Provider-owned account / request audit
  • Abuse-review findings and linked-account context
  • Lawfully available exposed operator-session evidence

Coverage limit. Attacker-side planning is generally absent from victim SIEM logs. These templates require provider-owned audit data and do not identify AI use from a victim process alone.

Custom-schema candidates, not out-of-box detectors. Map your application / cloud / platform logs to EventType, Actor, Asset, Action, Target and CorrelationId. KQL uses a custom OpenAttacksAudit_CL table; SPL uses openattacks:audit. EventType values are proposed normalization names, not native vendor event names. Correlation and environment-specific alert logic remain to be built.

Sigma
Draft SigmaDownload Sigma
title: Hunt - Provider-side abuse investigation
id: c8c1edc0-c79a-4644-a876-2c1a6cb9a438
status: experimental
description: A model-provider investigation correlates related accounts,
  repeated offensive requests and shared infrastructure or exposed operator
  sessions.
author: MagicSword OpenAttacks catalog
date: 2026-10-23
falsepositives:
  - Authorized activity matching this broad hunt; baseline and investigate
    before alerting.
level: low
logsource:
  category: application
  product: openattacks_audit
  definition: Custom normalized audit schema; map EventType, Actor, Asset, Action,
    Target and CorrelationId from the required source logs first.
detection:
  selection:
    EventType:
      - model.request
  condition: selection
KQL
Draft KQLDownload KQL
// SCHEMA TEMPLATE: create/map this custom table before use; not a built-in Sentinel table.
// OpenAttacksAudit_CL: TimeGenerated(datetime), EventType/Actor/Asset/Action/Target/CorrelationId(string).
// Selects candidates only. Apply the stage hypothesis and correlation steps before alerting.
OpenAttacksAudit_CL
| where TimeGenerated > ago(7d)
| where EventType in ("model.request")
| project TimeGenerated, EventType, Actor, Asset, Action, Target, CorrelationId
| order by TimeGenerated desc
SPL
Draft SPLDownload SPL
sourcetype="openattacks:audit"
EventType IN ("model.request")
| table _time EventType Actor Asset Action Target CorrelationId
| sort - _time
Investigation steps
  1. Correlate accounts, request rates, infrastructure and source-described behavior in provider-owned records.
  2. For victim-side defense, pivot to the reported execution or access stage rather than trying to detect attacker-side prompts.
02Gemini supports content generationProvider-side abuse investigationCustom schema · Draft

The model drafts lures and assists a proposed natural-language data-processing agent.

What to look for

A model-provider investigation correlates related accounts, repeated offensive requests and shared infrastructure or exposed operator sessions.

Visibility: Provider / operator records

Required logs

  • Provider-owned account / request audit
  • Abuse-review findings and linked-account context
  • Lawfully available exposed operator-session evidence

Coverage limit. Attacker-side planning is generally absent from victim SIEM logs. These templates require provider-owned audit data and do not identify AI use from a victim process alone.

Custom-schema candidates, not out-of-box detectors. Map your application / cloud / platform logs to EventType, Actor, Asset, Action, Target and CorrelationId. KQL uses a custom OpenAttacksAudit_CL table; SPL uses openattacks:audit. EventType values are proposed normalization names, not native vendor event names. Correlation and environment-specific alert logic remain to be built.

Sigma
Draft SigmaDownload Sigma
title: Hunt - Provider-side abuse investigation
id: c8c1edc0-c79a-4644-a876-2c1a6cb9a438
status: experimental
description: A model-provider investigation correlates related accounts,
  repeated offensive requests and shared infrastructure or exposed operator
  sessions.
author: MagicSword OpenAttacks catalog
date: 2026-10-23
falsepositives:
  - Authorized activity matching this broad hunt; baseline and investigate
    before alerting.
level: low
logsource:
  category: application
  product: openattacks_audit
  definition: Custom normalized audit schema; map EventType, Actor, Asset, Action,
    Target and CorrelationId from the required source logs first.
detection:
  selection:
    EventType:
      - model.request
  condition: selection
KQL
Draft KQLDownload KQL
// SCHEMA TEMPLATE: create/map this custom table before use; not a built-in Sentinel table.
// OpenAttacksAudit_CL: TimeGenerated(datetime), EventType/Actor/Asset/Action/Target/CorrelationId(string).
// Selects candidates only. Apply the stage hypothesis and correlation steps before alerting.
OpenAttacksAudit_CL
| where TimeGenerated > ago(7d)
| where EventType in ("model.request")
| project TimeGenerated, EventType, Actor, Asset, Action, Target, CorrelationId
| order by TimeGenerated desc
SPL
Draft SPLDownload SPL
sourcetype="openattacks:audit"
EventType IN ("model.request")
| table _time EventType Actor Asset Action Target CorrelationId
| sort - _time
Investigation steps
  1. Correlate accounts, request rates, infrastructure and source-described behavior in provider-owned records.
  2. For victim-side defense, pivot to the reported execution or access stage rather than trying to detect attacker-side prompts.
03Phishing and agent developmentLure → user action / deliveryCustom schema · Draft

The reported activity includes phishing preparation and attempted SQL-over-sensitive-schema tooling.

What to look for

An impersonating message, ad or website leads to a suspicious download, consent request, pasted command or payment instruction.

The data-processing agent's deployment is unconfirmed; the hunt concerns delivery of phishing messages only.

Visibility: Defender-side logs where collected

Required logs

  • Email / secure-web-gateway records
  • Browser redirects, downloads and URL reputation
  • User reports and downstream execution / identity events

Coverage limit. Polished text, AI branding and a novel domain do not prove maliciousness or AI generation. Follow-on evidence matters.

Custom-schema candidates, not out-of-box detectors. Map your application / cloud / platform logs to EventType, Actor, Asset, Action, Target and CorrelationId. KQL uses a custom OpenAttacksAudit_CL table; SPL uses openattacks:audit. EventType values are proposed normalization names, not native vendor event names. Correlation and environment-specific alert logic remain to be built.

Sigma
Draft SigmaDownload Sigma
title: Hunt - Lure → user action / delivery
id: e0056b49-9905-485b-ac12-2aa076a7bc82
status: experimental
description: An impersonating message, ad or website leads to a suspicious
  download, consent request, pasted command or payment instruction.
author: MagicSword OpenAttacks catalog
date: 2026-10-23
falsepositives:
  - Authorized activity matching this broad hunt; baseline and investigate
    before alerting.
level: low
logsource:
  category: application
  product: openattacks_audit
  definition: Custom normalized audit schema; map EventType, Actor, Asset, Action,
    Target and CorrelationId from the required source logs first.
detection:
  selection:
    EventType:
      - message.link.click
      - web.download
  condition: selection
KQL
Draft KQLDownload KQL
// SCHEMA TEMPLATE: create/map this custom table before use; not a built-in Sentinel table.
// OpenAttacksAudit_CL: TimeGenerated(datetime), EventType/Actor/Asset/Action/Target/CorrelationId(string).
// Selects candidates only. Apply the stage hypothesis and correlation steps before alerting.
OpenAttacksAudit_CL
| where TimeGenerated > ago(7d)
| where EventType in ("message.link.click", "web.download")
| project TimeGenerated, EventType, Actor, Asset, Action, Target, CorrelationId
| order by TimeGenerated desc
SPL
Draft SPLDownload SPL
sourcetype="openattacks:audit"
EventType IN ("message.link.click", "web.download")
| table _time EventType Actor Asset Action Target CorrelationId
| sort - _time
Investigation steps
  1. Reconstruct redirect and delivery provenance using original report indicators, without visiting payload URLs.
  2. Correlate the click with the actual download, consent or execution; verify the sender through an independent channel.
Technical detailsTooling, impact & MITRE ATLAS

Attack context

AI's role
AI as operator

Tooling as reported

AI products, models and artifacts

  • Gemini
  • planned NL-to-SQL data agent

Targets and reported impact

Targets / sectors
Think-tank and geopolitics-related phishing targets; Israeli defense research noted

Reported attribution

APT42; Iranian government-backed

Structured attribution

Actor
APT42
Country
Iran
Motivation
nation-state
Attributed by
Google GTIG
Attribution confidence
high

Linked threat actors

Source defensive notes

Phishing awareness for AI-polished lures; monitor for novel NL-SQL agents on sensitive DBs

MITRE ATLAS

AI-specific catalog annotations based on the reported behavior; these are not MITRE case-study assignments.

AML.T0016.002Generative AI

The supplied source explicitly describes generative-model tooling assisting the reported activity; this mapping does not establish additional autonomy or victim impact. Source

Sources & research credit

1 source

Research by Google Threat Intelligence Group · Google GTIG

  1. cloud.google.com
Record & downloads
Source record name
APT42 Gemini phishing + Data Processing Agent attempt
Entry ID
apt42-gemini-phishing-data-agent-2025
Catalog review
October 20, 2026
Category
adversary-use-of-ai
AI involvement confidence
confirmed