[Paper Review] AntShield: On-Device Detection of Personal Information Exposure
AntShield is a first-of-its-kind on-device system that combines real-time string matching and multi-label classification to detect both predefined and unknown personally identifiable information (PII) leaks in mobile network traffic. It achieves high accuracy (8–25% improvement over state-of-the-art) and sub-millisecond performance (~0.75 ms for classification) on mobile devices, enabling real-time privacy protection without relying on remote proxies.
Mobile devices have access to personal, potentially sensitive data, and there is a growing number of applications that transmit this personally identifiable information (PII) over the network. In this paper, we present the AntShield system that performs on-device packet-level monitoring and detects the transmission of such sensitive information accurately and in real-time. A key insight is to distinguish PII that is predefined and is easily available on the device from PII that is unknown a priori but can be automatically detected by classifiers. Our system not only combines, for the first time, the advantages of on-device monitoring with the power of learning unknown PII, but also outperforms either of the two approaches alone. We demonstrate the real-time performance of our prototype as well as the classification performance using a dataset that we collect and analyze from scratch (including new findings in terms of leaks and patterns). AntShield is a first step towards enabling distributed learning of private information exposure.
Motivation & Objective
- To address the lack of real-time, on-device detection of both predefined and unknown PII leaks in mobile network traffic.
- To overcome the limitations of existing systems that rely on pre-defined blacklists or remote, trusted proxies for classification.
- To enable accurate, low-overhead detection of PII exposure while preserving user privacy and device autonomy.
- To collect and analyze a new, comprehensive dataset of mobile PII leaks to uncover previously unknown leakage patterns and behaviors.
- To lay the foundation for distributed, privacy-preserving learning of PII leakage across mobile devices.
Proposed method
- Uses the AntMonitor Library for real-time packet interception and Aho-Corasick string matching to detect predefined PII on the device.
- Employs a multi-label classification framework based on Binary Relevance with Decision Trees to detect unknown PII.
- Designs per-app classifiers instead of per-domain to improve scalability and reduce latency while maintaining accuracy.
- Optimizes feature extraction using efficient string parsing and Aho-Corasick search, reducing feature extraction time to 0.107 ms ± 0.149 ms.
- Implements lightweight, on-device inference with classification latency of 0.751 ms ± 1.35 ms, enabling real-time operation.
- Supports future integration with federated learning and privacy-preserving collaborative learning frameworks for distributed model training.
Experimental results
Research questions
- RQ1Can on-device detection of both predefined and unknown PII be achieved with high accuracy and low performance overhead?
- RQ2How does a hybrid approach combining string matching and multi-label classification outperform existing methods in detecting PII leaks?
- RQ3What are the real-world patterns and previously unknown leakage behaviors in mobile network traffic involving PII?
- RQ4Can per-app classifiers achieve comparable accuracy to per-domain classifiers while enabling faster and more scalable detection?
- RQ5Is it feasible to train and deploy machine learning models for PII detection on mobile devices in real time without relying on remote infrastructure?
Key findings
- The AntShield system achieves 8–25% higher classification accuracy and 2–5 times lower variance compared to state-of-the-art methods like Recon.
- Feature extraction using Aho-Corasick reduces latency to 0.107 ms ± 0.149 ms, a significant improvement over Recon’s 36 ms ± 17 ms using Java string parsing.
- Multi-label classification runs in 0.751 ms ± 1.35 ms per packet, enabling real-time detection on mobile devices without noticeable user impact.
- The dataset collected reveals new leakage patterns, including PII leaks over plain TCP and UDP, background app transmissions, and malicious scanning for rooted devices.
- Per-app classifiers achieve similar accuracy to per-domain classifiers but enable faster, more scalable operation and broader traffic coverage.
- Training time for general classifiers is up to tens of minutes, but since training is infrequent and can be done remotely, it does not hinder deployment.
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.