<?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 Chen Kai Blog</title><link>https://www.chenk.top/zh/tags/security/</link><description>Recent content in Security on Chen Kai Blog</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Sun, 31 May 2026 09:00:00 +0000</lastBuildDate><atom:link href="https://www.chenk.top/zh/tags/security/index.xml" rel="self" type="application/rss+xml"/><item><title>产品思维（二）：安全工程 — 不偏执的纵深防御</title><link>https://www.chenk.top/zh/product-thinking/02-security/</link><pubDate>Sun, 31 May 2026 09:00:00 +0000</pubDate><guid>https://www.chenk.top/zh/product-thinking/02-security/</guid><description>&lt;h2 id="消失的安全感" class="heading-anchor">消失的安全感&lt;a href="#%e6%b6%88%e5%a4%b1%e7%9a%84%e5%ae%89%e5%85%a8%e6%84%9f" class="heading-link" aria-label="Permalink to this section" title="Copy link to this section">#&lt;/a>
&lt;/h2>&lt;p>安全曾经在我的认知里是附加物：发版前的清单、每季度一次的渗透测试、标题里写着&amp;quot;安全&amp;quot;的代码审查。后来我意识到这个思路是错的。过去两年构建的系统给了我另一个答案：最好的安全是你已经忘记它存在的安全——因为它早就织进了系统本身。&lt;/p></description></item><item><title>阿里云全栈实战（六）：RAM、KMS 筑牢云安全</title><link>https://www.chenk.top/zh/aliyun-fullstack/06-ram-security/</link><pubDate>Sun, 03 May 2026 09:00:00 +0000</pubDate><guid>https://www.chenk.top/zh/aliyun-fullstack/06-ram-security/</guid><description>&lt;p>有一次，我在一个公开的 GitHub 仓库里发现了自己的 DashScope API Key——有人 fork 了我几个月前上传的一个 Demo，而这个 API Key 明文存放在未被 .gitignore 排除的配置文件中。等我发现时，这个 Key 已在一个周末内被用于发起 14,000 次 Qwen API 调用，所幸账单未超支，这得益于 DashScope 按 token 计费的弹性计费机制，但教训极为深刻。我曾以为云安全可以“以后再做”，结果这个“以后”变成了凌晨两点触发的账单告警。&lt;/p></description></item><item><title>Claude Code 实战（七）：十个实用 Hooks 配方</title><link>https://www.chenk.top/zh/claude-code-learn/07-hooks-deep-dive/</link><pubDate>Fri, 24 Apr 2026 09:00:00 +0000</pubDate><guid>https://www.chenk.top/zh/claude-code-learn/07-hooks-deep-dive/</guid><description>&lt;p>第五章梳理了 Hook 的基本概念，本章则聚焦实战应用：从百余个脚本的参考库中，仅这十个被纳入所有严肃项目的标准配置，并逐一介绍附带代码级操作说明。&lt;/p>
&lt;p>所有示例默认 Node 18+ 环境，脚本存到 &lt;code>./hooks/&lt;/code>，加上 &lt;code>chmod +x&lt;/code> 权限，然后在 &lt;code>.claude/settings.json&lt;/code> 里这样配置：&lt;/p></description></item><item><title>Terraform 实战（三）：复用 VPC 与安全基线</title><link>https://www.chenk.top/zh/terraform-agents/03-vpc-and-security-baseline/</link><pubDate>Mon, 16 Mar 2026 09:00:00 +0000</pubDate><guid>https://www.chenk.top/zh/terraform-agents/03-vpc-and-security-baseline/</guid><description>&lt;p>今天要写的是我 Agent 项目里被复制次数最多的 Terraform 代码：一个 &lt;code>vpc-baseline&lt;/code> 模块。它为后续所有组件（ECS、RDS、OpenSearch、ACK）提供了统一、可复用的网络基础。总共约 200 行 HCL，建议亲手编写一遍，方便后续复用和定制。&lt;/p></description></item><item><title>Docker 与容器（七）：安全——运行容器时不必交出全部权限</title><link>https://www.chenk.top/zh/docker-containers/07-security-and-best-practices/</link><pubDate>Thu, 22 Jun 2023 09:00:00 +0000</pubDate><guid>https://www.chenk.top/zh/docker-containers/07-security-and-best-practices/</guid><description>&lt;p>Docker 默认配置优先便利性而非安全性：开箱即用时容器以 root（UID 0）运行、拥有大量 Linux capabilities，且根文件系统默认可写。开发环境或许可以接受，但生产环境中极其危险——一旦存在容器逃逸（container escape）漏洞，而容器又以 root 权限运行，攻击者将直接接管宿主机。让我们来修复这个问题。&lt;/p></description></item></channel></rss>