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 September 1, 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.

Expanded Definition

Third-party code includes libraries, frameworks, SDKs, plugins, and other components brought into an application from outside the internal development team. The term matters because the organisation inherits behaviour, dependencies, update patterns, and security weaknesses it did not directly design. In modern software delivery, this often spans open source packages, commercial components, and vendor-supplied mobile SDKs, all of which can affect runtime trust, build integrity, and incident response.

For security teams, the key issue is not whether the code is internal or external, but whether it is identified, assessed, and governed throughout its lifecycle. That includes tracking version changes, monitoring advisories, validating provenance, and understanding how the component interacts with secrets, APIs, and privileged workflows. In mobile and cloud-native environments, third-party code can also become part of the attack surface for OWASP Non-Human Identity Top 10 concerns when embedded services or automated components depend on exposed tokens and machine credentials.

The most common misapplication is treating third-party code as a one-time procurement check, which occurs when teams approve a dependency at release and then stop monitoring it after deployment.

Examples and Use Cases

Implementing third-party code governance rigorously often introduces release friction, requiring organisations to balance delivery speed against dependency visibility, testing depth, and patch discipline.

  • A mobile app embeds analytics and crash-reporting SDKs that collect telemetry, so the security team reviews permissions, data flows, and update cadence before approval.
  • A web application relies on a JavaScript framework with a known vulnerability, so the team pins versions and validates fixes before the next deployment.
  • A cloud service uses a vendor library to authenticate API calls, so engineers verify where credentials are stored and whether token handling matches internal policy.
  • A DevOps pipeline pulls packages from a public registry, so the build process adds integrity checks and dependency scanning to reduce tampering risk.
  • An organisation adopts a third-party payment component, so legal, security, and engineering jointly assess support status, patch timelines, and software bill of materials coverage.

These use cases show why third-party code is not just a development convenience. It is part of the operational trust model, especially when the component can read data, call services, or influence authentication flows. Strong governance requires lifecycle monitoring, not just initial review.

Why It Matters for Security Teams

Third-party code matters because its security posture becomes the application’s security posture once it is deployed. If a component is unmaintained, compromised, or misconfigured, the organisation may inherit the resulting exposure without having written the vulnerable logic itself. That makes inventory, patching, provenance validation, and dependency control core security tasks rather than engineering hygiene.

This is especially important where software components interact with identity systems, machine credentials, or privileged automation. A compromised library or SDK can expose secrets, weaken access paths, or create an unmonitored execution channel that behaves like an unmanaged non-human identity. Security teams need to understand which dependencies can reach sensitive services, which can be updated remotely, and which are effectively embedded trust decisions. Third-party code also complicates incident response, because responders must determine whether the flaw sits in custom code, a transitive dependency, or a supplier-controlled update path.

Organisations typically encounter the full impact only after a vulnerable library, malicious package, or unsupported SDK is discovered in production, at which point third-party code becomes operationally unavoidable to address.

Standards & Framework Alignment

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

OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0ID.AM-2Asset management covers software dependencies and supported components across the environment.
NIST SP 800-53 Rev 5SA-22Guidance for unsupported system components applies directly to externally sourced code risk.
OWASP Non-Human Identity Top 10Third-party code often governs token use, service calls, and other machine-identity dependencies.

Verify component support status and remove or replace third-party code that is no longer maintained.

Deepen Your Knowledge

Sign up to our weekly newsletter — get 33% off our NHI Foundation Level Course

    NHIMG Editorial Note
    Reviewed and updated by the NHIMG editorial team on September 1, 2026.
    NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org