CS60055: Ubiquitous Computing
Security and Privacy in Ubiquitous Computing
When every sensor is also a side channel
INDIAN INSTITUTE OF TECHNOLOGY
KHARAGPUR
Sandip Chakraborty
Department of Computer Science and Engineering
Where We Are in the Course
What we used it for | What an adversary does with it |
IMU gesture and activity recognition | Infers keystrokes, PINs and even speech |
WiFi CSI activity sensing | Reads keystrokes and PINs through walls, with no code on the victim |
mmWave vital sign sensing | Picks up phone earpiece vibration and rebuilds the call audio |
MEMS microphone for voice interfaces | Accepts inaudible commands carried on ultrasound or laser light |
PPG, ECG and gait for health | Re-identifies people and reveals health conditions |
Every sensing technique you learned has a dual. A good sensor for us is a good sensor for the attacker.
Indian Institute of Technology Kharagpur
Today's Plan
A
Part A: Sensors as Side Channels
Learning secrets from motion, RF, light, power and traffic metadata
B
Part B: Attacks on Sensing Integrity
Injecting false readings through sound, ultrasound, laser, EMI and spoofed RF
C
Part C: Defences Across the Pipeline
Platform controls, signal-level defences, context pairing, private learning, RF obfuscation
D
Part D: People, Ethics and Regulation
Bystanders, contextual integrity, the DPDP Act, a case study, open problems
Indian Institute of Technology Kharagpur
Why Ubicomp Needs Its Own Threat Model
No perimeter
Devices live in homes, on bodies and across cities. No firewall separates a trusted inside from an untrusted outside.
No screen
Many devices have no display or keyboard. Notice, consent, alerts and pairing all need new channels.
Always on
Sensors stream continuously. Harm comes from inference over long time series, not from one leaked record.
Analog front door
The input is the physical world. Anyone who can emit sound, light or RF near the device can write into it.
Each attack in this lecture exploits at least one of these four assumptions
Indian Institute of Technology Kharagpur
Who Is the Adversary?
Adversary | Position | Capability | Example in this lecture |
Malicious app or web page | On the victim device | Reads sensors that need no permission, at the allowed rate | Keystroke inference from gyroscope |
Co-located device | Same room or building | Transmits or senses RF, sound or light near the victim | WiFi CSI and mmWave eavesdropping |
Remote network observer | On the path to the cloud | Sees timing and volume of encrypted traffic | Smart home activity from traffic rates |
Physical injector | Line of sight, up to tens of metres | Emits ultrasound, laser, EMI or spoofed RF | Inaudible voice commands |
Curious platform | Cloud or model owner | Holds raw data and trained models | Re-identification, health inference |
Write the threat model first: where the adversary sits, what it can observe, what it can transmit
Indian Institute of Technology Kharagpur
Attack Surface Along the Sensing Pipeline
1. Physical world
Optical, acoustic and RF eavesdropping
2. Transducer
Resonance, ultrasound, laser, EMI injection
3. Analog chain, ADC
Nonlinear demodulation, aliasing, saturation
4. Firmware, OS
Zero-permission reads, malicious apps
5. Network
Traffic metadata, spoofed devices
6. Cloud, models
Linking, inference, model attacks
Cryptography protects only the right half of this pipeline
Indian Institute of Technology Kharagpur
Part A
Sensors as Side Channels
Learning secrets from signals that were never meant to carry them
Zero-permission motion sensors
Keystrokes and speech from IMUs
RF, optical and metadata channels
Body signals as identifiers
Indian Institute of Technology Kharagpur
The Enabler: Motion Sensors Need No Permission
Android 12 onward
Apps capped at 200 Hz for motion sensors unless they declare HIGH_SAMPLING_RATE_SENSORS
iOS 13 onward
Web pages must call DeviceMotionEvent.requestPermission() in Safari
W3C Generic Sensor API
Secure context, focused frame and reduced frequency as mitigations
Rate caps shrink the channel but do not close it. Gyrophone (2014) worked under a 200 Hz cap.
Indian Institute of Technology Kharagpur
Keystrokes and PINs Leak Through Device Motion
System | Sensor | What leaks |
TouchLogger (HotSec 2011) | Phone motion sensors | Digits on a soft keypad |
ACCessory (HotMobile 2012) | Accelerometer | Typed character sequences |
TapLogger (WiSec 2012) | Accelerometer, orientation | Tap positions and PINs |
MoLe (MobiCom 2015) | Smartwatch on the wrist | Words typed on a laptop |
Same segmentation and classification pipeline as gesture sensing, pointed at a secret
Indian Institute of Technology Kharagpur
Speech Leaks Into Motion Sensors
Coupling
Sound pressure moves the MEMS proof mass. The phone's own loudspeaker, on the same board, couples far more strongly than air.
Aliasing helps the attacker
Speech energy above half the sampling rate folds into the reported band. A 200 Hz cap does not remove it.
Recovery
Spectrogram features and a learned model recover speaker identity, words or digits.
Work | Sensor | Result |
Gyrophone (USENIX Security 2014) | Gyroscope | Speaker identity and limited word recognition from airborne speech |
Ba et al. (NDSS 2020) | Accelerometer | Speech from the phone's own loudspeaker recognised and reconstructed |
No microphone permission is needed to hear the user in some settings
Indian Institute of Technology Kharagpur
WiFi and mmWave Sensing as Remote Surveillance
WiKey (MobiCom 2015)
Finger and hand motion while typing leaves distinct patterns in WiFi CSI. A nearby receiver recovers keystrokes.
WindTalker (CCS 2016)
A rogue hotspot collects CSI from the victim's phone and infers the PIN typed into a payment app.
mmSpy (IEEE S&P 2022)
An mmWave radar senses tiny earpiece vibrations and reconstructs the speech of a phone call.
The vital sign sensitivity we celebrated is the same sensitivity mmSpy exploits
Indian Institute of Technology Kharagpur
Anything That Vibrates or Flickers Is a Microphone
Visual Microphone (SIGGRAPH 2014)
High-speed video of a chip packet or a plant leaf recovers the sound that made it vibrate.
Lamphone (2020)
An electro-optical sensor aimed at a hanging bulb from a distance recovers room speech from its vibration.
Glowworm (2021)
The power LED of a speaker or hub changes intensity with power draw, which follows the audio.
Exercise: find one unintended transducer in your own room
Indian Institute of Technology Kharagpur
Encrypted Traffic and Power Usage Still Talk
Smart home traffic
Apthorpe et al. (2017): the rate of encrypted IoT traffic reveals sleep times, presence and device use. A camera that uploads more on motion leaks motion.
Smart meters
Greveler et al. (2012): fine-grained electricity readings reveal appliance use, and in some cases the content shown on a TV.
Encryption hides content. It does not hide timing, volume or the shape of power draw.
Indian Institute of Technology Kharagpur
Body Signals Are Quasi-Identifiers
Gait
Walking patterns from a pocket accelerometer are distinctive enough to identify people across sessions.
ECG morphology
The shape of the heartbeat is studied and used as a biometric. A health stream is also an identity stream.
Location traces
The Strava global heatmap (2018) exposed routes inside military bases, built only from fitness tracks.
Inferred health
Activity, sleep and heart rate streams reveal stress, illness and routine, even without labels.
Removing names does not anonymise a continuous body signal
Indian Institute of Technology Kharagpur
Part B
Attacks on Sensing Integrity
Writing false values into the physical input of a system
Transduction attacks: a taxonomy
Acoustic injection into MEMS
Inaudible voice commands
EMI, GNSS and radar spoofing
Indian Institute of Technology Kharagpur
Transduction Attacks Exploit Sensor Physics
In-band
The attack signal sits in the band the sensor is meant to measure: replayed speech, spoofed GNSS, a fake radar echo. Hard to filter because it looks legitimate.
Out-of-band
The signal sits outside the intended band and is folded in by an unintended path: resonance, amplifier nonlinearity or ADC aliasing. Examples: ultrasound, lasers, EMI.
The digital value is only as trustworthy as the analog path behind it
Indian Institute of Technology Kharagpur
Sound Can Steer MEMS Gyroscopes and Accelerometers
fout = | finj − k · fs |
alias of an injected tone near resonance
Work | Effect |
Son et al. (USENIX Security 2015) | Sound at gyroscope resonance destabilised drones |
WALNUT (EuroS&P 2017) | Acoustic tones controlled accelerometer output on phones |
The aliasing rule from the digitisation lecture, now in the hands of an adversary
Indian Institute of Technology Kharagpur
Inaudible Commands Reach the Voice Assistant
sin = (1 + m(t)) cos(ωt)
sout ≈ a1 sin + a2 sin2
ω is the ultrasonic carrier. The square term recreates the command m(t) inside the microphone, where no later filter can remove it.
Attack | Carrier |
DolphinAttack (CCS 2017) | Amplitude-modulated ultrasound through the air |
SurfingAttack (NDSS 2020) | Ultrasonic guided waves through a table surface |
Light Commands (USENIX Security 2020) | Modulated laser on the MEMS microphone from a distance |
Nonlinearity turns an out-of-band signal into an in-band command
Indian Institute of Technology Kharagpur
EMI and GNSS Spoofing
Ghost Talk (IEEE S&P 2013)
Low-power EMI coupled into the analog leads of sensors injected false signals into cardiac devices and microphones. Medical wearables are in scope.
GNSS spoofing
In 2013 a University of Texas team led by Todd Humphreys steered a yacht off course with counterfeit GPS signals. The open civil signal carries no authentication.
If anyone can transmit it, a system should not trust it alone
Indian Institute of Technology Kharagpur
Radar Spoofing and Adversarial Sensing Models
Radar spoofing
MadRadar (NDSS 2024): automotive FMCW radar made to see false objects, lose real ones or misplace them, by an attacker who learns radar parameters on the fly.
Adversarial inputs
Small crafted perturbations to IMU or CSI inputs flip a classifier's label. The attacker must realise them through the physical channel.
Poisoning
Crowdsourced and federated training data can be poisoned so the model fails on a trigger pattern chosen by the attacker.
Open question: robustness under physically realisable perturbations, not just bounded digital noise
Indian Institute of Technology Kharagpur
Part C
Defences Across the Pipeline
From platform policy down to the analog front end
Platform controls and gaps
Signal-level defences
Pairing and keys from context
Private learning and RF obfuscation
Indian Institute of Technology Kharagpur
Platform Controls and Their Gaps
Control | What it limits | Gap for ubicomp |
Runtime permission | Microphone, camera, location access | Motion, barometer and magnetometer usually need none |
Sampling rate caps | Bandwidth of a side channel | Low-rate attacks still work; aliasing adds leakage |
Foreground or focus rules | Background collection | Long foreground sessions such as games or maps |
Recording indicators | Hidden microphone and camera use | No indicator for motion or RF sensing |
App store review | Known malicious behaviour | Inference attacks look like normal sensor use |
Should sensors be grouped by what they can reveal, rather than by what they measure?
Indian Institute of Technology Kharagpur
Signal-Level Defences
Shield and filter
Acoustic damping around MEMS parts, EMI shielding on leads and proper low-pass filtering before the ADC remove many out-of-band paths.
Randomise sampling
Random or phase-shifted sampling instants break the clean alias an attacker relies on, as the WALNUT authors suggest.
Cross-check sensors
Fuse heterogeneous sensors and flag readings that violate physics, such as rotation without matching acceleration.
Challenge the channel
PyCRA (CCS 2015) turns an active sensor's transmitter off at random moments. Energy received during silence reveals an attacker.
Defend the analog path with physics and redundancy, not with cryptography
Indian Institute of Technology Kharagpur
Pairing Without Screens Using Shared Context
Amigo (UbiComp 2007)
Compares WiFi signal strength traces from both devices to confirm co-location before authenticating a key exchange.
ProxiMate (MobiSys 2011)
Uses fading of ambient FM and TV signals, which decorrelates over a short distance, to derive a shared key.
Limits
An attacker close by sees a similar signal. Entropy per second is low, so pairing takes time.
The leakage of Part A, turned into an authentication signal
Indian Institute of Technology Kharagpur
Keys From Signals on the Same Body
H2H (CCS 2013)
An implanted device and a programmer on the skin both measure the heartbeat. Inter-pulse intervals give shared random bits.
Walkie-Talkie (IPSN 2016)
Devices worn on the same body derive keys from the gait acceleration they both feel while walking.
Device A
Measures signal w
Gen(w)
Outputs key R and public helper P
Device B
Measures noisy w′, receives P
Rep(w′, P)
Recovers R if d(w, w′) ≤ t
Fuzzy extractors (Dodis et al., 2004) turn two noisy readings into the same exact key, while P leaks little about R
Ask: can a remote radar measure the same heartbeat the key came from?
Indian Institute of Technology Kharagpur
Learning From Sensor Data With Privacy
On-device inference
Raw data never leaves the device; only labels or events do. The app or the model output can still leak.
Federated learning
Devices train locally and send updates. Secure aggregation hides single updates, but gradients can be inverted.
Differential privacy
Calibrated noise makes the output barely depend on any one person. A formal guarantee at a cost in accuracy.
Pr[ M(D) ∈ S ] ≤ eε · Pr[ M(D′) ∈ S ]
for all neighbouring datasets D, D′ and all output sets S. Smaller ε means stronger privacy.
Indian Institute of Technology Kharagpur
Differential Privacy for Continuous Streams
Privacy unit | Protects | Cost |
Event-level | Any single sample | Low noise, weak for habits |
User-level | The whole stream of one person | Very high noise |
w-event | Any window of w samples (Kellaris et al., VLDB 2014) | Middle ground |
The privacy unit is a modelling decision, not a parameter to tune
Indian Institute of Technology Kharagpur
Defending Against Passive RF Sensing
IRShield (IEEE S&P 2022)
An intelligent reflecting surface randomises the channel. Communication continues, but a passive eavesdropper's WiFi sensing stops tracking motion.
RF-Protect (SIGCOMM 2022)
A controlled reflector creates phantom human trajectories, so an unauthorised radar sees people who are not there.
Sense only what you need
Process on the sensor and export coarse features, such as range bins or event flags, instead of raw point clouds or CSI.
The person being sensed has no device to configure, so defence must live in the environment
Indian Institute of Technology Kharagpur
Part D
People, Ethics and Regulation
Who is sensed, who consents, and what the law asks for
Bystanders and contextual integrity
India's DPDP Act and Rules
Case study: elder-care radar
Open problems
Indian Institute of Technology Kharagpur
Contextual Integrity and Bystanders
Information flow | Fits context? |
Fall event sent to the family caregiver | Yes |
Raw breathing stream sent to an insurer | No |
Occupancy count used for HVAC control | Yes |
Per-person tracks kept for marketing | No |
Bystanders
Visitors, domestic workers and children are sensed by systems they never set up. Radar and WiFi sensing work through walls, so a bystander may be in the next flat.
Design for them: physical notice, sensing zones, and data that cannot single them out
Privacy is about appropriate flows, not about secret versus public
Indian Institute of Technology Kharagpur
What the DPDP Act 2023 Means for Sensing Systems
Provision | Impact on a ubicomp system |
Notice and consent for a stated purpose | Each sensor stream needs a clear purpose; collect-everything designs do not fit |
Rights of the Data Principal | Access, correction and erasure must cover derived inferences too |
Children's data | Verifiable parental consent; no tracking or behavioural monitoring of children |
Security safeguards, breach reporting | Device, network and cloud all need reasonable safeguards |
Significant Data Fiduciaries | Impact assessments and audits for large or sensitive processing |
Timeline
DPDP Rules notified on 14 November 2025, with phased compliance over 18 months.
Hard question
How do you give notice and take consent on a device with no screen, for people who are only passing by?
Sensor-derived inferences about an identifiable person are personal data
Indian Institute of Technology Kharagpur
Case Study: mmWave Fall Detector in an Elder's Home
Asset or stage | Threat | Mitigation |
Raw point clouds and vitals | Eavesdropping by a nearby radar, or a cloud breach | Process on device; only fall events and daily summaries leave |
Fall alerts | Spoofed or suppressed echoes hide a real fall | Active-sensing checks; cross-check with a door or power sensor |
Visitors in the room | Their breathing and movement are recorded | Zone gating; drop tracks of unregistered people |
Caregiver dashboard | Over-broad access by staff or insurers | Role-based access, audit logs, purpose limits |
Consent | Resident may have cognitive decline | Proxy consent with periodic review; visible notice |
Indian Institute of Technology Kharagpur
Open Problems
Sensor foundation models
Models trained on many users' sensor data may memorise them. Membership inference is largely unstudied for IMU and RF.
LLM agents with sensor context
Agents reasoning over home or body sensor streams can leak that context through prompts, tools and logs.
Certified physical robustness
Guarantees against attacks that must pass through a real acoustic or RF channel, not just digital noise.
Consent without screens
Usable notice and consent for screenless, shared and through-wall sensing, and for bystanders.
Each of these is a good thesis topic
Indian Institute of Technology Kharagpur
Summary
The analog front end is part of the attack surface. Cryptography cannot fix it.
Indian Institute of Technology Kharagpur
References and Further Reading
Indian Institute of Technology Kharagpur