<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Security on Shai Asher</title><link>https://slow-is-smooth.io/tags/security/</link><description>Recent content in Security on Shai Asher</description><generator>Hugo</generator><language>en-gb</language><lastBuildDate>Sun, 14 Dec 2025 09:00:00 +0200</lastBuildDate><atom:link href="https://slow-is-smooth.io/tags/security/index.xml" rel="self" type="application/rss+xml"/><item><title>Who Is Allowed to Load a Program</title><link>https://slow-is-smooth.io/blog/who-is-allowed-to-load-a-program/</link><pubDate>Sun, 14 Dec 2025 09:00:00 +0200</pubDate><guid>https://slow-is-smooth.io/blog/who-is-allowed-to-load-a-program/</guid><description>&lt;p&gt;On Linux 6.18, a light skeleton carrying a 375-byte signature loaded a 162-instruction loader&#10;program, and the kernel checked that signature against a keyring before its verifier had read a&#10;single instruction. Then I changed fifteen bytes of the program the loader carried: the kernel&#10;still accepted the signature, and the loader refused to load its cargo. I patched the loader to&#10;match, and the kernel refused the signature. Then, as root, I signed the same program with a key I&#10;had made a minute earlier, and the kernel accepted it without complaint.&lt;/p&gt;</description></item><item><title>Watching Every Exec, and Saying No</title><link>https://slow-is-smooth.io/blog/watching-every-exec-and-saying-no/</link><pubDate>Sun, 09 Jul 2023 09:00:00 +0300</pubDate><guid>https://slow-is-smooth.io/blog/watching-every-exec-and-saying-no/</guid><description>&lt;p&gt;A tracepoint program that read the file name of every &lt;code&gt;open()&lt;/code&gt; at the moment the system call began&#10;was wrong 836 times in 100,000 on Linux 6.4, because a second thread kept rewriting&#10;the name after the program had read it. A second BPF program, on a hook a few microseconds further&#10;into the same system call, the kernel&amp;rsquo;s own security check, saw the file the kernel had actually&#10;resolved. Told to refuse, it turned away all 96,943 attempts to open the forbidden file and&#10;was never fooled once. Watching happens where the process can still change the answer; deciding&#10;has to happen where it cannot.&lt;/p&gt;</description></item></channel></rss>