Salesforce's ARTEX warning: what a stolen integration key can do in your org, and how to stop it
Attackers are using stolen app credentials and AI agents against Salesforce orgs. There's no patch. Here's how the attack runs, what to lock down and what to do if an integration was abused.
part 19 of 19 · Identity security, from the ground upthe ideaSomeone copies an integration's key and logs in as it. The agents take it from there.
after reading, you can- Explain what an attacker can actually do once they hold a copy of your integration's secret
- Set up admin-approved access, IP ranges and a narrow integration user for each app
- Spot abuse in the audit trail early, and block a suspect app before it pulls any more data
Salesforce says attackers are getting into customer orgs with stolen app credentials and then letting AI agents do the rest, at a speed no human operator keeps up with. There's no bug to patch here. The fix is to find every integration that can log in to your org, take away what it doesn't need, and make sure you can switch one off within hours.
If someone copies your integration's key, Salesforce lets them in as that integration
Most Salesforce orgs are wired to other systems, say a marketing tool or an ERP. Each connection keeps a key, usually an OAuth client secret or a refresh token, so it can log in without anyone typing a password. Copy that key and you can log in as the integration, and Salesforce has no reason to stop you. What's new is what happens next. ARTEX, a framework of AI agents, reads your setup, writes code to fit it and keeps trying new ways in until one works. Salesforce says no vulnerability in its platform was involved. The credentials were stolen, and Salesforce hasn't said where from.
Think of a cleaning company that holds a key card to your office. If someone clones that card, the door doesn't know the difference. Now picture the intruder walking every floor in minutes, testing every locked cabinet at once. The answer is to know which cards exist, limit what each one opens, and be able to cancel a card from your desk.
- Salesforce admins and owners
- Teams that built integrations
- Security and SOC teams
- NYDFS-regulated firms
- Anyone with an AppExchange app
Why this one is worth your week
The tricks aren't new. Stolen credentials, poking at permissions and planting code have been around for years. The difference is pace. Salesforce's threat team says the audit logs showed automation being written and run against the org far faster than a person could manage, starting with custom Apex deployed right after the first login.
Microsoft's numbers show what that pace looks like elsewhere. A China-aligned group it tracks as Storm-0940 used stolen app credentials from a backup vendor to try signing in to more than 2,250 Microsoft 365 tenants. Across its ARTEXdefinitionOpen-source AI agents first written to automate penetration tests. The original repo is gone, but criminal and state groups still run copies. campaign, several attacks went from first targeting to privileged cloud access in under three hours. A response plan that starts with a ticket in tomorrow's queue is already too slow.
If you're regulated by New York's Department of Financial Services, the industry letter dated November 21, 2026 is an alert to regulated firms. It sets no deadline, but it asks firms to watch for unauthorized administrator accounts, privilege escalation and abnormal data transfers, and to test that they can isolate a compromised system quickly. Those are the same things a stolen Salesforce integration would trigger.
-
01 Find a key
The secret leaks outside Salesforce, maybe in a vendor breach or an old commit in a public repo. You won't see that happen from your org.
-
02 Log in as the app
The agent signs in with the client credentials or the refresh token. To Salesforce it looks like the integration you approved, so nothing stops it.
-
03 Map what it can do
First it checks what it's allowed to do. It lists users and permission sets, then tries running Apex, creating users and changing integration settings to see what sticks.
-
04 Deploy code that fits
Then it reads the Apex you already have and writes its own to match. Salesforce saw it deploy REST endpoints and Visualforce to pull data and keep a way back in.
-
05 Use the org as a relay
Your Named Credentials let Apex call outside systems. The attacker's code uses them to reach whatever your org already trusts, such as the ERP.
-
06 Keep retrying
When something fails it just tries the next thing, anonymous Apex or a different endpoint or other auth settings. A person would give up long before it does.
For engineers, the relay step is the one to dwell on. A Named Credential exists so Apex can call an outside system without the secret sitting in code, and access to it is granted through a permission set or profile. That design is fine until an integration user with broad rights is the one logged in. Then every Named Credential it can reach becomes a path into your ERP, your data warehouse or your payment provider.
Salesforce tightened things this year. Older integrations mostly missed out
Salesforce has tightened several defaults this year, and some of them blunt this attack. The catch is that most of them protect new apps or human logins. An integration that was set up years ago with a long-lived refresh token probably isn't covered by any of them.
Salesforce controls that matter here, and where they stop
Apps you create now get PKCE, refresh token rotation and a 30-day idle limit, locked on. Anything built before July 2026 is left alone unless it's a Partner Application, so most existing integrations aren't covered.
Since Spring '26 you can't create a new connected app without asking Support. The ones you already have keep running, though, and that old estate is where the risk sits.
Admins and anyone with powerful permissions like Modify All Data or Author Apex now need a passkey or security key to log in. Production enforcement started July 20, 2026. It covers UI and SSO logins, which integrations don't use.
Report exports now ask for a fresh MFA check once the step-up period runs out. You set that period between 1 and 120 minutes. Production enforcement began July 1, 2026, and it only covers report exports.
For partner apps, PKCE, rotation, absolute TTL and refresh token IP binding are enforced and can't be disabled once on.
There's nothing to install. Salesforce says the attackers didn't use a flaw in its platform, and it has already contacted the customers it saw affected.
Notice what the MFA rules cover: people signing in through the login page or SSO. An integration that presents a token it already holds never sees that page. So an org can be fully compliant with the admin MFA enforcement and still have an integration user with Modify All Data that logs in on a refresh token issued in 2023.
| Setup | Covered by July 2026 OAuth controls? | What to do |
|---|---|---|
| External client app created July 2026 or later | Yes, locked on (PKCE for all new apps since August) | Check its scopes and who is permitted to use it |
| Connected app created before July 2026 | No | Turn on rotation and a refresh token policy yourself, after testing the client |
| Older connected app migrated to an external client app | No, enforcement follows the original creation date | Same as above |
| Installed app built before July 2026 in the vendor's org | No | Ask the vendor about rotation, PKCE and IP binding |
| Integration using the username-password flow | Not listed on the OAuth Usage page at all | Move it to a supported flow and block username-password |
| JWT bearer flow integration | Always enforces profile IP restrictions | Put login IP ranges on the integration user's profile |
How the warnings stacked up
- Jul 2026OAuth controls locked on for new apps
New apps get refresh token rotation and a 30-day idle limit, locked on, and PKCE for every new app from August. Apps you built before July don't.
- Jul 20, 2026Admin phishing-resistant MFA begins
Salesforce rolled it out by release group, and the last group was done by September 3. Every admin should have a passkey by now.
- Oct 21, 2026Microsoft on Storm-0940
A China-aligned group used a backup vendor's stolen app credentials against Microsoft 365 tenants. Same pattern, different platform.
- Nov 5, 2026Microsoft on secret hunting
Attackers had agents search public GitHub repos for leaked app secrets. Old commits count too.
- Nov 12, 2026Salesforce ARTEX warning
Salesforce says attackers used stolen app credentials and trusted integration sessions against customer orgs. No platform bug, so nothing to patch.
- Nov 21, 2026NYDFS industry letter
New York's regulator warned firms about ARTEX and listed IP addresses and domains to check. There's no deadline attached.
What to do now, by role
Start with the inventory. You can't rotate, restrict or revoke an integration you don't know about, and the Connected Apps OAuth Usage page in Setup lists more than the apps you installed. It shows Salesforce and third-party apps your users can reach, plus usage attempts Salesforce denied for apps that aren't installed.
Who does what this week
- Name an owner for every integration on the OAuth Usage list. Anything nobody claims gets blocked in a change window
- Ask each vendor whose app holds a Salesforce token how they store it and whether they've rotated it since November 12
- Agree who can block an app out of hours, and write it into the incident plan
- Switch each app you keep to admin-approved access, then grant it through a permission set. Anyone not granted it through a profile or permission set loses access, so test first
- Find who holds Use Any API Client. That permission gets around the admin-approved setting
- Open each app's IP Relaxation setting. If it relaxes IP restrictions fully or for refresh tokens, your profile IP ranges may not protect it. JWT and SAML bearer flows still enforce them
- Turn on the Allowed Email Domains list so new users can't be created on an outside email domain
- Rotate client secrets and move them into a secrets manager. Scan your repos and pipelines for old copies first
- Give each integration its own user with only the objects and fields it needs. Drop Modify All Data and Author Apex
- Make the client handle refresh token rotation, then turn rotation on for older apps
- Move anything still on the username-password flow to a supported flow
- Download Setup Audit Trail now. It only keeps 180 days
- Search the audit trail for code or users created by integration users. A data sync has no reason to deploy Apex or assign permission sets
- Check the NYDFS letter's IP addresses and domains against your logs
- Stream Event Monitoring to the SIEM and alert on bursts of varied API calls from one integration
Harden so the next stolen key gets less
Most of the lasting fixes are about making a stolen key worth less. If the integration user can only read two objects from one IP range, a leaked refresh token gets an attacker very little. Here's the order we'd work in.
Eight steps, in the order we'd work through them on a live org
- 01Inventory every app and owner
Use Connected Apps OAuth Usage and the external client app list. Record who owns each one, what it's for and which user it runs as.
- 02Block what nobody owns
Block ends all current sessions for the app and stops new ones until you unblock it. Do it in a change window and see who calls.
- 03Restrict who can use each app
Set admin approved users are pre-authorized and grant access with a permission set. Remove Use Any API Client from anyone who doesn't need it.
- 04Pin integrations to IP ranges
Add login IP ranges to integration users' profiles and leave IP Relaxation on enforce. JWT bearer flows already enforce profile ranges.
- 05Shrink the integration user
One integration, one user, least privilege. No Author Apex, Customize Application or Modify All Data unless the integration truly deploys code.
- 06Shorten token life
Turn on refresh token rotation and a refresh token policy on older apps once the client can cope. New apps already have it locked on.
- 07Review Named Credentials
List which permission sets can use each one. An integration user that only reads data shouldn't be able to call your ERP.
- 08Watch for sequences
Stream Event Monitoring to your SIEM. Alert on a burst of different requests, retries with small changes, and code deployed by an integration user.
Before: one broad integration user, open policies
A stolen refresh token works from anywhere and reaches everything the integration user can, including outside systems via Named Credentials.
After: narrow user, pinned IPs, short-lived tokens
The token only works from the vendor's IP ranges, rotates on use, and the user can read what it needs and nothing else.
- Refresh token from 2023 still works from any IP
- The integration user can deploy Apex and hand out permission sets. Someone gave it that at setup because it was easier
- That user can reach every Named Credential, so the ERP is one callout away
- Nobody owns the app. When it looks odd, nobody wants to be the one who blocks it
- Setup Audit Trail rolled over before anyone looked
- Token only works from the vendor's IP ranges and rotates on each use
- The user can read two objects and that's it. No code, no permission changes
- No Named Credential access for that permission set
- Someone owns each app. Whoever is on call can block it in minutes
- Audit history downloaded weekly and kept in the SIEM
Two more things from outside the vendor posts. On Hacker News, people discussing the 2025 Salesforce voice-phishing campaign said callers claiming to be IT support talked staff into approving a Data Loader connection. Same trusted-app door, just opened from the inside. And the NVD lists CVE-2026-117561 in sf-mcp, a community MCP server for the Salesforce CLI, with command injection in versions through 1.3.2. Tools that wire assistants to Salesforce hold credentials as well. Put them on the list.
If an integration has been abused
Assume the attacker moves faster than your normal change process. Contain first, then work out what happened. Salesforce's own advice is to be able to disable an integration, revoke tokens and reset credentials within hours.
- 01Containfirst hour
- Block the app on the Connected Apps OAuth Usage page. That ends all its sessions and stops new ones
- Freeze the integration user and reset its password, so nothing else can log in as it
- Rotate the client secret, then rotate the credentials behind any Named Credential that user could reach
- 02Preservefirst hour
- Download Setup Audit Trail before anything else changes
- Export the event log files you have and the login history for the integration user
- Write down what you changed and when, so the timeline stays clean
- 03Investigatefirst day
- Pull every Apex class, trigger and REST resource that user created or changed. Anything nobody recognises is a lead
- Look for users it created, permission set assignments it made and integration settings it changed. Each one could be a way back in
- Look for outbound callouts to systems behind Named Credentials and check those systems' logs too
- 04Removefirst days
- Keep copies for the investigation, then delete the attacker's code and any users it made. Don't delete before you've copied
- Undo permission set assignments the attacker made, then check profiles too. The campaign tried several ways to raise its rights, so expect more than one
- Look for a second way in, such as another app or user it created, before you unblock anything
- 05Recover and reportfirst week
- Bring the integration back with a new secret, a narrowed user and IP ranges
- Work with legal on notice duties. NYDFS-regulated firms check Part 500 timelines, and others check state breach laws and contracts
- Tell your insurer and the vendor whose credential leaked, and record what you'll change
Situations you might recognise. They're made-up illustrations, not our clients
- the setup
- A retailer connected a marketing platform years ago through a connected app. The integration user has Modify All Data so the setup would just work.
- what happens
- Then the vendor gets breached. An agent logs in with the stored refresh token, checks what the user is allowed to do, deploys Apex and starts pulling customer records.
- what to do
- Block the app, deactivate the user and download the audit trail. Rebuild the integration with a read-only user and the vendor's IP ranges.
- the setup
- A mid-size insurer's developer pushed a test script with a client secret to a public GitHub repo two years ago and later deleted the file.
- what happens
- The secret is still in the repo history. Microsoft has seen agentic tools search GitHub for exactly this kind of leftover.
- what to do
- Treat the secret as stolen. Rotate it, add secret scanning to the pipeline and pin the integration user to known IP ranges.
- the setup
- A manufacturer posts orders from Apex to its ERP through a Named Credential. Nobody scoped it, so every integration user's permission set can use it.
- what happens
- A data-sync integration's key is stolen. The agent logs in, finds the Named Credential and uses Apex callouts to query the ERP, which only ever sees Salesforce calling.
- what to do
- Limit each Named Credential to the one permission set that needs it, and alert when an integration user deploys Apex.
How Cohash helps
We run integration inventories on Salesforce orgs, tighten connected app and external client app policies, and test each change against the real client so a fix doesn't take the integration down. See our Salesforce consulting, hire Salesforce engineers, our work on non-human identities, or start with the assessment.
What to take from this
- 01
Nothing to patch here. The keys were stolen, so start by finding every app that can log in.
- 02
The July 2026 OAuth controls and admin MFA mostly miss older integrations. Check those by hand.
- 03
Admin-approved access, IP ranges and a narrow integration user make a stolen token worth little.
- 04
Download Setup Audit Trail now and keep it. Salesforce deletes entries after 180 days.
- 05
Practise blocking an app and rotating its secrets, so it takes minutes on the day.
01Was Salesforce hacked?
Salesforce says no platform vulnerability was involved. Attackers used stolen application credentials and trusted integration sessions, so there's no flaw to fix. Salesforce told affected customers directly.
02What is ARTEX?
An open-source framework of AI agents first built for automated penetration testing. You give it a target and a goal and the agents plan and run the steps. The original repo was taken down, but copies still circulate and several threat groups use them.
03Does Salesforce's MFA enforcement protect our integrations?
Mostly no. The phishing-resistant MFA rollout covers people signing in through the login page or SSO. An integration presenting a token or client credential doesn't go through that page, so it needs IP ranges, least privilege and token controls instead.
04How do I see which apps can access our Salesforce org?
In Setup, open Connected Apps OAuth Usage. You'll see the Salesforce and third-party OAuth apps your users can reach, with a user count for each. Apps that aren't installed show up too, with the attempts Salesforce denied. Apps using the username-password flow don't appear there, so check those separately.
05How do we cut off an app quickly?
Click Block on the Connected Apps OAuth Usage page. It ends every current session for the app and stops new ones until you unblock it. Then rotate the client secret and reset the integration user.
06We built our connected apps years ago. Do the July 2026 OAuth changes cover them?
No. Refresh token rotation and the 30-day idle limit are locked on only for apps created from July 2026, plus Partner Applications, and PKCE for all new apps since August. Salesforce recommends turning them on for older apps, but test the client first.
07We're regulated by NYDFS. Do we have to report anything?
The November 21, 2026 letter is an alert, with no deadline. It asks firms to secure internet-facing systems, watch for signs like new admin accounts, and be ready to contain fast. If you find a compromise, your normal Part 500 notice rules apply.
Three questions, about a minute
Pick an answer and we'll tell you if it's right, and why it is or isn't. The score stays in this browser.
-
Q1Your admins all use passkeys under Salesforce's MFA enforcement. A vendor's refresh token leaks. What stops it being used?
show the answer
C. IP ranges and a narrow integration user The MFA rules cover people signing in through the login page or SSO. A token-based integration skips that page, so IP ranges and least privilege do the work.
-
Q2You suspect an integration is being abused right now. What's the fastest way to cut it off?
show the answer
A. Block the app on Connected Apps OAuth Usage Block ends all current sessions for the app and stops new ones. Deleting users loses evidence, and waiting gives a fast attacker hours.
-
Q3Your team set up a connected app in 2022 and it still runs every night. Do the July 2026 OAuth controls apply to it?
show the answer
C. They aren't enforced, so you turn them on after testing Enforcement follows the app's creation date, even after migration. Older apps need rotation and token policies turned on by hand, once the client handles them.