Abstract:For the ZigBee sensor network is still not safe enough, this article proposes a simple feasible security solution. It contains two parts. First, with the frame series number as the initial vector, using the AES algorithm encrypts /decrypts the cor responding PANID. Second, judge the validity of the frame received according to the series number. Actually,this solution has a significant effect on ensuring PANID security and preventing disguised attack.