By NHI Mgmt Group Editorial TeamPublished 2026-05-21Domain: Governance & RiskSource: Akeyless

TL;DR: A public GitHub repository exposed AWS GovCloud admin keys, plaintext passwords, and Kubernetes access data for months in a contractor-managed CISA environment, according to Akeyless and Brian Krebs. The incident shows that secret handling is still too often built around human failure instead of architectures that remove static credentials before they can leak.


At a glance

What this is: Akeyless argues that a public GitHub repo exposed the fragility of static secret architecture across federal DevSecOps environments.

Why it matters: IAM and PAM teams should read this as a reminder that secret sprawl, long-lived credentials, and weak guardrails create failure modes across NHI, autonomous workflows, and human-operated environments.

By the numbers:

👉 Read Akeyless's analysis of the CISA GitHub secret exposure and static credential risk


Context

A public GitHub repository exposed AWS GovCloud admin keys, plaintext credentials, and cluster access material in a contractor-run CISA environment. The core problem is not simply secret hygiene. It is the assumption that high-risk credentials can be safely handled as durable values in environments where they will inevitably be copied, synced, or committed.

For IAM, PAM, and NHI programmes, this is a classic static secret failure mode. Once credentials exist in plaintext, governance depends on every human touchpoint behaving perfectly. That is not a control model, it is a hope model, and it breaks the moment access leaves the intended boundary.


Key questions

Q: How should teams handle privileged access when secrets can be copied into public repositories?

A: They should remove the durable secret from the workflow entirely and move to short-lived, identity-bound issuance. If a credential can be pasted into a repo, a CSV, or a browser file, the problem is not just leakage. The problem is that possession of the secret has been treated as the control boundary instead of access issuance and revocation.

Q: Why do static credentials create more risk than ephemeral access for cloud admins?

A: Static credentials create standing privilege, which means one leak can remain usable until someone finds and revokes it. Ephemeral access narrows that window and makes the issuance event, not the stored string, the governance object. That is why cloud admin access should be brokered and time-limited rather than managed as a durable secret.

Q: What do security teams get wrong about secret scanning and push protection?

A: They often treat scanning as the primary control when it is really a last line of defence. Secret scanning can detect exposed values, but it cannot prevent developers, contractors, or automation from creating reusable secrets in the first place. The right design choice is to minimise the number of secrets that can be scanned at all.

Q: Who is accountable when contractor-held credentials expose cloud and internal systems?

A: Accountability is shared, but the architecture owner must answer for making durable secrets the operating norm. Contractors can mishandle credentials, yet the deeper failure is issuing access in a form that is easy to copy, export, and reuse. Governance should assign responsibility to the programme that permitted plaintext privileged material to exist.


Technical breakdown

Why static secrets fail in contractor-managed environments

Static secrets are long-lived values that can be copied, cached, synced, or pasted far outside their intended boundary. In this case, AWS admin keys, passwords, and kubeconfig material were all exposed in a public repository, which means the credential itself became the attack surface. The architectural flaw is not limited to one bad repository. Any model that depends on humans storing reusable secrets safely across laptops, browsers, CSV exports, and shared workflows inherits the same exposure pattern. For NHI governance, the issue is standing privilege plus broad reuse, which makes revocation slow and blast radius large.

Practical implication: Treat any workflow that still relies on durable secrets as a governance liability, not just a security hygiene issue.

How ephemeral access changes the credential risk model

Ephemeral access replaces reusable static credentials with short-lived, brokered sessions that expire before they can be meaningfully reused. That changes the risk equation from secret protection to identity issuance and auditability. The important distinction is that the credential is no longer the asset. The issuance event, the identity binding, and the scope of the session become the controls that matter. For cloud, Kubernetes, and admin access, this is the difference between recovering from a leak and preventing a leak from becoming a reusable foothold.

Practical implication: Shift design reviews toward session duration, issuance controls, and revocation paths instead of relying on storage protection alone.

Why secret scanning guardrails are not a complete control plane

Repository push protection and secret scanning reduce accidental exposure, but they do not remove the underlying need to handle secrets in the first place. If the operating model still requires developers or contractors to possess admin keys, then the guardrail only catches one failure point. It does not prevent screenshots, CSV exports, local copies, browser caches, or sync tools from carrying the same data elsewhere. For NHI programmes, the control plane has to start earlier than detection. It must address how credentials are created, who can retrieve them, and whether they ever exist in plaintext.

Practical implication: Use secret scanning as a backstop, not as the primary design assumption for privileged access.


Threat narrative

Attacker objective: The attacker objective is to turn exposed contractor-held credentials into privileged access across cloud, build, and internal systems before revocation closes the window.

  1. Entry occurred when privileged AWS GovCloud keys, plaintext passwords, and kubeconfig data were exposed in a public repository that remained accessible for months.
  2. Escalation followed because those credentials included administrative access and internal system passwords, creating a path into broader DevSecOps and cloud resources.
  3. Impact would be lateral movement and privileged misuse across internal systems, especially where the exposed Artifactory and cluster access could support further compromise.

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


NHI Mgmt Group analysis

Static secret issuance is the broken assumption here. The architecture assumed that high-risk credentials could exist as durable values and still remain governable across contractor workflows. That assumption fails when secrets are copied into public repositories, browser exports, and local files because the credential itself becomes the breach path. The implication is not just better handling. It is that governance built around keeping static secrets safe is structurally outmatched by modern working patterns.

Secret scanning is a detection layer, not an identity model. GitHub push protection and similar guardrails can catch some mistakes, but they do not change the fact that reusable credentials still exist and can be moved elsewhere. In OWASP NHI terms, the problem is secret sprawl combined with standing privilege. Practitioners should treat repository controls as secondary evidence of exposure, not as the primary design assumption for privileged access.

Privileged access for cloud and Kubernetes should be governed as issuance, not possession. Once access is handed out as a reusable string, the control problem shifts to storage and human discretion. That is the wrong centre of gravity for DevSecOps environments where admins, contractors, and pipelines all touch sensitive systems. The field needs to stop normalising long-lived credentials as an acceptable default for operational access.

Named concept: credential durability debt. This is the accumulated risk created when organisations keep issuing secrets that remain usable long after they are copied, leaked, or forgotten. Credential durability debt is not a single vulnerability, it is a governance imbalance that makes revocation lag behind exposure. Practitioners should recognise it as a structural drag on IAM, PAM, and NHI control effectiveness.

Federal environments expose the limits of trust-by-process. The incident shows how quickly process controls depend on flawless human behaviour when the architecture still permits plaintext admin material. For CISA-style environments, the lesson is not that contractors are uniquely unreliable. It is that mission-critical access should not depend on a user being able to manage durable credentials perfectly across multiple devices and contexts.

From our research:

  • Organisations that describe themselves as confident in their AI deployment actually experience a 72% security incident rate, compared to 33% for those who remain cautious, according to the 2026 Infrastructure Identity Survey.
  • Only 44% of organisations have implemented any policies to manage their AI agents, despite 92% agreeing that governing AI agents is critical to enterprise security.
  • That gap is why Guide to the Secret Sprawl Challenge remains relevant for credential-heavy environments that still rely on human handling.

What this signals

Credential durability debt: as more teams keep treating secrets as portable assets, the governance model drifts farther from how contractors, admins, and automation actually work. The operational signal is clear. If your environment still permits secrets to survive across devices and repositories, your programme is already carrying hidden identity risk.

With 70% of organisations granting AI systems more access than they would give a human employee performing the exact same job, the broader lesson is that access scoping is now the weak point in modern identity programmes, not just secret storage. Teams should expect pressure to prove why any high-risk credential needs to exist in durable form at all.

Practitioners should prepare for a tighter convergence between IAM, PAM, and NHI governance. As the 52 NHI breaches Report shows, exposed credentials tend to become repeatable failure patterns, not isolated events, which means policy, tooling, and review cycles all need to assume accidental disclosure is normal.


For practitioners

  • Replace durable admin keys with brokered access Issue privileged cloud access as short-lived sessions tied to identity and workload context. Remove the ability for contractors or admins to store reusable admin credentials in local files or repositories.
  • Eliminate plaintext credential exports Block workflows that allow passwords, kubeconfigs, or API keys to be exported into CSVs, notes, or browser-managed files. Make every high-risk retrieval auditable and time-limited.
  • Audit repository guardrails and default settings Verify that push protection, secret scanning, and repository policy settings are enabled by default across all managed environments. Treat disabled guardrails as a governance finding, not an isolated mistake.
  • Map contractor access to NHI governance Review every contractor-managed system that still relies on shared secrets, especially cloud admin, cluster, and build-tool access. Align those systems to NHI controls rather than informal local handling practices.

Key takeaways

  • Static secret architecture depends on human handling patterns that do not scale safely across contractors, admins, and shared DevSecOps workflows.
  • Once privileged credentials exist as reusable strings, the breach problem becomes persistence and reuse, not just initial exposure.
  • Identity programmes should prioritise brokered issuance, short-lived access, and elimination of plaintext secret handling over reliance on repository guardrails alone.

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 Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-03Static credential exposure and rotation failure map directly to NHI secret governance.
NIST CSF 2.0PR.AC-4Least-privilege access and credential governance are central to this incident pattern.
NIST Zero Trust (SP 800-207)PR.ACZero Trust requires continuous verification instead of trust in static credentials.

Scope privileged access tightly and review whether reusable credentials still underpin critical systems.


Key terms

  • Static Secret: A static secret is a reusable credential such as a password, API key, or cloud access key that remains valid until someone rotates or revokes it. In NHI governance, static secrets are high-risk because they are easy to copy, hard to track, and often outlive the context in which they were issued.
  • Brokered Access: Brokered access is a model where the user or workload proves identity to an intermediate control plane that issues short-lived access instead of exposing a reusable secret. For privileged operations, this shifts governance from secret storage to session control, auditability, and timely revocation.
  • Secret Sprawl: Secret sprawl is the uncontrolled spread of credentials across repositories, laptops, shared files, scripts, and pipelines. It increases the number of places where a secret can leak and makes governance harder because no single system can reliably prove where every credential exists or who has copied it.
  • Credential Durability Debt: Credential durability debt is the accumulated risk created when organisations keep issuing secrets that remain usable long after they should have expired or been replaced. It is a governance problem, not just a storage problem, because the longer a credential stays valid, the more ways it can be exposed and abused.

What's in the full article

Akeyless's full article covers the operational detail this post intentionally leaves for the source:

  • The Akeyless-specific dynamic secret workflow for AWS GovCloud admin access and how it is configured.
  • The zero-knowledge fragment architecture used for static secrets and how it changes recovery and disclosure assumptions.
  • The Secure Remote Access session model for Kubernetes, SSH, and database access.
  • The federal deployment posture described for GovCloud, including audit and cryptographic handling details.

👉 Akeyless's full post covers the exposed credential inventory, brokered access model, and federal deployment details

Deepen your knowledge

Static secret removal and brokered privileged access are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If your programme still depends on long-lived credentials for cloud or Kubernetes access, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on 2026-05-21.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org