Abstract
A significant amount of IoT devices are essentially powered by batteries and implements mechanisms to save energy, such as the sleep mode. The decision-making process deployed in IoT devices to enter to and exit from sleep mode can be exploited by remote users through sleep deprivation attacks, reducing the battery's lifetime and causing a denial of service. This paper presents a new defensive technique to mitigate and prevent sleep deprivation attacks. It is based on the local battery consumption data, that is an input to control the sleep mode. Performance evaluation carried out in a system based on an ESP32 showed that the technique could increase the battery's lifetime by 51.2% in a scenario under a sleep deprivation attack.