## Learning-Aided Physical Layer Attacks Against Multicarrier Communications in IoT

Alireza Nooraiepour, Waheed U. Bajwa and Narayan B. Mandayam

Abstract -Internet-of-Things (IoT) devices that are limited in power and processing capabilities are susceptible to physical layer (PHY) spoofing (signal exploitation) attacks owing to their inability to implement a full-blown protocol stack for security. The overwhelming adoption of multicarrier techniques such as orthogonal frequency division multiplexing (OFDM) for the PHY layer makes IoT devices further vulnerable to PHY spoofing attacks. These attacks which aim at injecting bogus/spurious data into the receiver, involve inferring transmission parameters and finding PHY characteristics of the transmitted signals so as to spoof the received signal. Non-contiguous (NC) OFDM systems have been argued to have low probability of exploitation (LPE) characteristics against classic attacks based on cyclostationary analysis, and the corresponding PHY has been deemed to be secure. However, with the advent of machine learning (ML) algorithms, adversaries can devise data-driven attacks to compromise such systems. It is in this vein that PHY spoofing performance of adversaries equipped with supervised and unsupervised ML tools are investigated in this paper. The supervised ML approach is based on estimation/classification utilizing deep neural networks (DNN) while the unsupervised one employs variational autoencoders (VAEs). In particular, VAEs are shown to be capable of learning representations from NC-OFDM signals related to their PHY characteristics such as frequency pattern and modulation scheme, which are useful for PHY spoofing. In addition, a new metric based on the disentanglement principle is proposed to measure the quality of such learned representations. Simulation results demonstrate that the performance of the spoofing adversaries highly depends on the subcarriers' allocation patterns used at the transmitter. Particularly, it is shown that utilizing a random subcarrier occupancy pattern precludes the adversary from spoofing and secures NC-OFDM systems against ML-based attacks.

## I. INTRODUCTION

The broadcast nature of radio signal propagation along with standardized transmission schemes and intermittent communications make wireless communication systems extremely vulnerable to interception and spoofing attacks. Specifically, the broadcast nature of the wireless medium facilitates the reception of radio signals by any illegitimate receiver as long as it is within the coverage radius of the transmitter. Further, standardized transmission and conventional security schemes open up wireless systems to interception and eavesdropping [2]. Additionally, sporadic transmissions of low-cost wireless devices, especially the significantly growing number of Internetof-Things (IoT) devices, provide massive opportunities to adversaries and malicious actors for spoofing attacks. Therefore,

The authors are with WINLAB, Department of Electrical and Computer Engineering, Rutgers University, NJ, USA. Emails: { alinoora,narayan } @winlab.rutgers.edu, waheed.bajwa@rutgers.edu.

This work was supported in part by the NSF under Grant No. ACI-1541069. A preliminary version of this work was presented in 2018 IEEE Military Communications Conference (MILCOM) [1].

it is of paramount importance for wireless communication systems to enhance the security mechanisms meant to combat the adversaries, especially in light of the ongoing adoption of IoT systems in industrial applications.

IoT devices that have limited battery and computational resources may not be able to execute a full-blown protocol stack for security and authentication (non-access stratum (NAS)) purposes [3]. Physical layer (PHY) security has been put forth as a promising solution in this case, which aims at exploiting the PHY characteristics of the communication links. We study PHY spoofing attacks in IoT networks enabled with multicarrier communications where an adversary spoofs a legitimate transmitter by sending bogus data to its intended receiver. Specifically, we consider an adversary which is equipped with cutting-edge machine learning (ML) tools, and aims at inferring PHY parameters of OFDM/NC-OFDM signals used by the transmitter. Knowledge of these parameters enables the adversary to generate signals similar to those of the transmitter's and perform spoofing attacks. It is in this context that we investigate the robustness of OFDM/NCOFDM systems against ML-aided PHY spoofing attacks. Our focus is in particular on understanding the corresponding PHY characteristics that can help secure such IoT systems.

## A. Relation to prior work

Current attempts at using PHY characteristics as authentication keys for the message source follow various approaches. One possibility is to assume a pre-shared secret key hidden in the modulation scheme, which is detected by the receiver [4], [5]. In other keyless transmitter-based methods (also known as wireless fingerprinting), device-specific non-ideal transmission parameters are extracted from the received signal. These are identified as characteristics of the claimed source and then compared with those from previous authenticated messages [6]. Channel-based authentication algorithms [7], [8] compare the channel response estimated from the current message with that estimated from the previous ones by the claimed source, thus actually authenticating the position of the transmitter rather than its identity. However, the attacker in these works is assumed to only use higher-layer identity forging (e.g., spoofing of a MAC address) and does not try to attack the system by exploiting the underlying PHY characteristics of the signals. The latter approach is referred to as PHY spoofing, which is an important attack that has to be studied since it has been shown to be able to compromise OFDM systems, which are widely used in IoT standards [9]. Therefore, we investigate the performance of powerful attackers enabled with state-of-the-art ML algorithms in PHY spoofing, and propose exploiting PHY characteristics to combat such attacks.

As mentioned, PHY spoofing is shown to be able to compromise OFDM systems. NC-OFDM systems in which transmissions take place over a subset of subcarriers are shown to be capable of circumventing this impediment [10]. NCOFDM systems are also capable of efficiently utilizing the fragmented spectrum and improving spectral efficiency. The authors in [1], [11] examined the low probability of exploitation (LPE) characteristics of NC-OFDM transmissions, assuming that an adversary is using cyclostationary analysis [12]-[14] to infer transmission parameters. In [11], the authors showed that the cyclostationary analysis is extremely challenging to do for most choices of NC-OFDM transmission parameters. Therefore, NC-OFDM systems may be deemed to be secure against PHY spoofing. However, it is not clear if this is still the case when an adversary utilizes powerful data-driven tools like ML algorithms for spoofing.

Particularly, a wide range of ML tools have recently received a lot of attention among communication researchers for solving analytically intractable problems. In particular, the authors in [15] proposed an end-to-end learning of communication systems based on deep neural networks (DNNs). They optimize transmitter and receiver jointly without considering the classical communication and signal processing blocks, including channel encoder and modulator. In [16], the authors showed that deep learning techniques are very promising in scenarios where the channel is too complex to be described analytically. The authors in [17] demonstrated how a DNN-based system can communicate over-the-air without the need for any conventional signal processing blocks. Moreover, securing a point-to-point communication system against a DNN-based attacker trying to determine the modulation scheme is considered in [18].

## B. Our contributions

We investigate the resilience of OFDM/NC-OFDM systems against PHY spoofing, assuming the adversary is equipped with ML tools. We assume the adversary continuously listens to the transmitting terminal, receives either pure noise or corrupted NC-OFDM/OFDM signals, and builds up a dataset out of the received signals. Then, it performs a two-stage ML-based attack. First, it does spectrum sensing in order to distinguish between the two types of the received signals. Second, it performs ML algorithms on the dataset of corrupted NC-OFDM/OFDM signals aiming at spoofing the transmitter. Spectrum sensing is done via Gaussian-mixture variational autoencoder (GMVAE) [19] in an unsupervised manner, i.e., it does not need labels during training. For the spoofing attack part, either supervised and unsupervised algorithms are assumed to be utilized by the adversary in order to infer PHY parameters. The former relies on true labels during training while the latter learns from the structure of raw data itself. For the supervised case, we assume that the adversary trains a deep feed-forward neural network (DNN) to estimate the transmission parameters. For the unsupervised scenario, VAEs are utilized by the adversary to extract representations from the datasets of NC-OFDM/OFDM signals that can be used for PHY spoofing. In the unsupervised scenario, we also develop a new metric based on disentanglement principles [20] to measure the usefulness of the learned representations for PHY spoofing.

We provide numerical results showing that an adversary equipped with ML tools is able to spoof an NC-OFDM system, which was previously considered to be completely secure against cyclostationary based attacks. Furthermore, we demonstrate that the representations learned by the V AEs carry significant information about the PHY characteristics of the NC-OFDM signals, including the total number of subcarriers, the amount of power sent in each subcarrier and modulation schemes (e.g., BPSK and QAM), all of which can be used by the adversary for PHY spoofing. Hence, unlike what is suggested by cyclostationary analysis in [1], [11], these results show that NC-OFDM systems are vulnerable to PHY spoofing if the adversary is equipped with ML tools. However, we also establish that the success of spoofing attacks highly depends on the subcarrier occupancy patterns chosen at the transmitter; the more structured is the band allocation, the better is the performance of the adversary in estimating the transmission parameters. Therefore, in order to secure the NC-OFDM systems against ML-based attacks, the transmitter should employ random subcarrier occupancy patterns, where active subcarriers are chosen in a (pseudo)random fashion to preclude the adversary from correctly inferring the transmission parameters and spoofing the signal.

## C. Notation and organization

Throughout the paper, vectors are denoted with lowercase bold letters while uppercase bold letters are reserved for matrices. The m th element of a vector u is denoted by u ( m ) . Non-bold letters are used to denote scalar values and calligraphic letters denote sets. The spaces of real and complex vectors of length d are denoted by R d and C d , respectively. Also, real and imaginary parts of a complex number a are denoted by R ( a ) and I ( a ) , respectively. The expectation and probability mass (or density) function of a random variable w are denoted by E p ( w ) ( ) · and p ( w ) , respectively, while Pr( ) · is used to denote the probability of an event.

The rest of the paper is organized as follows. The system model is described in Section II. An introduction to cyclostationary analysis and its limitations for PHY spoofing are presented in Section III. In Sections IV and V, PHY spoofing attacks based on unsupervised and supervised learning algorithms are discussed, respectively. Section IV also describes the significance of the learned representations in V AEs for NCOFDM/OFDM signals. We introduce a new metric based on the idea of disentanglement in Section VI to measure the usefulness of the learned representations for PHY spoofing. Finally, we present numerical examples that highlight the performance of learning-based PHY spoofing attacks in Section VII.

## II. SYSTEM MODEL

Consider a system composed of a transmitter (Tx), a receiver (Rx) and an adversary. An important type of attack in this setting is PHY spoofing where an adversary disguises itself as a legitimate transmitter and sends spurious data to the receiver (Fig. 1). Specifically, the adversary overhears the signals sent by the Tx to the Rx, and its goal is to send bogus data to the Rx using signals that have similar PHY characteristics to the

ones sent by the Tx. In this way, the Rx cannot distinguish the source of the original and the bogus data, and by decoding the latter, it might compromise the underlying system security in different ways.

The point-to-point communication link between the Tx and Rx is assumed to operate over a total bandwidth B composed of a set of N subcarriers. The transmitter can either transmit over the whole band in the case of OFDM transmissions, or a subset of subcarriers (known as active subcarriers) in the case of NC-OFDM transmissions. The signal transmitted by the Tx can be written as:

$$s ( t ) & = \sum _ { m = - \infty } ^ { m = + \infty } \sum _ { n = 1 } ^ { N } \mathbf u _ { m } ( n ) s _ { m, n } p _ { m, n } e ^ { j 2 \pi f _ { n } ( t - m T _ { o } ) } g ( t - m T _ { o } ), \\ \text{where} \quad & \sim \bigcap \partial \sim \bigcap \partial \sim \bigcap \mathbb { D } \circ \partial \, \text{the two comments that} \, \text{the book}.$$

where s m,n ∈ C and p m,n ∈ R are the transmitted symbol and a power factor corresponding to the n th subcarrier in the m th time slot, respectively. The total duration of one NCOFDM/OFDM symbol is given by T o = T u + T cp , with T u and T cp being the NC-OFDM symbol duration and the duration of the cyclic prefix, respectively. Furthermore, u is called subcarrier occupancy pattern , which is a binary vector of size N whose elements are zero for inactive subcarriers and one for active subcarriers. Particularly, for an OFDM transmission u amounts to an all-one vector of size N . We assume g ( ) · is a rectangular pulse of width T o centered at T / o 2 . The center frequency of each subcarrier is denoted by f n = n ∆ f where ∆ f = 1 /T u represents the width of each subcarrier.

For each OFDM/NC-OFDM symbol, the Tx chooses the parameters ∆ f , u and N and transmits a signal to the Rx. The positions of active subcarriers in u either follow a certain pattern or are totally random. The adversary seeks to find these transmission parameters in order to generate waveforms similar to (1), inject bogus data in place of s m,n , and transmit them to the receiver. We assume the Rx only decodes data that are being sent over the active subcarriers with the correct ∆ f and N chosen by Tx; otherwise, a decoding failure will occur. Therefore, we utilize bit error rate (BER) at Rx as a measure to evaluate the performance of the adversary in terms of spoofing. If this BER is close to that of the baseline transmission (where the parameters are perfectly known at the Rx), it is indicative of the maximum spoofing performance of the adversary. At the other extreme, a BER close to 0 5 . suggests that the adversary cannot do much in terms of spoofing, i.e., Tx-Rx transmission is secured against PHY spoofing. We note that as Tx may use a different set of transmission parameters to transmit each NC-OFDM/OFDM symbol (e.g. sending over a different set of subcarriers), these parameters need to be estimated by the Rx as well in order to ensure reliable communication for the legitimate parties.

## A. Channel model

The system model in Fig. 1 consists of three channels corresponding to the pairs Tx-Rx (TR), Tx-Adversary (TA) and Adversary-Rx (AR), where each could have a specific channel impulse response (CIR) denoted by h TR ( ) t , h TA ( ) t and h AR ( ) t , respectively, and a different signal-to-noise ratio (SNR). Particularly, the spoofing performance highly depends

Fig. 1. PHY spoofing by an adversary overhearing Tx-Rx transmissions.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00195v2-figure-6d7c3f50-d292-4beb-85c6-d02044632c82.jpg)

TABLE I THREE SETS OF TRANSMISSION PARAMETERS USED FOR NC-OFDM SIGNALS IN EXAMPLE 1.

|   Case |   T u ( µs ) | T 0 ( µs )      |   q |
|--------|--------------|-----------------|-----|
|      1 |          320 | 320 ≤ T 0 ≤ 640 |   5 |
|      2 |          256 | 320 ≤ T 0 ≤ 512 |   4 |
|      3 |          192 | 320 ≤ T 0 ≤ 384 |   3 |

on the SNR of the Tx-Adversary channel, which we call spoofing SNR in the rest of the paper. For all three channels, the received signal by a party is given by the convolution r t ( ) = s t ( ) ∗ h t ( ) + n t ( ) , where n t ( ) is additive white Gaussian noise, and h t ( ) is the corresponding CIR between the two parties. The discrete received samples are given by r t ( ) = r t ( i ) , where i = 0 , . . . , n 1 -1 and n 1 represents the number of (complex) samples. We assume noise samples at different time instances t i 's are independent and identically distributed (i.i.d.) with zero mean and variance N / 0 2 . Denoting s = [ s t ( 0 ) , . . . , s ( t n 1 -1 )] , signal power is computed by E s = ‖ ‖ s 2 /n where ‖·‖ is the l 2 -norm. Then, SNR and SNR per bit equal E /N s 0 and E /N b 0 = E s QN 0 , respectively. One can verify that Q equals N b/N a where N a denotes the number of active subcarriers, and b is the number of bits sent over each subcarrier.

## B. Adversary's model

From the attacker's perspective, we assume the adversary has access to radio equipment for overhearing the transmissions between two legitimate parties, and is able to sample each received signal, and build up a dataset out of these samples. As the adversary is constantly listening to the transmitting terminal, these received signals may be only noise or an NCOFDM/OFDM signal plus noise. Furthermore, we assume adversary has resources for data processing via ML algorithms, and is equipped with a radio transmitter for generating signals with desired parameters and sending them through the AR channel. Specifically, the adversary utilizes ML to perform a two-stage attack. First, it performs spectrum sensing in order to distinguish pure noise from corrupted NC-OFDM/OFDM signals. Then, a spoofing attack is carried out using only the corrupted signals. We note that each entry of the dataset may or may not be associated with the corresponding true transmission parameters ( ∆ f , N , u ) referred to as labels. Depending on the availability of the labels during the training stage, two types of ML algorithms are useful: supervised and unsupervised. The

former makes use of the labels for training the DNNs while the latter exploits possible data structure and clustering methods without using labels.

## III. PHY SPOOFING VIA CYCLOSTATIONARY ANALYSIS

While cyclic prefix is useful to mitigate the effect of intercarrier interference in multicarrier systems, it also enables an adversary to infer basic transmission parameters using cyclostationary analysis [12]. Cyclostationary analysis is based on the auto-correlation function R t, τ ( ) of the transmitted signal, which is calculated as

$$\stackrel { \dots } { \dots }, \, \dots \, \stackrel { \dots } { \dots }, \, \dots \, \stackrel { \dots } { \dots }, \, \stackrel { \dots } { \dots }, \, \stackrel { \dots } { \dots }, \, \stackrel { \dots } { \dots }, \, \stackrel { \dots } { \dots } } \\ R ( t, \tau ) = E [ s ( t ) s ^ { * } ( t - \tau ) ] = \sigma _ { s } ^ { 2 } ( \sum _ { n = 1 } ^ { N } \mathbf u ( n ) e ^ { j 2 \pi f _ { n } \tau } ) \\ \sum _ { m = - \infty } ^ { m = \infty } g ( t - m T _ { 0 } ) g ^ { * } ( t - m T _ { 0 } - \tau ), \, \stackrel { \dots } { \dots } \, \stackrel { \dots } { \dots }, \, \stackrel { \dots } { \dots } } { \dots } \, \stackrel { \dots } { \dots }, \, \stackrel { \dots } { \dots }, \, \stackrel { \dots } { \dots }, \, \stackrel { \dots } { \dots }, \, \stackrel { \dots } { \dots } } \, \stackrel { \dots } { \dots }, \, \stackrel { \dots } { \dots }, \, \stackrel { \dots } { \dots } } \, \stackrel { \dots } { \dots }$$

where σ 2 s = E [ | s m,n | 2 ] . The periodicity of R t, τ ( ) in t allows representing it as a Fourier series sum

$$R ( t, \tau ) = \sum _ { n = 1 } ^ { N } \mathbf u ( n ) R ( \alpha _ { n }, \tau ) e ^ { j 2 \pi \alpha _ { n } t }, \quad \ \ ( 3 ) \quad \text{that} \text{ } i \text{ } a \text{ }$$

where α n = n/T 0 is the cyclic frequency and R α ,τ ( n ) is called the cyclic auto-correlation function (CAF). For OFDM transmissions, this function can provide an adversary with ∆ f = 1 /T u [12], [13]. However, for NC-OFDM transmissions this analysis does not always lead to the correct results as illustrated in the following example.

Example 1: Consider an NC-OFDM signal with a total number of subcarriers N = 64 with occupancy pattern vector u illustrated in Fig. 2, where active subcarriers are spaced q subcarriers apart (known as interleaved subcarriers). The transmitter chooses two transmission parameters q and T u based on one of the cases listed in Table I and sends (1) over the channel. Then, the adversary receives the noisy signal, samples it at an arbitrary rate 1 /T s above Nyquist frequency to obtain M samples and estimates the CAF function using

$$\hat { R } ( \alpha, \bar { \tau } T _ { s } ) = \frac { 1 } { M } \sum _ { n = 1 } ^ { M } r [ n ] r ^ { * } [ n - \bar { \tau } ] e ^ { - j 2 \pi \alpha n T _ { s } }, \quad ( 4 ) \quad \text{is not } 1 \\ \dim e \, \text{dims}.$$

where r n [ ] denotes the n th obtained sample and ¯ τ belongs to the set of integers. To extract q and T u corresponding to the original transmission, the adversary must look at the locations of the absolute peaks in (4) at α = 0 as illustrated in Fig. 3. We note that for all three cases, CAF-based analysis results in the same plot. In other words, the adversary cannot decide which set of transmission parameters is used by the transmitter. glyph[squaresolid]

In the next sections, we study how the adversary can make use of deep learning models for PHY spoofing. Our main motivation for taking this approach comes from the fact that analytical approaches seem to be failing at spoofing even for simple NC-OFDM systems, which might give PHY designers the idea that the NC-OFDM PHY is secure. We investigate the PHY spoofing performance of an adversary equipped with deep learning tools, which of course comes at the expense of a

Fig. 2. Interleaved subcarrier occupancy pattern with interleaving factor q in an NC-OFDM symbol.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00195v2-figure-5d6b58e9-4482-4c90-96d5-d075a5b5c797.jpg)

Fig. 3. Estimated CAF (4) at α = 0 for the cases in Table I at spoofing SNR of 5 dB (no fading), where τ = ¯ τT s , ¯ τ ∈ -[ 400 400] , and T s = 10 -6 .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00195v2-figure-b466ec69-b32f-47da-96e8-71c7f0b16f2e.jpg)

higher cost (associated with training), and answer the question that if/when it is able to do so and what are the parameters that affect its performance.

## IV. PHY SPOOFING VIA UNSUPERVISED LEARNING

We assume the adversary utilizes variational autoencoders (VAEs) for PHY spoofing in an unsupervised manner. VAEs are designed based on the idea of variational inference, which can be described via a latent variable model (LVM). An LVM is a generative model for a dataset D = { x i } M i =1 consisting of M i.i.d. samples of a continuous random variable x . LVM is defined over a joint distribution p θ ( x z , ) parameterized by θ ∈ R j where z is an unobserved continuous random variable known as the latent variable (feature space) and j denotes the model size. The joint density p θ ( x z , ) is denoted by p θ ( x z , ) = p ( z ) p θ ( x z | ) where p ( z ) is a fixed prior over the latent space and p θ ( x z | ) is the conditional generator. Then, the inference problem amounts to finding the posterior of the hidden random variable z , i.e., p θ ( z x | ) = p θ ( x z , ) ∫ p θ ( x z , ) d z . However, this integration is not tractable for complicated datasets D consisting of highdimensional data samples x i 's, and alternative methods must be utilized in practice to compute it approximately. Variational inference is a promising optimization-based candidate for this purpose, and has enjoyed a lot of attention during the past few years [20]-[22]. Particularly, a VAE learns an optimal model ( θ ∗ ) which maximizes the probability of data samples by maximizing the expectation of the evidence probabilities, i.e.,

$$\mathbb { E } _ { p ( \mathbf x ) } [ \log p _ { \theta } ( \mathbf x ) ] = \mathbb { E } _ { p ( \mathbf x ) } [ \log \mathbb { E } _ { p ( \mathbf z ) } [ p _ { \theta } ( \mathbf x | \mathbf z ) ] ], \quad ( 5 )$$

over θ where p ( x ) denotes the underlying true distribution of the data in the dataset D . However, this requires computing ∫ z p θ ( x z | ) p ( z ) d z which is not tractable. Instead, [21] obtains a lowerbound called evidence lower bound (ELBO) for individual data sample x i in (5), which is given by

$$\text{d with} \underset { \text{se of a} } { \mathcal { L } } _ { E L B O } ( x ^ { i } ) = - \mathbb { D } _ { K L } ( q _ { \phi } ( z | x ^ { i } ) | | p ( z ) ) + \mathbb { E } _ { q _ { \phi } ( z | x ^ { i } ) } [ \log p _ { \theta } ( x ^ { i } | z ) ].$$

Fig. 4. A schematic of a VAE where encoder and decoder are chosen to be Gaussian distributions with mean vector µ and diagonal covariance matrix with variances σ 2 . These are parameterized by two DNNs trained based on (7). z and ˆ x i are generated by sampling from the distributions corresponding to the encoder and the decoder, respectively.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00195v2-figure-43fd1de6-bcf4-42f5-8484-f9a294ca0b8a.jpg)

Then, a VAE solves the following optimization problem,

$$\max _ { \theta, \phi } \ \mathbb { E } _ { p ( \mathbf x ) } [ \mathcal { L } _ { E L B O } ( \mathbf x ) ] \quad \quad \quad ( 7 ) \ \stackrel { \dots } { \text{NC-} }.$$

where θ ∈ R j and φ ∈ R h are optimization variables of dimension j and h , respectively. KL divergence between two continuous random variables with distributions p x ( ) and q x ( ) is defined as D KL ( p || q ) = ∫ ∞ -∞ p x ( ) log( p x ( ) q x ( ) ) dx . We call q φ ( z x | i ) a probabilistic encoder, since given a data sample x i it produces a distribution (e.g. a Gaussian) over the possible values of the code z from which the data sample x i could have been generated. Similarly, we call p θ ( x i | z ) a probabilistic decoder. We choose both encoder and decoder to be Gaussian with diagonal covariance matrix whose parameters are estimated by DNNs θ and φ , respectively (see Fig. 4).

The D KL (KL divergence) term in (6) can be seen as a regularizer that encourages the posterior q φ ( z x | ) to be close to the prior p ( z ) , and the second term is called reconstruction loss. Particularly, when ELBO is maximized the KL-divergence term approaches zero. This KL term can be computed analytically as a closed-form expression by choosing specific distributions, e.g., Gaussian and Bernoulli distributions, for q φ ( z x | ) and p ( z ) [21]. Afterward, one can efficiently minimize the negative of ELBO using the mini-batch gradient descent algorithm [21]. Mini-batch gradient descent is a variant of the gradient descent algorithm that splits the training dataset into small batches that are then used to calculate the loss function followed by updating the model parameters.

One of the long-standing problems in ML literature is learning representations from large datasets in an unsupervised manner that facilitates the downstream learning tasks (e.g., classification). VAEs have shown great potential [23] for learning such so-called 'useful' representations. Although it is not clear how to define/measure usefulness in unsupervised settings, researchers have developed the concept of disentangled representation that offers several advantages. Data samples in this concept are assumed to be generated via a finite number of generative factors k , . . . , k 1 f , each representing notions like position, scale, rotation, etc., in the case of an image sample for instance. Although there is no canonical definition for a disentangled representation, [22] points out that the learned representations are called disentangled if changes in one of the generative factors of the data are mirrored by the encoder in Fig. 4 in exactly one of the latent variables (i.e., one dimension of the latent space). We will discuss this in more depth in Section VI, mention the weaknesses associated with this definition, and propose a new metric to overcome some of them for the datasets of NC-OFDM/OFDM signals. A VAE can encourage learning disentangled representations by choosing p ( z ) ∼ N ( 0 I , ) , which corresponds to different latent variables being uncorrelated. However, this choice is not enough to achieve a disentangled representation from large datasets with high-dimensional data samples since the VAE objective function in (6) usually incurs a trade-off between the reconstruction loss and the KL divergence term that determines the disentanglement level. Hence, researchers have been looking for ways to not sacrifice one for the other by redesigning VAEs. In this paper, we will focus on four of the most effective techniques for learning disentangled representations and investigate their performances in the context of spoofing NC-OFDM/OFDM signals.

- · β -VAE : The authors in [23] proposed to weight the KL divergence term in (6) by a real-valued factor β &gt; 1 to encourage the VAE to learn disentangled representations. Therefore, the ELBO for data sample x i in β -VAE is

$$\mathcal { L } _ { E L B O } ^ { \beta } ( { \mathbf x } ^ { i } ) = & - \beta \, \mathbb { D } _ { K L } ( q _ { \phi } ( { \mathbf z } | { \mathbf x } ^ { i } ) | | p ( { \mathbf z } ) ) \\ & + \mathbb { E } _ { q _ { \phi } ( { \mathbf z } | { \mathbf x } ^ { i } ) } [ \log p _ { \theta } ( { \mathbf x } ^ { i } | { \mathbf z } ) ]. \quad ( 8 )$$

An ELBO with a larger β encourages learning disentangled representations as it penalizes more the dissimilarities between the learned posterior and the prior p ( z ) ∼ N ( 0 I , ) by weighing the KL term. However, this has been shown to sacrifice the reconstruction ability of the V AE in large datasets [23].

- · DIP-VAE : Disentangled inferred prior (DIP) VAE was proposed in [20]. The authors add an extra term D KL ( q φ ( z ) || p ( z )) to ELBO (6) where q φ ( z ) = ∫ q φ ( z x | ) p ( x ) d x is the learned prior. By explicitly minimizing this term one can effectively encourage learning disentangled latent variables without the need for weighting the KL term in ELBO, which could result in higher reconstruction losses. In this vein, DIP-V AE matches the moments of two distributions q φ ( z ) and p ( z ) . In particular, it encourages the covariance of q φ ( z ) to be the same as the covariance of p ( z ) to minimize D KL ( q φ ( z ) || p ( z )) . Using the law of total covariance, the covariance of z ∼ q φ ( z ) can be written as

$$\text{is} \quad C o v _ { q _ { \phi } ( z ) } ( z ) & \coloneqq \mathbb { E } _ { q _ { \phi } ( z ) } \left [ ( z - \mathbb { E } _ { q _ { \phi } ( z ) } [ z ) ] ( z - \mathbb { E } _ { q _ { \phi } [ z ] } [ z ] ) ^ { T } \right ] \\ \text{g., } & = \mathbb { E } _ { p ( x ) } [ C o v _ { q _ { \phi } ( z | x ) } ( z ) ] + C o v _ { p ( x ) } [ \mathbb { E } _ { q _ { \phi } ( z | x ) } ( z ) ]. \\ \text{or}$$

For a dataset with real-valued data samples, q φ ( z x | ) can be chosen to be N ( µ φ ( x ) , Σ ( φ x ) ) [21] where µ φ ( x ) and Σ ( φ x ) represent mean and covariance of the Gaussian z for a given x as a function of the parameter φ . Then, plugging the mean and covariance of q φ ( z x | ) in (9), we get Cov q φ [ z ] ( z ) = E p ( x ) [Σ φ ( x )] + Cov p ( x ) [ µ φ ( x )] which has to be close to the identity matrix for the case when p ( z ) ∼ N ( 0 I , ) . By using l 2 -norm as the measure of the proximity, DIP-VAE solves the following optimization problem glyph[negationslash]

$$\max _ { \theta, \phi } & \ \mathbb { E } _ { p ( \mathbf x ) } \left [ \mathcal { L } _ { E L B O } ( \mathbf x ) \right ] - \lambda _ { o d } \sum _ { i \neq j } [ C o v _ { p ( \mathbf x ) } [ \mu _ { \phi } ( \mathbf x ) ] ] _ { i j } ^ { 2 } - \\ & \lambda _ { d } \sum _ { i } ( [ C o v _ { p ( \mathbf x ) } [ \mu _ { \phi } ( \mathbf x ) ] ] _ { i i } - 1 ) ^ { 2 },$$

where L ELBO is the same as (6), and λ d and λ od are two hyper-parameters controlling penalties induced by the diagonal and the off-diagonal components in Cov q φ ( z ) ( z ) , respectively.

- · FactorVAE : As mentioned previously, weighting the KL term D KL ( q φ ( z x | ) || p ( z )) by a β &gt; 1 could negatively impact the reconstruction performance of VAE. Mathematically, this can be seen from

$$\mathbb { E } _ { p ( x ) } [ \mathbb { D } _ { K L } ( q _ { \phi } ( z | x ) | | p ( z ) ) ] = \mathbb { I } ( x ; z ) + \mathbb { D } _ { K L } ( q _ { \phi } ( z ) | | p ( z ) ), \quad \text{feed-fo} \\ \quad \text{and} \ \sigma _ { a } ^ { 2 }.$$

where I ( x z ; ) is the mutual information between x and z . Therefore, penalizing D KL ( q φ ( z x | ) || p ( z ) is a doubleedged sword. On the one hand, it forces q φ ( z ) to be close to p ( z ) = N ( 0 I , ) , and encourages learning disentangled representations. On the other hand, by penalizing I ( x z ; ) it encourages learning a z independent of x , which would limit the amount of information stored in z about x . Thus a larger β leads to a better disentanglement but reduces the reconstruction quality. Similar to DIP-VAE, FactorVAE avoids this conflict by augmenting D KL ( q φ ( z ) || p ( z )) to the ELBO (6) in order to directly encourage independence in the latent variables, which results in the following objective:

$$\max _ { \theta, \phi } \mathbb { E } _ { p ( \mathbf x ) } \left [ \mathbb { E } _ { q _ { \phi } ( \mathbf z | \mathbf x ) } [ \log p _ { \theta } ( \mathbf x | \mathbf z ) ] \right ] - \begin{array} { c } \text{$m$ ouc} \\ \text{dimens} \\ \text{called} \\ \mathbb { E } _ { p ( \mathbf x ) } \left [ \mathbb { D } _ { K L } ( q _ { \phi } ( \mathbf z | \mathbf x ) | | p ( \mathbf z ) ) \right ] - \gamma \mathbb { D } _ { K L } ( q _ { \phi } ( \mathbf z ) | | p ( \mathbf z ) ), \\ \text{$obtains} \\ \text{where} \, $n(\mathbf z \nmid \mathbf i$ is accumulated to be of the form $\Gamma^{J}$} \quad $n(\mathbf z \nmid \mathbf u$ and} \end{array}$$

where p ( z ) is assumed to be of the form ∏ J j =1 p z ( j ) and J denotes dimension of z . Although the idea of directly minimizing D KL ( q φ ( z ) || p ( z )) was used in DIP-VAE as well, FactorVAE takes a different approach towards achieving this goal. Specifically, FactorV AE estimates the density ratio,

$$\mathbb { D } _ { K L } ( q _ { \phi } ( \mathbf z ) | | p ( \mathbf z ) ) = \mathbb { E } _ { q _ { \phi } ( \mathbf z ) } \left [ \log \frac { q _ { \phi } ( \mathbf z ) } { p ( \mathbf z ) } \right ], \quad ( 1 3 ) \quad \text{pattern} \quad \text{a toy $\epsilon$} \\ \sim \epsilon \bullet \infty$$

via density-ratio trick [24]. For each mini-batch, it generates samples from both q φ ( z ) and p ( z ) , and approximates (13) by a model D ψ parameterized by a DNN ψ , which takes a sample z as input and outputs the probability that z belongs to q φ ( z ) . Then, utilizing

$$\mathbb { D } _ { K L } ( q _ { \phi } ( \mathbf z ) | | p ( \mathbf z ) ) = \mathbb { E } _ { q _ { \phi } ( \mathbf z ) } [ \log \frac { D _ { \psi } ( \mathbf z ) } { 1 - D _ { \psi } ( \mathbf z ) } ], \ \ ( 1 4 ) \ \ \text{transm} \\ \text{each si} \\ \text{traverse}$$

(12) can be jointly maximized over the set of parameters ψ, θ, φ , each of which is taken to be a DNN in this work.

## A. Learning useful representations from NC-OFDM signals

In this section, we describe training of VAEs on a dataset D of NC-OFDM signals whose entries consist of samples of an NC-OFDM signal s t ( ) in (1) obtained by

$$s ( k T _ { s } ) = \sum _ { n = 1 } ^ { N } \mathbf u ( n ) s _ { 0, n } e ^ { j 2 \pi f _ { n } ( k T _ { s } ) }, k = 0, \dots, n _ { 1 } - 1, \ ( 1 5 ) \quad \text{ reconstruct} \quad \text{(such)} \quad \text{where} \, \mathfrak { c }$$

where 1 /T s denotes the sampling rate. We concatenate the real and imaginary parts of the samples in (15) to build a single sample x i of size d = 2 n 1

in the form x i = [ R ( s (0)) , R ( s T ( s )) , . . . , R ( s (( n 1 -1) T s )) , I ( s (0)) , I ( s T ( s )) , . . . , I ( s (( n 1 -1) T s ))] for D . We have chosen encoder q φ ( z x | ) and decoder p θ ( x z | ) to be Gaussian with diagonal covariance matrix having means mu φ and µ θ , and variances σ 2 φ , σ 2 θ , respectively. We note that the learned representations z are distributed around the mean of q φ ( z x | ) , denoted by µ φ , and they approach µ φ when σ 2 φ goes to zero. Encoder (resp., decoder) is modeled with a fully connected feed-forward DNN whose outputs are µ φ and σ 2 φ (resp., µ θ and σ 2 θ ). These DNNs have 5 hidden layers with 200 , 400 , 600 , 400 , and 200 number of neurons in each layer. We also have trained DNNs of larger parameter spaces, but the performance of the networks did not improve noticeably. The prior p ( z ) is also chosen to be a Gaussian distribution with zero mean and identity covariance matrix, which makes it possible to compute the KL term in (6) analytically [21]. We build two NC-OFDM datasets whose signals are generated by two different subcarrier occupancy patterns, and investigate the properties of the learned representations by the FactorVAE (12) with γ = 5 , which has shown to be able to find disentangled representations effectively (see Section VII). Training is done via mini-batches of size 100 with a learning rate of 0 0005 . over a dataset of size 500 000 , . In order to study what information has been encoded to each dimension of the latent space, we use a common technique called latent traversal . After training a VAE, latent traversal obtains the representation z corresponding to a data sample x i . To study what information the i th latent variable ( z i ) represents about x , latent traversal changes the value of z i (e.g. between [ -3 3] , ) while fixing the other latent variables and studies the corresponding changes induced by the decoder in the fast Fourier transform (FFT) of the reconstructed sample ˆ x .

First, we consider a dataset of NC-OFDM signals with a structured band allocation based on 3 different occupancy pattern vectors depicted in Fig. 5. We note that this is given as a toy example, which enables us to fully describe the properties of the learned latent space by a V AE through choosing a small number of subcarriers N = 8 with only 3 distinct occupancy patterns. The number of latent variables in FactorV AE is set to N z = 16 , p n ∈ [1 , 2] , n = . . . , N , where a larger p n indicates a higher SNR for a fixed noise variance N 0 . Binary phase-shift keying (BPSK) is utilized as the modulation technique at the transmitter. Also, n 1 = 16 complex samples are collected from each signal (15) for building the dataset. We have done latent traversal on a trained VAE for latent variables, six of which are depicted for instance in Fig. 7, where the input signal x to the VAE is a signal from Case 1 depicted in Fig. 5. We observe that the VAE only encodes information in 5 distinct latent variables z 16 , z 12 , z 13 , z 15 and z 9 , which are called informative latent variables and control the amount of power in 5 distinct active subcarriers depicted in Fig. 5. The other 11 variables are uninformative (e.g., z 5 ) that carry no information about x as changing them does not have any effect on the reconstructed sample. As we chose p ( z ) ∼ N (0 , I ) , we note that the learned representations lie within a continuous space whose dimensions capture the amount of power in different subcarriers as suggested by Fig. 7. Specifically, changing an informative latent variable could result in generating an output ˆ x by the decoder that belongs to a different case than that of x .

Fig. 5. Three different band allocations based on which we have generated the NC-OFDM signals in the dataset. An inactive subcarrier is denoted by dashed lines.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00195v2-figure-6e2402d4-3f95-491a-9d5c-5e3c81e04f70.jpg)

Fig. 6. VAE maps the NC-OFDM signals to a continuous space z . Latent traversal for z i is shown by an arrow where x i and ˆ x i belong to the cases denoted by the arrow's tail and tip, respectively.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00195v2-figure-038eea4c-b4e2-4d94-b87b-34df6e31f9ea.jpg)

For example, by changing z 13 (and fixing the other variables), a signal from Case 2 can be generated while the input signal belongs to Case 1 . One can interpret this as the decoder is changing the amount of power in subcarriers 7 and 4 through changing z 13 . Similarly, by changing z 9 a signal from Case 3 can be generated. This is illustrated in Fig. 6 for the whole space of z , which shows how the VAE exploits the subcarrier occupancy pattern for finding a continuous representation space that covers all signals in the training dataset.

Next, we consider NC-OFDM signals with random occupancy pattern vectors where active subcarriers are chosen in a random fashion, i.e., each element in u is 0 or 1 with probability 0 5 . . Similar to the structured case, p n ∈ [1 , 2] and BPSK is used as the modulation technique. We consider the total number of subcarriers to be N = 16 ( 2 16 different subcarrier occupancy patterns), number of latent variables N z = 20 and n 1 = 32 . Latent traversal, in this case, shows that informative latent variables control the amount of power in exactly one subcarrier in this case (Fig. 8). As an example, one can see that changing z 2 results in changing the power in the 12 th subcarrier of ˆ x . In other words, z 2 represents the relative amount of power in the 12 th subcarrier. A similar graph to Fig. 6 can be sketched for this case as well where there are 2 16 different band allocations. We note that 16 out of 20 latent variables correspond to 16 different subcarriers, and the remaining 4 variables are uninformative. Therefore, one can see that VAE is capable of learning a representation z where each latent variable z i corresponds to the relative amount of power in a unique subcarrier.

## B. Spectrum sensing via VAEs

For an adversary that is constantly listening to the transmitting terminal for a certain amount of time, the received signals could either be just noise or corrupted NC-OFDM signals. PHY spoofing involves processing the latter in order to infer

Fig. 7. Latent traversal for a dataset of NC-OFDM signals based on Fig. 5. x belongs to Case 1 . FFTs ( 8 points) of the reconstructed signals ˆ x are depicted.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00195v2-figure-1462f9e9-6554-4b6b-9b72-13f0d094e7e1.jpg)

Fig. 8. Latent traversal for a dataset of NC-OFDM signals with random band allocation. FFTs (16 points) of the reconstructed signals ˆ x are depicted.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00195v2-figure-85eff57a-96ce-4fe9-b680-e4b88af467c1.jpg)

certain transmission parameters. Therefore, it is important for the adversary to distinguish between the noise only signals and the transmitted signals; this process is known as spectrum sensing. We utilize Gaussian mixture (GM) VAEs [19] for this purpose, which similar to VAEs, are generative models built upon the idea of variational inference. However, unlike VAEs which assume the data are generated from one continuous latent variable z , GMVAEs consider one continuous and one discrete latent variable denoted by z and y , respectively, where z itself is also assumed to be generated from a continuous latent variable w . ELBO for GMVAEs is obtained in [19] for the case where the prior distribution of z and w is Gaussian, while y follows a categorical distribution with a predefined number of classes denoted by k . Once trained to maximize the ELBO, GMVAEs cluster the data into k different groups based on their distributions. For the PHY spoofing scenario where the training dataset consists of signals belonging to either of the two aforementioned types, GMVAE learns to assign signals of the same type to the same cluster. Furthermore, as pure-noise signals tend to have lower energy compared to the corrupted signals, one can distinguish between the clusters by comparing the histograms of energies of the signals in each

cluster. We note that this spectrum sensing approach is done in an unsupervised manner without the need for any labels.

## C. VAEs for PHY spoofing

We now study how VAEs can be leveraged to compromise the PHY security in NC-OFDM/OFDM systems. As shown in Section IV-A, VAEs can learn important information about the NC-OFDM transmission parameters in an unsupervised manner. Specifically, a V AE extracts the following information about the NC-OFDM signals:

- · Subcarrier occupancy pattern : The learned representation z j corresponding to a subcarrier (correspondence can be found by latent traversal) that is inactive in a data sample x i is close to zero as the power sent on that subcarrier is zero. Therefore, the subcarrier occupancy pattern can be inferred by applying a threshold test to the learned representations (threshold value depends on the SNR of the received signals and is estimated by cross-validation).
- · Modulation scheme : Through utilizing different modulation schemes in NC-OFDM signals, we have observed that the learned V AEs allocate one (two) latent variable(s) to each subcarrier when real (complex) symbols are being sent through each subcarrier. This can be justified by noting that VAEs treat the real and imaginary parts of a symbol transmitted through each subcarrier as distinct generative factors of the data and allocate separate latent variables to capture each one. This fact can be utilized to distinguish between modulation schemes that use real versus complex symbols (e.g., BPSK versus QAM). Also, as higher-order modulations send more power through each subcarrier, latent traversal can be utilized to distinguish them from lower-order ones. However, identifying the modulation scheme, in general, may need resorting to specific classifiers as discussed in [18].
- · Total number of active subcarriers : As VAEs treat the real and imaginary powers in active subcarriers as generative factors of the dataset, the total number of active subcarriers in the whole dataset amounts to the number of informative latent variables when real symbols are being sent through each subcarrier (like in BPSK modulation), and is half this number when complex symbols (like in QAM or PSK modulation) are being used.

For example, for the random allocation case considered in Fig. 8, we have observed that one latent variable encodes each subcarrier, which means BPSK is used as the modulation scheme, and there are 16 informative latent variables, which indicates the number of subcarriers is N = 16 . It is shown in section VII that V AEs are agnostic to the true signal bandwidth in these inferences. In other words, as long as signals are sampled above the Nyquist rate and stored in the dataset, the rate at which an adversary is sampling the received signals doesn't matter. This is particularly important from an adversary point of view because as pointed out in [11], it is a major hurdle to estimate the bandwidth in the case of NC-OFDM signals.

We now incorporate these findings with the system model described in Section II. Here, the adversary only has access to

Fig. 9. Block diagrams of two DNNs used for estimating transmission parameters by the adversary.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00195v2-figure-468712a3-4c13-40c9-9e6e-60385589d6f2.jpg)

Fig. 10. Schematic of a DNN with 3 hidden layers.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00195v2-figure-f8397bda-8719-4d25-a765-fac9f63d8d37.jpg)

a corrupted version of s t ( ) , denoted by r t ( ) in Section II-A. As the training data samples are noisy in this case, we propose the following change to the original VAE objective function (6):

$$\underset { \omega } { t } \underset { \omega } { \text{$t$} } \sum } \quad \mathcal { L } ^ { \prime } ( x ) = - \mathbb { D } _ { K L } ( q _ { \phi } ( \mathbf z | x ) | | p ( \mathbf z ) ) + \eta \mathbb { E } _ { q _ { \phi } ( \mathbf z | x ) } [ \log p _ { \theta } ( x | \mathbf z ) ], \\ \underset { \omega } { \text{$t$} } \quad. \quad. \quad. \quad. \quad. \quad. \quad. \quad. \quad. \quad. \quad.$$

where we have weighted the reconstruction loss with a constant η &lt; 1 which is inversely proportional to SNR of the received signals and is obtained using cross-validation. This would lessen the reconstruction penalty and mitigate the effect of noise in the reconstructed signals by allowing V AEs to generate samples that are different than the input noisy ones. We note that the resulting bound remains a lower bound to the evidence p ( x ) . We have seen through our experiments in Section VII that this greatly improves the spoofing performance (which depends on the accuracy of the learned representations) in the case of noisy samples. After training a V AE on the dataset of received signals, during the test stage, the adversary inputs a signal to the trained V AE and estimates the aforementioned transmission parameters for PHY spoofing.

## V. PHY SPOOFING VIA SUPERVISED LEARNING

In this section, we assume the adversary has access to true labels for each data sample (i.e., a noisy received NCOFDM/OFDM signal) in the dataset and makes use of them in the training stage. The adversary trains fully connected DNNs to estimate transmission parameters. Similar to the unsupervised spoofing, we assume that the adversary builds up a dataset out of the samples of the received noisy signals denoted by r kT ( s ) in Section II-A to extract n 1 (complex) samples. Fig. 10 demonstrates a general schematic of a DNN. Besides, Fig. 9 illustrates two DNNs utilized for estimating transmission parameters, where the specifications of the upper DNN are:

TABLE II

NUMBER OF NEURONS IN THE HIDDEN LAYERS FOR THE DNNS DESCRIBED IN FIG. 9.

| Hidden layer   |   1 |   2 |   3 |   4 |
|----------------|-----|-----|-----|-----|
| Upper DNN      | 200 | 400 | 200 |  50 |
| Lower DNN      | 350 | 600 | 400 | 200 |

- · Input: x i = [ R ( r (0)) , . . . , R ( r (( n/ 2 -1) T )) , I ( r (0)) , . . . , I ( r (( n/ 2 -1) T ))] .
- · Output: Estimated total number of subcarriers and estimated subcarrier width, i.e., [ ̂ N, ̂ ∆ ] f .
- · Architecture: See Table II. The activation function for all the layers is chosen to be rectified linear unit (ReLU) function.
- · Training: We minimize the l 2 -loss ‖ [ ̂ N, ̂ ∆ ] f -[ N, ∆ ] f ‖ 2 , where N and ∆ f are the true parameters. Learning rate is set to 0 0001 . .

The properties of the DNN utilized to infer u are described as follows:

- · Input: The same input vector described for the above DNN.
- · Output: Estimated subcarrier occupancy pattern vector u .
- ̂ · Architecture: See Table II. The activation function for all the layers is chosen to be ReLU function except for the output layer, where the sigmoid function is used. The adversary further converts the output values to 0 's and 1 's using a hard-thresholding function defined by h t ( ) = { 0 , 0 ≤ t ≤ 0 5 . ,
- 1 , 0 5 . &lt; t ≤ 1 .
- · Training: The DNN is trained by minimizing Dist ( u u , ̂ ) = ∑ N i =1 ( u ( ) i -̂ u ( )) i 2 where u is the true subcarrier occupancy pattern.

We investigate the performance of the adversary when Tx is transmitting signals through 4 different types of subcarrier occupancy patterns. 1 ) A single contiguous block of active subcarriers (OFDM signal). 2 ) NC-OFDM signal whose band allocation is illustrated in Fig. 11 where integer q denotes the number of inactive subcarriers between active ones and integer c denotes the length of a block of contiguous active subcarriers. We refer to it as Pattern 1 in the following. For training and test purposes, we generate signals of this type with q in the range [1 , 6] and c in the range [4 , 43] where the location of c in the band is considered to be random. 3 ) NC-OFDM signal whose band allocation is illustrated in Fig. 12 and is referred to as Pattern 2 . Here, there are two blocks of contiguous active subcarriers of length c , which is in the range [3 , 15] , and three different interleaved factors q 1 , q 2 and q 3 , all belonging to the range [1 , 8] . 4 ) NC-OFDM signal where the bands are allocated in a random fashion without any specific pattern. In other words, we assume the transmitter flips a coin to decide whether a subcarrier is active or inactive.

The adversary receives signals of one of the above types at a certain SNR (spoofing SNR) during the training stage and trains the aforementioned DNNs on the corresponding dataset (one of the four datasets of signals). Then, it utilizes the trained model in the test stage to estimate the transmission parameters and PHY spoofs an unknown signal that has the same occupancy

Fig. 11. Subcarrier occupancy pattern 1 ; location of the contiguous block ( c ) is random.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00195v2-figure-5f48d30c-188f-411c-b94c-eb74633e5394.jpg)

Fig. 12. Subcarrier occupancy pattern 2 ; locations of the contiguous blocks are random.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00195v2-figure-07d2347a-0e87-4cfb-a9b0-86adfade1332.jpg)

pattern type as in the training dataset. In this way, we are able to study how the choices of occupancy patterns affect the spoofing performance of the adversary. The number of signals in the training and test datasets for each case is set to 2 × 10 6 and 25 × 10 4 , respectively. As mentioned in Section II, since the Tx may change the transmission parameters (particularly u ) while transmitting an NC-OFDM symbol, the Rx also needs to infer these parameters, which can be done via DNNs as described above for the adversary. This is a fair model as the only advantage Rx has over the adversary is a better receiving channel.

## A. Utilizing supervised learning to solve Example 1

We discussed in section III how CAF-based analysis fails to infer parameters of a simple NC-OFDM signal. Here, we now consider the same problem described in Example 1 again, and utilize a DNN to solve it in a supervised manner. Here, as the underlying dataset is simpler (there are only 3 different transmission cases) in comparison to the problem described in the previous section, we are able to solve the problem with a much simpler model. Specifically, we consider two architectures for the DNN. The first one has a hidden layer with 50 neurons, and the second one has 3 hidden layers of 500 , 250 and 50 neurons per each layer. The number of neurons at the input layer in both DNNs is set to 150 . The properties of the DNN which estimates the set of parameters [ q, T u ] are as follows.

- · Input: Samples of the received signal (similar to the previous DNNs).
- · Output: Estimated parameters [ˆ q, T ̂ u ] .
- · Training: We minimize the l 2 -loss ‖ [ q, T u ] -[ˆ q, T ̂ u ] ‖ 2 , where [ q, T u ] are the true parameters.

As another approach, we consider a DNN which classifies between the three different transmission cases introduced in Table I. The specifications for this DNN are as follows.

- · Input: Samples of the received signal (similar to the previous DNNs).
- · Output: ˆ p = [ˆ p , p 1 ˆ 2 , p ˆ ] 3 where ˆ p i denotes the estimated probability that the inputs correspond to case i , and ∑ i ˆ p i = 1 .
- · Training: We minimize the cross-entropy loss between ˆ p and p = [ p , p 1 2 , p 3 ] , i.e., -∑ i p i log ˆ p i where p i represents the true probability that the signal belongs to case i .

For solving this problem, we consider training and test sets of size 5 × 10 5 and 3 × 10 5 , respectively, which consist of the signals corresponding to the three transmission cases in Table I at spoofing SNR of 5 dB. The performances of these DNNs are presented in Section VII, showing that they are indeed capable of estimating the transmission parameters that CAF had failed to infer.

## VI. DISENTANGLEMENT METRICS AND USEFUL REPRESENTATIONS

Despite its importance, measuring the usefulness of the learned representation in a V AE model is not yet a well-studied subject. This is partly due to the context-dependent nature of the problem that makes it challenging for researchers to reach a consensus on this matter. As mentioned in Section IV, disentanglement is one of the features that is particularly desirable for the learned representations in a variety of applications. In this section, we characterize the properties of a disentangled representation by utilizing/extending the ideas from ML literature, describe why they are useful, and devise appropriate metrics to measure the disentanglement performance in the case of NC-OFDM datasets. Recall that [22] assumes a finite number of generative factors k , . . . , k 1 f are used to generate the data samples in the dataset, where each factor could represent notions like position, scale, rotation, etc., in the case of image samples, or amount of power sent over distinct subcarriers for NC-OFDM/OFDM signals (see Section IV-A). Then, [22] calls the learned representations disentangled if changes in one of the generative factors of the data are mirrored by the encoder q φ ( z x | ) in Fig. 4 in exactly one of the latent variables (i.e., one dimension of the latent space). We describe such an encoder to function in a disentangled manner. By extending this definition, we call the learned representations z disentangled if decoder p φ ( x z | ) functions in a disentangled manner as well, i.e., it employs only one latent variable for each generative factor during the reconstruction process. In the remainder of this section, we discuss how to measure the disentangled performance of the encoder and decoder in VAEs utilizing existing and newly proposed metrics.

In order to measure the performance of the encoder in achieving the disentangled representations, we will utilize the metrics proposed by Haggin et al. in [23] and by Kim et al. in [22]. The authors in [23] introduce a quantitative metric for measuring disentanglement assuming generative factors k , . . . , k 1 f of the dataset are known. This metric works as follows. Choose a data sample x 0 and obtains its corresponding representation z 0 via the encoder of a trained VAE. Then, generate L data samples { x i } L i =1 by fixing value of a generative factor k l ( l = 1 , . . . , f ) while changing values of the other factors uniformly at random in an interval (e.g. [ -3 3] , ). Next, find their corresponding learned representations { z i } L i =1 , and use 1 L ∑ L i =1 | z i -z 0 | and the fixed factor's index ( ) l as a training sample to train a linear classifier where l is treated as label. Then, the correct classification rate achieved by this classifier on a test set (generated in the same way as the training set) is reported as the metric. A more stringent metric for disentanglement is proposed in [22], which works as follows. Choose a generative factor ( k l ), generate data { x i } L i =1 with this factor fixed while the others' values are changed randomly, and obtain their corresponding learned representations { z i } L i =1 . Then, normalize each dimension of z i , i = 1 , . . . , L , by its empirical standard deviation computed over { z i } L i =1 to obtain normalized representations { ¯ z i } L i =1 . The empirical variance for an arbitrary real-valued vector w = [ w , w , . . . , w 1 2 h ] of length h is defined as

$$\widehat { V a r } ( \mathbf w ) = \frac { 1 } { 2 h ( h - 1 ) } \sum _ { i, j = 1 } ^ { h } ( w _ { i } - w _ { j } ) ^ { 2 }. \quad ( 1 7 )$$

Then, compute the empirical variances of each dimension in { ¯ z i } L i =1 , which are denoted by [ v , . . . , v 1 N z ] . Afterward, the index of the dimension with the lowest variance ( argmin i v i ) and the fixed factor index l provide one training sample for the classifier. The performance of this classifier (measured between 0 and 100 ) on the test set is reported as the final metric.

Next, we evaluate the performance of the VAE's decoder in achieving disentangled representations utilizing latent traversal method described in Section IV-A. In the case of disentangled representations, each latent variable governs a specific generative factor in the reconstructed sample through the decoder. Algorithm 1 shows the pseudo-code for our proposed metric, which outputs a decimal value between 0 and 100 . Specifically, this algorithm changes the value of the j -th latent variable z i j (corresponding to the input data sample x i ) in range [ -C, C ] with steps of 2 C/K while fixing the others, obtains the elementwise difference between FFT of the reconstructed samples and FFT of x i , and counts the number of subcarriers in which the magnitude of the difference is more than a predefined threshold glyph[epsilon1] . If there is only one subcarrier, it represents a disentangled latent variable and z i j gets a perfect score ( 100 ). If there is more than one, then z i j gets 0 . This would be done for all the N z latent variables, and L different data samples { x i } L i =1 . Then, the final metric equals the averaged score over all the data samples and the number of informative latent variables (denoted by I in Alg. 1). We have used C = 3 , K = 40 , L = 500 (larger values did not change the result noticeably) and two different values of glyph[epsilon1] , i.e., 0 5 . and 1 in our experiments.

We consider a VAE to have learned disentangled representations if it achieves a score of 100 for both Kim's metric [22] and the proposed latent traversal metric (Alg. 1). Such a VAE is well-suited for a dataset of NC-OFDM signals where the amount of power is independent in different subcarriers. More specifically, as VAEs encode these power in the latent space z , the corresponding learned representation is expected to be disentangled. Therefore, designing a VAE model that captures this important property of the dataset enables one to find accurate representations and improve the performance of the unsupervised PHY spoofing described in Section IV.

## VII. NUMERICAL EXAMPLES

In this section, we first present the result of numerical simulations that characterize the performance of an adversary utilizing unsupervised and supervised learning algorithms for PHY spoofing as discussed in Sections IV and IV. Then, we

Algorithm 1: Latent traversal for a dataset of NC-OFDM signals

- Output: Disentanglement metric S 0 (out of 100 ) and I , the

number of informative latent variables. i L

Input: A VAE model ( φ θ , ), dataset { x } i =1 , number of latent variables N z , traversing limit C , traversing step K , averaging factor L , precision factor glyph[epsilon1] , S 1 = 0 .

for

i

= 1

to

L

do

x

Pick data point (

while j &lt; N

i

z

+1

z

i

←

mean of for

end

k

←

if

k

),

S

do

q

= 0

z

to

φ

K

i

j

←-

x

F

̂

(

(

z x

2

←

|

do

C

+2

←

Ck/K

i

)

0

,

,

v

,

I

←

1

←

v

0

zero-vector,

2

←

j

zero-vector, mean of

p

θ

(

x z

|

i

)

←

Element-wise magnitude of

FFT

v

2

(ˆ)

x

-

FFT

(

x

i

))

,

T

←

length of

( )

t

←

1

if

F

( )

t

&gt; glyph[epsilon1]

for

t

= 1

, . . . , T

,

v

1

←

v

1

+

v

2

Number of non-zero elements in

k

== 1

v

1

then

S

2

←

else if

S

k &gt;

S

2

j

←

2 + 100

1

←

0

j

+1

S /I

2

,

I

←

then

,

I

←

I

+1

I

+1

end

S

0 =

S /M

1

provide our results and insights on disentanglement metrics presented in Section VI. We begin with investigating the performance of the supervised learning based on DNNs described in Section V-A for spoofing the system introduced in Example 1. This is demonstrated in Fig. 13 where two different DNN structures are considered for each classification and estimation scenario. Note that the y -axis represents correct classification probability for classification curves, and l 2 -loss for the estimation problems on the test set. Specifically, it is shown that for the classification problem, even using one hidden layer enables us to identify the true class of the test signals after around 1000 training steps with very high probability. In each training step, mini-batches of size 500 are chosen from the training set and the SGD algorithm with a learning rate of 0 0005 . is applied to train the DNNs. Furthermore, if the adversary wishes to estimate the true parameters of the signal (i.e., [ q, T u ] ), average l 2 -losses as low as 0 1 . are achievable using DNN estimator with only one hidden layer. We also observe that a higher number of layers results in better performances in both cases.

Now, we consider the system model described in Section II where the corresponding PHY parameters between different communication parties follow the narrowband (NB)-IoT [9], [25] standard that is widely used in the existing IoT solutions [9]. Specifically, the transmission is assumed to take place over an NC-OFDM scheme with ∆ f ∈ [15 , 30 45 60] , , KHz and p n ∈ [1 , 2] utilizing BPSK modulation with random subcarrier occupancy pattern using the total number of subcarriers N = 16 and N = 32 , which give rise to 2 16 and 2 32 distinct subcarrier occupancy patterns, respectively (see Section IV-A). Adversary overhears the transmissions at a certain spoofing SNR and end

S

1

←

S

1 +

←

F

1

Fig. 13. Performance of DNNs described in Section V-A in solving Example 1.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00195v2-figure-eef2902f-8678-4d09-9ca8-4db43e820374.jpg)

Fig. 14. Histogram of energies of signals in two clusters of GMVAE.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00195v2-figure-272a349f-4526-4054-a8e7-41395e2973c0.jpg)

builds up a dataset out of the received noisy signals where 80 complex samples are collected from each signal. The size of the training and the test dataset is set to 2 × 10 6 and 25 × 10 4 , respectively. As described in Section IV-B, the adversary first trains a GMVAE on a dataset consisting of both pure noise signals and corrupted NC-OFDM signals in order to distinguish between the two. Specifically, we have trained a GMVAE with k = 2 , where the dimension of both z and w is set to 20 , on a dataset consists of 50000 pure noise and noisy NC-OFDM signals at SNR 5 dB with random band allocation and N = 16 . Fig. 14 shows the histograms of energies of the signals in each cluster, where a clear distinction between the two is demonstrated. As noise signals have lower energy, one would know that they will belong to cluster 2 . The classification accuracy of GMVAE is evaluated as 99 6% . .

Fig. 15 illustrates the spoofing performance for several supervised and unsupervised learning algorithms for both AWGN and fading environments. For the fading case, we consider a multi-path fading channel with amplitudes [1 , 0 8 . , 0 6] . and delays [0 , 2 4] , µs for Tx-adversary channel, and a Rayleigh flatfading for both of the Adversary-Rx and Tx-Rx channels. For the unsupervised cases, we assume the adversary is utilizing the FactorVAE model with γ = 5 . Then, it infers the total number of subcarriers and the corresponding latent variable

for each subcarrier via latent traversal as described in Section IV. During the test stage, it obtains the corresponding learned representation (mean of q φ ( z x | ) ) for a test signal and decides whether a subcarrier is active or inactive as discussed in Section IV. For the supervised cases, the specifications of the DNNs are presented in Section V. Fig. 15 shows that the supervised algorithm offers better spoofing performance in general as it relies on the ground truth labels. Spoofing performance in a fading channel is worse for both supervised and unsupervised algorithms in comparison to the AWGN channel as the quality of the received signals by the adversary is deteriorated. This also holds for the case where the signals in the dataset are corrupted by the interference from other transmitting sources at different signal to interference plus noise ratios (SINRs). The higher number of subcarriers N ( 32 vs. 16 ), in general, negatively affects the performance of the adversary in both cases. Also, as the spoofing SNR increases, spoofing performance improves as well. Specifically, if the spoofing SNR is 10 dB, the supervised spoofing performance can get very close to the baseline transmission (the best spoofing performance). Furthermore, it is shown that the adversary can spoof the signal to certain degrees via V AEs if the spoofing SNR is high (e.g., 12 dB). We note that as the adversary estimates the transmission parameters with higher accuracy, it can achieve better spoofing performance. For example, for the supervised spoofing in the AWGN scenario with N = 16 presented in Fig. 15, mean error estimation of subcarrier occupancy pattern by the adversary decreases from 1 2 . × 10 -3 to 1 6 . × 10 -4 as spoofing SNR increases from 7 dB to 10 dB. Similarly, for unsupervised spoofing at SNR 10 , this error is computed as 8 × 10 -4 and 4 5 . × 10 -4 for N = 32 and N = 16 , respectively, which indicates a better spoofing performance in the latter case.

Next, we consider an NC-OFDM transmission with a higher number of subcarriers N = 44 where 16 -QAM modulation is utilized by the Tx. We investigate the performance of the adversary utilizing the supervised learning algorithm for spoofing in both AWGN and fading environments, and assume it collects n 1 = 100 samples from each received signal at different spoofing SNRs. Here, we consider 4 different occupancy patterns described in Section V to investigate their resilience against PHY spoofing. Fig. 16 demonstrates the performance of the adversary in different scenarios based on different spoofing SNRs and occupancy pattern vectors. For the OFDM scenario, the adversary is able to infer the occupancy pattern without error and can achieve the same performance as the baseline transmission. For Pattern 1 NC-OFDM signal, the DNNs are trained and tested at 3 different spoofing SNRs of 5 and 10 dB, where as expected the higher spoofing SNRs result in better spoofing performance. Comparing to the baseline transmission, there is a gap in the performances since the parameters are estimated with some error. For Pattern 2 , one can see that the performance is worse in comparison to Pattern 1 as the Tx is using a more complex subcarrier occupancy pattern with a higher number of distinct band allocations. Therefore, one can conclude that Pattern 2 NC-OFDM signals are more difficult to spoof. It is also shown that the spoofing performance is worse in fading scenarios (with the same specifications described for Fig. 15) where the signals are received from a

Fig. 15. Spoofing performance of the adversary in different scenarios. SS and US denote supervised and unsupervised spoofing, respectively.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00195v2-figure-c38a2af9-c386-434c-9a86-746c8a309d46.jpg)

Fig. 16. Supervised spoofing performance of the adversary when different frequency occupancy patters are used by the Tx.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00195v2-figure-f839445d-e418-4922-9e51-c3e671c5786c.jpg)

multipath channel.

For the random occupancy case, it is shown that BER is 0 5 . at spoofing SNR of 2 dB for a wide range of E /N b 0 's corresponding to the adversary-Rx channel, which indicates that the adversary is unable to spoof such signals at SNR 2 dB (or lower) because of the high estimation errors at the output of the DNNs. As a result, the PHY is considered to be secure when spoofing SNR is lower than 2 dB while Tx-Rx SNR is set to 16 dB in order to ensure reliable communication in the meantime. Fig. 16 also demonstrates the spoofing performance for the case of random occupancy patterns with N = 64 . Due to the larger number of possible subcarrier occupancy patterns, the Rx is unable to estimate the transmission parameters via the Tx-Rx channel correctly even when the Tx-Rx SNR is 30 dB for this

Fig. 17. FFT of the reconstructed signals in DIP-VAE ( λ d = λ od = 50 ) obtained under latent traversal. z i denotes the fixed latent variable.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00195v2-figure-e3f9a1fa-a55c-4283-a71c-ef462c50f712.jpg)

case which precludes achieving a reliable communication. In other words, although this scheme prevents the adversary from PHY spoofing, it also fails to ensure reliable communication for legitimate Tx and Rx pairs. In the case where multiple users are transmitting over a certain frequency band in the presence of spectrum incumbents, random band allocation, which is now applied to the accessible frequencies only, enables opportunistic use of the spectrum holes. This intrinsically improves spectral efficiency and enables shared multiple access for the users. Even if there is no spectrum incumbent, the NC-OFDM scheme while providing secure transmission can recover the loss of spectrum efficiency when multiple links, each using NC-OFDM, share the available bandwidth as shown in [26].

Next, we have evaluated the metrics described in Section VI in Table III for different V AE models trained on a dataset of NC-OFDM signals with N = 16 and random subcarrier occupancy patterns where BPSK modulation with p n ∈ [1 , 2] is used. The number of latent variables is set to N z = 20 and the encoder/decoder is modeled with feed-forward DNNs described in Section IV-A. Table III shows that the performance of the encoder and decoder in terms of disentanglement may vary greatly. In other words, metrics in [22], [23] do not guarantee a disentangled representation in the case of latent traversal. For example, for the DIP-VAE models described in Section IV (with parameters λ d = λ od = 5 and λ d = λ od = 50 ), one can see that although they achieve perfect scores ( 100 ) for the metrics proposed in [22], [23], they perform poorly on the metric based on the latent traversal. This is illustrated in Figs. 17 and 18. It is clear that the learned representation could not be considered disentangled since changing one latent variable affects the values of the others. Reconstruction error is also reported in Table III, which represents the ability of the VAE model to reconstruct the input signal x i , and is defined as ∑ d j =1 | x i ( j ) -ˆ x i ( j ) | (element-wise subtraction) where d denotes the dimension of x i .

As discussed in Section VI, we say a VAE model results in perfectly disentangled representations if it achieves perfect scores for both Kim's metric [22] and the latent traversal metric (Alg. 1). There, we also argued how such a VAE is particularly relevant for PHY spoofing NC-OFDM/OFDM signals where the amount of power is independent in different subcarriers. Specifically, the Kim's metric ensures that a specific

Fig. 18. FFT of the reconstructed signals in DIP-VAE model ( λ d = λ od = 5 ) obtained under latent traversal.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00195v2-figure-5a12b0f0-74a7-425a-9fa8-49404e4ed8cd.jpg)

learned representation (by the encoder) corresponding to a generative factor is not affected by the changes in other generative factors. The latent traversal metric implies that the learned representations corresponding to different generative factors are disjoint. This can be seen by comparing the learned representations for two different VAEs: DIP-VAE with ( λ d = λ od = 50 ) and FactorVAE with γ = 5 whose latent traversal performance is demonstrated in Figs. 17 and 8, respectively. First, it should be noted that only in FactorV AE model, which achieves perfectly disentangled representations, a latent variable corresponds to exactly one subcarrier via the decoder. For these VAEs, we also have illustrated the learned representations corresponding to two different latent variables via a 2 D space in Figs. 19. The VAE's decoder maps each point in this space to a signal whose corresponding power in two different subcarriers follows the values of these two latent variables. Both models achieve perfect scores on Kim's metric [22]. However, one can see that the learned representations for the case of FactorV AE in Fig. 19 are disjoint while they overlap for DIP-VAE in Fig. 20. In fact, this is the reason why DIP-VAE in Fig. 17 gets a low score on the latent traversal metric. By changing the value of one of the latent variables (e.g. z 5 ) at a time, a signal can be generated whose power changes in more than one subcarrier ( p 5 and p 15 ). On the other hand, in a perfectly disentangled latent space, the learned representations that get mapped to signals with different power levels in each subcarrier form a disjoint region as illustrated in Fig. 19. Specifically, one can see that the representations corresponding to a signal with specific power levels in different subcarriers form a region in z space. Disjoint representations facilitate downstream tasks like classification as the data samples generated by different generative factors get mapped to distinct regions.

## VIII. CONCLUSIONS

We have investigated the PHY robustness of the NCOFDM/OFDM system in IoT against an adversary equipped with machine learning tools. Specifically, we have assumed the adversary employs supervised and unsupervised learning algorithms to infer some of the NC-OFDM transmission parameters and physically spoof the system. The proposed unsupervised algorithm utilizes V AEs for spoofing, which can infer

TABLE III

DISENTANGLEMENT METRICS AND RECONSTRUCTION LOSS COMPUTED FOR DIFFERENT VAE MODELS

| Method          | Parameters      |   Haggin's metric [23] |   Kim's metric [22] | Alg. 1 metric ( glyph[epsilon1] = 0 . 5 )   | Alg. 1 metric ( glyph[epsilon1] = 1 )   | Reconst. error   |
|-----------------|-----------------|------------------------|---------------------|---------------------------------------------|-----------------------------------------|------------------|
| β -VAE [23]     | β = 10          |                    100 |                 100 | 98.25                                       | 100                                     | 6.5e-2           |
| β -VAE          | β = 20          |                     99 |                  92 | 99.75                                       | 100                                     | 8.3e-2           |
| DIP-VAE [20]    | λ d = λ od = 5  |                    100 |                 100 | 59 . 37                                     | 84 . 06                                 | 1 . 9 e - 2      |
| DIP-VAE         | λ d = λ od = 10 |                    100 |                  66 | 85 . 5                                      | 98 . 43                                 | 2 . 3 e - 2      |
| DIP-VAE         | λ d = λ od = 50 |                    100 |                 100 | 10 . 2                                      | 25 . 06                                 | 2 . 3 e - 2      |
| Factor-VAE [22] | γ = 5           |                    100 |                 100 | 97 . 62                                     | 99 . 93                                 | 1 . 9 e - 2      |
| Factor-VAE      | γ = 10          |                     95 |                  40 | 70                                          | 85 . 75                                 | 3 e - 2          |
| Factor-VAE      | γ = 50          |                     98 |                  66 | 20 . 75                                     | 72 . 18                                 | 3 . 3 e - 2      |

## REFERENCES

Fig. 19. The learned representations z 12 and z 7 for FactorVAE model ( γ = 5 ) which control the amount of power in subcarriers 15 and 5 ( p 15 and p 5 ) of the reconstructed signal, respectively, .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00195v2-figure-4ba39fbe-db70-47d1-b795-9a5c28ae21ca.jpg)

Fig. 20. The learned representations z 5 and z 8 for DIP-VAE model ( λ d = λ od = 50 ) which control the amount of power in subcarriers 15 and 5 ( p 15 and p 5 ) of the reconstructed signal, respectively,

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00195v2-figure-aad3ba61-18ba-4c3e-869c-109625f6bad6.jpg)

important spectral information about the NC-OFDM/OFDM signals. Numerical results demonstrate that the PHY spoofing performance highly depends on the subcarrier occupancy pattern used by the transmitter. Specifically, the results suggest that the transmitter should randomize the selection of the active subcarriers in order to impede PHY spoofing attacks utilizing DNNs.

- [1] A. Nooraiepour, K. Hamidouche, W. U. Bajwa, and N. Mandayam, 'How secure are multicarrier communication systems against signal exploitation attacks?' in Proc. 2018 IEEE MILCOM , Oct 2018, pp. 201-206.
- [2] Y. Zou, J. Zhu, X. Wang, and L. Hanzo, 'A survey on wireless security: Technical challenges, recent advances, and future trends,' Proceedings of the IEEE , vol. 104, no. 9, pp. 1727-1765, Sep. 2016.
- [3] J. Russell and R. Cohn, Non-Access Stratum , 2012. [Online]. Available: google.com/books?id=9XDGMgEACAAJ
- [4] P. L. Yu, J. S. Baras, and B. M. Sadler, 'Physical-layer authentication,' IEEE Transactions on Information Forensics and Security , vol. 3, no. 1, pp. 38-51, March 2008.
- [5] S. Rezaei Aghdam, A. Nooraiepour, and T. M. Duman, 'An overview of physical layer security with finite-alphabet signaling,' IEEE Communications Surveys Tutorials , vol. 21, no. 2, pp. 1829-1850, Secondquarter 2019.
- [6] T. Daniels, M. Mina, and S. F. Russell, 'A signal fingerprinting paradigm for general physical layer and sensor network security and assurance,' in Proc. SECURECOMM'05 , Sep. 2005, pp. 219-221.
- [7] L. Xiao, L. Greenstein, N. Mandayam, and W. Trappe, 'Fingerprints in the ether: Using the physical layer for wireless authentication,' in Proc. 2007 IEEE International Conference on Communications , June 2007, pp. 4646-4651.
- [8] L. Xiao, L. J. Greenstein, N. B. Mandayam, and W. Trappe, 'Channelbased spoofing detection in frequency-selective rayleigh channels,' IEEE Transactions on Wireless Communications , vol. 8, no. 12, pp. 5948-5956, December 2009.
- [9] R. S. Sinha, Y. Wei, and S.-H. Hwang, 'A survey on LPWA technology: LoRa and NB-IoT,' ICT Express , pp. 14 - 21, 2017. [Online]. Available: http://www.sciencedirect.com/science/article/pii/S2405959517300061
- [10] R. Rajbanshi, A. M. Wyglinski, and G. J. Minden, 'An efficient implementation of NC-OFDM transceivers for cognitive radios,' in Proc. 2006 1st International Conference on Cognitive Radio , June 2006, pp. 1-5.
- [11] G. Sridharan, R. Kumbhkar, N. B. Mandayam, I. Seskar, and S. Kompella, 'Physical-layer security of NC-OFDM-based systems,' in Proc. 2016 IEEE Military Communications Conference , Nov 2016, pp. 1101-1106.
- [12] A. Punchihewa, Q. Zhang, O. A. Dobre, C. Spooner, S. Rajan, and R. Inkol, 'On the cyclostationarity of OFDM and single carrier linearly digitally modulated signals in time dispersive channels: Theoretical developments and application,' IEEE Transactions on Wireless Communications , vol. 9, no. 8, pp. 2588-2599, August 2010.
- [13] M. Bouanen, F. Gagnon, G. Kaddoum, D. Couillard, and C. Thibeault, 'An LPI design for secure OFDM systems,' in Proc. 2012 IEEE Military Communications Conference , Oct 2012, pp. 1-6.
- [14] Z. E. Ankaral, M. Karabacak, and H. Arslan, 'Cyclic feature concealing cp selection for physical layer security,' in Proc. 2014 IEEE Military Communications Conference , Oct 2014, pp. 485-489.
- [15] T. OShea and J. Hoydis, 'An introduction to deep learning for the physical layer,' IEEE Transactions on Cognitive Communications and Networking , vol. 3, no. 4, pp. 563-575, Dec 2017.
- [16] H. Ye, G. Y. Li, and B. Juang, 'Power of deep learning for channel estimation and signal detection in OFDM systems,' IEEE Wireless Communications Letters , vol. 7, no. 1, pp. 114-117, Feb 2018.
- [17] S. Drner, S. Cammerer, J. Hoydis, and S. T. Brink, 'Deep learning based communication over the air,' IEEE Journal of Selected Topics in Signal Processing , vol. 12, no. 1, pp. 132-143, Feb 2018.
- [18] M. Z. Hameed, A. Gyorgy, and D. Gunduz, 'Communication without interception: Defense against deep-learning-based modulation detection,' Feb. 2019, Available: https://arxiv.org/abs/1902.10674/.

[19] N. Dilokthanakul, P. A. M. Mediano, M. Garnelo, M. C. H. Lee, Salimbeni, and Hugh, 'Deep unsupervised clustering with gaussian mixture variational autoencoders.' CoRR , vol. abs/1611.02648, 2016.

[20] A. Kumar, P. Sattigeri, and A. Balakrishnan, 'Variational inference of disentangled latent concepts from unlabeled observations,' 2018. [Online]. Available: https://openreview.net/forum?id=H1kG7GZAW

[21] D. P. Kingma and M. Welling, 'Auto-encoding variational Bayes,' in ICLR , 2014.

[22] H. Kim and A. Mnih, 'Disentangling by factorising,' in Proc. of the 35th International Conference on Machine Learning , ser. Proceedings of Machine Learning Research, J. Dy and A. Krause, Eds., vol. 80. Stockholmsmssan, Stockholm Sweden: PMLR, 10-15 Jul 2018, pp. 26492658. [Online]. Available: http://proceedings.mlr.press/v80/kim18b.html

[23] C. P. Burgess, I. Higgins, A. Pal, L. Matthey, N. Watters, G. Desjardins, and A. Lerchner, 'Understanding disentangling in β -VAE,' CoRR , vol. abs/1804.03599, 2018.

[24] X. Nguyen, M. J. Wainwright, and M. I. Jordan, 'Estimating divergence functionals and the likelihood ratio by convex risk minimization,' IEEE Transactions on Information Theory , vol. 56, no. 11, pp. 5847-5861, Nov 2010.

[25] J. S. D. Rohde, 'Narrowband internet of things,' Aug. 2016, Available: https://www.rohde-schwarz.com/us/applications/ narrowband-internet-of-things-application-note 56280-314242.html/.

[26] R. Kumbhkar, T. Kuber, G. Sridharan, B. Narayan, Mandayam, and I. Seskar, 'Opportunistic spectrum allocation for max-min rate in NCOFDMA,' in 2015 IEEE DySPAN , Sep. 2015, pp. 385-391.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00195v2-figure-3c9643fa-b227-49da-a1c0-91ae3bde09f8.jpg)

Alireza Nooraiepour earned the B.S. degree in Electrical Engineering from Amirkabir University of Technology (Tehran Polytechnic) in 2013, and the M.S. degree in Electrical and Electronics Engineering from Bilkent University in 2016. He is now pursuing his Ph.D. degree in WINLAB, Rutgers University, NJ, USA. His current research focuses on deep learning, internet of things and physical layer security.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00195v2-figure-31277d3d-c530-49b9-8ff5-37e2a431748c.jpg)

Waheed U. Bajwa (Senior Member, IEEE) received BE (with Honors) degree in electrical engineering from the National University of Sciences and Technology, Pakistan in 2001, and MS and PhD degrees in electrical engineering from the University of Wisconsin-Madison in 2005 and 2009, respectively. He was a postdoctoral research associate in the Program in Applied and Computational Mathematics at Princeton University from 2009 to 2010, and a research scientist in the Department of Electrical and Computer Engineering at Duke University from

2010 to 2011. He has been with Rutgers University since 2011, where he is currently an associate professor in the Department of Electrical and Computer Engineering and an associate member of the graduate faculty of the Department of Statistics. His research interests include statistical signal processing, highdimensional statistics, machine learning, harmonic analysis, inverse problems, and networked systems.

Dr. Bajwa has received a number of awards in his career including the Army Research Office Young Investigator Award (2014), the National Science Foundation CAREER Award (2015), Rutgers Universitys Presidential Merit Award (2016), Rutgers Universitys Presidential Fellowship for Teaching Excellence (2017), and Rutgers Engineering Governing Council ECE Professor of the Year Award (2016, 2017, 2019). He is a co-investigator on a work that received the Cancer Institute of New Jerseys Gallo Award for Scientific Excellence in 2017, a co-author on papers that received Best Student Paper Awards at IEEE IVMSP 2016 and IEEE CAMSAP 2017 workshops, and a Member of the Class of 2015 National Academy of Engineering Frontiers of Engineering Education Symposium.

. He has also been involved in a number of professional activities. He served as the Lead Guest Editor for a special issue of IEEE Signal Processing Magazine on 'Distributed, Streaming Machine Learning' (2020), a Publicity and Publications Co-Chair for IEEE DSW 2019 Workshop, the US Liaison Chair for IEEE SPAWC 2019 Workshop, Technical Co-Chair of IEEE SPAWC 2018 Workshop, a Technical Area Chair of 2018 Asilomar Conference on Signals, Systems, and Computers, the General Chair of 2017 DIMACS Workshop on Distributed Optimization, Information Processing, and Learning, an elected member of the Machine Learning for Signal Processing (MLSP) Technical Committee of the IEEE Signal Society (20162018), the Publicity and Publications Chair of IEEE CAMSAP 2015 Workshop, and an Associate Editor of IEEE Signal Processing Letters (20142017). He also co-chaired IEEE GlobalSIP 2013 Symposium on New Sensing and Statistical Inference Methods and CPSWeek 2013 Workshop on Signal Processing Advances in Sensor Networks, and co-guest edited a special issue of Elsevier Physical Communication Journal on 'Compressive Sensing in Communications' (2012). He is currently serving as a Guest Editor for a special issue of Proceedings of the IEEE on 'Optimization for Data-driven Learning and Control,' a Senior Area Editor for IEEE Signal Processing Letters, an Associate Editor for IEEE Transactions on Signal and Information Processing over Networks, and an elected member of Sensor Array and Multichannel (SAM) and Signal Processing for Communications and Networking (SPCOM) Technical Committees of IEEE Signal Processing Society.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00195v2-figure-e53be990-36c9-4ca3-8d69-9f21686771e4.jpg)

Narayan B. Mandayam (S89-M94-SM99-F09) received the B.Tech (Hons.) degree in 1989 from the Indian Institute of Technology, Kharagpur, and the M.S. and Ph.D. degrees in 1991 and 1994 from Rice University, all in electrical engineering. Since 1994 he has been at Rutgers University where he is currently a Distinguished Professor and Chair of the Electrical and Computer Engineering department. He also serves as Associate Director at WINLAB. He was a visiting faculty fellow in the Department of Electrical Engineering, Princeton University, in 2002

and a visiting faculty at the Indian Institute of Science, Bangalore, India in 2003. Using constructs from game theory, communications and networking, his work has focused on system modeling, information processing and resource management for enabling cognitive wireless technologies to support various applications. His recent interests include privacy in IoT, resilient smart cities as well as modeling and analysis of trustworthy knowledge creation on the internet. He has also been working recently on the use of prospect theory in understanding the psychophysics of pricing for wireless data networks as well as the smart grid.

Dr. Mandayam is a co-recipient of the 2015 IEEE Communications Society Advances in Communications Award for his seminal work on power control and pricing, the 2014 IEEE Donald G. Fink Award for his IEEE Proceedings paper titled Frontiers of Wireless and Mobile Communications and the 2009 Fred W. Ellersick Prize from the IEEE Communications Society for his work on dynamic spectrum access models and spectrum policy. He is also a recipient of the Peter D. Cherasia Faculty Scholar Award from Rutgers University (2010), the National Science Foundation CAREER Award (1998), the Institute Silver Medal from the Indian Institute of Technology (1989) and its Distinguished Alumnus Award (2018). He is a coauthor of the books: Principles of Cognitive Radio (Cambridge University Press, 2012) and Wireless Networks: Multiuser Detection in Cross-Layer Design (Springer, 2004). He has served as an Editor for the journals IEEE Communication Letters and IEEE Transactions on Wireless Communications. He has also served as a guest editor of the IEEE JSAC Special Issues on Adaptive, Spectrum Agile and Cognitive Radio Networks (2007) and Game Theory in Communication Systems (2008). He is a Fellow and Distinguished Lecturer of the IEEE.
Alireza Nooraiepour Waheed U. Bajwa Narayan B. Mandayam
Learning-Aided Physical Layer Attacks Against Multicarrier Communications in IoT
Internet-of-Things (IoT) devices that are limited in power and processing are
susceptible to physical layer (PHY) spoofing (signal exploitation) attacks
owing to their inability to implement a full-blown protocol stack for security.
The overwhelming adoption of multicarrier techniques such as orthogonal
frequency division multiplexing (OFDM) for the PHY layer makes IoT devices
further vulnerable to PHY spoofing attacks. These attacks which aim at
injecting bogus/spurious data into the receiver, involve inferring transmission
parameters and finding PHY characteristics of the transmitted signals so as to
spoof the received signal. Non-contiguous (NC) OFDM systems have been argued to
have low probability of exploitation (LPE) characteristics against classic
attacks based on cyclostationary analysis, and the corresponding PHY has been
deemed to be secure. However, with the advent of machine learning (ML)
algorithms, adversaries can devise data-driven attacks to compromise such
systems. It is in this vein that PHY spoofing performance of adversaries
equipped with supervised and unsupervised ML tools are investigated in this
paper. The supervised ML approach is based on deep neural networks (DNN) while
the unsupervised one employs variational autoencoders (VAEs). In particular,
VAEs are shown to be capable of learning representations from NC-OFDM signals
related to their PHY characteristics such as frequency pattern and modulation
scheme, which are useful for PHY spoofing. In addition, a new metric based on
the disentanglement principle is proposed to measure the quality of such
learned representations. Simulation results demonstrate that the performance of
the spoofing adversaries highly depends on the subcarriers' allocation
patterns. Particularly, it is shown that utilizing a random subcarrier
occupancy pattern secures NC-OFDM systems against ML-based attacks.