ArticleslgStudy

computer science

BadUSB

BadUSB 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 BadUSB rather than just read about it. In short: BadUSB is a computer security attack using USB devices that are programmed with malicious software. For example, USB flash drives can contain a programmable Intel 8051 microcontroller, which can be reprogrammed, turning a USB flash drive into a malicious device.

BadUSB — main illustration
BadUSB — illustration

Key takeaways

  • BadUSB 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 BadUSB to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of BadUSB from memory before moving on to harder problems.

Reference excerpt

BadUSB is a computer security attack using USB devices that are programmed with malicious software. For example, USB flash drives can contain a programmable Intel 8051 microcontroller, which can be reprogrammed, turning a USB flash drive into a malicious device. This attack works by programming the fake USB flash drive to emulate a keyboard. Once it is plugged into a computer, it is automatically recognized and allowed to interact with the computer. It can then initiate a series of keystrokes which open a command window and issue commands to download malware. The BadUSB attack was first revealed during a Black Hat talk in 2014 by Karsten Nohl, Sascha Krisler and Jakob Lell. Two months after the talk, other researchers published code that can be used to exploit the vulnerability. In 2017, a dongle called USG was released, to prevent BadUSB style attacks by acting like a hardware firewall.

Criminal usage In March 2020, the FBI issued a warning that members of the FIN7 cybercrime group had been targeting companies in the retail, restaurant, and hotel industries with BadUSB attacks designed to deliver REvil or BlackMatter ransomware. Packages have been sent to employees in IT, executive management, and human resources departments. One intended target was sent a package in the mail which contained a fake gift card from Best Buy as well as a USB flash drive with a letter stating that the recipient should plug the drive into their computer to access a list of items that could be purchased with the gift card. When tested, the USB drive emulated a keyboard, and then initiated a series of keystrokes which opened a PowerShell window and issued commands to download malware to the test computer, and then contacted servers in Russia. In January 2022, the FBI issued another warning that members of FIN7 were targeting transportation and insurance companies (since August 2021), and defense companies (since November 2021), with BadUSB attacks designed to deliver REvil or BlackMatter ransomware. These targets were sent USB drives in packages claiming to be from Amazon or the United States Department of Health and Human Services, with letters talking about free gift cards or COVID-19 protocols that were purportedly further explained by information on the USB drive. As above, when plugged in, the USB drives emulate a keyboard, and then initiate a series of keystrokes which open a PowerShell window and issue commands to download malware.

See also Juice jacking

References

Further reading Lu, Hongyi; Wu, Yechang; Li, Shuqing; Lin, You; Zhang, Chaozu; Zhang, Fengwei (May 2021). "BADUSB-C: Revisiting BadUSB with Type-C". 2021 IEEE Security and Privacy Workshops (SPW). pp. 327–338. doi:10.1109/SPW53761.2021.00053. ISBN 978-1-6654-3732-5. "Can BadUSB be avoided by looking at the shapes and the controller model inside it?". Information Security Stack Exchange. Retrieved 2023-01-31.

Illustrations

BadUSB: At 2, the USB controller which the custom firmware can be flashed to is visible.
At 2, the USB controller which the custom firmware can be flashed to is visible.

Worked examples

Example 1 — a first encounter with BadUSB

Start with the simplest possible case. Write down what BadUSB 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 BadUSB 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 BadUSB 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 BadUSB

In research
BadUSB 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 BadUSB 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
BadUSB is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer security exploits, USB, so understanding it makes those chapters shorter.
In everyday life
Look for BadUSB 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 “BadUSB” →

How to study BadUSB in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what BadUSB 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 BadUSB out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is BadUSB in simple terms?

BadUSB is a computer security attack using USB devices that are programmed with malicious software. For example, USB flash drives can contain a programmable Intel 8051 microcontroller, which can be reprogrammed, turning a USB flash drive into a malicious device.

Why does BadUSB 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 BadUSB?

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 BadUSB.

Tags

  • Computer security exploits
  • USB

Keep exploring