← Lab /Security & privacy

Klue supply chain breach leaves detectable Salesforce API abuse footprints

The Klue supply chain attack can be reliably identified in Salesforce logs using specific application names, OAuth refresh token usage, and anomalous API query patterns.

Security & privacy Datadog Security Labs 22 Jun 2026 Defense Real-world evidence

Published as “Detecting the Klue supply chain attack in Salesforce instances”

Why it matters

Organizations can detect and respond to the Klue supply chain breach by monitoring these Salesforce log indicators.

Summary

The researchers reconstructed the Klue compromise timeline and examined Salesforce event logs from affected customers. They identified several log indicators-including the "Klue Battlecards" application name, OAuth refresh token login_sub_type fields, and distinctive Python user-agent strings-that correlate with the attacker’s activity. They also observed spikes in large REST API queries and use of QueryMore, and packaged these indicators into out-of-the-box Datadog Cloud SIEM detection rules. The evidence is based on real incident data but lacks quantitative performance metrics.

What they found 4

  1. The Klue Battlecards integration appears in Salesforce logs under the application field

    “application:"Klue Battlecards"”

  2. OAuth refresh token usage is logged as login_sub_type:oauthrefreshtoken or login_sub_type:"OAuth Refresh Token"

    “login_sub_type:oauthrefreshtoken”

  3. The attacker used distinctive Python user-agent strings in API calls

    “Python-urllib/3.12”

  4. Large query activity is captured in ApiTotalUsage events targeting the v59.0/query endpoint

    “event_name:ApiTotalUsage connected_app_name:* api_family:REST api_client_category:EXTERNAL_APPLICATION api_resource:*v59.0/query/*”

Caveats 4

  • OAuth refresh token usage appeared only in a subset of affected environments, so it is a supplementary rather than primary indicator.
  • OAuth refresh token usage was observed only in some environments, limiting its reliability as a primary signal.
  • User-agent strings are considered lower-confidence indicators.
  • Detection relies on ingestion of Salesforce logs into Datadog; organizations without such telemetry may miss the signals.

What’s new here 4

  • Detection of the Klue Battlecards connected app via specific application fields in Salesforce logs
  • Identification of OAuth refresh token usage as a supplementary indicator
  • Correlation of Python-urllib user-agent strings and large query spikes with malicious exfiltration
  • Provision of default Datadog Cloud SIEM rules for automated detection