Back to Intelligence

Klue-Salesforce Supply Chain Attack: Detecting and Containing Third-Party OAuth Abuse

SA
Security Arsenal Team
June 28, 2026
6 min read

A supply chain compromise involving Klue, a competitive intelligence platform, has resulted in unauthorized access to Salesforce environments for approximately two dozen victim organizations. Attackers breached Klue's infrastructure and leveraged the vendor's existing OAuth connections to access customer Salesforce tenants.

This incident highlights a critical blind spot in SaaS security: the implicit trust placed in third-party connected applications. Unlike a traditional malware infection, this attack vector abuses legitimate authentication tokens, bypassing standard perimeter defenses and blending in with normal traffic. For defenders, this means the perimeter has already been breached—not via an exploit, but via a trusted partnership.

Technical Analysis

The attack vector is a classic Supply Chain Compromise utilizing Valid Accounts (OAuth Tokens).

  • Affected Platform: Salesforce (Lightning Platform / CRM)
  • Affected Component: Connected Apps (Klue integration)
  • Mechanism: Attackers gained access to Klue's environment and extracted OAuth refresh tokens or session keys associated with the Klue-Salesforce Connected App. These tokens allowed the attackers to authenticate directly to the victims' Salesforce orgs without knowing the victims' credentials.
  • Permissions: Depending on the configuration of the Klue integration at the time of provisioning, the attackers likely had read/write access to Opportunities, Accounts, and potentially Contacts.
  • Exploitation Status: Confirmed active exploitation. While no specific CVE (software vulnerability) is associated with this breach—relying instead on permission abuse and token theft— the threat is active and currently impacting production environments.

This is not a vulnerability in Salesforce code; it is a failure of third-party security posture impacting the downstream tenant. The blast radius is determined entirely by the scope of permissions (OAuth Scopes) granted during the initial integration setup.

Detection & Response

Detecting this type of supply chain breach requires monitoring SaaS audit logs specifically for activities performed by "Connected Apps" rather than human users. Security teams must hunt for anomalous data access patterns originating from the specific application ID (Consumer Key) associated with Klue or other third-party vendors.

━━━ DETECTION CONTENT ━━━

YAML
---
title: Potential Salesforce Third-Party OAuth Token Abuse
id: 8a1c2d3e-4f5a-6b7c-8d9e-0f1a2b3c4d5e
status: experimental
description: Detects potential unauthorized access via Connected App (e.g., Klue) based on high-frequency login or unusual API usage in ingested Salesforce CEF/Syslog logs.
references:
  - https://attack.mitre.org/techniques/T1078/004/
author: Security Arsenal
date: 2026/04/15
tags:
  - attack.valid_accounts
  - attack.t1078.004
  - attack.initial_access
logsource:
  product: cef
  service: salesforce
detection:
  selection:
    deviceAction|contains: 'Login'
    request|contains: 'ConnectedApp'
    cn1|contains: 'Klue' # Or specific ConnectedApp ID if known
  condition: selection
falsepositives:
  - Legitimate bulk synchronization operations by Klue administrators
level: high
---
title: Salesforce Data Export via Connected App
id: 9b2d3e4f-5a6b-7c8d-9e0f-1a2b3c4d5e6f
status: experimental
description: Detects mass data export or query activities initiated by a non-human Connected App user context.
references:
  - https://attack.mitre.org/techniques/T1119/
author: Security Arsenal
date: 2026/04/15
tags:
  - attack.collection
  - attack.t1119
logsource:
  product: cef
  service: salesforce
detection:
  selection:
    deviceAction|contains:
      - 'Export'
      - 'Query'
    request|contains: 'API'
    cs5|contains: 'Klue' # cs5 often maps to Application or User Type in CEF
  timeframe: 1h
  condition: selection | count() > 50
falsepositives:
  - Scheduled reporting or legitimate intelligence gathering during business hours
level: medium
KQL — Microsoft Sentinel / Defender
// Hunt for high volume of Salesforce login events specifically from the Klue Connected App
// Assumes Salesforce logs are ingested into Sentinel via Syslog or CommonSecurityLog
Syslog
| where SyslogMessage contains "Salesforce" 
| where SyslogMessage contains "Login" 
| where SyslogMessage contains "Klue" 
| extend EventDetail = extract(@'Action=(.*?\s)', 1, SyslogMessage), 
         User = extract(@'User=(.*?\s)', 1, SyslogMessage), 
         SourceIP = extract(@'SourceIP=(.*?\s)', 1, SyslogMessage)
| summarize count() by bin(TimeGenerated, 15m), SourceIP, User
| where count_ > 10 // Threshold for suspicious activity
| project TimeGenerated, SourceIP, User, count_
| order by TimeGenerated desc
VQL — Velociraptor
-- Hunt for unexpected network connections to Salesforce infrastructure endpoints
-- This helps identify if a compromised workstation is being used to access Salesforce API directly
SELECT 
  Fqdn, 
  RemoteAddress, 
  Pid, 
  Name, 
  UserName, 
  StartTime
FROM netstat()
WHERE Fqdn =~ "\\.salesforce\.com$" 
   OR Fqdn =~ "\\.force\.com$"
ORDER BY StartTime DESC
LIMIT 50
Bash / Shell
#!/bin/bash
# Remediation: Revoke OAuth Session for a specific Connected App (Klue)
# Note: This script requires a valid Salesforce Session ID and the Connected App Consumer Key.
# Replace CONSUMER_KEY and SESSION_ID with actual values from your environment audit.

CONSUMER_KEY="YOUR_KLUE_CONNECTED_APP_CONSUMER_KEY"
SF_INSTANCE_URL="https://yourinstance.my.salesforce.com"
SESSION_ID="YOUR_VALID_ADMIN_SESSION_ID"

echo "[*] Initiating audit of active sessions for Connected App: $CONSUMER_KEY"

# Query for active sessions associated with the connected app user context
# This requires the Tooling API or standard REST API access depending on specific setup
# Below is a representative revoke command structure for a specific session if a SessionId is known

if [ -z "$1" ]; then
  echo "[!] Usage: $0 <SessionIdToRevoke>"
  echo "[!] Obtain SessionIds from Salesforce Setup > Session Management"
  exit 1
fi

TARGET_SESSION=$1

echo "[*] Attempting to revoke session: $TARGET_SESSION"

# Revoke the session using Salesforce OAuth Revoke endpoint
curl -s "$SF_INSTANCE_URL/services/oauth2/revoke" \
  -d "token=$TARGET_SESSION" \
  -H "Authorization: Bearer $SESSION_ID" \
  -H "Content-Type: application/x-www-form-urlencoded"

echo ""
echo "[*] Remediation action sent. Verify in Salesforce Setup > Session Management."

Remediation

Immediate containment is required to stop data exfiltration. Follow these steps in order:

  1. Revoke Access Immediately:

    • Navigate to Salesforce Setup.
    • Enter App Manager in the Quick Find box.
    • Locate the Klue Connected App.
    • Click the Down Arrow dropdown and select Edit Policies.
    • Set "Admin Approved Users is Required" to True (if not already) or toggle the app status to Inactive temporarily to sever the connection.
  2. Invalidate Active Sessions:

    • Go to Session Management in Salesforce Setup.
    • Filter by the "Application Type" or "User" associated with the Klue integration account.
    • Revoke all active sessions for this application.
  3. Audit Data Access:

    • Export the Login History and Event Log File for the last 30 days.
    • Filter specifically for the Klue application integration user.
    • Identify any records viewed, exported, or modified outside of normal business hours or sync schedules.
  4. Review OAuth Scopes:

    • Before re-enabling the integration, perform a least-privilege review. Ensure the Klue Connected App only requests scopes (API permissions) absolutely necessary for business function (e.g., remove "Modify All Data" if not required).
  5. Force Password Rotation (If applicable):

    • If the Klue integration was set up using a specific "Integration User" (a named user account rather than a high-privilege system user), force a password reset for that specific account to invalidate any cached credentials that may exist outside the OAuth flow.

Vendor Advisory: Reference the official Klue security advisory for specific timestamps of the compromise and their new security posture requirements.

Related Resources

Security Arsenal Managed SOC Services AlertMonitor Platform Book a SOC Assessment soc-mdr Intel Hub

mdrthreat-huntingendpoint-detectionsecurity-monitoringsupply-chainsalesforceoauth-abuseklue

Is your security operations ready?

Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.