<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Security on Damien Dye 的博客</title>
    <link>https://blogs.damiendye.uk/zh/tags/security/</link>
    <description>Recent content in Security on Damien Dye 的博客</description>
    <generator>Hugo</generator>
    <language>zh-CN</language>
    <lastBuildDate>Fri, 23 Oct 2026 17:15:00 +0100</lastBuildDate>
    <atom:link href="https://blogs.damiendye.uk/zh/tags/security/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>静态网站没有什么可攻破的</title>
      <link>https://blogs.damiendye.uk/zh/security/a-static-site-has-nothing-to-break-into/</link>
      <pubDate>Fri, 23 Oct 2026 17:15:00 +0100</pubDate>
      <guid>https://blogs.damiendye.uk/zh/security/a-static-site-has-nothing-to-break-into/</guid>
      <description>这个博客用 Hugo 构建，以纯文件形式提供，不运行任何代码。对照组是在实验环境里实测的原装 WordPress 7.1.3：133 个 REST 路由、80 个 XML-RPC 方法、1,514 个 PHP 文件，每个文件都可被网页用户改写。本文讲 Hugo 如何构建、风险如何转移到构建环节、提供 10,000 个页面要多少 CPU 和磁盘，以及如何离线构建、只构建一次。</description>
    </item>
    <item>
      <title>PHP：二十九年来一直敞着大门</title>
      <link>https://blogs.damiendye.uk/zh/security/php-twenty-nine-years-of-leaving-the-door-open/</link>
      <pubDate>Fri, 23 Oct 2026 16:00:00 +0100</pubDate>
      <guid>https://blogs.damiendye.uk/zh/security/php-twenty-nine-years-of-leaving-the-door-open/</guid>
      <description>2026年10月21日披露的 PHP2Shell，是一个影响 5.4 以来所有 PHP 版本的内存安全远程代码执行漏洞。本文从 NVD 统计 757 个解释器 CVE，讲 C 引擎、类型转换、WordPress、Web shell、php.net 两次被攻破、半数 PHP 网站跑着无人维护的版本、把每个漏洞变成全盘失守的单进程部署，以及为什么应该转向 Go 或 Rust。</description>
    </item>
    <item>
      <title>用证书锁住 Home Assistant 应用：nginx 或 Caddy，不用 Cloudflare</title>
      <link>https://blogs.damiendye.uk/zh/homeassistant/home-assistant-app-mtls-nginx-caddy/</link>
      <pubDate>Fri, 09 Oct 2026 18:00:00 +0100</pubDate>
      <guid>https://blogs.damiendye.uk/zh/homeassistant/home-assistant-app-mtls-nginx-caddy/</guid>
      <description>在家里用 nginx 或 Caddy 代替 Cloudflare，把 Home Assistant 应用锁定到客户端证书。Cloudflare 离开后有什么变化，两份配置都在 IPv4 和 IPv6 上测试过，为什么 nginx 能检查吊销而 Caddy 不能，Home Assistant 的代理设置，以及手机上要装什么。</description>
    </item>
    <item>
      <title>免费套餐上，用证书锁住经 Cloudflare 访问的 Home Assistant 应用</title>
      <link>https://blogs.damiendye.uk/zh/homeassistant/home-assistant-app-over-cloudflare-mtls/</link>
      <pubDate>Fri, 09 Oct 2026 16:30:00 +0100</pubDate>
      <guid>https://blogs.damiendye.uk/zh/homeassistant/home-assistant-app-over-cloudflare-mtls/</guid>
      <description>出门在外用 Android 应用访问 Home Assistant，互联网上却没有登录页：各种方案的对比，为什么 Cloudflare Access 不适合应用，免费套餐的客户端证书和 WAF 规则，源站上的 Let&amp;#39;s Encrypt 及其续期陷阱，以及上线后手机、两个浏览器和扫描器各自的表现。</description>
    </item>
    <item>
      <title>YubiKey 让我登录了，我的密钥环却从没被告知</title>
      <link>https://blogs.damiendye.uk/zh/random/yubikey-login-locked-keyring/</link>
      <pubDate>Wed, 07 Oct 2026 21:30:00 +0100</pubDate>
      <guid>https://blogs.damiendye.uk/zh/random/yubikey-login-locked-keyring/</guid>
      <description>在 Fedora 45 上用 YubiKey 无密码登录，登录密钥环会一直锁着，因为从来没有密码传到它那里。本文讲为什么会这样、各种办法及其代价，以及我的做法：用需要 PIN 和触摸的 FIDO2 hmac-secret 解锁 oo7，再加上 oo7 占位密钥环的怪癖，和一次一次性测试抓到的 bug。</description>
    </item>
    <item>
      <title>DNSSEC：保护你的流量不被伪造</title>
      <link>https://blogs.damiendye.uk/zh/dns/dnssec-the-root-is-signed-you-are-not/</link>
      <pubDate>Sun, 27 Sep 2026 18:00:00 +0100</pubDate>
      <guid>https://blogs.damiendye.uk/zh/dns/dnssec-the-root-is-signed-you-are-not/</guid>
      <description>从实时根区数出来的：1,438 个 TLD 中有 1,351 个已签名，所有 gTLD 无一例外。然后就断了。仍在解析的 2,390 个 gov.uk 域名只有 39 个签名，9 家证书颁发机构只有 1 家，windowsupdate.com 连 DS 都没有。本文讲 DNSSEC 能挡住什么、真正阻碍它的是什么，以及问题是否在于我们至今仍不懂 DNS。</description>
    </item>
    <item>
      <title>DNS over HTTPS 径直绕过你的管控</title>
      <link>https://blogs.damiendye.uk/zh/dns/dns-over-https-walks-past-your-controls/</link>
      <pubDate>Thu, 24 Sep 2026 09:00:00 +0100</pubDate>
      <guid>https://blogs.damiendye.uk/zh/dns/dns-over-https-walks-past-your-controls/</guid>
      <description>DoH 把你的 DNS 查询经 443 端口发给客户端自己挑的解析器，你自己的解析器根本看不到，于是既拦不住坏域名，也记不下日志。它打着隐私的旗号，可 DoT 早在 2016 年就给了你隐私。DoH 真正多出来的，是绕过网络管理员。本文讲它的机制、恶意软件、谁在推动它、如今起诉解析器的法院，以及修复办法。</description>
    </item>
    <item>
      <title>你的防火墙在听陌生人的指令。关掉协议助手。</title>
      <link>https://blogs.damiendye.uk/zh/networking/protocol-helpers-turn-them-off/</link>
      <pubDate>Mon, 14 Sep 2026 09:00:00 +0100</pubDate>
      <guid>https://blogs.damiendye.uk/zh/networking/protocol-helpers-turn-them-off/</guid>
      <description>NAT 助手读取你数据包的内部内容，然后按照它在里面找到的东西打开入站端口。这段文本谁都能写，从 2010 年起一个网页就够了。本文讲助手如何工作、精心构造的数据包如何把它变成替陌生人开端口的服务、IPsec 直通做了什么、它们为什么过不了 Cyber Essentials，以及如何把它们全部关掉。</description>
    </item>
    <item>
      <title>你的 MSP 给你建了什么，还有谁能碰到它</title>
      <link>https://blogs.damiendye.uk/zh/random/is-your-msp-lying-to-you-part2/</link>
      <pubDate>Fri, 28 Aug 2026 17:00:00 +0100</pubDate>
      <guid>https://blogs.damiendye.uk/zh/random/is-your-msp-lying-to-you-part2/</guid>
      <description>三部曲第 2 部。那台怎么劝都不肯换掉的盒子，CISA 名单上被利用漏洞最多的几个防火墙品牌，ICO 在 Advanced 和 Capita 查到了什么，你永远听不到的那次入侵，每台机器上听命于一个你从没见过的控制台的代理，打开这一切的钥匙，以及机器关着时也会应答的芯片。</description>
    </item>
    <item>
      <title>后门，以及谁会被指控装了后门</title>
      <link>https://blogs.damiendye.uk/zh/random/backdoors-and-who-is-accused/</link>
      <pubDate>Tue, 25 Aug 2026 07:00:00 +0100</pubDate>
      <guid>https://blogs.damiendye.uk/zh/random/backdoors-and-who-is-accused/</guid>
      <description>8 篇中的第 6 篇。以安全为由把一家供应商挡在门外，需要一个一视同仁的标准。瑞士的调查证实两家情报机构拥有一家加密公司，并把削弱过的机器卖给 120 多个政府；一项密码标准因疑似弱点被撤回；设备在运输途中被截获。然后是 2024 年那件把问题说清楚的事。</description>
    </item>
    <item>
      <title>Samba4 与用 DNSSEC 保护 AD 记录</title>
      <link>https://blogs.damiendye.uk/zh/dns/samba4-securing-ad-records-with-dnssec/</link>
      <pubDate>Mon, 24 Aug 2026 09:00:00 +0100</pubDate>
      <guid>https://blogs.damiendye.uk/zh/dns/samba4-securing-ad-records-with-dnssec/</guid>
      <description>每台加入域的机器都靠向 DNS 查询 SRV 记录来找到 DC，所以 _msdcs 定位记录是你手上安全上最要紧的记录。本文讲如何从 Samba4 DC 签名它们：BIND 加 dlz_bind9、内联签名、隐藏主服务器、把动态更新挡在定位记录所在的区域之外，再强制 Windows 和 Linux 客户端验证签名。</description>
    </item>
  </channel>
</rss>
