When labeled attack data is available, supervised learning becomes a powerful weapon. This lesson covers Random Forest, XGBoost, and logistic regression applied to intrusion detection using datasets like NSL-KDD and CICIDS. You’ll learn why accuracy is a misleading metric in security and how to properly evaluate models with precision, recall, and F1.