Sep 9 – 11, 2019
Europe/Lisbon timezone

Kernel Runtime Security Instrumentation (KRSI)

Sep 11, 2019, 6:00 PM
Esmerelda/room-I&II (Corinthia Hotel Lisbon)


Corinthia Hotel Lisbon



Mr KP Singh


Existing Linux Security Modules can only be extended by modifying and rebuilding the kernel, making it difficult to react to new threats. The Kernel Runtime Security Instrumentation project (KRSI) (prototype code) aims to help this by providing an LSM that allows eBPF programs to be added to security hooks.

The talk discusses the need for such an LSM (with representative use cases) and compares it to some existing alternatives, such as Landlock, a separate custom LSM, kprobes+eBPF etc. The second half of the talk outlines the proposed design and interfaces, and includes a live demo.

KRSI is an LSM that:

  • Allows the attachment of eBPF programs to security hooks.
  • Provides a good ecosystem of safe eBPF helper functions specifically written with security and auditing features in mind.

This enables the development of a new class of userspace security products that:

  • Reduce the overhead of building and updating the kernel/LSM when a new security vulnerability is discovered.
  • Allows the system owners to choose the format in which the data is audit logged.
    Provide flexibility w.r.t granularity of auditing needed and add new auditing without needing to re-build or update the LSM/Kernel (in contrast to the existing audit framework)

The intended audience for this talk would be:

  • Security-focused kernel engineers
  • Engineers building user-space security products on Linux.
  • Security Engineers and Admins who care about the time required to deploy security software to detect and prevent a new class of malicious activity.
I agree to abide by the anti-harassment policy Yes

Primary author

Presentation materials

Diamond Sponsor

Platinum Sponsors

Gold Sponsors

Silver Sponsors

Evening Event Sponsor

Lunch Sponsor

Catchbox Sponsor

T-Shirt Sponsor

Official Carrier

Location Sponsor