Live Lesson: Netsim: Network simulation and hacking for high schoolers

Erinn Atwater, Cecylia Bocovich, Urs Hengartner, Ian GoldbergASE @ USENIX Security Symposium 2017

TL;DR

This paper introduces Netsim, a web-based network simulator designed to teach high school students fundamental networking concepts and security vulnerabilities through a gamified hacking experience. It addresses the challenge of making complex technical topics engaging and accessible to a young audience, demonstrating its effectiveness through case studies and outlining future improvements.

What Problem Does This Paper Address?

Teaching computer networking and security to high school students presents a significant challenge. Traditional methods often involve dry lectures and abstract concepts that can be difficult for younger learners to grasp. Furthermore, understanding network security requires thinking like an attacker, a perspective that is not easily fostered through standard educational approaches. The authors aim to bridge this gap by creating an engaging, hands-on learning tool that allows students to actively explore network protocols and common attack vectors in a simulated, risk-free environment. They highlight that network security is fundamentally an engineering pursuit, not just about "hacking" in a sensationalized sense, and Netsim is designed to reflect this.

Methods

Netsim is implemented as a web application, utilizing the Phaser JavaScript game library for graphics and jQuery UI for the user interface. The backend, responsible for user accounts, packet storage, and level progress, is built with PHP and an SQLite database. Level definitions are stored in JSON files, and tutorial content is in HTML. This architecture allows for easy installation and accessibility, as it can be hosted on any web server and accessed through a browser without local software installation.

The core gameplay involves students crafting network packets by manipulating header fields within a GUI. They then inject these packets into a simulated network topology, which is pre-defined for each level. The game progresses through a series of levels, each introducing new concepts, from basic protocol operations to more complex attacks like address spoofing and denial-of-service. Device scripts, written in JavaScript, dictate how devices respond to incoming packets, adding a dynamic element to the simulation. The game engine handles packet animation, user interaction, and simulation management.

Datasets

Not discussed in the paper.

Key Insights and Ideas

  • Gamification for Engagement: By framing network security as a hacking game, Netsim taps into students' curiosity and desire to "break" systems, making learning more intrinsically motivating.
  • Learning by Doing (and Failing Safely): The game encourages exploration and experimentation. Unlike traditional programming where errors lead to frustration, Netsim treats incorrect packet crafting as a learning step, providing feedback that helps students understand network behavior.
  • Thinking Like an Attacker: The game mechanics inherently require students to consider how systems can be misused, fostering a crucial mindset for understanding and designing secure systems.
  • Web-Based Accessibility: Implementing Netsim as a web app significantly lowers the barrier to entry for both students and educators, eliminating the need for complex local installations and making it accessible on various devices.
  • Iterative Design Based on Feedback: The authors actively incorporated feedback from workshops with high school students and teachers to refine the UI, game mechanics, and overall learning experience.

Key Results

The paper details the positive experiences from informal case studies involving high school students and teachers. Key findings include:

  • Improved UI: Simplifications were made to the packet crafting interface, moving from requiring exact reproduction of header names and values to fixing header names and allowing students to focus on values. This reduced frustration and confusion.
  • Integrated Interface: Combining the packet editor and simulator into a single window streamlined the workflow, preventing students from losing progress by forgetting to save.
  • Positive Reinforcement: The introduction of flashy completion messages (e.g., fireworks) at the end of levels generated significant positive emotions and motivation among players.
  • Collaborative Learning: Students were observed sharing "cool or unusual behaviors" they discovered, fostering a sense of community and shared learning.
  • Workshop Success: The game proved effective in workshops, with students progressing through levels and gaining understanding, often with minimal instructor intervention, though the presence of experienced volunteers significantly enhanced the learning experience.

Limitations and Future Work

The authors acknowledge several limitations and outline promising future directions:

  • UI Refinement: Continuous tweaking of the user interface for greater intuitiveness is ongoing.
  • Teacher Support Materials: Development of comprehensive teaching materials for educators without computer science backgrounds is a priority.
  • Graphical Level Editor: While JSON editing is functional, a graphical level editor is planned to make level creation more accessible.
  • Expanded Protocol Support: Future levels will aim to demonstrate protocols like DHCP, DNS, and email, and explore concepts like Internet privacy and wireless attacks.
  • Simplified Deployment: Work is underway on a PHP-free version to simplify installation for self-hosting.
  • Abstracted Concepts: The game currently abstracts away some complexities like link layers and numeric IP addresses, which may be reintroduced in future iterations.

Summary updated

BibTeX
@inproceedings{atwater2017live,
  author = {Erinn Atwater and Cecylia Bocovich and Urs Hengartner and Ian Goldberg},
  title = {{Live Lesson: Netsim: Network simulation and hacking for high schoolers}},
  booktitle = {ASE @ USENIX Security Symposium},
  year = {2017},
  url = {https://openreview.net/forum?id=JC2mAWkEpb},
}
Figure