Join our Newsletter — 33% off our NHI Course
Home› Guides› MuleSoft Anypoint Security Guide: Connected Apps, Roles and…
Guide Non-Human Identity (NHI)

MuleSoft Anypoint Security Guide: Connected Apps, Roles and Integration Secrets

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 27 October 2026 12 min read
On this page

An integration platform holds the credentials for every system it connects, so one over-privileged connected app or a leaked environment client secret in MuleSoft Anypoint can open the databases, SaaS tenants and APIs behind it. Anypoint Platform is where Mule applications are designed, deployed and governed, and each deployment typically carries database passwords, OAuth client secrets, API keys and certificates for downstream systems. This guide explains how identity and access work in Anypoint (organisations, business groups, roles and connected apps), which credentials the platform itself issues, how to keep application secrets protected, what the audit log records, and a hardening baseline. It is for integration platform owners, MuleSoft architects and identity and security teams. Behaviour is taken from MuleSoft's official documentation; check your control plane and subscription, since some features differ by region and package.

Key takeaways

  • Connected apps replace service accounts. MuleSoft requires internal connected apps instead of service accounts for programmatic access. Use client credentials connected apps with only the scopes and business groups the job needs.
  • Client secrets do not expire by default. A connected app's clientSecret has no expiry unless you set one. Set an expiry, record an owner and rotate secrets whenever ownership transfers.
  • Restrict which apps users can authorise. The default authorisation policy is Unrestricted. Switch to Restricted so only allowlisted apps can act on users' behalf.
  • Environment client IDs are deployment keys. Each environment has a client ID and secret used to connect customer-hosted runtimes and gateways. Treat them as privileged secrets.
  • Downstream secrets need runtime protection. Use safely hidden properties or property protection in Runtime Manager and the Secure Configuration Properties module, and never commit plain credentials in application property files.

How identity and access work in MuleSoft Anypoint

Anypoint Platform is organised as a root organisation containing business groups (sub-organisations), each with environments such as Sandbox and Production. People sign in with Anypoint credentials or through an external identity provider (SAML 2.0 or OpenID Connect), and get access through roles (sets of permissions) and teams, both scoped to a business group. External applications get access through connected apps, which use OAuth 2.0 and OpenID Connect.

Identity typeHow it authenticatesLifetime and controls
User with Anypoint credentialsUsername, password and MFAMFA is enabled by default and cannot be turned off at organisation level; session timeout default 60 minutes (15 to 180); optional IP allowlist for these logins.
SSO userSAML or OIDC from your IdPMFA enforced by the IdP; IP allowlisting does not apply to SSO logins.
Connected app acting on behalf of a userAuthorization code, JWT bearer or password grantGets the intersection of its scopes and the user's access. Refresh tokens expire after 90 days and need offline_access; access tokens end with the user's session.
Connected app acting on its own behalfClient credentialsWorks only in the organisation where it was created, in the business groups you select. Secret has no expiry unless configured.
Legacy service account (user)Username and passwordOnly certain service account types are MFA exempt; MuleSoft requires internal connected apps instead.
Environment and business group client credentialsClient ID and secretUsed to register customer-hosted Mule runtimes and API gateways; do not expire on their own.

Grant types to avoid

MuleSoft's documentation says the password grant is not recommended because it reveals user credentials to the app and precludes MFA. Use authorization code for interactive apps and client credentials for automation. See the SaaS API Token Security Guide for the general token model.

Admin roles and privileged access

Role or permissionWhat it controlsRisk view
Organization Administrator (root)Users, roles, teams, identity providers, security settings, connected apps, business groupsFull control of the tenant, including MFA resets and connected app secrets. Keep to a few named, MFA protected accounts.
Organization Administrator (business group)The same within one business group, including creating connected apps and choosing their scopesCan mint credentials for that group.
CloudHub Admin (per environment)All Runtime Manager functions in that environment, created automatically per environmentCan deploy code and change application properties in Production.
API Versions Owner, API CreatorsAPI Manager policies and API versionsCan remove security policies from a live API.
Exchange AdministratorsExchange assets and portalsCan publish or alter shared assets and templates.
Audit Log Viewer, Audit Log Config ManagerReading audit logs; setting retentionRetention changes affect evidence; keep config rights with security.
  • Use custom roles: roles are business group specific. Build custom roles per job (deployer for one environment, read only support) rather than handing out Organization Administrator. CloudHub Developer and CloudHub Support are deprecated.
  • Federate administrators: map IdP groups to teams so joiner, mover and leaver changes flow from your directory, and keep one or two break glass Anypoint credential accounts with MFA.
  • Watch MFA resets: an Organization Administrator can reset another user's MFA, which is a takeover path; alert on it.
  • Restrict logins by network: enable IP allowlisting for Anypoint credential logins where available (US and EU commercial clouds), remembering it does not cover SSO users.

Integrations, API tokens and service accounts

MuleSoft concentrates two layers of non-human identity: credentials that act on Anypoint (connected apps, environment client IDs, runtime registration) and credentials that Mule applications use to reach downstream systems. See the Non-Human Identity (NHI) Guide.

Credentials that act on the platform

  • CI/CD connected apps: pipelines deploying with the Mule Maven plugin or the Anypoint CLI should use a client credentials connected app scoped to the target business group and environments, with deploy scopes only. Store the secret in the CI secret store, set an expiry, and use one app per pipeline so you can revoke one without breaking others.
  • Ownership transfer: when the creator of a connected app is deleted, leaves the root organisation or loses admin rights, ownership moves to the root organisation owner. MuleSoft advises rotating the client secrets of all connected apps after such a transfer; secrets can also be reset through the Access Management API.
  • Allowlisting and scopes: under the Restricted policy, apps that later request new scopes must be re-approved before users can grant them. Internal apps are auto approved unless you disable that.
  • Runtime registration: customer-hosted runtimes are registered with Runtime Manager using the amc_setup command and environment level credentials. Limit who can see these values and re-register servers if they leak.

Downstream credentials inside Mule applications

MechanismWhere it appliesNotes
Safely hidden application propertiesCloudHub and hybrid deployments via Runtime ManagerNames visible, values not displayed or retrievable; declared in secureProperties in mule-artifact.json. MuleSoft notes that for hybrid deployments the values remain visible after redeployment, so check what your deployment target actually protects.
Property protectionCloudHub 2.0 Properties tabMasked values are not viewable after being set and are encrypted in the Anypoint Security secrets manager.
Secure Configuration Properties moduleAny deployment, inside the applicationEncrypted property files (AES default, CBC mode, useRandomIVs option); the decryption key is supplied at runtime, so protect the key as the real secret.
External secrets managerAny deploymentFetch at runtime from a vault with a workload identity, which supports rotation without redeployment.

Integration platforms are attractive because one breach yields many tenants' credentials: in the Salesloft Drift breach attackers took the OAuth tokens an integration held for customers' Salesforce tenants and then mined the data for further keys. Scope downstream OAuth clients tightly, rotate them on any suspicion, and keep an inventory of which Mule application holds which credential. See the Secrets Management Guide.

Logging and detection

The Anypoint audit log records user and app actions with time, objects, action type and an optional payload, queryable in Access Management or through the Audit Log Query API by Organization Administrators and Audit Log Viewers. It is business group aware. Default retention is one year (six years for organisations created before 10 July 2023), configurable from 30 to 2,190 days. Audit logs can be exported with Telemetry Exporter on Anypoint Integration Advanced or Titanium; otherwise poll the API into your SIEM. Entries marked Anypoint Staff are actions by people outside your organisation, such as entitlement changes.

EventWhy it mattersATT&CK
Connected app created, scopes changed, secret resetNew or broader machine credentialT1098.001 Additional Cloud Credentials
Role or team membership changes, new Organization AdministratorPrivilege escalationT1078 Valid Accounts
Identity provider, MFA exemption or MFA reset changesAuthentication bypass or takeoverValid Accounts
Application property changes in Production, unexpected deploymentsCredential theft or code change through the platformT1528 Steal Application Access Token
API policy removed or changed in API ManagerExposes a backend without authenticationDefence weakening
Downstream token use from unusual locationsStolen integration tokens used outside the runtimeT1550.001 Application Access Token

The last row depends on the downstream system's logs, not Anypoint's, so feed SaaS and database sign-in logs for Mule service identities into the same detections. See the Detection Engineering for Non-Human Identities Guide.

Metrics

  • Connected app hygiene: percentage of connected apps with an owner, an expiring secret and scopes reviewed in the last quarter.
  • Service account retirement: remaining user based service accounts used for automation (target zero).
  • Admin footprint: number of root Organization Administrators and the share using SSO with IdP MFA.
  • Secret protection: percentage of Production applications whose credentials are hidden, protected or fetched from a vault.
  • Audit export: audit events reaching the SIEM within one hour, with alerts tested.
  • Rotation: median age of connected app and downstream integration secrets.

Hardening baseline

  1. Inventory first: list business groups, environments, connected apps (owned and authorised), user based service accounts, MFA exemptions and Production applications with their downstream credentials.
  2. Federate sign-in: configure SAML or OIDC, map IdP groups to teams, enforce MFA at the IdP, and keep break glass accounts on Anypoint credentials with MFA.
  3. Set session and network controls: shorten the default session timeout if your policy requires (minimum 15 minutes), and enable IP allowlisting for credential logins where available.
  4. Migrate service accounts: replace each user based automation account with a client credentials connected app scoped to one business group and the environments it needs; then remove the MFA exemption and the account.
  5. Restrict connected apps: switch the authorisation policy to Restricted, review the allowlist and consider disabling auto approval of internal apps so every app is reviewed.
  6. Expire and rotate secrets: set an expiry on connected app secrets, rotate after ownership transfers or staff changes, and rotate environment client secrets if exposed.
  7. Protect application properties: mark sensitive properties hidden or protected, encrypt property files with the Secure Configuration Properties module using random IVs, and keep the key out of the repository.
  8. Separate Production: give Production its own deployer identity and custom role; developers deploy to Sandbox only.
  9. Export audit logs: set retention to meet your policy and send events to the SIEM via Telemetry Exporter or the Audit Log Query API.
  10. Test and roll back: trial the Restricted policy and service account migration in a non-production business group, keep the old credential disabled rather than deleted for a short window, and roll back by re-enabling it if a pipeline fails.

Small and large estates

A small team with one business group can run a handful of connected apps with clear owners, SSO for people and hidden properties for downstream secrets. Large enterprises with many business groups should centralise connected app approval with the security team, use per environment custom roles, pull downstream secrets from an enterprise vault, and review audit events for every Production change.

Common misconfigurations

  • Service accounts with MFA exemptions: user accounts kept for automation and exempted from MFA, with passwords in pipeline variables.
  • Organization Administrator scopes on CI apps: a deploy pipeline's connected app holding admin scopes across all business groups, so one CI leak compromises the tenant.
  • Non-expiring secrets with departed owners: connected apps whose creator left, ownership silently moved to the root owner and the secret never rotated.
  • Unrestricted authorisation policy: any user can grant a third party app access to Anypoint on their behalf.
  • Plain credentials in property files: database and SaaS passwords committed in config.yaml or .properties files in Git, or visible in hybrid Runtime Manager properties.
  • Password grant connected apps: apps collecting Anypoint usernames and passwords, bypassing MFA.

Framework mapping

Control areaNIST SP 800-53 Rev. 5NIST CSF 2.0CIS Controls v8.1
Connected app and service account managementAC-2, IA-5PR.AA-015.5, 5.6
Least privilege roles and scopesAC-6PR.AA-056.8
MFA and federated sign-inIA-2PR.AA-036.3, 6.5
Protection of application secretsSC-28, IA-5PR.DS-013.11
Audit logging and retentionAU-2, AU-11, AU-12PR.PS-048.2, 8.10

Practitioner checklist

  • People sign in through SSO with IdP enforced MFA; break glass accounts are few and monitored.
  • No user based service accounts remain for automation, and no MFA exemptions are left without a reason.
  • Every connected app has an owner, minimal scopes, the right business groups and an expiring secret.
  • The connected app authorisation policy is Restricted with a reviewed allowlist.
  • Environment client IDs and secrets are known to few people and rotated if exposed.
  • Production applications keep downstream credentials hidden, protected or in a vault, never in Git.
  • Custom roles separate Production deployment from development.
  • Audit logs reach the SIEM with alerts on connected app, role, IdP and MFA changes.
  • Downstream OAuth clients used by Mule applications are inventoried and can be rotated quickly after a vendor or platform incident.

Standards and references

Related NHI Mgmt Group resources: SaaS API Token Security Guide · Salesforce Security Guide · Secrets Management Guide · Service Account Security Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 27 October 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick the PDF box to continue.