00_index

📡 Open5GS Telecom Security Lab Guide

A comprehensive hands-on guide to 4G/5G networks, Kubernetes, and threat modeling for security engineers


🎯 Learning Objectives

By completing this lab guide, you will:


📚 Guide Structure

Theory Sections

Part File Description
1 4G/LTE Fundamentals EPC architecture, CUPS, interfaces (S1, S5, S6a, S11, Gx)
2 5G NSA Architecture EN-DC, dual connectivity, eNB+gNB integration
3 5G SA Architecture SBA, NRF, all NFs, N-series interfaces, slicing

Hands-On Labs

Part File Description
4 Docker Lab: 4G EPC Build 4G core with Open5GS + UERANSIM on Docker
5 Docker Lab: 5G NSA Configure NSA mode with EN-DC
6 Docker Lab: 5G SA Build full 5G SA core with all NFs
7 Kubernetes Deployment Deploy Open5GS on K8s with Helm charts

Threat Modeling

Part File Description
8 4G Threat Model STRIDE analysis of 4G EPC attack surface
9 5G Threat Model STRIDE analysis of 5G SA attack surface
10 K8s + Telecom Threats Container, orchestration, and supply chain threats

🛠️ Prerequisites

Hardware

Software

Optional (for K8s labs)

Important

Docker Image Sources: The labs use per-NF images from borjis131/docker-open5gs (e.g., borieher/open5gs-amf:v2.7.6). There is no single monolithic Open5GS Docker image.

Warning

UERANSIM Limitation: UERANSIM simulates 5G NR only (gNB + 5G UE). It cannot simulate 4G eNBs. Parts 4-5 use UERANSIM connecting to Open5GS in its combined 4G/5G mode. For genuine 4G-only simulation, use srsRAN.


  1. Read Parts 1-3 (Theory)
  2. Complete Parts 4-6 (Docker Labs)
  3. Complete Part 7 (Kubernetes)
  4. Study Parts 8-10 (Threat Modeling)

Path 2: Hands-On First (For Experienced Engineers)

  1. Skim Part 1 (4G basics)
  2. Complete Part 4 (4G Docker Lab)
  3. Read Part 3 (5G SA theory)
  4. Complete Part 6 (5G SA Docker Lab)
  5. Jump to Parts 8-10 (Threat Modeling)

Path 3: Security-Focused (For Threat Modelers)

  1. Skim Parts 1-3 (Architecture overview)
  2. Read Parts 8-10 (Threat Models)
  3. Complete Parts 4-6 (Labs to validate threats)

📖 How to Use This Guide

Reading Tips

Lab Tips

Threat Modeling Tips


🔗 External Resources


🤝 Contributing

Found an error or want to improve this guide? Contributions welcome!


Let's build some mobile networks! 🚀

Start with → Part 1: 4G/LTE Fundamentals