Accountability usually spans software engineering, platform security, and identity governance because the failure crosses code provenance, secret storage, and execution policy. Organisations should map ownership for dependency approval, local secret handling, CI runner hardening, and incident response so that a package compromise cannot sit outside any control domain.
Why This Matters for Security Teams
A malicious package that steals wallet keys from a developer machine is not just a supply chain event. It is a cross-domain identity failure that spans dependency trust, endpoint execution, local secret exposure, and the authority those keys carry once exfiltrated. The accountability question matters because it determines whether engineering, security operations, platform teams, or identity owners are expected to detect, contain, and recover. Current guidance suggests that ownership must follow control boundaries, not just team charts.
Incidents like the Shai Hulud npm malware campaign and the LiteLLM PyPI package breach show how quickly package compromise becomes key theft when developers store secrets in reachable locations. NIST control families such as NIST SP 800-53 Rev 5 Security and Privacy Controls are relevant here because they separate access control, system integrity, and incident response into distinct obligations. In practice, many security teams encounter ownership gaps only after a package has already read local key material and used it to reach production systems.
How It Works in Practice
Accountability usually lands on multiple control owners because the failure chain crosses several environments. Software engineering is accountable for dependency approval, package pinning, and avoiding the storage of wallet keys in source, config files, or local environment snapshots. Platform security is accountable for endpoint hardening, developer workstation guardrails, and controlling how packages execute on managed devices. Identity and secrets governance is accountable for the lifecycle of the wallet keys themselves, including issuance, rotation, revocation, and blast-radius reduction.
Practitioners usually map the problem to four questions: who approved the package, where were the keys stored, what prevented the package from reading them, and who can revoke them after theft. That mapping should be backed by policy and evidence, not assumptions. NIST-style control language helps because it forces explicit ownership for least privilege, software integrity, and incident response. The NHIMG research on the Ultimate Guide to NHIs shows how often secrets remain exposed in vulnerable locations, which is exactly why accountability cannot stop at the developer.
- Engineering owns package trust decisions, version pinning, and dependency review.
- Platform or endpoint security owns workstation controls that limit code execution and secret access.
- Identity owners own the wallet keys, their rotation, and emergency revocation.
- Incident response owns containment, forensic scoping, and downstream credential replacement.
When the wallet keys are tied to production funds, the best practice is to treat them as high-value non-human identities with explicit lifecycle management, not as convenience secrets. These controls tend to break down on unmanaged developer laptops because local execution is trusted, secrets are cached informally, and revocation is slower than attacker reuse.
Common Variations and Edge Cases
Tighter secret controls often increase developer friction, requiring organisations to balance rapid local workflows against stronger containment. There is no universal standard for this yet, especially where wallet keys must support signing, test environments, or on-device automation. In those cases, accountability still needs to be explicit, but the control model may shift from storing static keys locally to using short-lived tokens, hardware-backed signing, or delegated approval flows.
One common edge case is when a package only reads keys because the developer machine already has broad access to a synced vault, browser session, or cloud credential cache. In that situation, the accountability is shared: engineering for the trust decision, platform teams for workstation exposure, and identity governance for excessive privilege. Another edge case is contractor or bring-your-own-device usage, where ownership becomes murkier and evidence quality drops. The practical answer is to assign one primary control owner for each stage, then require secondary review for package admission and secret placement. NHIMG’s research on the State of Secrets in AppSec shows how persistent secret leakage and delayed remediation make this a recurring operational problem, not a one-off exception.
Best practice is evolving toward policy that treats stolen wallet keys as a business-impacting identity event, not just a malware cleanup task. That framing makes accountability measurable: revoke the keys, invalidate sessions, replace any derived credentials, and close the workstation control gap that made theft possible in the first place.
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 CSA MAESTRO address the attack and risk surface, while NIST CSF 2.0 and NIST SP 800-63 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-01 | Wallet keys are non-human identities that need ownership and lifecycle control. |
| NIST CSF 2.0 | PR.AC-4 | Least privilege limits what a stolen key or package can access. |
| NIST SP 800-63 | Identity proofing and credential lifecycle practices matter when keys are reused as access material. | |
| CSA MAESTRO | Agentic and machine identities need explicit governance across execution environments. |
Apply strong identity issuance and recovery processes so stolen keys cannot be casually reissued or reused.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 19, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org