~/talk

Landlock Workshop: Sandboxing Application for Fun and Protection

Talkat Linux Security Summit Europe 2023 · 2023-09-20..09-21· [security]
links:none on file
slides:none on file

Workshop shows how to add Landlock syscalls to a C CLI to confine an old ImageMagick exploit: creates a ruleset with landlock_create_ruleset, adds specific path rules for /usr, /dev, dynamic input file and output directory, then seals it with landlock_restrict_self. The patched convert still executes the exploit but cannot read private keys or user files and can only write to the allowed output dir; demo uses strace, git/vagrant setup and works as a proof of concept.

AI-written summary · about

  1. 0:00Landlock sandboxing intro
  2. 5:11Why sandbox apps
  3. 7:42How Landlock enforces policies
  4. 11:42Threat models for sandboxing
  5. 18:28Landlock with syscalls
  6. 23:03Patching ImageMagick
  7. 33:07Testing vulnerable ImageMagick
  8. 40:44Creating ruleset
  9. 45:15Adding library exception
  10. 52:23Dynamic input access
  11. 57:34Output file permissions
  12. 1:06:19Final sandboxing results
  13. 1:09:33Next steps and resources
  14. 1:14:20Q&A and demo
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.