An integration platform holds standing OAuth grants, API keys and service passwords for most of the business applications it connects, so whoever controls the platform, or one of its connections, can read and move data across all of them. This guide covers hardening an integration platform you already run, rather than choosing one: who can administer and build on it, how connector credentials and OAuth grants are created, scoped, stored and revoked, how on-premises agents and inbound endpoints are protected, what the platform must log, and how it is changed, upgraded and retired. It is vendor-neutral and applies to cloud-hosted integration platforms (iPaaS), hybrid platforms with customer-hosted agents and self-hosted integration servers. It is written for integration and automation platform owners, security architects and the identity teams that govern non-human identities.
Requirements for selecting a platform are in Security Requirements for Selecting an Integration Platform (iPaaS). Bulk data pipelines are covered in the ETL and ELT Pipeline Security Guide and partner file and message exchange in the EDI and B2B Integration Security Guide.
Key takeaways
- Treat the platform as a tier 0 credential store. Its connection store usually holds more long-lived non-human credentials than any vault, so it needs the administration, logging and review you apply to a vault.
- Every connection is an identity with an owner. Each connector credential or OAuth grant should be tied to a dedicated integration user, the narrowest scope that works, a named owner and an expiry or review date.
- Builders are privileged users. Anyone who can edit a flow can read the data it handles and redirect it elsewhere, so building in production is an admin action that needs approval.
- Revocation must be rehearsed. When the platform or a provider is compromised you need to revoke every grant it holds within hours, which only works if the inventory and revocation path exist beforehand.
- Logs must show data movement, not only configuration. Audit logs of admin changes plus run history with record counts and destinations are what let you scope a leak through an integration.
What makes up an integration platform's attack surface
An integration platform has five parts, and each needs its own controls. The shared responsibility split differs by model: with a cloud-hosted runtime the provider runs the execution layer and connection store, while with customer-hosted agents you run the component that holds credentials to internal systems. The NCSC Cloud Security Principles apply to the cloud parts, especially principle 3 separation between customers, principle 9 secure user management, principle 10 identity and authentication, principle 11 external interface protection, principle 12 secure service administration and principle 13 audit information and alerting for customers.
| Component | What it holds or does | Main threat | Customer-side control |
|---|---|---|---|
| Management console and API | Tenant settings, users, roles, flows, connection definitions | Takeover of an admin or builder account | SSO with phishing-resistant MFA, role separation, admin API tokens governed as NHIs |
| Connection store | OAuth refresh tokens, API keys, passwords, certificates for every connected system | Bulk theft of grants (ATT&CK T1528 Steal Application Access Token) | Least-scope connections, customer-managed keys or external secrets store, inventory and rotation |
| Flows and recipes | Logic that reads, transforms and writes business data | Malicious or careless edit redirects data to a new destination | Environment separation, approval for production changes, destination allow lists |
| Runtime and agents | Execution, plus agents inside your network with credentials to internal systems | Agent host compromise exposes internal credentials and network reach | Outbound-only agents on hardened hosts, per-agent credentials, segmentation |
| Inbound endpoints | Webhooks and API endpoints that trigger flows | Unauthenticated triggers inject data or abuse flows | Signed or authenticated webhooks, IP restriction where supported, rate limits |
Administrative roles and builder access
Integration platforms typically offer tenant administrator, environment or workspace administrator, builder (developer), operator (run and monitor) and viewer roles, with names differing by product. Map them to people deliberately.
- Tenant administrators: two to four named people, using separate admin accounts, with access reviewed quarterly. They manage SSO, roles, keys and audit settings, and should not build flows day to day.
- Builders: full build rights in development only. In production, builders deploy through a promotion step that someone else approves, and do not edit live flows.
- Operators: can restart, replay and view run status. Replay and payload view expose business data, so restrict payload visibility to those who need it.
- Connection owners: the people allowed to create or re-authorise a connection to a given system should be that system's owners or delegates, not every builder. Otherwise any builder can attach a powerful personal grant to a flow.
- Sign-in: SSO through your identity provider with enforced MFA, local accounts disabled except a break-glass account held in a vault, and automated deprovisioning through SCIM where available.
- Platform API tokens: tokens used for deployment pipelines or monitoring are non-human identities in their own right. Scope them to an environment, give them an owner and an expiry, and keep them out of flow configuration.
Where business users build their own automations on the same platform, apply the guard rails in the Low-Code and No-Code Application Security Guide.
Connector credentials and OAuth grants
The connection store is the reason the platform is a high-value target. In the 2025 compromise of a chatbot integration's environment, attackers took the OAuth tokens that integration held for customers' CRM tenants and used them to bulk-export records from hundreds of organisations; see the Salesloft Drift breach. An integration platform holds the same kind of grants for far more systems, so design each connection as if its token will one day be stolen.
| Connection method | When to use | Main risk | Hardening |
|---|---|---|---|
| OAuth authorisation code with a dedicated integration user | SaaS targets that grant access per user | Grant made by a personal or admin account inherits that person's full rights | Dedicated integration user per target, least scopes, owner recorded, grant re-authorised only by the connection owner |
| OAuth client credentials | Machine-to-machine APIs | Client secret stored in the platform is long-lived | Prefer asymmetric client authentication (private key JWT or mutual TLS), audience-restricted tokens |
| Federated or managed identity | Cloud services that trust the platform's workload identity | Trust policy too broad, so other tenants or flows can assume it | Bind the trust to your tenant and environment identifiers |
| API key | Targets with no OAuth support | Static, often over-privileged, rarely rotated | Key per connection with restricted permissions and source IP where the target supports it; scheduled rotation |
| Username and password | Legacy databases and internal systems via agent | Shared service passwords reused across flows | Dedicated service account per connection, stored in an external secrets manager, rotated |
RFC 9700, the OAuth 2.0 Security Best Current Practice published in January 2025, sets the bar for the OAuth parts: access tokens restricted to the minimum privileges and audience needed, sender-constrained tokens through mutual TLS or DPoP where supported, asymmetric client authentication recommended, and the resource owner password credentials grant not to be used. Many targets do not yet support every option, so record per connection which ones are in place.
- Never authorise with a personal administrator account: the grant inherits the administrator's rights and breaks when they leave. Create an integration user per target with only the objects and permissions the flows use.
- Restrict grants at the target: most SaaS platforms let you limit a connected app or integration user by IP range, session policy or object permissions. If the platform publishes its egress addresses, pin the integration user to them so a stolen token does not work from elsewhere.
- Store secrets outside the platform where possible: use customer-managed encryption keys or an external secrets manager reference so a platform-side leak does not yield plaintext credentials, and so rotation happens in one place. The OWASP Secrets Management Cheat Sheet advises keeping production and development secrets in separate systems and restricting access to production.
- Keep one connection per environment: development flows must never use production connections, otherwise anyone with development build rights reaches production data.
- Plan revocation per target: RFC 7009 defines OAuth token revocation, and says that when a refresh token is revoked the server should also invalidate access tokens from the same grant if it supports access token revocation. Not every target does, so document for each one how to revoke the grant, how long issued access tokens stay valid, and who can do it.
Governance of grants across the SaaS estate is covered in the SaaS and OAuth App Governance Guide, and token lifetimes in Access Tokens vs Refresh Tokens.
Agents, inbound endpoints and network placement
- Agents on dedicated hosts: run on-premises agents on hardened hosts used for nothing else, in a segment that reaches only the internal systems their flows need. The agent host holds decrypted internal credentials at run time, so treat it as a server in the same tier as those systems.
- Outbound only: agents should open outbound connections to the platform rather than accept inbound ones, through an egress proxy with an allow list for the platform's endpoints.
- One agent registration per environment: separate agent groups for production and non-production, each with its own registration credential, so a development flow cannot run against a production agent.
- Authenticate every inbound trigger: webhook endpoints should verify a signature or token and reject replays; use IP restriction only as an extra layer. See the Webhook Secrets Security Guide.
- Restrict outbound destinations: where the platform supports it, allow list the domains or connectors flows can send to, so a modified flow cannot post data to an arbitrary HTTP endpoint. OWASP API10:2023 Unsafe Consumption of APIs is the reverse risk: validate data the platform receives from third-party APIs before writing it into core systems.
Environments, change control and data handling
Separate development, test and production environments with separate connections, agents and roles. Promote flows as versioned packages with approval by someone other than the builder, and keep the version history so you can see exactly what changed before an incident.
- Review flows for destination changes: a change that adds a new external destination, a new connector or a broader query should trigger security review, because those are the edits that turn an integration into an exfiltration path.
- Limit payload retention: run history, retries, dead letter queues and debug logs often keep full payloads. Set the shortest retention the business accepts, mask sensitive fields in logs, and turn off verbose debug logging in production after troubleshooting.
- Control exports: restrict who can export flow packages or tenant configuration, since exports can contain connection metadata and, on some platforms, encrypted secrets.
- Retire unused flows and connections: disable flows with no runs in 90 days, then revoke their connections at the target, not only in the platform.
Where identity fits
Every connection on the platform is a non-human identity with an owner, a scope and a lifecycle, and most of them are invisible to the identity team because they were created inside the platform. Bring them into the NHI inventory: for each connection record the target system, the integration user or client, scopes, owner, creation and last-use dates, and environment. Review ownership when people move, as described in the NHI Ownership Guide. Check from the target side too: list the grants each SaaS platform shows for the integration platform's client, because a grant that exists at the target but not in the platform inventory is unmanaged.
Hardening an existing platform: a phased approach
- Inventory: export every user and role, connection, flow, agent, inbound endpoint and API token, and match connections to target-side grants. Record which connections use personal accounts or admin-level scopes.
- Lock down administration: enforce SSO and MFA, cut tenant administrators to a small named group, disable local accounts except break-glass, and turn on audit log export.
- Fix the worst connections first: replace grants made by personal or administrator accounts with dedicated integration users, narrow scopes, and apply IP or session restrictions at the target. Test each change in non-production first, because scope reductions break flows that relied on excess rights.
- Separate environments: split production connections and agents from development, and introduce approved promotion.
- Move secrets out: adopt customer-managed keys or external secrets references, then rotate every credential that was held in the platform.
- Restrict data flow: set destination allow lists, payload retention and log masking.
- Rehearse revocation: run a tabletop and a technical test of revoking all grants for one target and restoring service with new ones.
Rollback: keep the old connection disabled, not deleted, until the replacement has run cleanly through one full business cycle (month-end jobs often fail first); if a flow breaks, re-enable the old connection for that flow only and fix the scope. Never restore an administrator-account grant as a permanent fix.
Decision guidance
- Cloud runtime or customer-hosted agent: use the cloud runtime for SaaS-to-SaaS flows, which keeps credentials out of your network; use agents only where targets are private, and accept that you then own the agent host's security.
- Platform-held or external secrets: external references add a dependency and some latency but give one place to rotate and audit; prefer them for production connections to sensitive systems.
- Small organisations: focus on SSO and MFA, two administrators, dedicated integration users for the five most sensitive targets and audit log export. That covers most of the risk.
- Large organisations: add separate tenants or environments per business unit, connection owner roles, destination allow lists, automated inventory reconciliation with target-side grants and SIEM detections.
Detection and measurement
Forward three log sources to the SIEM: the platform's audit log (sign-ins, role and user changes, connection created or re-authorised, flow deployed, export performed, API token created), run history with record counts and destinations, and the target systems' logs for activity by integration users. Protect the copies against deletion, in line with NIST SP 800-53 AU-9.
| Signal | Source | Why it matters |
|---|---|---|
| Connection created or re-authorised outside a change | Platform audit log | New grant may carry a personal or broader scope |
| Flow deployed with a new external destination | Platform audit log, version diff | Possible redirection of data (T1567 Exfiltration Over Web Service) |
| Integration user active from an address not owned by the platform | Target SaaS logs | Stolen token used elsewhere (T1550.001 Application Access Token) |
| Record volume far above the flow's baseline | Run history, target API logs | Bulk export through a legitimate connection |
| New tenant admin or platform API token | Platform audit log | Persistence by an attacker with admin access |
- Connection ownership: share of connections with a named, current owner (target 100%).
- Personal grants: number of connections authorised by personal or administrator accounts (target zero).
- Credential age: share of static credentials older than the rotation policy.
- Revocation time: measured time to revoke all grants for one target in a rehearsal.
- Change approval: share of production deployments with a recorded approver other than the builder.
Framework mapping
| Control area | NIST SP 800-53 Rev. 5 | NIST CSF 2.0 | Other references |
|---|---|---|---|
| Admin and builder roles | AC-2, AC-6 | PR.AA-05 | NCSC principles 9 and 12 |
| Connection credentials and grants | IA-5, IA-9 | PR.AA-01 | RFC 9700; OWASP API2:2023 Broken Authentication |
| Agents and network placement | SC-7, SC-8 | PR.DS-02 | NCSC principle 11 |
| Environments and change control | CM-3 | PR.PS-01 | OWASP API8:2023 Security Misconfiguration |
| Logging and monitoring | AU-2, AU-6, AU-9 | PR.PS-04, DE.CM-06 | NCSC principle 13 |
| Provider risk | SA-9 | GV.SC-07 | NCSC principle 3 |
| Token theft and misuse | IA-5 | DE.CM-03 | ATT&CK T1528, T1550.001, T1199 Trusted Relationship |
Common failure patterns
- Grants made by an administrator's own account: the integration silently holds administrator rights in the target and stops working, or keeps working, when that person leaves.
- Every builder can create connections: connections to sensitive systems appear without the system owner knowing, often with broad scopes.
- Shared connections across environments: development flows use production grants, so a developer test or a compromised development account reaches production data.
- Revoking in the platform only: deleting a connection in the platform does not always revoke the grant at the target, leaving a valid token in a backup or export.
- Full payloads in run history: months of customer data sit in logs readable by every operator.
- Agents on shared servers: an agent installed on a general application server shares its compromise with every flow that agent runs.
Practitioner checklist
- Enforce SSO with MFA, keep tenant administrators to a small named group and hold a vaulted break-glass account.
- Separate builder, deployer, operator and connection owner roles, with production changes approved by someone other than the builder.
- Back every connection with a dedicated integration user or client, least scopes, a named owner and a review date.
- Restrict integration users at the target by IP range or session policy where supported.
- Use customer-managed keys or external secrets references for production connections and rotate legacy credentials.
- Run agents on dedicated, segmented hosts with outbound-only connections and per-environment registration.
- Authenticate inbound webhooks and allow list outbound destinations.
- Export audit logs and run history to the SIEM and alert on new connections, new destinations and volume spikes.
- Reconcile the platform inventory with target-side grants quarterly and rehearse mass revocation once a year.
Standards and references
- IETF: RFC 9700, Best Current Practice for OAuth 2.0 Security
- IETF: RFC 7009, OAuth 2.0 Token Revocation
- NCSC: The cloud security principles
- OWASP: Secrets Management Cheat Sheet
- OWASP: API Security Top 10 2023
- NIST: SP 800-53 Rev. 5 Security and Privacy Controls
- NIST: Cybersecurity Framework 2.0
- MITRE ATT&CK: T1528 Steal Application Access Token
Related NHI Mgmt Group resources: Security Requirements for Selecting an Integration Platform (iPaaS), ETL and ELT Pipeline Security Guide, SaaS and OAuth App Governance Guide, How to detect use of a stolen OAuth refresh token, OAuth and SaaS integration breaches.