Introduction to Data Security Practicum / Spring 2027
Updates
Overview
Machine learning models are increasingly deployed in security-critical settings, including medical diagnostics, autonomous vehicles, and financial fraud detection. Unlike traditional software where security boundaries rely on deterministic logic and memory safety, deep neural networks present vulnerabilities tied to their statistical nature, high-dimensional representations, and training data dependencies.
This practicum explores security and privacy across the machine learning lifecycle through hands-on implementation in PyTorch. Students study both attack techniques and defensive methods: crafting evasion inputs, poisoning training sets, embedding weight backdoors, and extracting private training records via membership inference and model inversion. In parallel, students implement defenses including adversarial training, certified robustness, differential privacy (DP-SGD), and federated learning protocols.
Prerequisites
Students should be comfortable with:
- Programming: Python and basic PyTorch (tensors, neural network layers, custom training loops, and data loaders).
- Machine Learning Foundations: Supervised learning, loss functions, optimization via gradient descent, and standard classification metrics.
- Compute: No dedicated local hardware or GPU is required. All labs run directly in Google Colab.
Course Curriculum
The curriculum spans 8 core modules across the 14-week practicum. Select any lab topic to jump directly to its technical objectives and launch the notebook on the Labs page:
| Module | Lab | Topic | Session Date |
|---|---|---|---|
|
Module 1 Foundations |
1 | DNN Training & Robust Model Baselines | 02/09/2027 |
|
Module 2 Input Manipulation |
2 | Evasion Attacks (FGSM, PGD & Foolbox) | 02/16/2027 |
|
Module 3 Poisoning & Supply Chain |
3A | Data Poisoning & Trigger Injection | 02/23/2027 |
| 3B | Model Trojans & Certified Defenses | 03/02/2027 | |
|
Module 4 Availability & Resource Exhaustion |
4 | Sponge Attacks & Energy Exhaustion Defenses | 03/09/2027 |
|
Module 5 Confidentiality & Privacy Auditing |
5A | Membership Inference Attacks with ART | 03/30/2027 |
| 5B | Model Inversion & Feature Reconstruction | 04/06/2027 | |
|
Module 6 Synthetic Data Generation |
6 | Tabular Synthetic Data (VAE, CTGAN) | 04/13/2027 |
|
Module 7 Provable Defenses |
7A | Differential Privacy & DP-SGD with Opacus | 04/20/2027 |
| 7B | Federated Learning & Adversarial Training | 04/27/2027 | |
|
Module 8 GenAI & LLM Security |
8 | LLM Security: Prompt Injection & Jailbreaking | 05/04/2027 |
Learning Outcomes
By the end of this course, students will be able to:
- Analyze adversarial threat models across both classical deep learning and foundation model lifecycles.
- Implement & Benchmark adversarial evasion, poisoning, trojans, and prompt injection attacks in PyTorch using industrial toolkits (Foolbox, ART).
- Audit & Quantify privacy leakage (Membership Inference, Model Inversion) under regulatory frameworks like GDPR.
- Design & Deploy mathematically certified and empirical defenses, including Differential Privacy (DP-SGD with Opacus), robust adversarial training, and federated learning protocols.
- Synthesize privacy-preserving tabular datasets using generative models (VAEs, CTGAN) for safe data sharing.
Grading & Evaluation
Coursework is evaluated continuously throughout the 14-week practicum (Gyakorlati jegy). To ensure independent mastery in an AI-assisted environment, the majority of the grade is determined by supervised in-class practical milestones:
| Component | Weight | Assessment | Schedule & Scope |
|---|---|---|---|
| Attendance & Participation | 15% | Weekly in-lab presence | Mandatory attendance (max 3 absences per TVSZ) |
| Lab Exercises & Oral Defense | 25% | In-class exercise checkoffs | Completed during lab and orally explained to instructor |
| Midterm Practical Test (ZH 1) | 30% | In-class supervised test | Week 7 (Modules 1 to 4: Evasion & Poisoning) |
| End-Term Practical Test (ZH 2) | 30% | In-class supervised test | Week 14 (Modules 5 to 8: Privacy & Defenses) |
Grading Scale
| Grade | Percentage | Descriptor (HU) | Criteria |
|---|---|---|---|
| 5 | 85% to 100% | Excellent (Jeles) | Comprehensive mastery of attack mechanics and defenses |
| 4 | 70% to 84% | Good (Jó) | Solid practical implementation and analytical interpretation |
| 3 | 55% to 69% | Satisfactory (Közepes) | Functional implementations with minor conceptual gaps |
| 2 | 40% to 54% | Pass (Elégséges) | Reaches minimum passing threshold across evaluations |
| 1 | Below 40% | Fail (Elégtelen) | Below passing threshold or exceeded absence limit |
Core Policies
- Passing Threshold: Requires at least 40% (Grade 2) overall and at least 40% on each of the two in-class tests (ZH 1 and ZH 2).
- Retake Policy (Pótlás): In accordance with ELTE TVSZ, students may sit for one comprehensive retake examination (Pót-ZH) at semester end to make up or improve a test score.
- Attendance Limit: In accordance with ELTE TVSZ, missing more than 3 lab sessions results in refusal of the practical mark.
- AI & Oral Explanation Policy: AI code assistants may be used to generate or refine code. However, credit is awarded exclusively when the student demonstrates full comprehension by clearly explaining the code logic, algorithm mechanics, and experimental observations. Inability to explain code results in zero credit for the exercise.
Getting Started
- Check the Schedule for weekly lab sessions and evaluation milestones.
- Open the Labs page to access interactive notebooks and launch them in Google Colab using your Google account.
- Consult the Resources page for setup recommendations, background reading, and tools.