<?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 </title>
    <link>https://peng.fyi/tags/security/</link>
    <description>Recent content in Security on </description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <managingEditor>map[name:Peng Zhang]</managingEditor>
    <webMaster>map[name:Peng Zhang]</webMaster>
    <copyright>Peng Zhang</copyright>
    <lastBuildDate>Sun, 15 Jun 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://peng.fyi/tags/security/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>SELinux Concepts</title>
      <link>https://peng.fyi/post/selinux-part-1-concepts/</link>
      <pubDate>Sun, 15 Jun 2025 00:00:00 +0000</pubDate>
      <author>map[name:Peng Zhang]</author>
      <guid>https://peng.fyi/post/selinux-part-1-concepts/</guid>
      <description>
        
          
            Security-Enhanced Linux (SELinux) is a mandatory access control (MAC) system that enhances Linux security. &amp;quot;Mandatory&amp;quot; means access control is strictly enforced by predefined policy rules—users and processes cannot modify these rules at will, ensuring security is not left to individual discretion. SELinux is available in major distributions, including Amazon Linux 2023 (AL2023) and Bottlerocket. This post is the part 1 of a series on SELinux.
Labels and Contexts SELinux labels every file and process using a quadruple: (user:role:type:level).
          
          
        
      </description>
    </item>
    
    <item>
      <title>x509: certificate signed by unknown authority? Maybe the cert pool is empty</title>
      <link>https://peng.fyi/post/empty-cert-pool-x509-certificate-signed-by-unknown-authority/</link>
      <pubDate>Tue, 15 Apr 2025 00:00:00 +0000</pubDate>
      <author>map[name:Peng Zhang]</author>
      <guid>https://peng.fyi/post/empty-cert-pool-x509-certificate-signed-by-unknown-authority/</guid>
      <description>
        
          
            I recently worked on getting amazon-ssm-agent to run inside containers on Bottlerocket. During that process, I ran into a TLS issue connecting to amazonaws.com. The root cause turned out be interesting and we&#39;ll walk through it in this post.
Running amazon-ssm-agent in a container: why and how? To enable sessions between a container and the outside world, we followed the same approach as the ECS Execute-Command proposal. The idea is to prepare a directory on the host that contains all the files required by SSM, then bind mount that directory into the container.
          
          
        
      </description>
    </item>
    
    <item>
      <title>GPG is still in use to verify downloads</title>
      <link>https://peng.fyi/post/gpg-is-still-in-use/</link>
      <pubDate>Sun, 23 Feb 2025 00:00:00 +0000</pubDate>
      <author>map[name:Peng Zhang]</author>
      <guid>https://peng.fyi/post/gpg-is-still-in-use/</guid>
      <description>
        
          
            This week, I needed to install the Amazon SSM Agent and was surprised to find that GPG (GNU Privacy Guard) was the only way to verify the download. I had assumed that software downloads verification had largely transitioned to PKI (Public Key Infrastructure). This short post is a refresh on GPG.
OpenPGP is an open standard for encrypting and signing data, originally derived from PGP (Pretty Good Privacy). It defines the format and encryption protocols used for secure communication.
          
          
        
      </description>
    </item>
    
  </channel>
</rss>
