New undetectable attack methods made possible by advances in covert channel techniques. Due to their nonstandard data transfer methods, common countermeasures are ineffective. The detection, mitigation, and elimination of hidden channels that operate on the packet length level are extremely challenging problems. Differences in packet size can be used as part of a covert communication strategy for the delivery of sensitive information across networks. The use of machine learning techniques for detecting covert channel attacks has been praised in recent academic research. Researchers in this work developed an effective ensemble classification method for spotting such breaches. Our approach relies on an ensemble model, which is a combination of three different machine learning methods. There are several applications for classifiers including the Support Vector Machine (SVM), Random Forest (RF), and Naive Bayes (NB). The logistic regression (LR) classifier served as a meta classifier to aggregate the results of the component classifiers into an ensemble classifier. According to the findings, the proposed ensemble model is effective. Among single-classification algorithms, it is unrivalled in its ability to detect such covert channel attacks.