Comprehensive security audit of an IoT platform