[Paper Review] Unraveling Attacks in Machine Learning-based IoT Ecosystems: A Survey and the Open Libraries Behind Them
This paper provides a comprehensive survey of machine learning (ML) security threats in IoT ecosystems, analyzing six attack types—membership inference, adversarial evasion, reconstruction, property inference, model extraction, and poisoning—while evaluating 65 open-source libraries for ML security. It offers a unified framework for classifying attacks by adversary model, target, and security property, and recommends original libraries for reliability, emphasizing usability, compatibility, and implementation fidelity to strengthen ML-based IoT defenses.
The advent of the Internet of Things (IoT) has brought forth an era of unprecedented connectivity, with an estimated 80 billion smart devices expected to be in operation by the end of 2025. These devices facilitate a multitude of smart applications, enhancing the quality of life and efficiency across various domains. Machine Learning (ML) serves as a crucial technology, not only for analyzing IoT-generated data but also for diverse applications within the IoT ecosystem. For instance, ML finds utility in IoT device recognition, anomaly detection, and even in uncovering malicious activities. This paper embarks on a comprehensive exploration of the security threats arising from ML's integration into various facets of IoT, spanning various attack types including membership inference, adversarial evasion, reconstruction, property inference, model extraction, and poisoning attacks. Unlike previous studies, our work offers a holistic perspective, categorizing threats based on criteria such as adversary models, attack targets, and key security attributes (confidentiality, availability, and integrity). We delve into the underlying techniques of ML attacks in IoT environment, providing a critical evaluation of their mechanisms and impacts. Furthermore, our research thoroughly assesses 65 libraries, both author-contributed and third-party, evaluating their role in safeguarding model and data privacy. We emphasize the availability and usability of these libraries, aiming to arm the community with the necessary tools to bolster their defenses against the evolving threat landscape. Through our comprehensive review and analysis, this paper seeks to contribute to the ongoing discourse on ML-based IoT security, offering valuable insights and practical solutions to secure ML models and data in the rapidly expanding field of artificial intelligence in IoT.
Motivation & Objective
- To systematically categorize and analyze the full spectrum of ML-based attacks in IoT environments, including membership inference, adversarial evasion, reconstruction, property inference, model extraction, and poisoning attacks.
- To evaluate the security properties—confidentiality, integrity, and availability—affected by each attack type under varying adversary models and threat scenarios.
- To assess 65 open-source libraries (both original and unoriginal) for their role in defending against ML attacks in IoT, focusing on usability, compatibility, and implementation fidelity.
- To provide actionable recommendations for researchers and practitioners on library selection, Python version usage, and configuration tuning to ensure reproducibility and robustness in ML security experiments.
- To bridge the gap between theoretical ML attack research and practical defense implementation by identifying common limitations in existing open-source libraries, such as incomplete documentation and limited dataset diversity.
Proposed method
- Categorize ML attacks in IoT based on adversary models (e.g., white-box, black-box), attack targets (model, data, predictions), and affected security properties (confidentiality, integrity, availability).
- Conduct a systematic review of 65 open-source libraries, including author-provided and third-party implementations, to evaluate their support for ML security techniques.
- Perform cross-environment testing across diverse hardware (GPU and CPU) and Python versions to assess library adaptability and execution stability.
- Fine-tune parameter settings in open-source projects to balance execution time and resource constraints while preserving experimental validity.
- Compare library implementations against original research papers to detect discrepancies in attack methodology, assumptions, or reported results.
- Provide a unified evaluation framework emphasizing library availability, operability, and compatibility with modern deep learning frameworks and system configurations.

Experimental results
Research questions
- RQ1How do different ML attack types—such as membership inference, adversarial evasion, and model extraction—impact the confidentiality, integrity, and availability of ML models in IoT systems?
- RQ2What are the key differences in implementation fidelity between original and unoriginal open-source libraries for ML security, and how do these affect reproducibility and reliability?
- RQ3To what extent do hardware configurations and Python version differences affect the usability and performance of ML security libraries in IoT environments?
- RQ4What common limitations exist across open-source ML security libraries, such as incomplete documentation or restricted dataset diversity, and how do they hinder practical deployment?
- RQ5How can researchers and practitioners effectively select and configure ML security libraries to ensure robust, reproducible, and secure ML-based IoT applications?
Key findings
- The study identifies six major ML attack categories in IoT: membership inference, adversarial evasion, reconstruction, property inference, model extraction, and poisoning, each posing distinct threats to confidentiality, integrity, and availability.
- Original libraries are recommended over unoriginal ones due to higher fidelity to original research, though some suffer from delayed maintenance, creating a need for community-driven alternatives.
- Significant challenges in library usability were observed, including inconsistent documentation, mismatched assumptions, and incomplete algorithm implementation in unoriginal libraries.
- Python version incompatibilities and hardware-specific configurations (GPU vs. CPU) were major barriers to reproducibility, with newer Python versions recommended for better compatibility and dependency resolution.
- Parameter tuning was essential to reduce execution time in resource-constrained environments, with some libraries requiring substantial optimization to remain practical.
- A notable gap exists between published research and open-source implementations, with some libraries reporting results that differ from the original papers, highlighting risks in relying on unverified or modified codebases.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.