CCyberwiki

Third-party access

Third-party access
ClassAccess control, Software supply chain
Also known asTrusted relationship, third-party compromise
MITRE ATT&CKT1199 Trusted Relationship
Typical severityHigh
AffectsContractors, managed service providers, support outsourcers, cloud roles held by vendors, installed apps and outside collaborators on code hosts

An organization that hires a support company, a cost-monitoring service or a freelance developer gives that outsider a way in: an account, a role, an installed app or a remote session. An attacker who breaks into the outsider can use that way in as it stands. Third-party access, also called a trusted relationship attack, is entry through such an existing connection, which may have weaker protection or draw less attention than the target's own sign-in.1

Forms of access

The oldest form is the contractor account. IT service firms, managed security providers and building contractors (heating, lifts, physical security) hold accounts on the networks they look after. Their access is meant to cover one system, yet it may sit on the same network as everything else.1

Cloud and software services added new forms. Microsoft partners and resellers can hold delegated administrator rights over a customer's Microsoft 365 tenant (the customer's own space in the service), which let the provider manage it as if it were one of the customer's administrators.12 An AWS customer can let a vendor take on a role in its account, so the vendor works with temporary credentials and is never handed a long-term key.3 A GitHub App installed on an organization receives the organization and repository permissions it asked for.4 An outside collaborator on GitHub is a person who is not a member of the organization but can open one or more of its repositories.5 Theft of the tokens held by connected OAuth apps is covered in Stolen OAuth tokens.

The customer sees only its own side of the relationship. During the 2022 Okta incident, Okta could see sign-in requests from the virtual machines its contractor used for support work, but had no view into the contractor's Microsoft 365.6 Grants also outlive the work. Delegated admin rights are often neither checked against approved use nor switched off when the job ends, and stay active until an administrator removes them.2 An unused grant is an orphaned grant, and one broader than the job is over-privileged.

One provider, many customers

A provider with admin rights at many customers gives an attacker all of them through one break-in. From May 2021 Microsoft tracked NOBELIUM, the group behind the 2020 SolarWinds compromise, as it went after cloud service providers, managed service providers and other IT firms that held privileged access to governments, think tanks and companies. Microsoft called the pattern compromise-one-to-compromise-many, and stated that it did not depend on any product flaw.2 In one chain the attacker passed through four separate providers before reaching the real target.2 HAFNIUM used stolen API keys and credentials from privileged access management vendors, cloud app providers and cloud data management companies to reach those firms' customers.1 Entry through a provider's software updates or packages is a related path, described in Software supply chain compromise.

Okta and Sitel, 2022

Sitel, which had acquired Sykes, supplied contract support engineers to Okta. At 23:18 UTC on 20 January 2022, Okta received an alert that a new factor had been added to a Sitel engineer's Okta account from an unfamiliar location. The engineer did not accept the second-factor challenge, so the attempt failed, and about an hour later Okta ended the account's sessions and suspended it.7 The attacker had already been inside Sitel's environment since 16 January and reached an engineer's computer, owned and managed by Sitel, over remote desktop.7 Okta later assessed that the attacker had compromised a system on Sitel's network that let administrators watch and control staff's remote sessions, and took the published screenshots while an engineer was away from the desk.6

The engineer's access was narrow by design. The support tool, SuperUser, could not create or delete users or download customer databases.7 The final forensic report found that the attacker controlled one workstation for 25 minutes on 21 January, opened two customer tenants and could not make configuration changes, password resets or factor resets.8 The scope Okta first announced was far wider: 366 customers, every tenant a Sitel engineer had opened in the five-day window. Sitel's summary report had reached Okta only on 17 March, five days before the screenshots appeared online.7 Okta ended the contract and said it would manage every third-party device that reaches its support tools itself.8

Limiting a third party

Every delegated administrator account needs Multi-factor authentication, and the systems a contractor maintains can sit on their own network segment.1 A partner's permissions cover the job, under Principle of least privilege, and come off when the work ends.2

On AWS, a vendor role names the vendor's AWS account ID as the principal (the identity allowed to take on the role) in the role's trust policy and requires an external ID that the vendor generates for each customer. The check lets the vendor take on the role only while it acts for you.3

"Principal": { "AWS": "111122223333" },
"Condition": { "StringEquals": { "sts:ExternalId": "ID assigned by the vendor" } }

The external ID is not a secret; anyone who can view the role can read it. What the vendor does with the role is billed to your account.3

On GitHub, an organization's installed apps are listed in its Settings, under Third-party Access, GitHub Apps. Configure shows each app's permissions, and Repository access can be cut from All repositories to Only select repositories. Suspend blocks an app and keeps it installed; Uninstall removes its access to that account.4 When the organization requires two-factor authentication, an outside collaborator has to turn it on before accepting the invitation.5 The Securing a GitHub repository guide covers the rest of the organization settings.

Detection

In a cloud account, abuse of a partner's access shows as an outside account taking on a role, then privileged API calls in quick succession from an unfamiliar network. In a hosted service such as Microsoft 365 or GitHub, an app is installed with broad scopes and then exports data in bulk or changes admin settings.1 Both leave traces in the events a provider records, such as role assumptions and app consent grants, which appear in its Audit logs. Okta's changes after the incident included recording in the customer's System Log when a support engineer used its tool on that customer's tenant.8

See also

References

  1. a b c d e f MITRE (last modified 12 May 2026). "Trusted Relationship, Technique T1199". MITRE ATT&CK. Version 2.4.
  2. a b c d e Microsoft Threat Intelligence Center (25 October 2021). "NOBELIUM targeting delegated administrative privileges" (title shortened). Microsoft Security Blog.
  3. a b c Amazon Web Services. "Access to AWS accounts owned by third parties". AWS Identity and Access Management User Guide.
  4. a b GitHub. "Reviewing and modifying installed GitHub Apps". GitHub Docs.
  5. a b GitHub. "Adding outside collaborators to repositories in your organization". GitHub Docs.
  6. a b Sharwood, Simon (22 June 2022). "Okta says Lapsus$ incident was actually a brilliant zero trust demonstration". The Register.
  7. a b c d Bradbury, David (23 March 2022). "Okta's Investigation of the January 2022 Compromise". Okta.
  8. a b c Okta (20 April 2022). "Okta Concludes its Investigation Into the January 2022 Compromise". Okta.