Möhrenfeld

Secure PHP with AppArmor
2026-10-24

The latest PHP2Shell vulnerabilities show how important it is to secure PHP installations against malicious actors. One very effective security measure is using AppArmor.

In this article I want to showcase how I use AppArmor profiles (or more accurately, AppArmor “hats”) to secure my PHP setup, utilizing Apache2 and PHP-FPM.


Read on

Debian Secure APT Keys for Third-Party Repositories
2020-02-13

In most (if not all) installation instructions for Debian Third-Party repositories you will find a sentence like this:

wget -O - https://packages.example.com/example.key | apt-key add -

This allows the package maintainers key to sign ALL Debian packages, not only the packages from their repository. I’m not sure why this is still so common when a more secure alternative exists.


Read on