Lesson 2 of 2 Trust Architectures

Third-Party Connections

Organisations connect to suppliers, partners and services through APIs, extensions and middleware. This lesson explains the risks these connections create and how to secure, monitor and govern them.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain the risks of third-party connections.
  • Describe API security controls.
  • Explain the risks of app extensions and middleware.
  • Describe how supply chain risk and third-party connections are governed.

Why third-party connections matter

Modern systems are connected to many outside parties: payment processors, cloud services, logistics partners, analytics vendors and software add-ons. Each third-party connection is a path by which data leaves the organisation and by which an attacker might enter. Many major breaches began at a supplier, for example through a vendor's stolen credentials or a compromised software update. Third-party risk is therefore managed across the whole relationship.

Application programming interfaces

An application programming interface (API) lets software exchange data and invoke functions programmatically, typically over HTTPS. APIs are attractive targets because they expose data and functions directly, often with less scrutiny than user interfaces.

API security includes strong authentication of calling systems (OAuth 2.0 tokens, API keys kept secret and rotated, or mutual TLS); authorisation checked on every request and every object, because broken object-level authorisation, where a caller can request another customer's records by changing an ID, is the most common API flaw; least-privilege scopes; input validation; rate limiting and quotas to prevent abuse; encryption in transit; and logging and monitoring of use. API gateways centralise many of these controls, and an inventory of APIs prevents forgotten, unprotected endpoints.

Select all that apply

Securing APIs

Exam skills 2.2.3

Identify controls that secure APIs exposed to third parties.

Log in to try this activity Interactive activities are free with an account.

App extensions and middleware

App extensions are plug-ins and integrations that add features to platforms such as browsers, email clients, collaboration tools and SaaS applications. When installed, they often request broad permissions, such as reading all email or files. Malicious or compromised extensions can steal data. Organisations control extensions by allowing only approved ones, reviewing the permissions they request, and removing unused integrations.

Middleware is software that connects applications, such as message queues, enterprise service buses and integration platforms. Because it sits between systems and handles their data, it needs its own authentication between components, encryption of messages, least-privilege service accounts, patching and monitoring. A compromise of middleware can affect every system it connects.

The following diagram shows where a browser extension with broad permissions can send users' data, and the controls.

The risk of a free page-summarising browser extension that asks to “read and change all your data on all websites”. It can read everything users see, including internal applications and session data, and send it to its developer. Extensions are managed centrally and only reviewed ones allowed; this one is removed unless a review justifies its permissions.
The scenario is illustrative.

Governing third-party connections

Technical controls are part of a broader process, summarised in the following steps.

  1. Assess before connecting

    Perform due diligence on the third party's security: questionnaires, certifications such as ISO/IEC 27001, SOC 2 reports.

  2. Contract

    Include security requirements, breach notification, the right to audit, data handling and termination terms.

  3. Connect with least privilege

    Grant only the data and functions needed, through dedicated, monitored interfaces.

  4. Monitor

    Log and review third-party activity and watch for anomalies such as unusual volumes.

  5. Review and remove

    Reassess periodically and disable connections and credentials when the relationship ends.

Put in order

Onboarding a third-party connection

Exam skills 2.2.3

Put the steps for governing a new third-party connection in order.

Log in to try this activity Interactive activities are free with an account.

Supply chain risk

Third-party connections are part of a wider supply chain risk: the organisation depends on suppliers' software, services and people, and an attacker who compromises a supplier can reach many of its customers at once. Well-known examples include malicious updates inserted into widely used management software, compromised managed service providers whose remote access tools were used to deploy ransomware to their clients, and stolen credentials of a heating and ventilation contractor used to enter a retailer's network.

Managing this risk starts with an inventory of third parties and what each can access, ranked by criticality, so that assessment effort is proportionate. Connections are designed so that a compromised supplier gains as little as possible: dedicated, monitored access paths rather than broad VPN access, just-in-time access for support staff with approval and session recording, separate credentials per supplier with MFA, and network segmentation around the systems they support. Software from suppliers is verified (code signing, software bills of materials) and patched, and contracts require suppliers to notify the organisation of incidents promptly so that it can respond.

Worked example

An API flaw

A partner reports that by changing the customer number in an API request from 1001 to 1002, it received another customer's order history. Authentication was required. What is the flaw and how is it fixed?

This is broken object-level authorisation: the API authenticated the caller but did not check that the caller was entitled to the requested record. The fix is to verify, on every request, that the requested object belongs to the caller (and to return an error otherwise), to use non-guessable identifiers, and to monitor for sequential access patterns. The incident should be investigated to see whether data was exposed.

Worked example

The helpful extension

Staff install a free browser extension that summarises web pages. It requests permission to "read and change all your data on all websites". What is the risk and what should the organisation do?

The extension can read everything users see in the browser, including internal applications and session data, and send it to its developer. The organisation should manage browser extensions centrally, allow only reviewed and approved ones, and remove this one unless a review shows it is trustworthy and its permissions necessary.

Check yourself

Why is broken object-level authorisation a common API flaw?

Show answer

APIs often check that a caller is authenticated but not that each requested object, identified by an ID in the request, belongs to that caller, so changing the ID exposes other records.

Exam Tips

Remember for the exam

  • Authorise every API request at the object level, not only at sign-in.
  • Approve app extensions and review the permissions they request.
  • Remove third-party access when the relationship ends.