CAPEC-654: Credential Prompt Impersonation
An adversary, through a previously installed malicious application, impersonates a credential prompt in an attempt to steal a user's credentials.
Last updated
Overview
The adversary may monitor the task list maintained by the operating system and wait for a specific legitimate credential prompt to become active. Once the prompt is detected, the adversary launches a new credential prompt in the foreground that mimics the user interface of the legitimate credential prompt. At this point, the user thinks that they are interacting with the legitimate credential prompt, but instead they are interacting with the malicious credential prompt. A second approach involves the adversary impersonating an unexpected credential prompt, but one that may often be spawned by legitimate background processes. For example, an adversary may randomly impersonate a system credential prompt, implying that a background process or commonly used application (e.g., email reader) requires authentication for some purpose. The user, believing they are interacting with a legitimate credential prompt, enters their credentials which the adversary then leverages for nefarious purposes. The ultimate goal of this attack is to obtain sensitive information (e.g., credentials) from the user.
How the attack works
The phases an attacker typically follows.
- Step 1Explore
[Determine suitable tasks to exploit] Determine what tasks exist on the target system that may result in a user providing their credentials.
- Determine what tasks prompt a user for their credentials.
- Step 2Exploit
[Impersonate Task] Impersonate a legitimate task, either expected or unexpected, in an attempt to gain user credentials.
- Prompt a user for their credentials, while making the user believe the credential request is legitimate.
What the attacker needs
Prerequisites
- The adversary must already have access to the target system via some means.
- A legitimate task must exist that an adversary can impersonate to glean credentials.
Skills required
- Low skill: Once an adversary has gained access to the target system, impersonating a credential prompt is not difficult.
Resources required
- Malware or some other means to initially comprise the target system.
- Additional malware to impersonate a legitimate credential prompt.
Consequences
What a successful CAPEC-654 attack can achieve.
Gain Privileges
Affects: Access Control, Authentication
How to mitigate it
Defenses that reduce the risk of CAPEC-654.
- The only known mitigation to this attack is to avoid installing the malicious application on the device. However, to impersonate a running task the malicious application does need the GET_TASKS permission to be able to query the task list, and being suspicious of applications with that permission can help.
How to detect it
Indicators that this attack may be underway.
- Credential prompts that appear illegitimate or unexpected.
Examples
An adversary monitors the system task list for Microsoft Outlook in an attempt to determine when the application may prompt the user to enter their credentials to view encrypted email. Once the task is executed, the adversary impersonates the credential prompt to obtain the user's Microsoft Outlook encryption credentials. These credentials can then be leveraged by the adversary to read a user's encrypted email.
An adversary randomly prompts a user to enter their system credentials, tricking the user into believing that a background process requires the credentials to function. The adversary can then use these gleaned credentials to execute additional attacks or obtain data.
Terminology & mappings
Mapped taxonomies
- ATTACK: Input Capture (1056)
- ATTACK: Abuse Elevation Control Mechanism: Elevated Execution with Prompt (1548.004)
Frequently asked questions
Common questions about CAPEC-654.
- What is CAPEC-654?
- An adversary, through a previously installed malicious application, impersonates a credential prompt in an attempt to steal a user's credentials.
- How does a Credential Prompt Impersonation attack work?
- It typically unfolds over 2 phases. It begins with: [Determine suitable tasks to exploit] Determine what tasks exist on the target system that may result in a user providing their credentials.
- How do you prevent CAPEC-654?
- The only known mitigation to this attack is to avoid installing the malicious application on the device. However, to impersonate a running task the malicious application does need the GET_TASKS permission to be able to query the task list, and being suspicious of applications with that permission can help.
- What weaknesses does CAPEC-654 target?
- CAPEC-654 exploits one CWE weakness: CWE-1021 (Improper Restriction of Rendered UI Layers or Frames).
- How severe is CAPEC-654?
- MITRE rates CAPEC-654 as High severity with medium likelihood of attack.
References
Attack-pattern data is sourced from the MITRE CAPEC catalog (v3.9). Weakness associations link to the corresponding CWE entries on RadicalNotion.AI.
Defend against CAPEC-654
Track the CVEs and weaknesses this technique exploits, with AI-written analysis and remediation steps.