SecurityIdentity

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.

Cohash Security Practice November 2026 17 min read 5 chapters 3-question check
part 19 of 19 · Identity security, from the ground up
01 Leaked appkey 02 Trusted login 03 Apex andrelays 04 Block androtate

the 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.

in plain wordsActive campaign, act this week

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 it like this

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.

who should care
  • Salesforce admins and owners
  • Teams that built integrations
  • Security and SOC teams
  • NYDFS-regulated firms
  • Anyone with an AppExchange app
chapter 01

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.

2,250+Microsoft 365 tenants Storm-0940 tried with one vendor's stolen app credentials
< 3 hoursFrom first targeting to privileged cloud access, in several Storm-0940 cases
Nov 12Salesforce Threat Intelligence publishes its ARTEX warning
Nov 21NYDFS sends regulated firms an ARTEX alert with indicators

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.

how the attack worksHow a stolen integration credential turns into a footholdNothing here is a bug. Every step uses a feature the way it was meant to work, and the attacker wins on speed and on looking like an app you trust.
  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

chapter 02

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

newSafer OAuth defaults, but only for new apps

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.

changedNew connected apps blocked by default

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.

newPhishing-resistant MFA for admins

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.

newStep-up MFA on report exports

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.

changedPartner app controls can't be switched off

For partner apps, PKCE, rotation, absolute TTL and refresh token IP binding are enforced and can't be disabled once on.

fixedNothing to patch

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.

tableCheck where your integrations sit. Most older setups get none of the new defaults
SetupCovered by July 2026 OAuth controls?What to do
External client app created July 2026 or laterYes, locked on (PKCE for all new apps since August)Check its scopes and who is permitted to use it
Connected app created before July 2026NoTurn on rotation and a refresh token policy yourself, after testing the client
Older connected app migrated to an external client appNo, enforcement follows the original creation dateSame as above
Installed app built before July 2026 in the vendor's orgNoAsk the vendor about rotation, PKCE and IP binding
Integration using the username-password flowNot listed on the OAuth Usage page at allMove it to a supported flow and block username-password
JWT bearer flow integrationAlways enforces profile IP restrictionsPut login IP ranges on the integration user's profile

How the warnings stacked up

  1. Jul 2026
    OAuth 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.

  2. Jul 20, 2026
    Admin 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.

  3. Oct 21, 2026
    Microsoft on Storm-0940

    A China-aligned group used a backup vendor's stolen app credentials against Microsoft 365 tenants. Same pattern, different platform.

  4. Nov 5, 2026
    Microsoft on secret hunting

    Attackers had agents search public GitHub repos for leaked app secrets. Old commits count too.

  5. Nov 12, 2026
    Salesforce ARTEX warning

    Salesforce says attackers used stolen app credentials and trusted integration sessions against customer orgs. No platform bug, so nothing to patch.

  6. Nov 21, 2026
    NYDFS industry letter

    New York's regulator warned firms about ARTEX and listed IP addresses and domains to check. There's no deadline attached.

chapter 03

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

Business or platform ownerthis 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
Salesforce adminthis week
  • 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
Developers and integration ownersthis month
  • 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
Security teamtoday
  • 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
chapter 04

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

  1. 01
    Inventory 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.

  2. 02
    Block 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.

  3. 03
    Restrict 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.

  4. 04
    Pin 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.

  5. 05
    Shrink the integration user

    One integration, one user, least privilege. No Author Apex, Customize Application or Modify All Data unless the integration truly deploys code.

  6. 06
    Shorten 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.

  7. 07
    Review 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.

  8. 08
    Watch 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

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.

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. 01 · OUTSIDE 02 · SALESFORCE ORG 03 · CONNECTED SYSTEMS refresh token deploys code callouts Stolen token any IP Vendor app same token Integration user Modify All Data Apex deploy and run Named Credentials all reachable ERP and warehouse © Cohash · cohash.com
01 · OUTSIDE02 · SALESFORCE ORG03 · CONNECTED SYSTEMS Stolen token: any IP Stolen token any IP Vendor app: same token Vendor app same token Integration user: Modify All Data Integrationuser Modify All Data Apex: deploy and run Apex deploy and run Named Credentials: all reachable NamedCredentials all reachable ERP and warehouse ERP and warehouse refresh token callouts © Cohash · cohash.com
after

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.

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. 01 · OUTSIDE 02 · SALESFORCE ORG 03 · CONNECTED SYSTEMS rotating token logged Stolen token blocked by IP Vendor app allowlisted IPs Integration user two objects, read Event Monitoring to the SIEM ERP and warehouse no Named Credential access © Cohash · cohash.com
01 · OUTSIDE02 · SALESFORCE ORG03 · CONNECTED SYSTEMS Stolen token: blocked by IP Stolen token blocked by IP Vendor app: allowlisted IPs Vendor app allowlisted IPs Integration user: two objects, read Integrationuser two objects, read Event Monitoring: to the SIEM EventMonitoring to the SIEM ERP and warehouse: no Named Credential access ERP and warehouse no Named Credential access rotating token © Cohash · cohash.com
side by sideSame leaked key, two orgs: one left as it was, one hardened first
Left as it was
  • 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
Hardened
  • 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.

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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

01 Vendor breach 02 Old refreshtoken 03 IP rangecheck 04 Customer data
scenario 01High risk
A marketing tool's token leaks from the vendor
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.
01 Secret inhistory 02 Agent findsit 03 Secretrotated 04 Org access
scenario 02High risk
A client secret sitting in a public repo
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.
01 Syncintegration 02 Apex callout 03 Scoped access 04 ERP
scenario 03Medium risk
Salesforce as a bridge to the ERP
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.
chapter 05

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.

key takeaways

What to take from this

  1. 01

    Nothing to patch here. The keys were stolen, so start by finding every app that can log in.

  2. 02

    The July 2026 OAuth controls and admin MFA mostly miss older integrations. Check those by hand.

  3. 03

    Admin-approved access, IP ranges and a narrow integration user make a stolen token worth little.

  4. 04

    Download Setup Audit Trail now and keep it. Salesforce deletes entries after 180 days.

  5. 05

    Practise blocking an app and rotating its secrets, so it takes minutes on the day.

platforms in this noteSalesforce →
fact-checked November 2026 against vendor and official documentation · where to go next
  1. How Cohash delivers Salesforce: scope, roles and architecture
  2. Hire vetted Salesforce engineers
  3. Non-human identity security
  4. Book a 30-minute working session with a senior engineer
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.

next track

That's the end of this track.

Next up: before you sign an identity contract. What to ask a partner, and where the money actually goes.

  1. 01Conditional access is a policy, not a prayer
  2. 02Zero trust means proving every access. Here's how to start, and what to do if someone's already in.
  3. 03The access review nobody dreads
  4. 04Is your AI agent running on someone else's login? Give it its own, and cap what it can do
  5. 05Who owns your AI agents? How to find them, give each one a sponsor and stop their access creeping
  6. 06Stopping a rogue AI agent: kill switches, token revocation and what OAuth can't do yet
  7. 07From AI development to AI governance with AIDLC
  8. 08SuccessFactors basic auth is going away: moving Entra HR provisioning to workload identity
  9. 09What breaks in Entra ID this November: MemberOf, the PIM beta APIs and agent permissions
  10. 10Your Entra-to-Salesforce provisioning breaks on December 1. One permission fixes it
  11. 11Zendesk is killing API tokens, and your Entra ID provisioning still runs on one
  12. 12Everyone is racing to give AI more autonomy. Who's building the brakes?
  13. 13Your Entra provisioning jobs for GoTo, Vonage and Puzzel need new credentials before spring
  14. 14Identity Security Cloud provisioning failed? Where to look first, and what usually fixes it
  15. 15Moving Delinea Server Suite from classic to hierarchical zones without breaking logins
  16. 16When a PingAM or ForgeRock login keeps failing, how do you find the broken node?
  17. 17Why Okta SCIM provisioning fails, and how to read the errors it leaves behind
  18. 18PingFederate SAML errors: where to look in the logs and how to fix the common failures
  19. 19Salesforce's ARTEX warning: what a stolen integration key can do in your org, and how to stop it
all learning tracks →
CHOSEN ON A SLIDE DECK Vendor logos on theproposal Quote beforediscovery Juniors swapped inlater Dependency with noexit CHOSEN ON EVIDENCE Named, certifiedstaff Fixed-scopediscovery first References you pick Exit written intocontract
Security · 11 minHow to choose an IAM implementation partner

Ask who will build it, then check they've built one like it before.

read next
next step

Tell us what you're running. We'll tell you what we'd do first.

A 30-minute working session with a senior engineer. No slides.

useful to bring
  • The platform and the version you're on
  • Where you need to get to, and by when
  • What's custom: rules, plugins, integrations
  • Any audit finding or deadline driving it