This course serves as a foundational gateway for students interested in applying machine learning to cybersecurity analytics. Throughout the semester, students will gain hands-on proficiency with essential algorithms, analytical frameworks, practical tools, and operational environments tailored for security data analysis. Beyond technical execution, students are encouraged to cultivate an architectural mindset—learning to design and implement end-to-end solutions for complex security challenges using modern data science techniques. The curriculum integrates core cybersecurity principles, foundational data science theories, seminal research papers, and domain background. Additionally, the course examines several production-grade security systems to demonstrate how analytical algorithms are deployed in practice to achieve robust security objectives.
Prerequisites & Course Expectations. Designed as an intensive, 16-week graduate-level seminar within the Department of MIS, this course centers on advanced, data-driven system development. It is an advanced, fast-paced elective specifically structured for MIS graduate students pursuing specialized development in modern information systems. To succeed in this 16-week rigorous curriculum, students are expected to possess solid computational foundations (equivalent to Programming Languages I & II). Please be advised that Python is utilized strictly as an execution vehicle, and no programming tutorials will be provided. Practical assignments and term projects heavily rely on machine learning frameworks (e.g., TensorFlow and Keras), requiring students to demonstrate independent problem-solving capabilities — including consulting technical documentation, navigating technical forums, and performing autonomous debugging. Prospective students should ensure they are comfortable architecting and deploying clean Python scripts independently prior to enrollment.
-/-: We have a forum (https://groups.google.com/g/nccu-ds4s) for this class. If you have any questions (e.g., enrollment, homework, project, ...), please post your question directly in the forum. TA and I will respond later.
Instructor: Shun-Wen Hsiao, NCCU MIS Dept., <hsiaom at nccu.edu.tw>
Lectures: Wednesday 234 (09:10~12:00 UTC+8)
Course ID: 306732001, 356378001
Classroom: NCCU College of Commerce Building Room (TBA)
TA: TBA
GitHub: https://github.com/hsiaom26/DS4CS-24 (and 26ver)
Homework Submission: http://hsiaom.nccu.edu.tw:8888/
Office Hours: By appointment.
Comprehend fundamental detection methodologies, including profiling targets, profiling techniques, misuse (signature-based) detection, and anomaly detection.
Master the core principles and workflows of both static and dynamic program analysis.
Analyze key machine learning and data analysis algorithms for security applications, encompassing distance/similarity metrics, classification, and clustering techniques.
Examine deep learning architectures and neural network algorithms applied to threat identification.
Explore the application of language models (LMs/LLMs) in analyzing security telemetry and unstructured threat intelligence.
Evaluate real-world security information systems through a data-driven lens, including intrusion detection systems (IDS), anomaly detection frameworks, spam filtering solutions, and sequence analysis pipelines.
W1 (02/17):
M01 Model and Loss:Data Table/Look at the Data First (EDA)/Linear Regression/Anscombe's Quartet
M02 Gradient Descent and Training:Gradient Descent/Feature Scaling
W2 (02/24):
M02:Batch, Mini-batch, SGD/Beyond Plain Gradient Descent/Break It, Then Diagnose/How Do You Know the Code Is Right?
M03 Logistic and Softmax Regression:From a Number to Yes or No/Cross-Entropy/Two Features: Is It Virginica?/Softmax
M04 Generalization and Regularization:Underfitting and Overfitting
W3 (03/03):
M04:Regularization
M05 Evaluation:From a Score to a Decision/Confusion Matrix/ROC/Precision–Recall and Rare Events/Choosing a Threshold/Training, Validation, Test/Opening the Test Set
M06 Decision Trees and Ensembles:A Model Made of Rules/Which Split Is Better?
W4 (03/10):
M06:Growing a Tree/Regression Trees/Security Example: Call Sequences/Overfitting, Pruning, Instability/Random Forest/Gradient Boosting
M07 SVM and Kernels:Maximum Margin/Lagrange Multipliers and Support Vectors/Soft Margin and Hinge Loss
W5 (03/17):
M07:Polynomial Kernel/RBF Kernel/Kernel Matrix/One-Class SVM/SVM on UNSW-NB15/A Very High Score: What to Ask
M08 Distance and Clustering:Distance and Similarity/K-means/k-NN/Hierarchical Clustering/DBSCAN/Clustering Malware by API Calls
W6 (03/24):
M09 Dimension Reduction:Why Reduce Dimensions?/PCA/MDS, t-SNE, UMAP/How to Misread a 2-D Map/A Map of Malware Behavior
N01 Neural Network Basics:From Linear Regression to a Network/PyTorch and the Training Loop
W7 (03/31):
N01:Activation Functions and Vanishing Gradients/Normalize the Inputs/Initialization/Layers, Neurons, Decision Boundary/Dropout, Early Stopping, Shuffling
N02 Convolutional Neural Networks:Why Not Fully Connected?/Convolution/Parameters and Receptive Field/A Small CNN/What Did the Kernels Learn?/Design Is an Assumption/Conv1D on Bytes/Residual Connections
W8 (04/07):
N03 Autoencoders and Generative Models:Where Do the Targets Come From?/Autoencoders and Bottleneck/Denoising and Convolutional AE/Anomaly Detection with Reconstruction Error/Networks That Output Probabilities/VAE/CVAE/BNN/Diffusion Models
W9 (04/14) Midterm and Catch-up Week.
W10 (04/21):
M10 Trustworthy Evaluation:Missing Values/Imbalanced Data/Rare Events: Base Rates and Low FPR/Data Leakage/Temporal Splits and Concept Drift/Label Noise/Calibration, Costs, Thresholds/Shapley Values
D01 Program and Malware Analysis:PE Format/Packing and Entropy
W11 (04/28):
D01:Hashes and Signatures/Byte Features/Dynamic Analysis: API Sequences/Family Classification and Clustering
D02 Network Traffic Analysis:Packets and pcap/From Packets to Flows/Suspicious Behavior in Flows/Encrypted Traffic/Flow-based Intrusion Detection/Honeypots and Telescopes
D04 Anomaly Detection:Misuse, Anomaly, Profiling/Statistical Outliers/Isolation Forest and LOF
W12 (05/05): Language Model
D04:Time Series and Change Points/Self-Organizing Map/Thresholds and Evaluation Without Labels
LM01 Sequences and Word Embeddings:Why Order Matters/RNN/LSTM/Problem with One-Hot/word2vec/fastText/SBERT/Representations of API Call Sequences
N04 Graphs and Node Embedding:Graph Representations/DeepWalk/node2vec/GNN Concept/Provenance Graphs
W13 (05/12)
LM02 Transformer:Tokenization/Attention: Q, K, V/Self-, Cross-, Multi-Head/Positional Information/Transformer Block and Causal Mask/A Mini GPT/Next-Token, Masked LM, Perplexity/Attention Maps
LM03 Fine-tuning and Inference:Transfer Learning and Fine-tuning/A Base Model Still Needs Adapting
W14 (05/19):
LM03:LoRA/Quantization and QLoRA/Instruction Tuning, RLHF, DPO/KV Cache and Context Length/Sampling/Reasoning Models
D03 Log Analysis:Log Parsing and Template Mining/System Log Anomaly Detection/Next-event Models/Authentication Logs and Lateral Movement/Windows Event Log and Sysmon
W15 (05/26)
LM04 LLM Applications:Prompting and Structured Output/Retrieval and RAG/Tool Use and Agents/Evaluating LLM Applications
D05 Threat Intelligence:MITRE ATT&CK/Mapping Text to Techniques/IOCs and Entities
W16 (06/02): Final, no class.
5~6 assignments are expected.
Homework (50%): programming exercises and essays. You MUST see the ACADEMIC INTEGRITY section before taking this class.
Project (10%): student needs to write an analysis program on a security-related data set to demonstrate their understanding of security issues and data analysis skill. A proposal, a report, a presentation, and GitHub codes are required.
Midterm (20%)
Final (20%)
The Problem Solving Through Inquiry and Data Analysis rubric can be found here. You SHOULD read it carefully before submitting your first homework. It allows you to know exactly the way in which you will be assessed, it is helpful in facilitating academic integrity.
Plagiarism is a serious breach of academic trust. In academic work, our words, ideas and programs are the value of our work, so turning in someone else’s work as if it were your own is a form of theft. When you use someone else’s words, ideas, or programs without crediting the source or authorship of those words, ideas, and program, you are plagiarizing. So here’s the bottom line: original work only, credit to ideas, writing, words, or programs from someone other than you. Plagiarized work will automatically receive a “0” or “F” for the assignment.
Since cheating usually arises out of desperation and everyone has an occasional problem and finishes their work late, this class accepts late homework submission, but with a 15% per day penalty. We encourage you to complete your homework rather than drop it. Any oral discussion with classmates, TA and lecturer are welcomed, but you MUST NOT share any of your code in any form.