Online exams have become increasingly popular due to their convenience in eliminating the need for physical exams and allowing students to take exams from remote locations. However, one of the drawbacks of online exams is that they make cheating easier, and it can be difficult for online proctoring to detect subtle movements by the students. This could lead to doubts about students' exam results' value and overall credibility. To address this pressing issue, we present a cheating detection method using a CCTV camera to monitor students' faces, eyes, and devices to determine whether they cheat during exams. If suspicious behavior indicative of cheating is detected, a warning is raised to alert the students. A custom dataset was developed to train the model. The dataset consisted of recordings of pre-determined cheating behavior by 50 participants. These videos captured various poses and behaviors encoded and analyzed using a clustering approach. The encoded clustering method continuously tracks the students' faces, eyes, and body gestures throughout an exam. Experimental results show that the proposed approach effectively detects cheating behavior with a favorable accuracy of 83%. The proposed method offers a promising solution to the growing concern about cheating in online exams. This approach can significantly enhance the integrity and reliability of online assessment processes, fostering trust among educational institutions and stakeholders.