← Latest papers
💻 computer science

WATSON: Leveraging Data Watchpoints for Shadow Stack Protection on Embedded Systems

This paper presents WATSON, an efficient and effective shadow stack protection mechanism for embedded systems that leverages standard hardware data watchpoints to enforce write protection and control-flow integrity without relying on specialized security extensions, achieving low performance overhead while effectively preventing control-flow hijacking attacks.

Original authors: Xi Tan, Sagar Mohan, Ziming Zhao

Published 2026-05-12
📖 4 min read☕ Coffee break read

Original authors: Xi Tan, Sagar Mohan, Ziming Zhao

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine your embedded device (like a smart thermostat, a medical monitor, or a car's braking system) is a busy office building. The software running inside is the staff, and the "stack" is a stack of sticky notes where the staff writes down where they need to go next after finishing a task.

The Problem: The Sticky Note Hijack
In many of these devices, the software is written in a language called C. It's fast and efficient, but it's a bit like a chaotic office where anyone can accidentally (or maliciously) scribble over the sticky notes. A common attack, called a "Return-Oriented Programming" (ROP) attack, is like a saboteur sneaking in, erasing a "Go to the breakroom" note, and replacing it with "Go to the secret vault." When the staff finishes their task and looks at the note, they go to the wrong place, and the attacker takes control of the building.

To stop this, security experts use a Shadow Stack. Think of this as a "Master Copy" of the sticky notes kept in a locked, glass case that only the boss can open. Every time a staff member writes a note on the main stack, they also write it on the Master Copy. When they finish, they check the Master Copy to see where they really should go. If the main note says "Vault" but the Master Copy says "Breakroom," the system knows something is wrong and stops the attack.

The Old Solutions: Too Heavy or Too Expensive
Previous attempts to build these "Master Copies" for small devices had big problems:

  1. They were too heavy: They slowed the building down significantly (sometimes by over 500%), making the device too sluggish to be useful.
  2. They needed special hardware: They relied on high-tech security rooms (like "TrustZone") that many cheap devices don't have.
  3. They left holes: They often forgot to protect the notes taken during emergencies (like power outages or system alarms), allowing attackers to slip in through those backdoors.

The New Solution: WATSON
The paper introduces WATSON, a clever new way to build this security system.

The Creative Analogy: The "Watchful Eye"
Instead of building a new, expensive security room, WATSON uses a tool that was already in the building but mostly ignored: the Data Watchpoint.

Imagine the building has a set of security cameras (the hardware debug unit) originally installed just so the maintenance crew could watch for leaks or broken pipes while fixing things. These cameras can be programmed to scream "ALARM!" if anyone tries to touch a specific area.

WATSON repurposes these cameras:

  • The Lock: It points the cameras at the "Master Copy" (the Shadow Stack).
  • The Rule: The cameras are set to trigger an alarm if anyone tries to write (change) the notes, except for the specific moment when the boss is officially updating them.
  • The Result: If a hacker tries to sneak in and scribble over the Master Copy, the camera screams "ALARM!" and the building locks down immediately. If the boss is legitimately updating the notes, the camera lets it pass.

How It Handles Emergencies
One of WATSON's superpowers is that it doesn't just watch the regular staff; it also watches the Emergency Responders (interrupts and exceptions).

  • In old systems, if an alarm went off, the Emergency Responders would take over, and the security cameras might get confused or turned off.
  • WATSON ensures that even when an emergency happens, the "Master Copy" is still protected. It saves a snapshot of the emergency notes and checks them against the Master Copy before letting the staff return to their normal jobs.

The Results: Fast, Light, and Secure
The researchers tested WATSON on real hardware (like the chips used in many IoT devices):

  • Speed: It barely slows the building down. The "Master Copy" check adds only about 1.8% to 7.3% overhead. This is like adding a tiny delay to a door opening—unnoticeable to the user but crucial for safety.
  • Size: It doesn't take up much space in the building's memory.
  • Compatibility: Because it uses the existing "security cameras" (debug units) rather than building new walls, it works alongside other security systems without causing conflicts.

In Summary
WATSON is a smart, lightweight security guard for small devices. Instead of building expensive new fortresses, it uses the existing "security cameras" in the chip to watch over the critical "Master Copy" of return addresses. It stops hackers from changing the destination notes, even during emergencies, all while keeping the device running fast and smooth.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →