By NHI Mgmt Group Editorial TeamDomain: Breaches & IncidentsSource: CorgeaPublished July 14, 2026

TL;DR: Compromised npm, NuGet, PyPI, and Go packages are shifting from install-time abuse into runtime secret theft, with attacks spanning developer workstations, CI runners, wallet applications, and build pipelines, according to Corgea. The pattern confirms that lifecycle-hook controls alone do not contain supply-chain risk, and runtime trust boundaries now need equal governance attention.


At a glance

What this is: This weekly security briefing focuses on supply-chain compromise, showing that attackers are moving from noisy install-time payloads into normal import and execution paths that reach developer secrets, wallet material, and CI trust boundaries.

Why it matters: It matters to IAM and NHI practitioners because package ecosystems now expose the same secret, token, and privilege governance gaps that appear in human identity programmes, but at machine speed and across build-time and runtime paths.

By the numbers:

👉 Read Corgea's weekly briefing on supply-chain compromises and runtime secret theft


Context

Supply-chain compromise becomes materially worse when malicious code can wait until normal import, CLI execution, or production loading paths before stealing secrets. In this briefing, the primary issue is not just package tampering, but the way compromised dependencies bypass the old assumption that install-time scanning or lifecycle-hook blocking is enough to contain risk.

For identity and access governance, the important boundary is the trust relationship between package provenance, runtime privilege, and the secrets present on developer workstations, CI hosts, and wallet-processing systems. That is where Non-Human Identity controls, secrets governance, and privileged workflow isolation intersect in a way many programmes still treat as separate problems.

The incidents in this briefing are not atypical. They reflect a broader pattern in which attackers keep moving closer to the execution paths that hold tokens, keys, and other high-value credentials.


Key questions

Q: What breaks when a compromised package can run code during install or import?

A: The trust boundary around software installation breaks first. A package that executes during import can steal credentials before normal application controls load, which means endpoint scanning alone is too late. The practical response is to treat dependency execution as privileged code and block untrusted packages before they reach developer or build environments.

Q: Why do supply-chain attacks increasingly target secrets instead of just code integrity?

A: Secrets provide immediate access to cloud, payment, source control, and release systems, so attackers can skip noisy persistence. A malicious package that reads tokens, API keys, or wallet material can pivot into account takeover or downstream deployment abuse with far less effort than exploiting the application itself.

Q: How should teams respond when CI or developer secrets are exposed?

A: Teams should identify the affected identities, revoke or rotate exposed credentials, review ownership and scope, and verify whether the compromised material reached any production-adjacent systems. The operational challenge is to close exposure quickly without breaking dependent services.

Q: What should teams do when a supply-chain compromise may have reached build or wallet environments?

A: Contain the affected environments, revoke exposed credentials, reissue secrets that may have been read, and review downstream release artefacts and package caches for tampering. Then trace which trusted execution paths allowed the malicious code to load so the same boundary does not fail again.


Technical breakdown

Why import-time execution changes the attack surface

Package ecosystems often treat installation and import as separate trust moments, but many languages execute code during both. A malicious package can appear dormant at install time, then run when the application imports a module, loads a CLI helper, or invokes a build step. That matters because import-time code executes with the permissions of the developer workstation, CI runner, or application process, which is often far more privileged than the package author should ever have. The result is a trust boundary collapse: the dependency is no longer just a library, it becomes an execution vehicle.

Practical implication: teams should assume any dependency can execute in production-like privilege contexts and enforce runtime provenance controls, not just preinstall checks.

How secrets are stolen from build and runtime contexts

Modern supply-chain implants rarely need to brute-force access. They read environment variables, configuration files, browser stores, wallet extensions, package caches, and process memory, then exfiltrate the data through normal-looking channels. In CI and developer environments, that often means API keys, cloud tokens, npm or PyPI credentials, and private signing material are already present when malicious code loads. In wallet and payment paths, the same mechanism can harvest mnemonic phrases or merchant credentials from live application memory or production configuration. The pattern is especially dangerous because the application continues to function, which delays detection.

Practical implication: isolate secrets from process scope, reduce runtime exposure, and treat loader-level execution as a potential credential theft event.

What serialized trust and metadata validation failures enable

Some supply-chain attacks do not steal secrets directly. Instead, they exploit packaging metadata, trusted control fields, or serialized state that higher-trust processes later consume. When a scheduler, image builder, or release pipeline accepts lower-trust metadata as if it were authoritative, the attacker can influence what code runs, what data is loaded, or where secrets are sent. This is a classic integrity problem, not just a malware problem. Once the higher-trust process accepts tainted metadata, the attacker gains an indirect path into sensitive execution or deployment flows.

Practical implication: validate provenance, signature, and metadata integrity at every trust transition in the build and release chain.


Threat narrative

Attacker objective: The attacker wants to convert routine package consumption into scalable credential theft and downstream control over developer, build, or wallet environments.

  1. Entry occurs through a compromised package release that looks legitimate enough to pass normal dependency ingestion and developer trust checks.
  2. Credential access happens when the payload runs during import, CLI use, or production loading and reads environment secrets, wallet material, tokens, or config data.
  3. Impact follows when exfiltrated credentials are used to compromise developer workstations, CI runners, payment flows, or downstream release pipelines.

Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Runtime trust boundary collapse is now the central supply-chain risk: attackers no longer need lifecycle-hook execution to reach valuable credentials. When malicious code can wait for import-time, CLI-time, or production loading, controls focused only on install events miss the actual theft point. That shifts governance from package screening alone to runtime trust enforcement across developer and CI environments. Practitioners should treat import paths as security boundaries, not just software plumbing.

Secret governance must now cover developer and build execution contexts: the briefing shows that secrets are harvested where teams least expect them, including environment variables, wallet stores, and package caches. That is an NHI governance problem because API keys, tokens, certificates, and signing credentials are machine identities with their own lifecycle and blast radius. The right control model is shortest-possible exposure, strict scope separation, and explicit ownership of every secret-bearing execution environment. Practitioners should map secrets to runtime contexts, not just repositories.

Provenance validation is becoming a control-plane requirement, not a software hygiene task: compromised packages are increasingly abusing normal metadata and trusted loading behavior in higher-privilege systems. This is where supply-chain security intersects with identity governance, because the system is effectively trusting an external identity, the package author, to influence an internal execution boundary. A package signature without runtime policy is only partial assurance. Practitioners should validate provenance at each handoff between source, build, and release.

Supply-chain compromise is now a secrets exfiltration pattern, not only a code-integrity issue: the most damaging cases in this briefing target keys, wallet phrases, and access tokens rather than just application logic. That broadens the impact from software tampering into account takeover, payment compromise, and cloud intrusion. The named concept is runtime trust boundary collapse, and it captures why old install-time controls are no longer enough. Practitioners should align supply-chain controls with the secrets they protect, not just the packages they ingest.

From our research:

  • The average estimated time to remediate a leaked secret is 27 days, despite 75% of organisations expressing strong confidence in their secrets management capabilities, according to The State of Secrets in AppSec.
  • Only 44% of developers are reported to follow security best practices for secrets management, exposing a significant developer behaviour gap.
  • That gap is why Guide to the Secret Sprawl Challenge helps teams move from ad hoc rotation to governed secret lifecycle control.

What this signals

Runtime trust boundary collapse: teams should expect supply-chain compromise to keep shifting toward import-time and execution-time abuse, because those paths reach real credentials and privileged services. The practical response is to govern secrets as runtime assets, not static configuration. That means aligning package policy with identity controls and using the OWASP Non-Human Identity Top 10 to frame secret lifecycle gaps.

Build and release teams should also prepare for more incidents where compromised dependencies behave normally while silently harvesting keys. That is a strong signal to pair provenance verification with least-privilege execution, and to map secrets handling against NIST SP 800-53 Rev 5 Security and Privacy Controls rather than treating package trust as sufficient.

The programme-level implication is simple. If CI runners, developer workstations, and wallet-processing services can all consume the same secrets, then one poisoned package can bridge multiple trust zones at once. Teams that separate identities, narrow credential scope, and shorten secret lifetime will have less blast radius when the next package compromise arrives.


For practitioners

  • Map every secret-bearing runtime path Identify where API keys, cloud tokens, signing material, wallet credentials, and merchant secrets are loaded into developer, CI, and production execution contexts. Remove secrets from broad process scope where possible and isolate high-value material from normal application memory.
  • Treat import and CLI execution as privileged events Review package ingestion controls so that normal module imports, helper binaries, and CLI entry points are monitored as carefully as install-time hooks. Add detection for unexpected outbound connections, file reads, or credential enumeration during dependency load.
  • Enforce provenance checks at trust transitions Verify package signatures, metadata integrity, and source provenance not only before install but also before build, release, and deploy handoffs. Focus extra scrutiny on lower-trust data flowing into higher-trust scheduler, pipeline, or application processes.
  • Reduce standing access in developer and CI environments Use short-lived credentials, segmented service accounts, and tightly scoped permissions for build runners, signing systems, and release pipelines. Remove persistent access wherever a compromised package could otherwise inherit broad environment privileges.

Key takeaways

  • Supply-chain attacks are increasingly exploiting runtime trust, not just installation paths, which makes old lifecycle-hook controls incomplete.
  • Secrets remain the highest-value target because tokens, keys, and wallet material convert package compromise into immediate access and downstream control.
  • The most effective defence is to narrow credential scope, validate provenance at every handoff, and remove secrets from broad execution contexts.

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 and MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0, NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-03The article centres on exposed and misused secrets in package-driven execution paths.
MITRE ATT&CKTA0006 , Credential Access; TA0002 , ExecutionThe malware executes through normal package paths and steals credentials from runtime contexts.
NIST CSF 2.0PR.AC-4Least-privilege access and boundary enforcement are central to limiting package abuse.
NIST SP 800-53 Rev 5IA-5Secret lifecycle and authenticator handling are directly implicated by the credential theft patterns.
CIS Controls v8CIS-5 , Account ManagementCompromised packages often convert into account and token abuse across build systems.

Use CIS-5 to inventory service accounts and eliminate standing access from build and developer tooling.


Key terms

  • Metadata Trust Boundary: A metadata trust boundary is the line between tool content that can be safely consumed and tool content that must be validated before use. For agentic systems, descriptions, examples, and schemas are security-relevant inputs because they can influence decisions and trigger actions with real-world impact.
  • Import-time execution: Import-time execution is code that runs when a Python module is loaded rather than when a user deliberately calls a function. That behaviour matters in security reviews because it can trigger secret access, network calls, or persistence before an application has meaningfully started operating.
  • Secrets Exfiltration: The theft of credentials, tokens, API keys, or certificates from a system and their movement to an attacker-controlled location. In developer and automation environments, exfiltration is often hidden inside normal workflow activity, which makes detection and containment harder.
  • Provenance Validation: A control approach that verifies where a payment, credential, or approval came from, who authorised it, and whether its path matches expected business logic. It is stronger than appearance-based review because it anchors trust in lineage and context, not visual similarity.

What's in the full report

Corgea's full weekly briefing covers the operational detail this post intentionally leaves for the source:

  • Per-package breakdown of the malicious npm, NuGet, PyPI, and Go artifacts so teams can match them against their own dependency inventories.
  • Technical reverse-engineering notes on the import-time and CLI execution paths that made the payload harder to catch than classic install-time malware.
  • Package-level remediation context for developers, CI operators, and security teams that need to prioritise what to remove or rotate first.
  • The surrounding weekly threat context, including other supply-chain and workflow compromises that help teams separate isolated incidents from a broader campaign.

👉 Corgea's full weekly briefing covers package-by-package details, malicious execution paths, and remediation context.

Deepen your knowledge

The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, secrets management, and identity lifecycle fundamentals. It gives security and identity practitioners a common framework for reducing secret exposure and privilege sprawl across modern environments.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 19, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org