Arslan Khan

CSE 544 - Systems Security

Systems Security

This course provides a systems-oriented introduction to computer security, focusing on the mechanisms used to protect modern operating systems, applications, and computing platforms. The course examines how security policies are translated into concrete system mechanisms, how these mechanisms are implemented in modern systems, and how failures in software and hardware abstractions can undermine their security guarantees.

The course begins with memory safety, exploitation, and modern exploit mitigations before moving into kernel security, classical protection mechanisms (access control, mandatory access control, SELinux/LSM), and Linux container and sandboxing isolation primitives. We then study modern policy engines (Flask architecture, Cedar, and Rego/OPA) and virtualization (hypervisors, microVMs, and TCB disaggregation), followed by an in-depth module on agentic AI security (LLM orchestration, RAG and memory poisoning, multi-agent systems, tool trust boundaries, and execution isolation defenses). Throughout the course, the emphasis is on understanding the underlying mechanisms rather than treating modern security systems as black boxes.

Course Materials

Location (Fall 26)

  • Leonhard Bldg 203
  • TuTh 10:35AM - 11:50AM

Schedule

The following schedule is tentative and subject to change throughout the semester. Topics, ordering, quiz dates, and the amount of time devoted to individual modules may be adjusted based on class progress, student background, and emerging systems-security developments.

All code used in class will be made available on GitHub when possible.

Short quizzes will be given after major course modules to assess understanding of systems-security concepts, mechanisms, attacks, and design tradeoffs.

Click on any week to expand or collapse topics and readings.
Week 1 — August 25 & 27: Systems Security Foundations & Readings
Topics
  • Threat models and security goals
  • Security policies versus mechanisms
  • Trusted Computing Base
  • Reference monitors
  • Protection domains
  • Least privilege
  • User/kernel boundary
  • Attack surfaces
  • Fundamental principles of secure-system design
Readings: Foundations of Systems Security: Least Privilege and Protection

Required Reading

  • Nick Roessler et al. "μSCOPE: A Methodology for Analyzing Least-Privilege Compartmentalization in Large Software Artifacts." RAID, 2021. Presents a methodology for reasoning about and quantifying least privilege in complex software systems. Using the Linux kernel as a case study, the paper examines overprivilege, protection domains, compartmentalization, and the tradeoff between stronger privilege separation and enforcement overhead. [Paper]

Optional Readings

  • Adam Barth, Collin Jackson, Charles Reis, and the Google Chrome Team. "The Security Architecture of the Chromium Browser." 2008. Demonstrates how a real-world system applies protection domains, privilege separation, sandboxing, and attack-surface reduction. It also provides a concrete example of reasoning from an explicit threat model to a security architecture. [Paper]
  • Tianneng Shi, Jingxuan He, Zhun Wang, Linyu Wu, Hongwei Li, Wenbo Guo, and Dawn Song. "Progent: Programmable Privilege Control for LLM Agents." 2025. Applies the principle of least privilege to agentic systems by enforcing fine-grained policies over tool calls and their arguments. It explores how an agent's privileges can be dynamically restricted according to the task being performed. [Paper]
  • Jinhao Zhu, Kevin Tseng, Gil Vernik, Xiao Huang, Shishir G. Patil, Vivian Fang, and Raluca Ada Popa. "MiniScope: A Least Privilege Framework for Authorizing Tool Calling Agents." 2025. Develops a least-privilege authorization model for tool-calling agents by reconstructing permission hierarchies and granting agents only the permissions necessary to perform a task. [Paper]
Week 2 — September 1 & 3: Memory Safety and Exploitation & Readings
Topics
  • Process memory layout
  • Stack and heap memory
  • Buffer overflows
  • Stack corruption
  • Heap corruption
  • Use-after-free vulnerabilities
  • Double-free vulnerabilities
  • Integer vulnerabilities
  • Spatial and temporal memory safety
  • Control-flow hijacking
  • Return-Oriented Programming
Readings: Memory Safety and Exploitation

Required Reading

  • Adriaan Jacobs, Mahmoud Ammar, and Stijn Volckaert. "SoK: On the Fragility of Memory Error Exploit Mitigations." 35th USENIX Security Symposium (USENIX Security '26), 2026. [Paper]

Optional Readings

  • Aleph One. "Smashing the Stack for Fun and Profit." Phrack Magazine, Vol. 7, Issue 49, 1996. [Paper]
  • Jonathan Pincus and Brandon Baker. "Beyond Stack Smashing: Recent Advances in Exploiting Buffer Overruns." IEEE Security & Privacy, 2004. [Paper]
  • Hovav Shacham, Matthew Page, Ben Pfaff, Eu-Jin Goh, Nagendra Modadugu, and Dan Boneh. "On the Effectiveness of Address-Space Randomization." ACM Conference on Computer and Communications Security (CCS), 2004. [Paper]
  • Hovav Shacham. "The Geometry of Innocent Flesh on the Bone: Return-into-libc without Function Calls (on the x86)." ACM Conference on Computer and Communications Security (CCS), 2007. (Canonical ROP paper). [Paper]
  • László Szekeres, Mathias Payer, Tao Wei, and Dawn Song. "SoK: Eternal War in Memory." IEEE Symposium on Security and Privacy (S&P), 2013. [Paper]
  • Kevin Z. Snow, Fabien Monrose, Lucas Davi, Alexandra Dmitrienko, Christopher Liebchen, and Ahmad-Reza Sadeghi. "Just-In-Time Code Reuse: Bypassing Exploit Mitigation on Browsers." IEEE Symposium on Security and Privacy (S&P), 2013. [Paper]
  • Alexander Sotirov. "Heap Feng Shui in JavaScript." Black Hat USA, 2007. [Paper]
  • Andrea Bittau, Adam Belay, Ali Mashtizadeh, David Mazières, and Dan Boneh. "Hacking Blind." IEEE Symposium on Security and Privacy (S&P), 2014. (BROP). [Paper]
  • Felix Schuster, Thomas Tendyck, Christopher Liebchen, Lucas Davi, Ahmad-Reza Sadeghi, and Thorsten Holz. "Counterfeit Object-Oriented Programming: On the Difficulty of Preventing Code Reuse Attacks in C++ Applications (COOP)." IEEE Symposium on Security and Privacy (S&P), 2015. [Paper]
  • Nicholas Carlini, Antonio Barresi, Mathias Payer, David Wagner, and Thomas R. Gross. "Control-Flow Bending: On the Effectiveness of Control-Flow Integrity." USENIX Security Symposium, 2015. [Paper]
  • Hong Hu, Shweta Shinde, Sendroiu Adrian, Zheng Leong Chua, Prateek Saxena, and Zhenkai Liang. "Data-Oriented Programming: On the Expressiveness of Non-Control Data Attacks." IEEE Symposium on Security and Privacy (S&P), 2016. [Paper]
Week 3 — September 8 & 10: Memory-Safety Defenses & Readings
Topics
  • Stack canaries
  • NX / DEP
  • Address Space Layout Randomization
  • RELRO
  • Control-Flow Integrity
  • Shadow stacks
  • Pointer Authentication
  • Memory tagging
  • Hardware-assisted memory safety
  • Memory-safe programming languages
  • Limitations and bypasses of modern mitigations
Readings for Memory Safety

Required Reading

  • László Szekeres, Mathias Payer, Tao Wei, and Dawn Song. "SoK: Eternal War in Memory." IEEE Symposium on Security and Privacy (S&P), 2013. A broad overview of memory corruption, spatial and temporal memory safety, exploitation techniques, and major classes of defenses. [Paper]

Optional Readings

  • Crispin Cowan et al. "StackGuard: Automatic Adaptive Detection and Prevention of Buffer-Overflow Attacks." USENIX Security, 1998. Classic stack-canary work. Useful for distinguishing exploit mitigation from complete memory safety. [Paper]
  • Santosh Nagarakatte, Jianzhou Zhao, Milo M. K. Martin, and Steve Zdancewic. "SoftBound: Highly Compatible and Complete Spatial Memory Safety for C." PLDI, 2009. A canonical metadata-based approach for enforcing spatial memory safety. [Paper]
  • Santosh Nagarakatte, Jianzhou Zhao, Milo M. K. Martin, and Steve Zdancewic. "CETS: Compiler Enforced Temporal Safety for C." ISMM, 2010. A companion to SoftBound focused on temporal memory safety, including dangling pointers and use-after-free. [Paper]
  • Konstantin Serebryany, Derek Bruening, Alexander Potapenko, and Dmitry Vyukov. "AddressSanitizer: A Fast Address Sanity Checker." USENIX ATC, 2012. The foundational paper behind AddressSanitizer, covering shadow memory and practical detection of memory errors. [Paper]
  • Jonathan Woodruff et al. "The CHERI Capability Model: Revisiting RISC in an Age of Risk." ISCA, 2014. Introduces the CHERI capability architecture and hardware-supported pointer bounds and authority. [Paper]
  • Ralf Jung et al. "RustBelt: Securing the Foundations of the Rust Programming Language." POPL, 2018. Provides a formal foundation for Rust's ownership-based memory-safety guarantees, including interaction with unsafe code. [Paper]
Module Quiz follows this topic.
Week 4 — September 15 & 17: Kernel Security
  • Kernel attack surface
  • System calls and the user/kernel boundary
  • Kernel memory corruption
  • Kernel privilege escalation
  • Kernel drivers
  • Driver security
  • Kernel exploitation
  • Kernel hardening
  • Kernel attack-surface reduction
  • Modern kernel defense mechanisms
Module Quiz follows this topic.
Week 5 — September 22 & 24: Access Control & Readings
Topics
  • Access-control matrix
  • Access Control Lists
  • Unix file permissions
  • Users and groups
  • UID, EUID, and SUID
  • setuid and setgid
  • Linux capabilities
  • Discretionary Access Control
  • Confused deputy attacks
  • Capability-based security
  • Privilege transitions
Readings: Access Control and Privilege Management

Required Reading

  • Hao Chen, David Wagner, and Drew Dean. "Setuid Demystified." 11th USENIX Security Symposium, 2002. Analyzes Unix user-ID management semantics, formulates formal state-machine models for privilege transitions, and highlights subtle vulnerabilities that lead to privilege escalation. [Paper]

Optional Readings

  • Jerome H. Saltzer and Michael D. Schroeder. "The Protection of Information in Computer Systems." Proceedings of the IEEE, 1975. Foundational survey outlining design principles for protection mechanisms including least privilege, complete mediation, and fail-safe defaults. [Paper]
  • Norm Hardy. "The Confused Deputy: (or why I know that the 'substitute Programmer' is not a bug)." ACM SIGOPS Operating Systems Review, 1988. The classic paper identifying the confused deputy vulnerability and explaining how capability systems solve ambient-authority pitfalls in access control. [Paper]
  • Butler W. Lampson. "Protection." ACM SIGOPS Operating Systems Review, 1974. Introduced the foundational Access Control Matrix model formalizing subjects, objects, access rights, and domain switching. [Paper]
Important Milestone: Research-based semester project proposals are due Thursday, September 24. Students without an approved research proposal will complete the instructor-defined project.
Week 6 — September 29 & October 1: Mandatory Access Control and SELinux & Readings
Topics
  • Discretionary versus Mandatory Access Control
  • Bell-LaPadula
  • Biba
  • Multi-Level Security
  • Linux Security Modules
  • SELinux
  • AppArmor
  • Labels and security domains
  • Type Enforcement
  • Policy transitions
  • Landlock
  • Reference-monitor implementation
Readings: Mandatory Access Control and Kernel Security Modules

Required Reading

  • Peter Loscocco and Stephen Smalley. "Integrating Flexible Support for Security Policies into the Linux Operating System." USENIX Annual Technical Conference (FREENIX Track), 2001. Introduces NSA's Security-Enhanced Linux (SELinux) and the Flask architecture, separating policy enforcement mechanisms in the OS kernel from decision logic to provide fine-grained Mandatory Access Control. [Paper]
  • Chris Wright, Crispin Cowan, Stephen Smalley, James Morris, and Greg Kroah-Hartman. "Linux Security Modules: General Security Support for the Linux Kernel." 11th USENIX Security Symposium, 2002. Describes the design and implementation of the Linux Security Modules (LSM) framework providing mediation hooks across kernel operations. [Paper]

Optional Readings

  • Xiaolan Zhang, Antony Edwards, and Trent Jaeger. "Using Cqual for Static Analysis of Authorization Hook Placement." 11th USENIX Security Symposium, 2002. Uses type qualifier analysis via Cqual to verify authorization hook placement in the Linux kernel and prove the absence of unmediated access paths in LSM. [Paper]
  • David E. Bell and Leonard J. LaPadula. "Secure Computer Systems: Unified Exposition and Multics Interpretation." MITRE Technical Report, 1976. The foundational mathematical model for mandatory confidentiality security policies (no read-up, no write-down). [Paper]
  • Kenneth J. Biba. "Integrity Considerations for Secure Computer Systems." MITRE Technical Report, 1977. The canonical integrity reference model establishing strict integrity access rules (no read-down, no write-up). [Paper]
  • Stephen Smalley and Robert Craig. "Security Enhanced (SE) Android: Bringing Flexible MAC to Android." Network and Distributed System Security Symposium (NDSS), 2013. Demonstrates the adaptation of SELinux and Type Enforcement to mobile computing to sandbox third-party apps and contain privilege escalation attacks. [Paper]
  • Mickaël Salaün. "Landlock LSM: Unprivileged Access Control." Linux Kernel Documentation & LPC, 2021. Overview of the Landlock security module, allowing unprivileged processes to create scoped sandbox restrictions for filesystems and networking. [Documentation]
Module Quiz follows this topic.
Week 7 — October 6 & 8: Extended SELinux / LSM & Linux Isolation Primitives

Continuation of Mandatory Access Control / LSM enforcement and the Linux isolation primitives from which modern containers and sandboxes are constructed.

  • SELinux policy enforcement, domain transitions, and LSM hook mediation
  • chroot, mounts, bind mounts, and pivot_root
  • Linux namespaces (User, PID, Mount, Network, IPC, UTS)
  • cgroups and resource isolation
  • Linux capabilities, no_new_privs, and seccomp-BPF
  • unshare, nsenter, and rootless isolation
Week 8 — October 13 & 15: Containers and Application Sandboxing
  • Constructing containers from Linux isolation primitives
  • OCI container model, runc, containerd, and Docker architecture
  • Container root filesystems and OverlayFS
  • Rootless vs. privileged containers
  • Container capability misconfigurations and escape vulnerabilities
  • Dangerous mounts and Docker socket exposure
  • Application sandboxes: Bubblewrap (bwrap), Firejail, and systemd-nspawn
  • Containers versus virtual machines as security boundaries
Module Quiz follows this topic.
Week 9 — October 20 & 22: Policy Engines & Authorization Architectures (Flask & Cedar) & Readings
Topics
  • Flask security architecture: separating Policy Enforcement Points (PEP / Object Managers) from Policy Decision Points (PDP / Security Server)
  • Access Vector Cache (AVC), dynamic policy reloads, and reference-monitor guarantees
  • Policy as Code and core features of modern authorization languages
  • Cedar authorization engine: structured Principal–Action–Resource–Context (PARC) request model
  • Entity hierarchies, first-class entity graphs, and attribute-based reasoning (RBAC, ABAC, ReBAC)
  • Cedar evaluation semantics: permit, forbid, and default-deny guarantees
  • Policy construction, schemas, static typechecking, and policy validation
Readings: Flask Architecture and Cedar Authorization

Required Reading

  • Ray Spencer, Stephen Smalley, Peter Loscocco, Mike Hibler, David Andersen, and Jay Lepreau. "The Flask Security Architecture: System Support for Diverse Security Policies." 8th USENIX Security Symposium, 1999. Defines the foundational Flask architecture decoupling policy decision logic from enforcement mechanisms. [Paper]
  • Joseph W. Cutler et al. "Cedar: A New Language for Expressive, Fast, Safe, and Analyzable Authorization." OOPSLA (PACMPL), 2024. Introduces the design, formal semantics, type system, and automated verification of the Cedar policy language. [Paper]
Week 10 — October 27 & 29: Declarative Policy Engines (Rego / OPA) & Policy Verification
Topics
  • Open Policy Agent (OPA) and the Rego declarative policy language
  • Datalog foundations, rule definitions, logical unification, and virtual documents
  • Evaluating policies over arbitrary JSON (input and data document hierarchies)
  • Architectural tradeoffs: Cedar vs. Rego (first-class entity graphs vs. arbitrary JSON; structured PARC vs. general-purpose queries)
  • Typing, schemas, decidability, and SMT-based formal policy verification
  • Applying policy engines to agentic systems and tool-execution runtimes (slangGraph)
Readings: Declarative Policy Engines & Verification

Required Reading

  • Open Policy Agent (OPA). "Policy Language (Rego) & Architecture." CNCF Documentation. Comprehensive guide to Rego's declarative query model, rule evaluation, and JSON document matching. [Documentation]

Optional Readings

  • Cedar Team. "Cedar Policy Language Reference & Validation Guide." Covers entity schemas, template-linked policies, and formal verification of authorization invariants. [Documentation]
Module Quiz follows this topic.
Week 11 — November 3 & 5: Virtualization & Hypervisor Security & Readings
Topics
  • OS vs. Hypervisor Trusted Computing Base ("Is the OS the best TCB?")
  • Popek and Goldberg Virtualization Theorem (privileged vs. sensitive instructions, trap-and-emulate)
  • Dynamic Binary Translation (DBT) for non-virtualizable architectures
  • Hardware-assisted virtualization (Intel VT-x / AMD-V, root vs. non-root operation, VM exits, EPT/NPT)
  • Paravirtualization, hypercalls, and VirtIO
  • Types of Virtual Machine Monitors (Type-1 vs. Type-2 hypervisors)
  • The TCB Disaggregation Problem across VMM architectures:
    • KVM + QEMU and ARM Virtualization Host Extensions (VHE)
    • Xen + Dom0 split-driver architectures
    • Unikernels and library operating systems
    • Lightweight MicroVMs: AWS Firecracker
    • Hardware-offloaded hypervisors: AWS Nitro
  • Virtualization attack vectors, emulated device vulnerabilities, and VM escape attacks
Readings: Virtualization Architectures and TCB Disaggregation

Required Reading

  • Keith Adams and Ole Agesen. "A Comparison of Software and Hardware Techniques for x86 Virtualization." 12th International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS), 2006. Analyzes classical x86 virtualization challenges, dynamic binary translation, and hardware-assisted virtualization tradeoffs. [Paper]
  • Alexandru Agache et al. "Firecracker: Lightweight Virtualization for Serverless Applications." 17th USENIX Symposium on Networked Systems Design and Implementation (NSDI), 2020. Examines TCB bloat in traditional QEMU/KVM stacks and introduces AWS Firecracker's minimalist microVM architecture for multi-tenant isolation. [Paper]

Optional Readings

  • Gerald J. Popek and Robert P. Goldberg. "Formal Requirements for Virtualizable Third Generation Architectures." Communications of the ACM, 1974. Establishes the foundational theorem characterizing instruction-set virtualizability via privileged and sensitive instructions. [Paper]
  • Paul Barham et al. "Xen and the Art of Virtualization." 19th ACM Symposium on Operating Systems Principles (SOSP), 2003. Introduces high-performance paravirtualization and the Xen hypervisor + Dom0 management architecture. [Paper]
  • Patrick Colp et al. "Breaking Up is Hard to Do: Security and Functionality in a Commodity Hypervisor." 23rd ACM Symposium on Operating Systems Principles (SOSP), 2011. Tackles the Xen Dom0 TCB disaggregation problem by decomposing the monolithic control VM into single-purpose service VMs (Xoar). [Paper]
  • Anil Madhavapeddy et al. "Unikernels: Library Operating Systems for the Cloud." ASPLOS, 2013. Demonstrates extreme TCB reduction by compiling applications with minimal library OS kernels directly atop a hypervisor. [Paper]
Module Quiz follows this topic.
Week 12 — November 10 & 12: Agentic AI Security I — Architectures, Memory & Attack Surfaces & Readings
Topics
  • What makes an LLM: embeddings, tokenization, context assembly, next-token sampling, and recency bias
  • Prompt Injection 101: direct vs. indirect prompt injection and instruction/data conflation
  • What is an agent? Stateless LLMs, Reason-and-Act (ReAct) loops, and agent orchestration runtimes
  • Components of agent orchestration: short-term session memory vs. long-term memory
  • Retrieval-Augmented Generation (RAG), query rewriting, condensed prompts, and why RAG != Long-Term Memory (Event > State > Memory)
  • Attack surfaces in agent memory and retrieval: indirect prompt injection, knowledge corruption (PoisonedRAG), and persistent memory poisoning
  • Multi-agent systems (e.g., CrewAI), delegation chains, and cross-agent trust boundaries
Readings: Agentic Architectures, Prompt Injection & Memory Poisoning

Required Reading

  • Kai Greshake, Sahar Abdelnabi, Shailesh Mishra, Christoph Endres, Thorsten Holz, and Mario Fritz. "Not What You've Signed Up For: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection." AISec @ ACM CCS, 2023. Establishes indirect prompt injection across external data sources, retrieval pipelines, and tool outputs. [Paper]
  • Wei Zou, Runpeng Geng, Binghui Wang, and Jinyuan Jia. "PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Models." 34th USENIX Security Symposium (USENIX Security '25), 2025. Demonstrates knowledge-database poisoning attacks against RAG pipelines. [Paper]

Optional Readings

  • Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. "ReAct: Synergizing Reasoning and Acting in Language Models." ICLR, 2023. Introduces the foundational Reason-and-Act loop underlying modern tool-calling LLM agents. [Paper]
  • Zhaorun Chen et al. "AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases." NeurIPS, 2024. Examines how poisoning long-term memory or RAG stores hijacks autonomous agent decision-making. [Paper]
Week 13 — November 17 & 19: Agentic AI Security II — Systems Vulnerabilities & Defenses & Readings
Topics
  • Systems aspect of agentic systems: bridging untrusted LLM outputs to privileged system execution
  • Remote code execution and framework vulnerabilities in LLM-integrated apps: LLMSmith and serialization exploits (LangGrinch)
  • Exploiting and fuzzing the LLM-orchestrator-tool trust boundary (ToFu)
  • Evaluating and defending agentic systems:
    • Model evaluation and emulated sandboxes (ToolEmu) and safety classifiers (LlamaGuard)
    • Channel separation: Spotlighting (delimiting, datamarking, encoding) and Structured Queries (StruQ)
    • Model-level alignment: Instruction Hierarchy and Constitutional AI
    • System-level execution isolation: SecGPT (IsolateGPT) and capability-enforced tool runtimes
Readings: Agentic Systems Vulnerabilities, Channel Separation & Execution Isolation

Required Reading

  • Yuhao Wu, Franziska Roesner, Tadayoshi Kohno, Ning Zhang, and Umar Farooq. "IsolateGPT: An Execution Isolation Architecture for LLM-Based Agentic Systems." Network and Distributed System Security Symposium (NDSS), 2025. Introduces system-level execution isolation (SecGPT / IsolateGPT) separating untrusted apps, data channels, and tool execution in LLM agent platforms. [Paper]
  • Md Nazmul Islam Ananto, Pierre Prevost-Avenel, Colin Smith, Kyungtae Kim, Taegyu Kim, and Arslan Khan. "ToFu: Exploiting and Fuzzing the LLM-Orchestrator-Tool Trust Boundary." arXiv preprint arXiv:2610.13651, 2026. Analyzes the LLM-orchestrator-tool trust boundary across MCP servers and automatically derives CWE-guided semantic checks and fuzzing harnesses for LLM tools. [Paper]

Optional Readings

  • Tong Liu, Zizhuang Deng, Guozhu Meng, Yuekang Li, and Kai Chen. "Demystifying RCE Vulnerabilities in LLM-Integrated Apps." ACM Conference on Computer and Communications Security (CCS), 2024. Systematically analyzes remote code execution vulnerabilities (LLMSmith) across real-world LLM orchestration frameworks. [Paper]
  • Sizhe Chen, Julien Piet, Chawin Sitawarin, and David Wagner. "StruQ: Defending Against Prompt Injection with Structured Queries." 34th USENIX Security Symposium (USENIX Security '25), 2025. Separates instructions and untrusted data channels using structured query interfaces and front-end filtering. [Paper]
  • Keegan Hines et al. "Defending Against Indirect Prompt Injection Attacks With Spotlighting." CAMLIS, 2024. Introduces datamarking, encoding, and delimiting transformations to help LLMs distinguish untrusted data from system instructions. [Paper]
  • Eric Wallace, Kai Xiao, Reimar Leike, Lilian Weng, Johannes Heidecke, and Alex Beutel. "The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions." arXiv preprint arXiv:2404.13208, 2024. Defines explicit privilege levels across system prompts, user messages, and untrusted tool outputs. [Paper]
  • Yangjun Ruan et al. "Identifying the Risks of LM Agents with an LM-Emulated Sandbox (ToolEmu)." ICLR, 2024. Evaluates unsafe tool execution and failure modes of language-model agents using an emulated sandbox. [Paper]
Module Quiz follows this topic.
November 22–28: Thanksgiving Holiday — No Classes
Week 14 — December 1 & 3: Semester Project Presentations & Demonstrations

The final two instructional weeks are reserved entirely for semester projects. Students will present their systems, demonstrate technical artifacts, explain their design decisions, discuss security models and evaluation, and answer technical questions.

Week 15 — December 8 & 10: Semester Project Presentations & Demonstrations

Semester project presentations and demonstrations continue.

Semester Project

The semester project is the central component of the course and accounts for 70% of the final grade.

Students have two options for completing the semester project.

Option 1: Research-Based Semester Project

Students interested in conducting systems-security research may propose their own research project.

You will have approximately one month from the beginning of the semester to develop and submit a project proposal. Research-based project proposals are due Thursday, September 24.

During this period, you should investigate the problem, understand existing work, and determine whether the proposed idea represents a meaningful technical contribution.

The proposal should clearly describe:

  • the systems-security problem being addressed;
  • why the problem is important;
  • the relevant threat model;
  • limitations of existing approaches;
  • the proposed technical idea;
  • how the system will be implemented;
  • how the system will be evaluated; and
  • why the proposed work is sufficiently different from existing work.

Students choosing the research-project track are expected to conduct enough background investigation to establish the novelty of their idea. Discovering late in the semester that the proposed idea has already been extensively explored will negatively affect the project evaluation.

Research projects must include a substantive technical artifact. A Work-In-Progress result is acceptable when appropriately justified, but an idea or literature survey without a corresponding implementation and evaluation is not sufficient.

Research projects will be evaluated based on technical difficulty, novelty, quality of the artifact, quality of the evaluation, and demonstrated understanding of the security problem.

Option 2: Instructor-Defined Semester Project — slangGraph Tool Security

Students who do not follow the research-based project track will complete the instructor-defined project focused on least-privilege policy inference and capability enforcement for agentic systems.

Overview

In agentic AI frameworks and graph-execution runtimes (such as slangGraph), autonomous agents execute actions by invoking external tools. Because tools interact with the physical operating system, network endpoints, file systems, databases, and peripheral devices, granting tools excessive ambient authority introduces severe security risks.

The goal of this project is to build an automated, explainable Policy Inference Engine that analyzes tool implementations, descriptors, and execution traces to synthesize precise, least-privilege capability manifests and enforce them at runtime using Cedar access control policies.

The Workspace & Hands-on Examples

The project workspace provides progressive reference examples demonstrating the runtime security contract:

  1. workspace/01_quickstart.py: Minimal execution graph and tool invocation.
  2. workspace/02_dac_quickstart.py: Tool-level Cedar discretionary access control.
  3. workspace/03_dac_principal_quickstart.py: Authenticated caller principals passed during graph invocation.
  4. workspace/04_resource_grant_quickstart.py: Mapping tool arguments to normalized resource operations, Cedar authorization, and exact enforceable grants.
  5. workspace/05_custom_class_quickstart.py & workspace/05_pump_simulator.py: Fine-grained device operations on a custom pump class over a Unix-domain socket (demonstrating that transport access does not equal device authority).

What Students Must Build

Students are tasked with building a Policy Inference Engine that infers what authority a tool needs. The core pipeline is:

tool implementation + descriptor + examples or traces
                         |
                         v
              inferred resource operations
                         |
                         v
          candidate manifest with supporting evidence
                         |
                         v
              review, validation, and refinement
                         |
                         v
             Cedar authorization per invocation
                         |
                         v
                 exact enforceable grant

The inference engine must determine:

  • Which resources a tool can access (filesystem paths, database tables, Unix sockets, device controls, network origins).
  • Which exact operations are performed on each resource (e.g., inspect, start, set_flow, read, write).
  • Which tool arguments determine resource identity, and which trusted normalizers canonicalize them.
  • Which capabilities are unconditionally required versus conditionally invoked based on input arguments or control flow.
  • Overprivilege detection: whether the inferred manifest grants more authority than the implementation requires.
  • Evidence and uncertainty: identifying code paths supported by concrete trace evidence versus untested paths.
  • Robustness against adversarial inputs: verifying whether hostile inputs can escape inferred resource boundaries.
  • Runtime grant enforcement: verifying that tool execution remains strictly within the authorized grant.

Success Criteria

A successful project must demonstrate:

  1. Least-Privilege Precision: Allowed calls receive only the exact operations and resource identities they need.
  2. Fail-Closed Enforcement: Missing or unauthorized operations prevent tool execution before dispatch.
  3. Overprivilege Detection: Unnecessary operations or ambient permissions are flagged and eliminated.
  4. Resilient Normalization: Path traversal and alternate spellings cannot bypass resource policies.
  5. Robust Error Handling: Malformed, unknown, or adversarial inputs fail safely with informative diagnostics.
  6. Explainability: Inferred policies include supporting evidence, confidence levels, and coverage gaps.
  7. Inspectable Artifacts: Generated Cedar schemas, policies, and grant requests can be audited independently.

Semester Project Evaluation Rubric

The semester project (70% of the overall course grade) will be evaluated according to the following rubric:

Component Weight Evaluation Criteria
Novelty 40% Originality and technical depth of the approach, nontrivial design insights beyond baseline heuristics, and clear advancement or differentiation relative to existing solutions.
Implementation 30% Completeness, soundness, and reproducibility of the working software artifact, end-to-end enforcement/evaluation pipeline, and engineering quality.
Report 20% Clarity and technical rigor of the written report, explicit threat model, system architecture, empirical evaluation, and discussion of limitations and edge cases.
Presentation 10% Clarity of the in-class presentation, live artifact demonstration during Weeks 14–15, and ability to defend technical decisions during Q&A.
Strict Working-Implementation Policy: No marks will be awarded for non-working implementations. All project submissions must include a functional, demonstrable implementation; projects whose implementation does not work will receive no credit.

Grading

There are no traditional midterm or final exams for this course.

Your final grade will be determined as follows:

  • Semester Project: 70% (Novelty: 40%, Implementation: 30%, Report: 20%, Presentation: 10% — no marks for non-working implementations)
  • Module Quizzes: 30%

Quizzes will be given after major course modules and will focus on understanding the concepts, mechanisms, attacks, and design tradeoffs discussed in class.

There will be no required paper presentations or paper-reading component this semester. Relevant research papers and systems may still be discussed during lectures when they are useful for explaining important concepts or the development of modern systems-security mechanisms.

AI Usage Policy

Students are permitted to use Generative AI (GenAI) tools as part of their coursework. However, if a student chooses to do so, it is their responsibility to verify the accuracy of any information, code, analysis, or claims produced by the AI. Any errors, hallucinations, insecure code, incorrect analyses, or misleading outputs generated by such tools remain the responsibility of the student.

Students must be able to explain and defend any work they submit, including code, vulnerability analyses, system designs, experimental results, and technical decisions. The instructor may ask students to explain any portion of submitted work in order to verify their understanding.

Students should not treat GenAI systems as an “answering oracle.” These tools should instead be used as assistants for learning, research, debugging, analysis, and engineering. They are not a substitute for understanding the underlying systems-security concepts.

For assignments where requested by the instructor, students may also be required to submit relevant GenAI interaction logs or otherwise document how GenAI tools were used.

Disability Accommodation Statement

Penn State welcomes students with disabilities into the University’s educational programs. Every Penn State campus has an office for students with disabilities. The Student Disability Resources website provides contact information for every Penn State campus. For further information, please visit the Student Disability Resources website.

In order to receive consideration for reasonable accommodations, you must contact the appropriate disability services office at the campus where you are officially enrolled, participate in an intake interview, and provide documentation. If the documentation supports your request for reasonable accommodations, your campus’s disability services office will provide you with an accommodation letter. Please share this letter with your instructors and discuss the accommodations with them as early in your courses as possible. You must follow this process for every semester that you request accommodations.

Counseling and Psychological Services (CAPS) Statement

Many students at Penn State face personal challenges or have psychological needs that may interfere with their academic progress, social development, or emotional well-being. The university offers a variety of confidential services to help you through difficult times, including individual and group counseling, crisis intervention, consultations, online chats, and mental health screenings. These services are provided by staff who welcome all students and embrace a philosophy respectful of clients’ cultural and religious backgrounds, and sensitive to differences in race, ability, gender identity, and sexual orientation.

Education Equity and Reporting Bias

Penn State takes great pride in fostering a diverse and inclusive environment for students, faculty, and staff. Acts of intolerance, discrimination, or harassment due to age, ancestry, color, disability, gender, gender identity, national origin, race, religious belief, sexual orientation, or veteran status are not tolerated and can be reported through Educational Equity via the Report Bias webpage.