ArticleslgStudy

computer science

Evil maid attack

Evil maid attack is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Evil maid attack rather than just read about it. In short: An evil maid attack is a class of cyberattacks on an unattended device, in which an attacker with physical access alters it in some undetectable way so that they can later access the device, or the data on it. In particular, the attack could bypass system passwords and even disk encryption measures in use at the time, and further security mechanisms such as secure boot were needed to mitigate it.

Evil maid attack — main illustration
Evil maid attack — illustration

Key takeaways

  • Evil maid attack belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Evil maid attack to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Evil maid attack from memory before moving on to harder problems.

Reference excerpt

An evil maid attack is a class of cyberattacks on an unattended device, in which an attacker with physical access alters it in some undetectable way so that they can later access the device, or the data on it. In particular, the attack could bypass system passwords and even disk encryption measures in use at the time, and further security mechanisms such as secure boot were needed to mitigate it. The name refers to the threat scenario where a maid could subvert a device left unattended in a hotel room. However, the term broadly applies to any situation where an adversary has physical access to an unattended device.

Overview

Origin In a 2009 blog post, security analyst Joanna Rutkowska coined the term "Evil Maid Attack" due to hotel rooms being a common place where devices are left unattended. Rutkowska then published a practical method for bypassing TrueCrypt disk encryption on victim devices, requiring merely an external USB flash drive. D. Defreez, a computer security professional, first mentioned the possibility of an evil maid attack on Android smartphones in 2011. He talked about the WhisperCore Android distribution and its ability to provide disk encryption for Androids.

Notable instances In 2007, former U.S. Commerce Secretary Carlos Gutierrez was allegedly targeted by an evil maid attack during a business trip to China. He left his computer unattended during a trade talk in Beijing, and he suspected that his device had been compromised. Although the allegations have yet to be confirmed or denied, the incident caused the U.S. government to be more wary of physical attacks. In 2009, Symantec CTO Mark Bregman was advised by several U.S. agencies to leave his devices in the U.S. before travelling to China. He was instructed to buy new ones before leaving and dispose of them when he returned so that any physical attempts to retrieve data would be ineffective.

Methods of attack

Classic evil maid The attack begins when the victim leaves their device unattended. If the victim's device has disk encryption, the attacker cannot access or tamper with the data directly. However, some part of the disk needs to be left unencrypted, such as the MBR and bootloader; the attacker can replace this with a malicious bootloader that waits for the victim to return and enter their encryption password. The malicious software can then record the password for the attacker to retrieve later, or transmit it over the network. Some devices are also vulnerable to a DMA attack in which an attacker accesses the victim's information through hardware ports that can directly access the device's memory.

Network evil maid

An evil maid attack can also be done by replacing the victim's device with an identical device. If the original device has a bootloader password, then the attacker only needs to acquire a device with an identical bootloader password input screen. If the device has a lock screen, however, the process becomes more difficult as the attacker must acquire the background picture to put on the lock screen of the mimicking device. In either case, when the victim inputs their password on the false device, the device sends the password to the attacker, who is in possession of the original device. The attacker can then access the victim's data.

Vulnerable interfaces

Legacy BIOS Legacy BIOS is considered insecure against evil maid attacks. Its architecture is old, updates and Option ROMs are unsigned, and configuration is unprotected. Additionally, it does not support secure boot. These vulnerabilities allow an attacker to boot from an external drive and compromise the firmware. The compromised firmware can then be configured to send keystrokes to the attacker remotely.

Unified Extensible Firmware Interface Unified Extensible Firmware Interface (UEFI) specifies many security features that, in combination, can mitigate evil maid attacks. For example, it offers a framework for secure boot, authenticated variables at boot-time, and TPM initialization security. However, these features are not effective if device manufacturers do not implement them correctly. For example, some ASUS UEFI firmware were found to be vulnerable in 2013.

Full disk encryption systems Many full disk encryption systems, such as TrueCrypt and PGP Whole Disk Encryption, are susceptible to evil maid attacks due to their inability to authenticate themselves to the user. An attacker can still modify disk contents despite the device being powered off and encrypted. The attacker can modify the encryption system's loader codes to steal passwords from the victim. The ability to create a communication channel between the bootloader and the operating system to remotely steal the password for a disk protected by FileVault 2, is also explored. On a macOS system, this attack has additional implications due to "password forwarding" technology, in which a user's account password also serves as the FileVault password, enabling an additional attack surface through privilege escalation.

Thunderbolt

In 2019 a vulnerability named "Thunderclap" in Intel Thunderbolt ports found on many PCs was announced which could allow a rogue actor to gain access to the system via direct memory access (DMA). This is possible despite use of an input/output memory management unit (IOMMU). This vulnerability was largely patched by vendors. This was followed in 2020 by "Thunderspy" which is believed to be unpatchable and allows similar exploitation of DMA to gain total access to the system bypassing all security features.

Mass-produced devices Mass-produced devices such as smartphones are especially vulnerable to a network evil maid attack. If the attacker knows which model the victim uses, they can replace the victim's device with an identical-looking model with a password-stealing mechanism.

Mitigation

… excerpt ends here. Continue reading the full article.

Illustrations

Evil maid attack: Any unattended device, like the laptop depicted, is at risk of an evil maid attack
Any unattended device, like the laptop depicted, is at risk of an evil maid attack

Worked examples

Example 1 — a first encounter with Evil maid attack

Start with the simplest possible case. Write down what Evil maid attack claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Evil maid attack before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Evil maid attack ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Evil maid attack

In research
Evil maid attack appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Evil maid attack in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Evil maid attack is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer security exploits, Cyberwarfare, Security breaches, so understanding it makes those chapters shorter.
In everyday life
Look for Evil maid attack outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Evil maid attack” →

How to study Evil maid attack in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Evil maid attack means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Evil maid attack out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Evil maid attack in simple terms?

An evil maid attack is a class of cyberattacks on an unattended device, in which an attacker with physical access alters it in some undetectable way so that they can later access the device, or the data on it. In particular, the attack could bypass system passwords and even disk encryption measures…

Why does Evil maid attack matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Evil maid attack?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Evil maid attack.

Tags

  • Computer security exploits
  • Cyberwarfare
  • Security breaches
  • Spyware

Keep exploring