Join our Newsletter — 33% off our NHI Course
Home Glossary Cyber Security Credential Harvester
Cyber Security

Credential Harvester

← Back to Glossary
By NHI Mgmt Group Updated August 24, 2026 Domain: Cyber Security

A credential harvester is malware designed to collect secrets from developer workstations, build agents, and cloud environments. It typically targets tokens, SSH keys, cloud metadata credentials, and CI secrets to enable follow-on access. The immediate objective is data theft, but the strategic goal is often persistence and propagation.

Expanded Definition

A credential harvester is a form of malware that searches for reusable secrets across endpoints, developer tooling, cloud workloads, and CI systems. It is broader than simple password theft because it targets the identities that actually move workloads and automate access, including SSH keys, API tokens, session cookies, cloud instance metadata credentials, and pipeline secrets. In practice, the threat is less about one stolen secret and more about collecting enough material to pivot into privileged systems, impersonate services, or persist after initial cleanup.

In identity and cloud security terms, the concept overlaps strongly with non-human identity risk. Secrets found on laptops, build runners, or containers often map to machine accounts, service accounts, and automation roles rather than human users. That is why NHIMG treats credential harvesters as an identity security problem as much as a malware problem. The OWASP Non-Human Identity Top 10 is useful here because it highlights how unmanaged machine credentials expand attack paths across modern environments.

The most common misapplication is treating credential harvesting as a one-time password theft event, which occurs when teams overlook long-lived tokens and embedded secrets on developer endpoints and automation hosts.

Examples and Use Cases

Implementing detection and prevention rigorously often introduces operational friction, requiring organisations to balance developer speed against tighter secret handling, rotation, and endpoint monitoring.

  • A developer workstation is infected and the malware scans browser stores, shell history, and local configuration files for cloud access keys.
  • A build agent leaks CI secrets, allowing an attacker to sign artifacts, access repositories, or reach production deployment roles.
  • A containerised workload exposes instance metadata credentials, which are harvested and reused to move laterally in the cloud environment.
  • A remote access tool captures SSH keys and session tokens from a privileged admin system, enabling follow-on access after the initial infection is removed.
  • A script embedded in a dependency scans mounted volumes and environment variables for secrets, then exfiltrates them to support persistence and propagation.

These scenarios are tightly linked to identity assurance and secret lifecycle controls. NIST SP 800-63 Digital Identity Guidelines helps distinguish stronger authenticator and lifecycle expectations from weak, reusable credential practices. For systems that store, process, or expose secrets, NIST SP 800-53 Rev 5 Security and Privacy Controls provides the control vocabulary for access enforcement, monitoring, and configuration management.

Why It Matters for Security Teams

Credential harvesters matter because they collapse the distance between a low-level endpoint compromise and high-impact identity abuse. Once secrets are extracted, defenders are no longer dealing with a single infected device; they are dealing with potentially valid access paths across cloud control planes, source code systems, and production automation. That changes incident response from endpoint containment to enterprise-wide credential assessment.

For security teams, the key issue is that harvested secrets often bypass normal authentication safeguards. A stolen token may already satisfy an MFA-backed workflow, and a cloud metadata credential may inherit broad permissions without being visible in a human identity directory. This makes the attack especially relevant to NHI governance, where rotation, scope limitation, provenance, and revocation are often weaker than for human accounts. Stronger monitoring aligned to NIST SP 800-53 Rev 5 Security and Privacy Controls is essential, especially for access control, audit logging, and secret protection.

Organisations typically encounter the true cost only after an attacker uses harvested secrets to return through a trusted path, at which point credential harvester cleanup becomes operationally unavoidable.

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 SP 800-63, NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10Covers non-human identity risks created when malware harvests machine secrets.
NIST SP 800-63AAL2Defines assurance concepts relevant when harvested credentials bypass normal authentication.
NIST CSF 2.0PR.AC-1Access control governance is directly implicated when stolen secrets enable unauthorized access.
NIST SP 800-53 Rev 5AC-2Account management control supports revocation after secret compromise and misuse.

Use stronger authenticators and lifecycle controls so stolen secrets are less reusable.

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