This document proposes a method to detect spyware using data mining techniques. It extracts features from executable files and uses feature reduction to generate training data for classifiers to classify files as legitimate or spyware. The method involves collecting data, generating byte sequences and n-grams, extracting features using frequency-based and common-based approaches, reducing features, generating ARFF files for modeling, and training models using machine learning algorithms in WEKA, such as Naive Bayes and SVM, to classify new files.