Skip to content

seemoo-lab/csicloak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

CSI-Cloak

Description

Passive device-free localization of a person exploiting the Channel State Information (CSI) from Wi-Fi signals is quickly becoming a reality. While this capability would enable new applications and services, it also raises concerns about citizens’ privacy. In this work, we propose a carefully-crafted obfuscating technique against one of such CSI-based localization methods. In particular, we modify the transmitted I/Q samples by leveraging an irreversible randomized sequence. I/Q symbol manipulation at the transmitter distorts the location-specific information in the CSI while preserving communication, so that an attacker can no longer derive information on user’s location. We test this technique against a Neural Network (NN)-based localization system and show that the randomization of the CSI makes undesired localization practically unfeasible. Both the localization system and the randomization CSI management are implemented in real devices. The experimental results obtained in our laboratory show that the considered localization method (first proposed in an MSc thesis) works smoothly regardless of the environment, and that adding random information to the CSI mess up the localization, thus providing the community with a system that preserve location privacy and communication performance at the same time.


What's included in the repository

  • CSI Randomizer:

    • Transmit WiFi-like frames with randomized CSI to disrupt the localization framework and prevent unauthorized surveillance attacks

    • Tested on a Ettus USRP N300

  • Device Free Indoor Localization:

    • Train a Neural Network to localize a human inside a room by only exploiting the CSI information of the transmitted packets

    • Capabilities:

      • The import of raw CSI information and the conversion in different formats: Amplitude-phase, amplitude-unwrapped phase and IQ data.

      • The baselining of CSI information against a measurement over cables or the measured empty room. This improves the CSI quality and removes the noise introduced by the hardware

      • A variety of preprocessing options, including the selection of the number of subcarriers, TX/RX antennas, removal of special subcarriers like the pilot subcarriers and normalization

      • The definition of rooms offers a simple way to describe different environments. These can be further constrained by using masks.

      • The user can create a Neural Network and define own loss functions to approach each problem individually. The usage of Tune offers a scalable and fast hyperparameter Tuning.

      • A trained Neural Network can be analyzed in various ways. A CDF shows the detailed performance of the classifier. Moreover, a heatmap shows the performance dependent on the true location and a hitmap visualized the estimation areas. Furthermore, the best and worst estimated can be identified and visualized on the room.

      • Besides the classical end-to-end training, an existing network can also be re-trained based on new measurements to adapt to a new room.

      • A real-time mode allows to observe the performance of the classifier in real-time

      • The storage of the used random permutations assures reproducability

      • Finally, the framework offers detailled human-readable logs and an own crawler to extract the required information fast and well-arranged.

      • Detailled information about the project and capabilities can be found in the Master Thesis Device-Free Indoor Localization: A User-Privacy Perspective

Usage:

  • CSI Randomizer:

    • A README file with the instructions to build and run the application is included in the corresponding subfolder.
  • Device Free Indoor Localization:

    • Three python files are callable:

      • main.py: contains most of the described features.

      • optimizationTune.py: offers a fast and scalable training by using Tune

      • LogAnalyzer.py: allows you to quickly search different type of logs

    • All of them are called without any parameters. The parameters are set in the *parameters.py files.

        python main.py
      
      • Detailled information about the different modes and all parameters can be found in the Appendix of the Master Thesis Device-Free Indoor Localization: A User-Privacy Perspective

      • Sample files: The provided sample data and output files should help the user to run and explore the capabilities of the framework. They are not intended to be used to build a classifier, as the amount of information is not sufficient to do this. Also, some modes only provide meaningful interpretation with a bigger dataset.


References


Powered By

Secure Mobile Networking Lab (SEEMOO)

Multi-Mechanisms Adaptation for the Future Internet (MAKI)

LOEWE centre emergenCITY

Technische Universität Darmstadt

University of Brescia

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published