The document presents a new k-medoids clustering approach for anomaly intrusion detection, addressing limitations of existing algorithms like k-means. The proposed method significantly improves detection rates and reduces false alarms, achieving a detection rate of 91.2% and an accuracy of 96.38%. Experimental results demonstrate its effectiveness against various types of cyber attacks compared to traditional methods.