Research Article

Location Aided Cooperative Detection of Primary User Emulation Attacks in Cognitive Wireless Sensor Networks Using Nonparametric Techniques

Algorithm 1

Parametric PUE attack detection.
Inputs:
PU position:
Set of SU positions: ,
Vector of RSS values:
Parameters of the path loss model: and
Detection threshold:
Steps:
(1) Obtain the PU to SUs distances , .
(2) Compute the test statistic using (11).
(3) if    then
(4)  attack_flag true
(5) else
(6)  attack_flag false
(7) end if
(8) return  attack_flag