deep-tempest/README.md

106 lines
4.7 KiB
Markdown
Raw Normal View History

2024-06-26 16:37:25 -07:00
# Deep-tempest: Using Deep Learning to Eavesdrop on HDMI from its Unintended Electromagnetic Emanations
2022-09-02 15:33:51 -07:00
2023-10-21 13:51:50 -07:00
<img src="deep-tempest.png"/>
2022-09-02 15:33:51 -07:00
2024-06-26 16:37:25 -07:00
## Summary
2022-09-02 15:33:51 -07:00
2024-07-04 11:20:35 -07:00
In this project we have extended the original [**gr-tempest**](https://github.com/git-artes/gr-tempest) (a.k.a. [Van Eck Phreaking](https://en.wikipedia.org/wiki/Van_Eck_phreaking) or simply TEMPEST; i.e. spying on a video display from its unintended electromagnetic emanations) by using deep learning to improve the quality of the spied images. See an illustrative diagram above. Some examples of the resulting inference of our system and the original unmodified version of gr-tempest below.
2022-09-02 15:33:51 -07:00
2024-06-27 13:52:08 -07:00
<img src="examples.png"/>
2024-07-03 10:47:37 -07:00
## Video demo
2024-07-04 11:19:03 -07:00
We are particularly interested in recovering the text present in the display, and we improve the Character Error Rate from 90% in the unmodified gr-tempest, to less than 30% using our module. Watch a video of the full system in operation:
2024-07-03 10:47:37 -07:00
2024-07-04 10:38:23 -07:00
[<img src="https://img.youtube.com/vi/ig3NWg_Yzag/maxresdefault.jpg" width="50%"/> ](https://www.youtube.com/watch?v=ig3NWg_Yzag)
2024-07-16 05:20:52 -07:00
## How does it works? (and how to cite our work or data)
2024-07-16 05:09:09 -07:00
2024-07-16 05:20:52 -07:00
You can find a detailed technical explanation of how deep-tempest works in the reference below. If you found our work or data useful for your research, please consider citing it as follows:
2024-07-16 05:09:09 -07:00
````
@misc{fernández2024deeptempestusingdeeplearning,
title={Deep-TEMPEST: Using Deep Learning to Eavesdrop on HDMI from its Unintended Electromagnetic Emanations},
author={Santiago Fernández and Emilio Martínez and Gabriel Varela and Pablo Musé and Federico Larroca},
year={2024},
eprint={2407.09717},
archivePrefix={arXiv},
primaryClass={cs.CR},
url={https://arxiv.org/abs/2407.09717},
note={Submitted}
}
````
2024-06-26 16:37:25 -07:00
## Data
2022-09-02 15:33:51 -07:00
2024-07-16 08:35:14 -07:00
In addition to the source code, we are also open sourcing the whole dataset we used. Follow [this dropbox link](https://www.dropbox.com/scl/fi/7r2o8nbws45q30j5lkxjb/deeptempest_dataset.zip?rlkey=w7jvw275hu8tsyflgdkql7l1c&st=e8rdldz0&dl=0) to download a ZIP file (~7GB). After unzipping, you will find synthetic and real captured images used for experiments, training, and evaluation during the work. These images consists of 1600x900 resolution with the SDR's center frequency at the third pixel-rate harmonic (324 MHz).
2022-09-02 15:33:51 -07:00
2024-06-26 16:37:25 -07:00
The structure of the directories containing the data is **different** for **synthetic data** compared to **captured data**:
2024-06-26 16:37:25 -07:00
### Synthetic data
2022-09-02 15:33:51 -07:00
2024-06-26 16:37:25 -07:00
* *ground-truth* (directory with reference/monitor view images)
- image1.png
2023-10-24 14:38:44 -07:00
- ...
2024-06-26 16:37:25 -07:00
- imageN.png
2023-10-24 14:38:44 -07:00
2024-06-26 16:37:25 -07:00
* *simulations* (directory with synthetic degradation/capture images)
- image1_synthetic.png
2023-10-24 14:38:44 -07:00
- ...
2024-06-26 16:37:25 -07:00
- imageN_synthetic.png
### Real data
2023-10-24 14:38:44 -07:00
2024-06-26 16:37:25 -07:00
- image1.png (*image1 ground-truth*)
- ...
- imageN.png (*imageN ground-truth*)
2023-10-24 14:38:44 -07:00
2024-06-26 16:37:25 -07:00
* *Image 1* (directory with captures of *image1.png*)
- capture1_image1.png
2023-10-24 14:38:44 -07:00
- ...
2024-06-26 16:37:25 -07:00
- captureM_image1.png
2023-10-24 14:38:44 -07:00
* ...
2024-06-26 16:37:25 -07:00
* *Image N* (directory with captures of *image1.png*)
- capture1_imageN.png
2023-10-24 14:38:44 -07:00
- ...
2024-06-26 16:37:25 -07:00
- captureM_imageN.png
2023-10-21 14:02:39 -07:00
2024-06-26 16:37:25 -07:00
## Code and Requirements
2022-09-02 15:33:51 -07:00
2024-06-26 16:37:25 -07:00
Clone the repository:
```shell
2024-06-26 16:37:25 -07:00
git clone https://github.com/emidan19/deep-tempest.git
```
Both [gr-tempest](./gr-tempest/) and [end-to-end](./end-to-end/) folders contains a guide on how to execute the corresponding files for image capturing, inference and train the deep learning architecture based on DRUNet from [KAIR image restoration repository](https://github.com/cszn/KAIR/tree/master).
2022-09-02 15:33:51 -07:00
2024-06-26 16:37:25 -07:00
The code is written in Python version 3.10, using Anaconda environments. To replicate the working environment, create a new one with the libraries listed in [*requirements.txt*](./requirements.txt):
2022-09-02 15:33:51 -07:00
2023-10-21 13:51:50 -07:00
```shell
2023-10-21 13:52:41 -07:00
conda create --name deeptempest --file requirements.txt
2023-10-21 13:51:50 -07:00
```
2022-09-02 15:33:51 -07:00
2024-06-26 16:37:25 -07:00
Activate it with:
2023-10-21 13:51:50 -07:00
```shell
conda activate deeptempest
```
2022-09-02 15:33:51 -07:00
2024-07-04 11:19:03 -07:00
Regarding installations with GNU Radio, **it is necessary to use the [gr-tempest](./gr-tempest/) version in this repository** *(which contains a modified version of the original gr-tempest)*. After this, run the following *grc* files flowgraphs to activate the *hierblocks*:
2024-06-26 19:44:15 -07:00
- [binary_serializer.grc](./gr-tempest/examples/binary_serializer.grc)
- [FFT_autocorrelate.grc](./gr-tempest/examples/FFT_autocorrelate.grc)
- [FFT_crosscorrelate.grc](./gr-tempest/examples/FFT_crosscorrelate.grc)
- [Keep_1_in_N_frames.grc](./gr-tempest/examples/Keep_1_in_N_frames.grc)
2024-06-26 16:37:25 -07:00
2024-06-28 10:23:43 -07:00
Finally run the flowgraph [deep-tempest_example.grc](./gr-tempest/examples/deep-tempest_example.grc) to capture the monitor images and be able to recover them with better quality using the *Save Capture* block.
2024-07-16 05:14:39 -07:00
2024-07-16 05:17:07 -07:00
IIE Instituto de Ingeniería Eléctrica,
Facultad de Ingeniería,
Universidad de la República,
Montevideo, Uruguay,
2024-07-16 05:14:39 -07:00
http://iie.fing.edu.uy/investigacion/grupos/artes/
Please refer to the LICENSE file for contact information and further credits.