Skip to content
Projects

lucacav/foc has 26 GitHub stars and 6 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-15 18:03 UTC. Last push 2026-11-11.

How these counts are measured

Measured star growth

in 24h
0
in 7 days
Update delayed
in 15 days
Update delayed
in 1 month
Update delayed

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

About

Public repository for the "Foundations of Cybersecurity" course at UniPV

Security

README.md

Original

Foundations of Cybersecurity

This is the repository for the "Foundations of Cybersecurity" course held at University of Pavia - Department of Electrical, Computer and Biomedical Engineering. The duration of the course is of 45 hours.


🏴󠁧󠁢󠁥󠁮󠁧󠁿 The goal of the course is to provide a high-level view of the main cybersecurity aspects at the basis of modern software and network ecosystems. The course will allow to understand vulnerabilities and weaknesses plaguing the software, recognize bad security practices and major attack models, as well as to autonomously retrieve information on malware and network threats.

The prerequisites for the course are: basic understanding of operating systems and hardware architectures, basic knowledge of programming and of the most popular network protocols.

The course is organized in self-contained modules, each one investigating a major topic in cybersecurity related to the role of a professional engineer.


🇮🇹 L'obiettivo del corso è fornire una panoramica dei principali aspetti di cybersecurity alla base dei moderni ecosistemi software e infrastrutture di rete. Il corso consentirà di comprendere le vulnerabilità e le debolezze del software, riconoscere le cattive pratiche di sicurezza, i principali modelli di attacco, e di reperire autonomamente informazioni su malware e minacce informatiche.

I prerequisiti del corso sono: conoscenza di base dei sistemi operativi e delle architetture hardware, nozioni di base di programmazione e dei protocolli di rete più diffusi.

Il corso è organizzato in moduli auto-contenuti che trattano un tema base della sicurezza informatica di particolare rilevanza per la figura dell'ingegnere.


🚨 Important: this repository will be updated during the year according to the actual pace of the course. As soon as a module will be ready to be used, its description and purpose will appear in this README file. Course material not yet covered in class should be intended only as a reference for past students and interested readers, i.e., it may not be up to date.

📢 The official language for the classes as well as for all the material is english.

🦖 Past students: material of previous editions of the course has been "packed" into a yearly release. Material of lectures for the academic year 2025/2026, including the README with various details on lectures, can be found here.

Organization of the Repository

Each module has its own set of resources, which may vary according to the topic. The general organization of the repository is based on the following folders:

  • Slides: the .pdf version of the slides;
  • Examples: various examples shown during the course, e.g., code, scripts, and outputs;
  • References: reference research papers that can provide details for studying the topic or useful directions for further investigations;
  • Misc: videos, reports, and simple PoC tools to make a topic clearer (and more enjoayble).

Module 0 - Foreword

This module discusses some bureaucracy and general rules (e.g., what is needed to pass the course) just to crack the ice.

Module 1 - Introduction and Basics

This module addresses some introductory information (e.g., the relevance of cybersecurity aspects), the Cyber Kill Chain, the MITRE ATT&CK framework, general concepts related to attack surface and attack surface reduction practices, and a brief discussion on the importance of considering human aspects. The related material contains some reference papers and official reports as well as examples of ATT&CK layers.

Module 2 - Security Analysis and Modeling

This module covers how some software security aspects can be analyzed and modeled. Specifically, it deals with the Common Weaknesses Enumeration (CWE), the Common Vulnerability Enumeration (CVE), and the Common Vulnerability Scoring System (CVSS). The modules also provides a basic discussion on testing approaches (static and fuzzing) as well as on the paradigm shift imposed by AI-based tools. The related material contains some reference papers, a tutorial/challenge for fuzz-testing the xpdf package via the AFL fuzzer, and an LLM analysis of a tiny Python script plagued by CWE-78.

Module 3 - Software Supply Chain Security

This module deals with major attack entry points and security implications of modern software supply chains. In more detail, it covers threats against source code and dependencies, *-squatting techniques, and Software Bill of Materials (SBOMs). The module also presents some mitigation techniques, i.e., debloating and reproducible builds. The related material contains some reference papers, the RATatouille payload, SBOMs in .json/Cyclone-DX format, outputs generated by Trivy, and small examples to be used against Grype and diffoscope. A simple "SquatScanner" tool is also provided, which can be used to better understand how to build your own testing tools.

Module 4 - Malware

This module discusses major aspects of malware. In more detail, it showcases major malware types, e.g., virus, worms, droppers, RATs, trojans, cryptolockers, and cryptominers, and it introduces the basic architectural blueprint of malicious software. The module also presents some concepts of malware analysis, mainly focusing on static approaches and how to "distill" basic YARA rules. The last part of the module briefly shows advanced offensive techniques, like obfuscation and minification (the latter is not an offensive technique in a strict sense). The related material contains basic reference papers, the main outputs of static approaches, a short presentation on the relation between CVEs and advanced attack templates, and example YARA rules.

WARNING: the supplemental material includes archives with real malicious software. To avoid unintended usages, they are protected by a password, which will be disclosed during lectures. In any case, pay a lot of attention, do not wipe out yourself or your neighborhood.

Module 5 - Network Security

This module reviews the major aspect of network security. Specifically, it covers spoofing attacks, DoS/DDoS templates, and packet filters (firewalls). The module also introduces vulnerability/network scanning and related strategies, as well as prime countermeasures to reduce the network attack surface such as, hardening, network segmentation and honeypots. The related material contains some reference papers and a very basic port scanner written in Python.

Module 6 - Information Hiding

This module introduces how information hiding techniques can be used both as offensive and defensive mechanisms. In more detail, it first discusses covert channels, with examples related to emerging real attack campaigns. Then it presents stegomalware (i.e., malicious software that takes advantage of steganography) to remain undetected. The module also discusses watermarking techniques that can be used to track and protect different types of contents, mainly software and AI. The related material contains introductory papers on the topic, some videos on covert communications, and examples on how to mark AI models and network traffic.

DISCLAIMER: concepts belonging to this module are at the intersection between industry and research. The idea here is to present advanced techniques that require a "nice thinking" to be faced and to underline that ambiguities and imperfect isolation may be exploited by an attacker.

Acknowledgments

The material used during the course and collected in this repository has been prepared with the help of many friends and colleagues. Angelica Liguori is the owner of the code for watermarking AI models, while Marco Zuppelli prepared digital media and network traffic examples for information hiding. Giacomo Benedetti provided code and ideas on the security of the software supply chain. Silvia Lucia Sanna contributed with details on the dynamic analysis of malware. Luca Veltri and Matteo Repetto shared the slides used in their network security courses.

Contacts

Please, report any issue or mistake. And feel free to contact me at luca.caviglione(AT)cnr.it