Join our Newsletter — 33% off our NHI Course
Home› Glossary› Threats, Abuse & Incident Response› Credential-Harvesting Operation
Threats, Abuse & Incident Response

Credential-Harvesting Operation

← Back to Glossary
By NHI Mgmt Group Updated November 25, 2026 Domain: Threats, Abuse & Incident Response

A credential-harvesting operation is an attack that tricks users or systems into revealing passwords, tokens, API keys, or other secrets. It usually uses fake sign-in pages, malicious prompts, or deceptive messages, then captures the credentials for reuse in account takeover or lateral movement.

What Credential-Harvesting Operations Usually Target

Credential-harvesting operations aim at whatever can be reused to impersonate a user or system, not just passwords. That often includes API keys, session cookies, OAuth tokens, certificates, and other secrets that unlock downstream access. The attacker’s advantage comes from volume and speed, because even a single successful capture can open the door to multiple systems.

These operations are especially dangerous when the stolen material is reusable or broadly scoped. A harvested secret can bypass normal login friction, evade some phishing-resistant controls if it is a session artefact rather than a password, or become a foothold for later movement across accounts and services.

How Credential-Harvesting Works

The common pattern is deception followed by capture. Fake sign-in pages, malicious prompts, consent screens, helpdesk-style messages, or lookalike workflows are designed to make the victim type in or approve something that should never be shared. In modern environments, the same pattern can be adapted to chat, code, ticketing, and AI-assisted workflows where people are used to pasting secrets quickly.

Because the goal is reuse, attackers often try to harvest more than one artefact at once. A password may be paired with an MFA code, a browser session, or a cloud API key, increasing the chance of immediate account takeover. When the target is a service account or automation secret, the impact can extend far beyond a single human mailbox or application login.

Why It Is Dangerous in Practice

The main danger is that a harvested credential creates trust that looks legitimate to the rest of the stack. Once the attacker has a valid secret or session, security tools may see ordinary authenticated activity unless the organisation can distinguish the device, location, timing, or usage pattern from normal behaviour.

That is why credential harvesting often becomes a precursor to privilege escalation, mailbox abuse, token replay, data theft, and lateral movement. In cloud and SaaS environments, one leaked key can also expose related APIs, automation jobs, or linked services, which is why secret scope and expiry matter as much as the original capture event.

How Organisations Reduce Exposure and Recover

The practical first line of defence is knowing where secrets live and where users are likely to reveal them. Inventory the systems that accept credentials, track exposed internet-facing sign-in surfaces, and review vendor advisories or incident guidance when a product or workflow is known to be harvested at scale. For secrets handling, Secrets Management Guide is a useful reference point for centralising secrets, reducing long-lived exposure, and moving toward short-lived credentials.

Response has two parts: stop reuse and look for persistence. Rotate the harvested secret, revoke sessions or tokens that could still be valid, and review logs for abnormal authentication, consent grants, mail rules, API calls, or unusual follow-on access. When the operation targets API material specifically, API Key Management Guide is a good companion because it covers scoping, rotation, revocation, and leak response for exposed keys.

For credential exposure through phishing-style collection, MITRE ATT&CK T1598 Phishing for Information helps readers connect the technique to detection signals, while MITRE ATT&CK T1056 Input Capture is useful when the collection method is portal capture, keylogging, or other input interception.

Operational Patterns That Raise the Risk

Risk rises when organisations rely on static secrets, broad permissions, or reused credentials across tools and environments. The same is true when sessions last too long, secrets are copied into tickets or chat, or helpdesk and onboarding processes normalise disclosure in ways attackers can mimic.

AI and automation have expanded the attack surface, because agents, copilots, and integrations can surface secrets from places humans do not always monitor closely. That makes retrieval paths, approval design, and secret minimisation part of the credential-harvesting problem, not just a separate data-leak issue.

Risk and Threat Considerations

Credential-harvesting operations are dangerous because they turn trusted users and systems into the delivery mechanism for access. Once a secret is captured, the attacker can usually blend in as a legitimate principal until the credential is rotated or the session is invalidated.

Failure mechanism: The attacker exploits user trust, lookalike interfaces, or captured input to obtain reusable secrets, then replays them before defenders notice anomalous use.

Impact: The result can be account takeover, mailbox or SaaS compromise, API abuse, persistence through stolen tokens, and lateral movement across connected systems.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK and OWASP Non-Human Identity Top 10 define the specific risk controls and attack patterns relevant to this term.

FrameworkControl / ReferenceRelevance
MITRE ATT&CKT1598 — Phishing for InformationCovers deceptive collection of credentials through fake prompts and messages
T1056 — Input CaptureCovers direct capture of typed secrets through portal or GUI interception
Recommendation — Map credential-harvesting patterns to T1598 and hunt for phishing, vishing, and consent abuse signals. Use T1056 detections to spot keylogging, portal capture, and credential API hooking.
OWASP Non-Human Identity Top 10NHI-02 — Secret LeakageAddresses exposure of reusable secrets that attackers can harvest and replay
NHI-07 — Long-Lived SecretsDirectly applies when harvested credentials remain valid long enough to be abused
NHI-05 — Overprivileged NHIHarvested non-human credentials become more dangerous when they carry excess privilege
Recommendation — Reduce secret leakage by centralising storage, scanning exposures, and rotating leaked material quickly. Replace long-lived secrets with short-lived credentials and revoke stale access paths promptly. Limit credential scope so any harvested secret exposes the smallest possible blast radius.

Practitioner Guidance

Why practitioners should care: Treat credential harvesting as both a detection problem and a lifecycle problem. The question is not only whether a secret was stolen, but whether it can still be used, where it is accepted, and what downstream authority it unlocks.

What to watch for: Focus on impossible travel, unusual consent grants, token reuse, sudden API activity, and signs that secrets are being pasted or exposed in workflows where they should never appear. OWASP Agentic Top 10 ASI09 Guide is especially relevant when deceptive interactions target human trust around AI-assisted approvals and secret handling.

Practitioner takeaway: The most effective response is to reduce secret longevity, narrow what each credential can do, and make replay quickly visible so harvested material becomes useless fast.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

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