Federal Zero Trust: Put Repositories on the Diagram

By Tom Tapley

10 minute read time

Federal Zero Trust: Put Repositories on the Diagram
10:58
Image with a shield graphic at center containing a scales icon

On October 8, 2026, version 0.5.144 of TensorLake's npm SDK was published with a preinstall hook that searched for GitHub tokens, HashiCorp Vault credentials, and AI-tool configuration files, according to Sonatype Research. Socket reported that it also went after npm tokens and the OpenID Connect (OIDC) token exchange that pipelines use to authenticate. Nobody had to import or run the SDK. Installing it was enough.

Sonatype's 2026 State of the Software Supply Chain report counted 454,648 new malicious packages in 2025 and found that the newest ones run during installation, before any build or scan. A package install typically starts with a request from a developer workstation, build runner, or AI coding agent to a configured registry, which may proxy packages from outside the network. In Zero Trust terms, that is an access request, and it belongs on the architecture diagram.

For federal platform, security, and architecture teams implementing Zero Trust across Department of War (DoW) programs and civilian agencies, package requests offer a practical way to connect software supply chain controls to the architecture. Treating requests through an artifact repository as access decisions can help teams map those controls to federal Zero Trust activities and build supporting evidence.

Mapping a Package Request to 800-207

In National Institute of Standards and Technology (NIST) Special Publication (SP) 800-207, a policy decision point (PDP) decides whether a request is allowed, and its policy administrator sends that decision to a policy enforcement point (PEP) in the path, which allows or blocks the connection. The PDP draws on data sources such as identity management, threat intelligence, industry compliance requirements, and activity logs.

Federal programs can apply this model by adding a component-level decision point to the package request path. Sonatype Lifecycle evaluates the component against the program's policy, and Sonatype Repository Firewall enforces that decision at the proxy. Their decisions reach the security information and event management (SIEM) system through webhooks, where enterprise analytics can use them as a risk input to the enterprise decision point. In most programs, that last connection still has to be built.

 
800-207 Element In a User's Request In a Package Request
Subject A user on a managed device A developer workstation, a continuous integration (CI) runner, or an AI coding agent
Policy enforcement point An access gateway or proxy Repository Firewall on the proxy repository, or Sonatype Firewall Enterprise in front of a third-party repository manager
Policy decision point The enterprise PDP: identity, device posture, access policy Lifecycle component policy, with decisions sent to the SIEM
Threat intelligence Indicators of compromise, known-bad domains Sonatype intelligence on malicious packages and vulnerabilities
Industry compliance Regulatory and data-handling requirements License policy
Activity log Session and access logs Firewall's record of evaluated components, violations, quarantines, and waivers

The component decision judges the package, not the requester. Identity comes from authentication at the repository: Sonatype Nexus Repository records the user behind every request in its request log by default, and an anonymous pull is logged only as "anonymous." Joining that log with the policy events in the SIEM is what makes the overall decision identity-aware.

Lifecycle policy also applies by stage. The same rule that quarantines a component at the proxy can fail a build later if the component got in another way. Waivers applied at the repository level cover only the proxy stage, so Lifecycle can still enforce the rule further down the pipeline.

The proxy repository is itself an enterprise resource, and the enforcement point decides what it is allowed to take in, which makes this supply chain admission control. When the requester is a pipeline or an agent, NIST SP 800-207A, which covers identity-based policy for services, is the closer model.

The Requester Is an Identity Too

Build servers, CI runners, and coding agents are non-person entities. The DoW Zero Trust model covers them under the User pillar, which the Cybersecurity and Infrastructure Security Agency (CISA) Zero Trust Maturity Model calls Identity, and activity 1.9.1 calls for each to have a validated identity. TensorLake was built to collect exactly those credentials: static npm tokens and the OIDC exchange that issues pipeline tokens.

For a platform team, that means five changes:

  • Authenticate every pull, so each request can be tied to the requester. That means updating each build's client configuration (settings.xml, .npmrc, pip.conf), so budget time for it.

  • Use short-lived workload credentials. Federate runners through OIDC, issue tokens that expire with the job, and run ephemeral runners that start clean each time.

  • Separate pull from publish. The credential that downloads dependencies should not be able to publish packages.

  • Block install scripts in CI where builds allow it. npm's ignore-scripts setting stops a preinstall hook. It does not stop code that runs when a package is imported, so it supplements intake policy rather than replacing it.

  • Record who an agent is acting for. When an AI coding agent requests a package, the log should show both the agent and the person who started the session.

Making the Line on the Diagram True

DoW programs already have a place to record this work. In the DoD Zero Trust Capabilities and Activities, activity 3.3.1, Approved Binaries/Code, includes a repository and update channel set up for development teams. It is an Enterprise-level activity, so program work contributes evidence to it. Activity 3.3.4 covers continual validation, 3.4.4 covers approved code and binaries tracked through a software bill of materials (SBOM) process, and 3.2.1 through 3.2.3 cover the software factory. All of these are target-level activities due by the end of fiscal year (FY) 2027, which is September 30, 2027. Civilian agencies building to 800-207 can place the same work in the Applications and Workloads pillar.

Two pieces of work make the line hold, and both take time:

  1. Egress rules on runners and workstations. An enforcement point that can be bypassed is only advisory. The common bypass routes are pip install or curl inside a Dockerfile RUN step, base images pulled from Docker Hub instead of Iron Bank or an internal mirror, GitHub Actions pulled from the marketplace, and model or dataset downloads. I covered more of these in Shadow AI Across Government.

  2. Authenticated client configuration. Every build that pulls through the proxy needs credentials, as described in the identity section above.

Test the egress rules two ways. Schedule a CI job for each runner pool to attempt a direct pull from a public registry. The job should pass only when the pull fails, catching egress-rule regressions. Use a periodic purple-team exercise to test routes the job cannot cover, such as agents with their own network access

Turning on enforcement works best in stages: audit first, block malicious and integrity findings from day one, quarantine only new violations, and publish the waiver process before anything is blocked. The companion checklist has the full sequence, the cutover tasks platform teams tend to miss, and the evidence and metrics described below.

What an Assessor Gets

Once the repository is on the diagram, it produces records an assessor can use as evidence toward these activities and toward continuous monitoring: quarantine and violation events, waiver records with an approver and an expiration date, release SBOMs that are re-evaluated as new advisories appear, and the egress test results. Whether they satisfy an activity or a control is the assessor's call.

The events reach the SIEM through IQ Server webhooks, which matches activity 7.1.2, Log Parsing. There is no built-in Splunk, Elastic, or syslog connector, so the program runs a small receiver. IQ Server does not confirm delivery or retry a failed one, so treat IQ Server as the system of record and reconcile the SIEM against it on a schedule.

The same records help with DoW Instruction 8430.01, Accelerated Mission Software, effective September 8, 2026. It requires a suitability assessment of every third-party component and an SBOM that includes transitive dependencies, and it treats AI-generated code as unverified input. A dependency an agent chose deserves the same scrutiny, which I covered in "Your Agents Are Choosing Dependencies."

On the High Side

For federal programs operating on classified and disconnected networks, both decision points and their intelligence have to live inside the boundary. Sonatype Air-Gapped Environment (SAGE) packages Lifecycle, Nexus Repository, Firewall, and SBOM Manager for that purpose. The enforcement is only as current as the intelligence behind it, and that intelligence crosses the boundary through an approved transfer.

Sonatype publishes SAGE intelligence updates daily. Each update is a pull: the customer downloads it from Sonatype into storage it controls, and from that point the transfer across the boundary runs under the program's own approval process. For an urgent advisory that cannot wait for the next transfer, Sonatype posts it on its unclassified website and emails customers directly. Every high-side customer also has low-side access, so the team can act on the notice before the updated data reaches the high side.

A program on the high side should record when the last import succeeded and count the time between an advisory's publication and its import as part of its exposure window.

Closing

Most federal Zero Trust architectures already have the pieces to evaluate a package request: an enterprise decision point, enforcement points, threat intelligence, and an identity program. The work to connect them to the repository falls on two teams. The architect adds the component decision point and its path to the SIEM, and the platform team closes the bypass routes and authenticates the pulls. The records that work produces can go into the evidence for activity 3.3.1 well before September 30, 2027.

Learn how we support federal teams governing the software supply chain in connected and disconnected environments.

Picture of Tom Tapley

Written by Tom Tapley

Tom Tapley specializes in securing software supply chains for Federal environments, bringing deep expertise in aligning agency security, compliance, and operational requirements with modern technology solutions. With a proven track record in supporting mission-critical systems, he bridges the gap between evolving federal mandates and scalable, secure software practices.

Tags