Detecting perturbation in electrical signals is crucial to assure power quality (PQ) and protect equipment connected to an electrical network. Some of the information generated by disturbances analysis can be communicated using Internet of Things (IoT) protocols, but it is vital to verify the integrity of the data. As a result of the lack of security presented by IoT devices, the proposal of this work is based on the implementation of an algorithm based on IDS that allows identifying attacks or failures in the security of an IoT-based PQ disturbance detection system implemented in a BeagleBone Black Wireless. The Sparta and Sqlmap programs were used as tools to perform tests and detect security flaws in the BeagleBone, verifying essential operations of the IDS.