← Lab /Security & privacy

Attackers exploit Salesforce APIs to enumerate and exfiltrate data, and Datadog provides queries

The provided queries can reliably detect attacker behavior in Salesforce environments across the first half of the MITRE ATT&CK matrix.

Security & privacy Datadog Security Labs 16 Jun 2026 Tooling Prototype evidence

Published as “Mapping out your unknown: A threat hunter’s guide to Salesforce”

Why it matters

Organizations can improve detection of Salesforce compromise by implementing the provided log queries and integrating them into a SIEM.

Summary

Datadog’s research team analyzed recent Salesforce compromise campaigns and identified common attacker steps such as compromised accounts, API enumeration, and data exfiltration. They mapped these steps to MITRE ATT&CK tactics and supplied concrete query examples for Salesforce audit logs (ELF and RTEM) to surface reconnaissance, initial access, credential access, and discovery activity. The write-up notes that visibility depends on the logging tier and that the queries are starting points rather than exhaustive detections. No quantitative evaluation of detection effectiveness is presented.

What they found 2

  1. Attackers may attempt to access configuration information on Salesforce sites via AuraRequest events.

    “Attackers may attempt to access configuration information on Salesforce sites, observable through Aura Request events, by using a guest or compromised internal user account.”

  2. Campaigns have queried the /limits/ endpoint to learn API usage limits before exfiltration.

    “In a previous campaign targeting Salesforce, attackers queried the /limits/ endpoint to learn about the limits on API usage within the Salesforce tenant, allowing them to minimize the risk of triggering detections.”

Caveats 2

  • The hunting techniques in this guide won't catch everything.
  • Despite some visibility limitations, Salesforce audit log data can yield valuable hunting opportunities.

What’s new here 4

  • Maps Salesforce audit-log events to MITRE ATT&CK tactics for the first half of the kill chain.
  • Provides ready-to-use queries for AuraRequest, LoginEvent, ApiEvent, and RestApi logs across logging tiers.
  • Highlights specific reconnaissance techniques such as querying /limits/ and listing all sObjects.
  • Describes how to correlate OAuth login events with subsequent API activity to spot token abuse.