Skip to content

Instantly share code, notes, and snippets.

View colpachi's full-sized avatar

Murilo Busnardo Colpachi colpachi

View GitHub Profile
@mirajehossain
mirajehossain / ubuntu-server-hardening.md
Last active July 11, 2024 17:27
ubuntu-server-hardening checklist

Ubuntu-Server-Hardening

1. Secure Shared Memory

What is shared memory?

Shared memory is an efficient means of passing data between programs. Because two or more processes can use the same memory space, it has been discovered that, since shared memory is, by default, mounted as read/write, the /run/shm space can be easily exploited. That translates to a weakened state of security.

If you’re unaware, shared memory can be used in an attack against a running service. Because of this, you’ll want to secure that portion of system memory.