a13xp0p0v/linux-kernel-defence-map

Linux Kernel Defence Map shows the relationships between vulnerability classes, exploitation techniques, bug detection mechanisms, and defence technologies

2,324

346 commits

updated May 24, 2026

See the code

README

Linux Kernel Defence Map

GitHub tag (latest by date) License: GPL v3

Linux kernel security is a very complex topic.

There are many concepts that have interesting relationships with each other:

  • Vulnerability classes
  • Exploitation techniques
  • Bug detection mechanisms
  • Defence technologies

Some defence technologies are provided by the Linux kernel mainline. Others are going out‑of‑tree for various reasons (some of them are commercial, for example). Moreover, there are kernel defences that depend on special hardware features.

It would be convenient to have a graphical representation of Linux kernel security. That's why I have created a Linux Kernel Defence Map showing the relationships between all these concepts.

The node connections don't mean "full mitigation." Rather, each connection represents some kind of relationship. So the Linux Kernel Defence Map should help to navigate the documentation and Linux kernel sources. It also provides the Common Weakness Enumeration (CWE) numbers for vulnerability classes.

This map describes kernel security hardening. It doesn't cover cutting attack surface, userspace security features and policies enforced by various Linux Security Modules (LSM).

Repositories

How this Map is made

This map is written in the DOT language, which makes maintenance and updating in Git very convenient.

License: GPL-3.0.

The diagram is generated using GraphViz with the following command:

dot -Tsvg linux-kernel-defence-map.dot -o linux-kernel-defence-map.svg

Do you want to check your kernel configuration?

So there are plenty of security hardening options in the Linux kernel. A lot of them are not enabled by the major distros. We have to configure these options ourselves to make our systems more secure.

But nobody likes verifying configs manually. So I've created the kernel-hardening-checker that checks security hardening options of the Linux kernel. You are welcome to try it.

References

Map for Linux kernel v6.17

Linux Kernel Defence Map

a13xp0p0v/linux-kernel-defence-map

Linux Kernel Defence Map shows the relationships between vulnerability classes, exploitation techniques, bug detection mechanisms, and defence technologies

2,324

346 commits

updated May 24, 2026

See the code

README

Linux Kernel Defence Map

GitHub tag (latest by date) License: GPL v3

Linux kernel security is a very complex topic.

There are many concepts that have interesting relationships with each other:

  • Vulnerability classes
  • Exploitation techniques
  • Bug detection mechanisms
  • Defence technologies

Some defence technologies are provided by the Linux kernel mainline. Others are going out‑of‑tree for various reasons (some of them are commercial, for example). Moreover, there are kernel defences that depend on special hardware features.

It would be convenient to have a graphical representation of Linux kernel security. That's why I have created a Linux Kernel Defence Map showing the relationships between all these concepts.

The node connections don't mean "full mitigation." Rather, each connection represents some kind of relationship. So the Linux Kernel Defence Map should help to navigate the documentation and Linux kernel sources. It also provides the Common Weakness Enumeration (CWE) numbers for vulnerability classes.

This map describes kernel security hardening. It doesn't cover cutting attack surface, userspace security features and policies enforced by various Linux Security Modules (LSM).

Repositories

How this Map is made

This map is written in the DOT language, which makes maintenance and updating in Git very convenient.

License: GPL-3.0.

The diagram is generated using GraphViz with the following command:

dot -Tsvg linux-kernel-defence-map.dot -o linux-kernel-defence-map.svg

Do you want to check your kernel configuration?

So there are plenty of security hardening options in the Linux kernel. A lot of them are not enabled by the major distros. We have to configure these options ourselves to make our systems more secure.

But nobody likes verifying configs manually. So I've created the kernel-hardening-checker that checks security hardening options of the Linux kernel. You are welcome to try it.

References

Map for Linux kernel v6.17

Linux Kernel Defence Map

Significant stargazers

(top 24 of 37)

Stephen Kitt

153 followers · starred Apr 2018

bcoles

1,049 followers · starred Jul 2022

Mario Trangoni

42 followers · starred Apr 2018

Cong Ding

0 followers · starred Apr 2022