This paper discusses a model for detecting and classifying internet worms using data mining techniques, highlighting the critical threats posed by self-propagating malware. The proposed system utilizes machine learning algorithms such as random forest, decision tree, and Bayesian network to achieve a detection rate close to 99.6% with minimal false alarms. It emphasizes the importance of preprocessing network packet data to improve classification performance across various attack types, including UDP floods and HTTP floods.