← Latest papers
💻 computer science

Bit of a Close Talker: A Practical Guide to Serverless Cloud Co-Location Attacks

This paper presents a comprehensive methodology for exploiting vulnerabilities in serverless cloud schedulers to achieve physical co-location for micro-architectural side-channel attacks, demonstrates successful attacks on major platforms like Microsoft Azure Functions, and proposes a "Double-Dip" scheduler as a mitigation strategy.

Original authors: Wei Shao, Najmeh Nazari, Behnam Omidi, Setareh Rafatirad, Khaled N. Khasawneh, Houman Homayoun, Chongzhou Fang

Published 2026-01-15
📖 5 min read🧠 Deep dive

Original authors: Wei Shao, Najmeh Nazari, Behnam Omidi, Setareh Rafatirad, Khaled N. Khasawneh, Houman Homayoun, Chongzhou Fang

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

The Big Picture: The "Serverless" Hotel

Imagine the cloud computing world as a massive hotel.

  • Traditional Cloud (Serverful): You rent a whole room for yourself. You pay for the room even if you sleep in it for 5 minutes or 24 hours.
  • Serverless Cloud: You only pay for the exact time you spend in the room. If you need a room for 10 seconds to drop off a package, you pay for 10 seconds. The hotel staff (the cloud provider) handles all the cleaning, keys, and maintenance. You just show up, do your thing, and leave.

This is great for saving money and being flexible. But, because the hotel is so efficient, it tries to pack as many guests as possible into the same rooms to save space. This creates a security risk: Strangers might end up in the same room as you.

The Problem: The "Close Talker" Attack

In the world of computers, there are sneaky tricks called side-channel attacks. Imagine a thief trying to steal your credit card number. They can't break into your safe, but if they stand right next to you in the same room, they can hear your heartbeat or feel the heat from your computer to guess your password.

To do this, the thief needs to be co-located with you—meaning their computer instance and your computer instance must be running on the exact same physical server (the same "room").

The Challenge: Cloud providers are smart. They try to mix guests up so strangers don't end up in the same room. The paper asks: Can a thief trick the hotel manager (the scheduler) into putting them in the same room as a specific victim?

The Solution: How the Thieves Did It

The authors of this paper created a "practical guide" for how to trick the cloud. They broke the process down into three steps, like a detective solving a mystery:

Step 1: Fingerprinting (The "Trial Run")

Before attacking, the thief needs to know how the hotel manager thinks.

  • The Analogy: Imagine the thief sends a test message to the hotel. They watch where the hotel puts them. Then they send another message and watch again.
  • The Discovery: By sending many test requests, the thief learns the manager's habits.
    • Does the manager always put the same guest in the same room to save time? (Yes, this is called "Invocation Locality").
    • Does the manager add more rooms when it gets busy? (Yes, this is "Auto-Scaling").
    • Does the manager group people who have similar luggage? (Yes, this is "Package Locality"—if you both need the same software tools, you get put together).

Step 2: The Attack (The "Trap")

Once the thief knows the manager's habits, they set a trap.

  • If the manager groups by luggage (Package Locality): The thief creates a fake function that uses the exact same "luggage" (software packages) as the victim. The manager sees the matching luggage and automatically puts them in the same room.
  • If the manager gets busy and adds rooms (Auto-Scaling): The thief creates a massive burst of fake requests. This forces the manager to open up many new rooms quickly. The thief floods the system with their own "guests" to increase the odds that one of them accidentally lands in the victim's room.
  • The Result: In their tests, they successfully tricked systems like Microsoft Azure and open-source platforms into putting their "attacker" code right next to "victim" code.

Step 3: The Proof

They didn't just guess; they proved it worked.

  • They tested this on a simulated hotel (a computer program).
  • They tested it on a real cluster of 50 computers.
  • They tested it on Microsoft Azure Functions (a real, public cloud service).
  • The Outcome: They successfully co-located with victims in Azure, costing them less than $25 to do so.

The Fix: The "Double-Dip" Scheduler

The paper doesn't just show how to break in; it also offers a lock. They propose a new rule for the hotel manager called Double-Dip.

  • How it works:
    1. First Dip: If a guest (function) comes in, the manager first checks: "Is this guest already in a room? Can we put them back there?" (This keeps things fast and efficient).
    2. Second Dip: If there is no room for them, the manager looks for a room that has the fewest different types of guests already in it.
  • The Goal: This ensures that if a new guest enters, they are less likely to be mixed with a stranger. It creates "soft isolation." It's not a perfect wall (like a dedicated private house), but it makes it much harder for a thief to guess where the victim is hiding.

The Bottom Line

  • The Threat: Serverless clouds are efficient, but their efficiency (grouping similar things together) creates a backdoor for attackers to sneak up on victims.
  • The Reality: Attackers don't need superpowers; they just need to understand the cloud's scheduling rules and send the right "test messages" to exploit them.
  • The Defense: Cloud providers need to change their scheduling algorithms to be a bit more random and less predictable, ensuring that strangers don't accidentally end up sharing a room.

Important Note: The paper emphasizes that this research is about the scheduling (the room assignment). It doesn't actually steal data; it just proves that the "room assignment" can be manipulated to set the stage for a future data theft. The authors warned Microsoft about this, and Microsoft noted that they have other defenses in place, but the scheduling vulnerability remains a real issue.

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 →