The rapid growth of the Internet of Things (IoT) has introduced significant security and privacy
challenges, particularly in environments where devices operate with limited computational and energy
resources. Conventional intrusion detection and privacy mechanisms are often unsuitable for such
settings due to their high complexity and resource demands. This paper proposes a Lightweight Intrusion
Detection and Privacy-Preserving (LIDPP) framework specifically designed for resource-constrained
IoT devices. The framework integrates a pruned Random Forest-based intrusion detection model with
a Differential Privacy mechanism to ensure both efficient threat detection and secure data handling.
By performing feature selection using Information Gain and optimizing model parameters, the system
reduces computational overhead while maintaining high detection accuracy. Experimental evaluation
using benchmark datasets demonstrates that the proposed framework achieves an accuracy of 98.4%
with significantly lower inference time and memory usage compared to deep learning-based approaches.
The results highlight the effectiveness of the proposed solution in balancing security, privacy, and
efficiency, making it suitable for real-time IoT deployments.