A Study of Vulnerability Analysis of Popular Smart Devices Through Their Companion Apps

Davino Mauro Junior, Luis Melo, Hao Lu, Marcelo d'Amorim, Atul PrakashIEEE Symposium on Security and Privacy Workshops 2019

Abstract

The rapid proliferation of Internet of Things (IoT) devices has outpaced the development of scalable security assessment methodologies. Traditional analysis, which involves hardware tampering and firmware extraction, is resource-intensive and difficult to apply to the thousands of new products entering the market. This paper presents a scalable "shortcut" to auditing IoT security by analyzing the Android companion applications that control these devices. Through a study of 96 top-selling WiFi-enabled devices, we demonstrate that security flaws in the device are frequently mirrored in the app's code. Our analysis reveals that nearly 40% of the studied devices employ weak or non-existent encryption for critical commands, often relying on hardcoded keys or insecure local communication protocols.

Introduction

The Internet of Things (IoT) ecosystem is currently characterized by a "Wild West" approach to security. While consumers increasingly rely on smart plugs, bulbs, and controllers, the underlying security of these devices remains opaque. The primary challenge lies in scalability; performing a deep security audit on a single device requires significant manual effort.

This research addresses the challenge of scalable vulnerability assessment by shifting the focus from the hardware to the software. Since most smart devices are managed via smartphone applications, the security protocols—or lack thereof—implemented in these apps provide a direct window into the device's vulnerability profile. If an app transmits unencrypted commands or stores hardcoded cryptographic keys, the associated device is likely susceptible to unauthorized access and control.

Methodology and Dataset

The study utilized a hybrid approach combining static and dynamic analysis to evaluate 96 popular WiFi-enabled IoT devices identified from Amazon’s top-seller lists. Interestingly, these 96 devices were controlled by only 32 unique Android companion apps, revealing a significant "white-label" effect where multiple brands share the same software infrastructure.

The IoT ecosystem architecture showing the relationship between devices, apps, and the cloud.

The analysis pipeline involved:

  1. Static Analysis: Decompiling the apps to scan for standard Java cryptographic APIs, custom encryption logic (identified by high arithmetic operation ratios), and network protocol signatures (TCP/UDP, cloud relays, or broadcast messages).
  2. Dynamic Analysis: Monitoring network traffic via Wireshark for a subset of devices to verify the actual implementation of encryption found in the code.
  3. Exploit Verification: Developing "rogue apps" for five specific devices to confirm that discovered vulnerabilities could lead to full device hijacking.

Key Insights and Findings

The White-Label Vulnerability

A major finding was the prevalence of white-labeling. Brands such as eWeLink, Tuya, and YI provide the underlying software for dozens of different physical products. Consequently, a single vulnerability discovered in one of these core apps can compromise an entire ecosystem of brands, significantly increasing the impact of any individual security flaw.

The Illusion of Secure Pairing

The research debunked the common assumption that "pairing" a device creates a secure, exclusive bond. In many instances, pairing was found to be a purely UI-level convenience. Rogue applications on the same local network could often bypass the pairing process entirely, sending direct commands to the device without user authorization.

Encryption Failures

The quantitative analysis of the 32 unique apps revealed a startling lack of robust security measures. As shown in the data, half of the apps failed to implement proper encryption for critical communications.

Distribution of encryption vulnerabilities across the studied companion apps.

Specifically:

  • 31% of apps used no encryption at all for device-to-app communication.
  • 19% of apps utilized hardcoded encryption keys, which are easily extracted through decompilation.
  • 50% of apps avoided hardcoded keys, but many still suffered from weak custom implementations.

A notable example is the TP-Link Kasa app, which used a simple XOR-based Caesar cipher with a hardcoded seed. By extracting this seed, researchers were able to decrypt traffic and forge commands to control smart plugs.

Discussion and Limitations

While the methodology provides a scalable way to identify vulnerabilities, it has limitations. Static analysis can be hindered by code obfuscation or the use of the Android Native Development Kit (NDK), which hides logic in compiled C/C++ libraries. Furthermore, this study focused exclusively on WiFi devices; protocols like Zigbee or Z-Wave, which require specialized hubs, were not included in the scope.

Despite these limitations, the study successfully demonstrated the feasibility of building "rogue apps" that can hijack legitimate device control. This highlights a critical need for manufacturers to move away from "security through obscurity" and adopt standardized, secure communication protocols.

Conclusion

This study highlights a systemic failure in the security design of popular consumer IoT devices. By leveraging companion apps as a proxy for device security, we identified widespread vulnerabilities that allow for unauthorized control. The findings emphasize that as the IoT market continues to grow, the industry must prioritize scalable security auditing and move toward more robust, encrypted communication standards to protect consumer privacy and safety.

Summary updated

BibTeX
@inproceedings{junior2019study,
  author = {Davino Mauro Junior and Luis Melo and Hao Lu and Marcelo d'Amorim and Atul Prakash},
  title = {{A Study of Vulnerability Analysis of Popular Smart Devices Through Their Companion Apps}},
  booktitle = {IEEE Symposium on Security and Privacy Workshops},
  year = {2019},
  doi = {10.1109/spw.2019.00042},
}
Figure