Join our Newsletter — 33% off our NHI Course
Home› Glossary› Cyber Security› Third-Party Code
Cyber Security

Third-Party Code

← Back to Glossary
By NHI Mgmt Group Updated October 31, 2026 Domain: Cyber Security

Third-party code is software written outside the app team and embedded into the application during development. In mobile environments, it can make up a large share of the final app. That creates supply chain risk because the developer must understand, test, and govern code they did not author.

What Third-Party Code Means in Software Supply Chains

Third-party code is software created outside the application team and embedded into an app during development. The key security issue is not merely where it came from, but that it extends the trust boundary. Once it is compiled, linked, or packaged into a product, its behaviour, update path, and dependencies become part of the application’s exposure.

That matters because third-party code can arrive through libraries, SDKs, plugins, frameworks, or vendored modules, and each route changes how much control the developer has over its provenance and maintenance. The more external code an app depends on, the more the organisation must understand what is being inherited, what is being updated, and what hidden relationships may exist between components.

Why Third-Party Code Becomes a Security Dependency

Third-party code is a dependency, not just an implementation convenience. It can introduce vulnerable functions, insecure defaults, outdated transitive packages, or unexpected network behaviour. If an upstream component is modified maliciously or maintained poorly, downstream applications may inherit the weakness before their own teams even change a line of code. NHIMG’s Software Supply Chain Security Guide is a useful parent resource for understanding how source, build, and dependency risk fit together.

That dependency becomes especially important in ecosystems that lean heavily on package managers and hosted services. Code signed, published, or updated by another party can alter the application’s integrity, even when the consuming team has not directly touched it. In practice, the question is not only whether the code works, but whether the organisation can trust its origin, its maintenance model, and the path by which it enters production.

How Organisations Govern Exposure to Third-Party Code

Exposure begins with inventory. Teams need to know which components are in use, where they were sourced, which versions are deployed, and whether any of them are direct or transitive dependencies. That inventory is what makes provenance checks, vulnerability review, and retirement decisions possible. Without it, third-party code becomes an untracked part of the attack surface.

Governance also includes approval and update discipline. Third-party code should be evaluated for provenance, maintenance quality, dependency breadth, and whether it is still actively supported. The application team may not have authored the code, but it still owns the decision to keep relying on it. For software teams that need a broader framework for secure build and dependency handling, NIST SSDF (SP 800-218) and SLSA both reinforce the need for provenance, integrity, and controlled software supply chains.

What Failure Looks Like When Third-Party Code Is Compromised

Failure can take several forms. A dependency may contain a known vulnerability, be abandoned by its maintainer, or be replaced by a malicious update. In more severe cases, the code may become a delivery mechanism for credential theft, data exfiltration, or remote command execution. Even when the injected behaviour is subtle, the consequences can spread quickly because third-party code is often reused widely and trusted implicitly by downstream systems.

Compromise also affects confidence in the whole release process. If an organisation cannot distinguish trusted code from tainted code, then patching becomes slower, incident scoping becomes harder, and rollback decisions become less reliable. This is why third-party code is a supply chain issue as much as an application issue: once trust in upstream components fails, downstream assurance weakens with it.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

SLSA, NIST SP 800-53 Rev 5 and OWASP ASVS set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
SLSASupply-chain Levels for Software ArtifactsDefines provenance and integrity controls for third-party software artifacts
Recommendation — Adopt SLSA-aligned provenance checks for third-party components before they reach production.
NIST SP 800-53 Rev 5SA-12 — Supply Chain ProtectionCovers protection of acquired and externally sourced software components
CM-8 — System Component InventoryRequires visibility into installed components and dependencies used by the application
SI-2 — Flaw RemediationSupports timely remediation of vulnerabilities in imported software components
Recommendation — Apply SA-12 to govern the acquisition and validation of third-party code. Maintain an inventory of third-party components so exposure and updates can be tracked. Use SI-2 to identify, prioritise, and remediate flaws in third-party code.
OWASP ASVSV15 — Secure Coding and ArchitectureAddresses software architecture choices that influence dependency and component trust
Recommendation — Use V15 to minimise unnecessary dependencies and harden application architecture around them.

Practitioner Guidance

Why practitioners should care: Treat third-party code as a governed dependency with an owner, an inventory entry, and an update policy. The practical mistake is assuming that “open source” or “vendor supplied” automatically means acceptable risk. It does not. The control question is whether the team can prove what was included, why it was included, and how it will be retired if it becomes unsafe.

What to watch for: Pay close attention to stale packages, newly added dependencies, unexpected maintainers, and code that requests broad runtime permissions. Those are often early signals that the application’s trust boundary is expanding faster than its oversight.

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
Reviewed and updated by the NHIMG editorial team on October 31, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org