Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ Requires Linux kernel 5.11+ for PR_SET_SYSCALL_USER_DISPATCH.

🛡️ Syscall User Dispatch (SUD) Enforcer

A minimal sandbox that uses Syscall User Dispatch to restrict Linux x86-64 programs to only allowed system calls. Designed for tracing and enforcing syscall behavior at runtime — without using seccomp.

🚀 Quick Start

make          # Build everything (tracer, dummy, sandbox, attacker)
make trace    # Trace dummy and log syscalls to policy_file.txt
make run      # Run attacker with sandbox preloaded
make clean    # Clean up generated files

🔧 How It Works

  • Policy Tracing: policy_maker observes a target (e.g., dummy) and generates an allowlist of syscalls.
  • Sandboxing: A shared library (sandbox.so) uses SUD to block disallowed syscalls.
  • Enforcement: The library is preloaded into an attacker binary to enforce the policy at runtime.

🗂️ File Overview

File Purpose
policy_maker.c Syscall tracer (policy generator)
dummy.c Benign target for tracing
sandbox.c Enforcer (compiled to sandbox.so)
attacker.c Mock attacker using disallowed syscalls

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages