安全与密码学2019github.com
Kubernetes 安全评估
Kubernetes Security Assessment
进阶 · 约 90 分钟读完前置知识:Kubernetes 基础架构、TLS/证书机制、对称加密(AEAD)基础
导读
这是安全公司对 Kubernetes 进行的全面安全评估报告,涵盖其架构、加密存储、认证机制等方面的安全发现。报告指出了一些已知但长期未解决的问题,如缺乏证书吊销支持,并就密钥加密方式(AES-CBC/GCM 与 Secretbox、KMS)给出了建议。
HN 关注点:Kubernetes 是 HN 读者广泛使用的基础设施,一份由专业安全公司完成的公开审计报告及其具体安全发现引发了关注和讨论。
HN 评论精选
这几条评论里:支持 1 质疑 1 补充 2
质疑质疑报告对 GCM 的否定:GCM 是 Go 惯用且防误用的 AEAD 实现,不算问题
这是好东西。一个小瑕疵:报告建议用户不要使用 AES-CBC 或 GCM 加密,应默认使用 Secretbox 存储信息并鼓励使用 KMS。我理解其用意也大体赞同,但 GCM 其实是 Go 的惯用做法,通过 crypto/aead 接口实现,在防误用方面不输任何库。我自己可能也更偏好用 Nacl 原语而非 Seal/Open,但不会因此给代码标问题。
tptacek查看英文原文
This is good stuff. A nit: Users should not use AES-CBC or GCM for encryption. Secretbox should be the default mode of storing information and users should be encouraged to use KMS. I see where this is coming and agree in spirit, but GCM is actually idiomatic Go and implemented through the crypto/aead interface, which does about as good a job as any library at being user-proof. I too would probably prefer code that used Nacl primitives over Seal/Open, but I would probably not flag code that didn't.
支持指出最严重的问题是缺乏证书吊销机制,且该 issue 自 2015 年悬而未决,叠加大量暴露在公网的集群风险很大
对我来说最大的问题是 k8s 架构一个已知的安全缺陷:不支持证书吊销。任何使用客户端证书做认证的地方,证书一旦丢失,除非更换整个证书颁发机构,否则无法吊销。再结合互联网上暴露的 20 万+ Kubernetes 集群,攻击面相当大。相关 GitHub issue 自 2015 年起一直未解决。
raesene9查看英文原文
For me, the largest one mentioned is a known security issue with k8s architecture, which is the lack of support for certificate revocation. So anywhere client cert's are used for authN, if one is lost there's no way to revoke it, short of rolling the whole certificate authority. when you combine that with the 200k+ Internet exposed Kubernetes clusters, that's quite a large potential for attack. The GH issue for this has been open since 2015 https://github.com/kubernetes/kubernetes/issues/18982
补充补充资料:审计方 Trail of Bits 开源了审计工具代码
Trail of Bits 团队还开源了这次审计背后的代码工具。
caniszczyk查看英文原文
The Trail of Bits folks also open sourced the code behind their audit: https://twitter.com/lojikil/status/1159190646478913536 https://github.com/trailofbits/audit-kubernetes
补充补充资料:同一团队还审计了 Vitess 等其他 CNCF 项目
我知道 Kubernetes 评估是新闻焦点,但团队实际审计了多个 CNCF 项目,比如 Vitess 项目的审计报告。
dkhenry查看英文原文
I know the Kubernetes Assessment was the one to make all the news, but the teams actually audited a bunch of CNCF projects. Here is the one for the Vitess project https://vitess.io/blog/2019-03-12-vitess-security-audit/
相关资源
从这篇论文所有 HN 讨论帖的全部评论里整理出来的链接。
历次讨论
- 2019Hacker News 讨论帖255 分 · 63 评
同领域还值得读
如何入侵一台已关机的电脑:在 Intel ME 中运行未签名代码
How to hack a turned-off computer, or running unsigned code in Intel ME
这篇 Black Hat 2017 白皮书讨论 Intel Management Engine(ME)的安全问题:如何在 ME 中运行未签名代码,以及攻破处于关机状态的电脑的相关…
安全与密码学2017 · 543 分 · 107 评专业 · 约 40 分钟编辑精选比特币:一种点对点的电子现金系统(2008)
Bitcoin: A Peer-to-Peer Electronic Cash System (2008)
中本聪 2008 年发表的比特币白皮书,提出了无需可信第三方的点对点电子现金系统。
安全与密码学2017 · 536 分 · 394 评入门 · 约 45 分钟编辑精选GPRS 加密算法 GEA-1 的密码分析表明存在故意弱点
Cryptanalysis of GPRS Encryption Algorithms GEA-1 suggest intentional weakness
首次公开了对 GPRS 加密算法 GEA-1 和 GEA-2 的密码分析攻击。
安全与密码学2021 · 487 分 · 107 评专业 · 约 90 分钟编辑精选Signal 消息协议的形式化安全分析
A Formal Security Analysis of the Signal Messaging Protocol
用形式化方法分析 Signal 消息协议(TextSecure)的安全性:作者在多阶段密钥交换模型下,借助自动化证明工具对协议的密钥协商与 Double Ratchet 密钥更新…
安全与密码学2016 · 353 分 · 230 评专业 · 约 120 分钟编辑精选A2:模拟恶意硬件
A2: Analog Malicious Hardware
论文研究如何在芯片设计阶段植入模拟电路形式的恶意硬件后门,使其难以被常规检测发现。
安全与密码学2016 · 315 分 · 94 评专业 · 约 75 分钟编辑精选