CAPECattack pattern
CAPEC-654 Credential Prompt Impersonation
High
Official page ↗
- Abstraction
- Detailed
- Status
- Stable
- Likelihood of attack
- Medium
- Typical severity
- High
- CAPEC version
- 3.9
Description
An adversary, through a previously installed malicious application, impersonates a credential prompt in an attempt to steal a user's credentials.
Extended description
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.
Execution flow
1. [Explore] [Determine suitable tasks to exploit] Determine what tasks exist on the target system that may result in a user providing their credentials.
2. [Exploit] [Impersonate Task] Impersonate a legitimate task, either expected or unexpected, in an attempt to gain user credentials.
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] Once an adversary has gained access to the target system, impersonating a credential prompt is not difficult.
Consequences
• Access Control, Authentication: Gain Privileges
Mitigations
• 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.
Related
Att&ck technique · MITRE ATT&CK (2)
Child of · CAPEC (1)
- CAPEC-504 Task Impersonation attack pattern
Weakness · CWE (1)
- CWE-1021 Improper Restriction of Rendered UI Layers or Frames weakness
Referenced by CWE · attack pattern (1)
- CWE-1021 Improper Restriction of Rendered UI Layers or Frames weakness