从 bcrypt 到 AI 智能体安全,Niels Provos 回顾三十年攻防实践
原题Niels Provos on creating bcrypt, defending Google, and securing AI agents
看前速览
Niels Provos 从破解密码和浏览器防护谈到智能体蜜罐,解释为何权限规则应落实为可确定执行、由人审核的策略。
防御要能随攻击者变化
bcrypt 通过可调的计算成本应对算力增长。在 Google,观察搜索蠕虫并跟踪它们切换查询词的方式,也帮助团队调整防御。
用蜜罐测试智能体会泄露什么
实验网站用看似可信的文章和提示注入,引导智能体提交信息,展示权限过宽和接触不可信内容带来的风险。
保留人工审核
Iron Curtain 从自然语言生成确定性策略,再由人签字确认。面对可能误报的漏洞,Provos 同样强调,应让维护者拿到足够证据来判断问题是否真实。
完整摘要
Provos 解释 bcrypt 为什么要让计算成本可调,也回忆了 Google 如何从追踪搜索蠕虫走到浏览器安全警告。他谈及 Anthropic 的 Mythos 找出的一处旧 OpenBSD 漏洞,以及用蜜罐诱导智能体泄露信息的实验。他的 Iron Curtain 方案借助 LLM 把自然语言规则转化为确定性策略,再交给人审核。访谈还谈到开源维护者为什么需要漏洞报告附带可复现的证据。
章节
文字稿
简要描述Brief Description
Niels Provos 谈创建 bcrypt、守护 Google 与保障 AI 智能体安全Niels Provos on creating bcrypt, defending Google, and securing AI agents
目录Table of Contents
- 早年经历与进入计算机科学领域Early days and entering computer science
- 发现 Unix 漏洞与 bcryptDiscovering unix vulnerabilities and bcrypt
- OpenBSD 与黑客马拉松的起源OpenBSD and the origin of hackathons
- AI 漏洞发现与铁幕AI vulnerability discovery and iron curtain
- Google 安全浏览和搜索蠕虫Google safe browsing and search worms
- 蜜罐、honeyd 与智能体安全Honeypots, honeyd, and agent security
- 开源维护者与软件许可协议Open source maintainers and software licensing
- 网络安全主题的电子舞曲和音乐Cybersecurity EDM songs and music
- 蝉 3301 谜团与隐写术The cicada 3301 mystery and steganography
- 刀剑锻造与正念Bladesmithing and mindfulness
早年经历与进入计算机科学领域Early days and entering computer science
今天能和你在你家里待在一起,真是太棒了,Niels。It's really cool to be with you today, Niels, in your house.
主持人:您是最负盛名的网络安全研究人员之一。那么,最初是什么让您对计算机和计算机科学产生兴趣的?Host: You are one of the most storied cybersecurity researchers. So, what is it that first got you into computers and computer science?
尼尔斯·普罗沃斯:我觉得物理很酷。嗯,你知道,我就开始学物理了。光学物理似乎有点无聊,于是我想,为什么不同时学数学呢?后来,我自愿当上了物理系网络的系统管理员。数学也变得有点枯燥乏味了,而计算机科学则是一个入门门槛很低、能很快轻松获得成就感的领域。我就想,嗯,为什么不试着攻读计算机科学博士呢?我去了密歇根大学,因为那里离加拿大边境很近。这样我就能去加拿大,开始编写加密技术的开源代码,然后合法地将它出口到全世界。我们真的开车越过了边境,偷偷溜进温莎大学的实验室,拔掉他们实验室电脑的网线,接上我们的笔记本电脑,最后就在加拿大把加密相关的东西编出来了。Niels Provos: I thought physics was cool. And uh you know, I started studying it. Physics alone sort of seemed a little bit boring, and I figured why not study mathematics at the same time. And I ended up volunteering as the sysadmin for the physics network. And math had become a little bit dry and boring, but computer science was the place where you had, you know, very low bar to entry, you know, very, very quick and easy gratification. And I was like, well, why not try for a PhD in computer science? I went to the University of Michigan because it was close to the Canadian border. Because that meant I could travel to Canada and start writing crypto open source code that could then be legally exported throughout the whole world. We literally drove over the border. We sneaked into the labs of the University of Windsor, disconnected their lab computers to hook in our laptops, and then ended up coding in Canada to get the crypto stuff done.
主持人:这一切完全合法吗?Host: Was this all completely legal?
Niels Provos:这是个有意思的问题。我想,要想准确回答这个问题,我大概得是个律师。最终,我们与温莎大学达成了一项安排。他们给了我实验室的钥匙,我非常感激他们对这项工作的支持。Niels Provos: That is an interesting question. I guess I would have to be a lawyer to faithfully answer that. Eventually, an arrangement with the University of Windsor was worked out. They gave me keys to the labs, and I was incredibly thankful for them that they supported this work.
发现 Unix 漏洞与 bcryptDiscovering unix vulnerabilities and bcrypt
主持人:另外,你还是本科生的时候,就发现了 Unix Yellow Pages 中的一个漏洞,对吧?Host: Also, while you were an undergrad, that's when you discovered a vulnerability in the Unix Yellow Pages, right?
Niels Provos:如今,如果你这么做,很可能会被铐上手铐,关进监狱。那时候,嗯,你希望任何学生都能随便走到一台电脑前,输入自己的登录名和密码,然后登录这台电脑。为了避免手动把密码数据库复制到每一台电脑上,当时有一个叫 Yellow Pages 的系统。你只要输入 ypcat passwd,就能在屏幕上看到整个密码数据库。诚然,密码都加了盐,并用一种叫 crypt 的算法加密或哈希。我联系了德国各所大学里的朋友,对他们说:“嘿,你们为什么不输入这条命令,把密码数据库用电子邮件发给我?我可以看看其中哪些密码能破解。”结果发现,我们能破解其中很多密码。Niels Provos: These days, if you do this, you probably get handcuffed and put in prison. Back then, uh one of the things that you wanted is any student should be able to just go to any computer, type in their login name and their password, and then log into this computer. And instead of manually copying the password database to every single computer, there was a system called Yellow Pages. You could just type ypcat passwd, and you would see on your screen the whole password database. Passwords admittedly were salted and encrypted or hashed with an algorithm called crypt. I went to my friends across the universities in Germany and said, "Hey, why don't you type this command and just email me your password database and I can see which of these passwords we can crack." And it turned out we could crack a lot of them.
当这些其他大学的管理人员得知这件事后,他们对我很不满。整个过程并没有涉及黑客攻击,但这些命令轻而易举地就把所有数据都暴露了出来。而我随后试着猜密码,这也充分说明了那些算法有多脆弱。我去密歇根大学时,David Mazieres 和我一起设计了一种新的密码哈希算法,叫作 bcrypt。如今它大概也有 28 年历史了,而且仍然经得起考验,至今还在使用。When the administrators at these other universities found out about it, they were not happy with me. There was no hacking involved, but these commands readily gave up all the data. And me then trying to sort of guess the passwords really speaks towards the weakness of the algorithms. When I went to University of Michigan, David Mazieres and I we came up with the new password hashing algorithm called bcrypt, which is now I guess also 28 years old and it's still holding up. It's still being used.
主持人:所以,在那个 bcrypt 算法中,你可以增加它的迭代次数Host: So, in that bcrypt algorithm, you can increase the number of iterations that it
Niels Provos:没错。当时人们担心的是,计算能力正随着摩尔定律不断提升。每过一年,你去年觉得完全安全的密码,就会比以前容易猜中一倍。所以,有了 bcrypt,你每年都可以调整它的参数。Niels Provos: That's right. So, one of the concerns was compute power was growing with Moore's law. Every year the passwords that you thought last year were perfectly fine were twice as easy to guess as before. And so, with bcrypt every year you could just tune it.
主持人:那么,你当时觉得这段关系会持续27年吗?Host: So, did you think it was going to last 27 years?
Niels Provos:我的意思是,那时候我可能考虑得不会超过一两年。我当时有……不过实际上,bcrypt 肯定经受住了考验。Niels Provos: I mean, back then I probably wasn't thinking more than 1 or 2 years. I had but in practice, bcrypt for sure has held up.
主持人:是啊,现在不少地方还在使用它,对吧?Host: Yeah, it's still used in quite a few places, isn't it?
Niels Provos:是的,我觉得几乎到处都是。Niels Provos: Yeah, I think almost everywhere.
OpenBSD 与黑客马拉松的起源OpenBSD and the origin of hackathons
主持人:你是什么时候开始参与 OpenBSD 开发的?当初是怎么入门的?Host: At some point you started working on OpenBSD. How did you get into that?
Niels Provos:说实话,我不太确定自己还记不记得当初是怎么入行的。嗯,这件事算是随着时间推移自然而然发生的。而且,人们试图入侵,另一些人则努力防御,这种军备竞赛的概念至今仍然很吸引我。安全领域从来不会让人觉得无聊,因为你永远不知道接下来会发生什么。Niels Provos: To be honest, I'm not fully sure I remember how I got into this. Well, it sort of just happened organically over time. And this whole notion of the uh people sort of trying to break in and people are trying to defend and this arms race is still appealing to me. Security never really gets boring that way because you never know what's going to happen next.
主持人:那算是你加入的第一个大型开源项目社群吗?Host: Was that like the big like the first big open source project that uh you kind of community that you joined?
Niels Provos:没错,是的。后来我们会聚在一起。你知道,其中一次是在1999年的卡尔加里,据说“黑客马拉松”这个词就是那时候形成的。Niels Provos: That's right, yeah. And then, you know, we had these get-togethers. And you know, one of them was in Calgary in 1999 and uh the rumor has it that the term hackathon was formed back then.
主持人:传闻是你创造了这个术语。Host: And the rumor is that you formed that term.
Niels Provos:老实说,我对此毫无印象。Niels Provos: To be honest with you, I have no recollection of it.
主持人:听起来有道理。也同样有可能是别人想出了这个点子。现在“黑客马拉松”成了人人都知道、都会用的词,这还挺让人惊讶的。而且它已经变得如此企业化。Host: Seems plausible. Seems equally plausible that somebody else came up with that. And it is sort of surprising to see that hackathon now is a term that everybody knows and uses. And how corporate it has become.
主持人:所以你的意思是,那根本不是公司的行为,对吧?Host: So you're saying that that wasn't corporate at all, right?
Niels Provos:不,我们当时在 Theo 家。大家哪儿有放笔记本电脑的空位,就把电脑放在哪儿。电脑分散在好几个房间里。音乐声很大。Niels Provos: No, we were in Theo's house. Everybody put a laptop where there was space for a laptop. It was sort of distributed across multiple rooms. There was loud music.
主持人:所以那就像一场过夜派对。Host: So it was like a sleepover party.
Niels Provos:哦,当然。对,对。你知道,你会带个包,还会带上睡袋。然后你会找个地方在地板上睡觉,蜷起来,接着早上醒来,喝杯咖啡,然后继续敲代码,忙更多事情。Niels Provos: Oh, totally. Yeah, yeah. You know, you bring a back you will bring your sleeping bag. You would sort of, you know, find a place on the floor to sleep, roll up, and then in the morning you would sort of, you know, wake up, get your cup of coffee, and get hacking on more stuff.
主持人:那你当时用“hack”这个词,是指安全入侵,还是指编写某种程序之类的意思?Host: And when you used the term hack then, were you using it to mean security hacking, or were you using it to mean, you know, programming something?
Niels Provos:它的意思就是编程。我仍然认为它应该只指编程和解决问题,但在这场文化之争中,我们输了。Niels Provos: It means programming. I still think it should just mean programming and problem-solving, but we lost that culture war.
主持人:所以,即使对你这位创造了“黑客马拉松”一词的人来说,Host: So even to you, who coined the term hackathon,
Niels Provos:据称。Niels Provos: Allegedly.
主持人:据说,“黑客行为”这个词实际上只是指在某个东西上编程。Host: allegedly, the term hacking actually means just programming on something.
Niels Provos:我们做了很多工作。我们研究了 TCP SACK 的实现、虚拟内存加密,以及加密内容最终被换出到磁盘的情况。我不确定你想不想聊聊那个我在 27 年前提交的 bug。Niels Provos: We did a bunch of stuff. We worked on TCP SACK implementations, virtual memory encryption, where it ends up being swapped to disk. And I'm not sure if you want to get into that 27-year-old bug that I committed.
AI漏洞发现与铁幕AI vulnerability discovery and iron curtain
主持人:嗯,你知道,是你先提起这件事的。最近,Anthropic 用他们的 Mythos 模型来查找代码中的漏洞,结果在 OpenBSD 中发现了一个漏洞,显然源自你 27 年前的一次提交。Host: Well, you know, you brought it up. So recently, Anthropic used their Mythos model in order to find vulnerabilities in code, and they found a vulnerability in OpenBSD that was apparently from your commit 27 years ago.
Niels Provos:我刚从密歇根大学回来,准备做一场演讲。然后你知道,我当时正在和那位记者交谈,她正在写这件事。于是我就去了 GitHub,下载了 OpenBSD 的 Git 仓库,查看了所有提交信息。结果我发现,在 1998 年 11 月,我提交了 TCP SACK 和前向确认机制。我当时就想:“哇。”天哪,他们用这个很棒的新 Mythos 模型发现的一个关键漏洞,竟然是我负责的代码里有的。这简直太不可思议了。几十年来我都没想过这段代码。我想,当时的想法也有一部分是:“你看,这段代码存在这么久了,应该不会有什么漏洞。”所以 Mythos 模型能把它找出来,确实挺厉害的。Niels Provos: I had just gotten back from the University of Michigan to give a talk. And you know, I was talking with the reporter, and she was writing about this. And so then I ended up going to GitHub and downloading the Git repo of OpenBSD, and I looked at all the commit messages. And there, November 1998, I found that I committed the TCP SACK and forward acknowledgements. I was like, "Wow." Damn, a key vulnerability that they found with this great new Mythos model was something that I was responsible for. That is just crazy. I hadn't thought about this code in decades. And I think part of the thinking was also, "Look, this code has been around so long. There probably no vulnerabilities in it." And so that the Mythos model was able to find it was pretty cool.
Niels Provos:他们发现了一个漏洞,但这个漏洞在 27 年间从未被利用过。Niels Provos: They found a vulnerability, but it's a vulnerability that in 27 years never got exploited.
我是说,只要有人知道这个漏洞,就能靠一个数据包让这些机器中的任何一台瘫痪。而它们被用于关键工作流程中。所以,这绝对是件大事。I mean, if anybody knows about it, they can bring any of these machines down with just a packet. And they get used in, you know, critical workflows. So, it's for sure a big deal.
主持人:你觉得我们是不是已经处于存在漏洞的状态,而且这并没有,你知道,过度加速这一进程?Host: Do you feel like we're already in a state where we have vulnerabilities and it hasn't, you know, accelerated it too much?
Niels Provos:嗯,我也认为,借助现有模型,那些比较擅长发现零日漏洞的人已经能更有效地利用它们了。我大概也可以搭建一个利用其他模型的测试框架,复现同样的漏洞。所以,我在一定程度上确实这么做了。事实上,你知道,我可能会在下周把 Iron Curtain 的一个版本开源到 GitHub 上。它利用现有模型自动化漏洞发现工作流程,不需要任何新模型。Niels Provos: Well, I also believe that with the existing models, all the people who care about finding zero-day vulnerabilities sort of more effectively, they can already leverage them. And I could probably build a harness that used other models and replicate the same vulnerabilities. And so, I did that to some degree. And in fact, you know, probably next week I will be open-sourcing on GitHub a version of Iron Curtain that sort of automates the vulnerability discovery workflow using the existing models, not requiring any new models.
主持人:现在有一场争论:有家公司决定转向闭源,因为他们担心开源会让 AI 智能体发现他们的漏洞。你认为应该有更多代码开源,还是更多代码闭源?Host: There is this whole debate where a company decided to go closed-source cuz they're concerned that by being open-source, they're exposing themselves to AI agents finding their vulnerabilities. Do you think that more code should go open-source or more code should go closed-source?
Niels Provos:你担心这会在某种程度上让对手占据优势吗?或者担心让防御方处于劣势?我是说,你知道,开源的好处之一肯定是,其他人可以帮你发现漏洞。Niels Provos: Are you worried that you're sort of giving the adversaries an advantage? Or are you worried about putting the defender as a disadvantage? I mean, you know, one of the benefits of open-sourcing it is that other people can find vulnerabilities for you, for sure.
主持人:我倾向于同意。那时你在谷歌负责安全浏览项目。Host: I would tend to agree. Now, at Google, you were working on safe browsing.
Google 安全浏览和搜索蠕虫Google safe browsing and search worms
Niels Provos:没错。这件事的起因非常奇特。当时我在协助 Google 防范分布式拒绝服务攻击。我那时注意到的一种现象,我称之为“搜索蠕虫”。设想是这样的:攻击者先控制一台 Web 服务器,然后发送到这台服务器的有效载荷会让它访问 Google,搜索其他可以攻陷的 Web 服务器。那些服务器接着又会回到 Google,继续搜索更多目标。突然之间,所有这些被攻陷的服务器就会让搜索流量呈指数级增长。我一直说的一点是,你需要把门槛提高到恰到好处,让坏人放弃,转而去别处。所以我注意到,他们当时会带着自己的机器人混在 IRC 上,后来他们发现我们会很快屏蔽他们的流量。Niels Provos: That's right. It came about in a really strange fashion. I was helping with Google's distributed denial-of-service protections. And one of the things that I noticed back then was what I called search worms. And the idea was you would get a compromised web server, and the payload that was delivered to that web server was to go to Google and search for other web servers that you can compromise. They in turn come back to Google and search for more. And all of a sudden, you have this exponential growth in search traffic from all of these compromised servers. One of the things I always said is you need to raise the bar just high enough that the bad guys give up and go somewhere else. And so one of the things that I noticed is they were sort of hanging out on IRC with their bots and then they realized we would sort of block their traffic fairly quickly.
于是我写了一个 IRC 机器人,让它加入这些 IRC 频道,然后立即抓取他们使用的新搜索查询并将其屏蔽。他们确实这么做了。最后,他们转而攻击 Bing,让 Bing 搜索服务瘫痪了相当长一段时间。我是说,我挺替微软那些负责运营 Bing 的人难过的。你知道,或许事后想来,如果我当时有合适的人脉,我们本可以提前通知 Bing 一声,但那时我还年轻,行事也很天真。And so I wrote an IRC bot that would join these IRC channels and then immediately pick up the new new search queries that they used and block them. And they did. They ended up going to Bing and took down Bing search for quite a while. And I mean I felt sad for the people at Microsoft who had to run Bing. You know, maybe in hindsight if I had had the right contacts we could have given Bing a heads-up but I was still young and naive in my ways back then.
主持人:其他组织能否使用安全浏览这类技术?Host: Can other organizations use the kind of technologies of safe browsing?
Niels Provos:是的,有一个 API,其他浏览器也在使用。我当时研究这些搜索蠕虫时,开始注意到,如果你控制了一台被入侵的 Web 服务器,还能利用它做其他事情。所有 Web 浏览器都存在漏洞。每个访问这些恶意网站的用户,电脑都会被感染。后来我们推出了安全浏览,基本上就是构建了一套庞大的机器学习系统,用来识别恶意网站、再次核查它们,然后将相关信息推送到浏览器。这样一来,如果你访问了这些网页,就会收到安全警告,而不会遭到入侵。Niels Provos: Yeah, there is an API and other browsers use it. When I was doing this work on these search worms that got me looking into well there are other things that you can do with that if you have a compromised web server. All the web browsers were vulnerable. Every user who would go to one of these malicious websites would get their computer infected. And safe browsing then came about by us basically building this huge machine learning systems to identify malicious websites, double-check them, and then push them out to browsers so that if you end up visiting one of these pages you would get a security warning and not get compromised.
主持人:不过你大概挽救了成千上万台电脑,避免它们受到感染。Host: But you probably saved like hundreds of thousands of computers from getting infected.
Niels Provos:我的意思是,曾经有段时间,官方公布的数字是:谷歌安全浏览保护着超过40亿个浏览器。很多我认识的人都说,他们在谷歌参与这个项目时,度过了在谷歌最美好的时光。Niels Provos: I mean at some point the official number was that you know over 4 billion browsers get protected, you know, by Google safe browsing. Many people who I know said those were the best times they they had at Google working on that project.
主持人:所以你得试着设身处地,想想那些试图创建恶意网站的人是怎么想的吗?Host: So do you have to like put yourself in the head of someone who's trying to create a malicious website?
Niels Provos:人们经常问我,做安全这行需要具备什么资质?我通常会说,你得有这种天赋,能想象事情可能会怎么出错。Niels Provos: People often ask me what kind of qualifications do you need to be in the security business? And my answer is usually you sort of need to have the aptitude to imagine, you know, how can things go wrong?
蜜罐、honeyd 与代理安全Honeypots, honeyd, and agent security
主持人:看来你确实经常这么做。呃,那我们就从很久以前的 Honey D. 开始吧。Host: It does seem like you do that quite a lot. Uh so starting like way back with Honey D.
Niels Provos:没错。Niels Provos: That's right.
主持人:解释一下那个是怎么运作的。Host: Explain how that one works.
Niels Provos:蜜罐的概念,就是放置一个有吸引力的目标,让坏人可能会去调查、试图入侵。既然你知道这个蜜罐并没有任何正当用途,那么上面发生的任何有意思的事情,都可以说是对手在操作它所导致的。HoneyD 的构想是:如果你想部署 1,000 个蜜罐呢?如果你想部署 50,000 个呢?HoneyD 的想法就是创建这些虚拟蜜罐,让它们占用网络地址;这样一来,每当有人 ping 某个 IP 地址,或者尝试建立 TCP 连接时,它就会假装那里有一台计算机,运行着特定的操作系统和服务。Niels Provos: The idea of a honeypot is you sort of put out attractive asset that sort of you know, the bad guys might try to investigate and and compromise. And then because you know that this honeypot doesn't really have any legitimate business, anything interesting that's happening on it is sort of happening because an adversary is operating on it. And the idea with HoneyD was what if you want to deploy 1,000 honeypots? What if you want to deploy 50,000 honeypots? And so HoneyD was sort of this idea of creating these uh virtual honeypots and they would just, you know, allocate the network to itself and then sort of whenever somebody pinged an IP address or tried to make a TCP connection, it would pretend that a computer was there with a certain operating system and certain services running.
主持人:最近你还为编程智能体搭建了一个蜜罐。Host: And you recently also made a honeypot for coding agents.
Niels Provos:没错。令人担忧的是,这些智能体可能会行为失常,也许是因为提示注入,也许是因为多轮交互中的意图漂移。还有 OpenClaw,对吧?很多人都在运行它,却没有采取多少安全措施。我就在想,有没有什么适用于 2026 年的蜜罐做法,能诱捕其中一些智能体?于是我基本上创建了一个网站,里面有一些看起来很吸引人的文章,还埋了各种提示注入内容,比如:“嘿,你知道的,这只是内容预览。要看真正的内容,你得点击这个链接。”然后你点开链接,就会看到:“哦,你知道的,只有提供电子邮箱地址才能查看这篇内容,所以这里有个表单,你可以填写。”接着就这样一步步引导这些智能体泄露本不该泄露的信息。Niels Provos: That's right. The concern is that these agents can misbehave, maybe because of prompt injection or maybe because of multi-turn intent drift. And then you have OpenClaw, right, which so many people run with not a lot of security in place. And I was wondering, is there sort of a 2026 way of doing honeypots that might ensnare some of these agents? And so I basically created a website with sort of, you know, compelling-looking articles and lots of different prompt injections that say, "Hey, you know, this is just a preview of this content. the real content, you have to follow this link." And then if you follow that link, it says, "Oh, you know, this content is only available if you provide your email address so here's a form that you can put it in." And then basically sort of, you know, guide these agents towards disclosing information that they shouldn't be disclosing.
主持人:所以你们现在正在开发这道铁幕,这是对 OpenClaw 的回应。Host: So you're developing this iron curtain now and that's a response to OpenClaw.
Niels Provos:我们生活在这样一个世界里,许多公司的高管团队都在说:“你们必须使用 AI。”对吧?如果你们不用 AI,我们就不再具有竞争力了,因为其他人都在用。于是,这些激励措施可能会让销售或市场拓展团队的人觉得:“嗯,你知道,如果我想拿下更多潜在客户,我就装个 OpenClaw,让 OpenClaw 管理我的日历、替我联系客户。”他们没有想到,市面上的很多技能可能是恶意的;而且你知道,如果你想做一个负责任的企业公民,大概就不会想运行一个拥有你所有权限、想做什么就做什么的 AI 智能体。这不会有好结果。我的意思是,先说清楚,我觉得 OpenClaw 很有意思,对吧?Niels Provos: We're living in a world where sort of the executive teams of many of these companies are saying, "You must use AI." Right? If you don't use AI, we will not be competitive anymore because everybody else is doing it. And these incentives then may be for your sales or go-to-market people saying, "Well, you know, if I want to close more leads, I'm just going to install OpenClaw and OpenClaw's going to manage my calendar, it's going to do the outreach." Not thinking about the fact that it's a lot of the skills out there maybe malicious and that you know if you sort of want to be a responsible corporate citizen you probably don't want to write run an AI agent that has all your privilege and can do whatever it wants. Doesn't end well. I mean just to be clear I think OpenClaw fascinating, right?
这是个非常有趣的想法,看到它这么受欢迎也很棒。不过我当时想的是:如果要做这件事,我该如何以安全优先的方式来实现?于是我想,也许我们可以先用英文写一份宪章,然后让一个 LLM 通过多步骤的问答方式,把它转化成一套确定性策略。因为使用这些 LLM 来为智能体的行为设置护栏,其中一个难点在于,你并不清楚它们会把什么判定为好或坏。所以我想要一套确定性策略,而且这套策略要建立在语义明确的基础上。Iron Curtain 的理念就是用通俗的英语写下要求,系统会自行判断应该制定什么策略。It's a really fun idea and it's great to see it so popular but my thinking was the well if I was to do this how would I approach this in a way that is security first? And so I thought well maybe we can just write this English constitution and then we take an LLM sort of in a multi-step interrogation fashion to write this deterministic policy because one of the challenges with these LLMs is if you use them as the guardrails for what the agent does you don't really know what they're going to say is good or bad. And so I wanted a deterministic policy and I wanted this policy on something that was semantically meaningful. The idea with Iron Curtain is just write plain English. The system will figure out you know what policy should be made.
主持人:你相信大型语言模型总能以可重复的方式解读普通英语吗?Host: And you trust the LLMs to always interpret the plain English in a repeatable way?
尼尔斯·普罗沃斯:不。Niels Provos: No.
主持人:好的。Host: Okay.
尼尔斯·普罗沃斯:归根结底,你还是希望人类审视这套确定性策略,并至少大致认可它,尽管系统总体上生成的策略都相当合理。Niels Provos: At the end of the day you still want the human to look at this deterministic policy and at least sort of sign off on it even though the system by and large produces very reasonable policies.
主持人:铁幕项目的未来是什么?你是……希望有更多人真的去试用它,还是说它更多是你的一个试验场?Host: What's the future of the Iron Curtain project? Is it Are you hoping more people will actually try it out or is it more of a playground for you?
Niels Provos:不,我很希望有更多人来试试,因为我觉得这算是一种让这些智能体运行得更安全的方式。我在 Iron Curtain 之上构建的另一个东西,是这些有限状态机工作流。你基本上可以把它想成多智能体协作:这些智能体之间有一些预先规定好的连接关系,但一切完全基于配置,对吧?你写一个 YAML 文件。是的,我喜欢 YAML。总之,它就是一个任意的 YAML 文件。我当时想,嗯,你知道,有了这种迂回思路,再加上我的直觉——这其中很多东西只要搭配合适的测试框架就能实现。最后我写的其中一个东西,就是一个漏洞发现框架。你知道,它成功找到了 FFmpeg 中一个隐藏了 16 年的漏洞;而我最近又用它在 FFmpeg 中发现了另一个零日漏洞,用的还是市面上能买到的模型,对吧?Niels Provos: No I would love for more people to try it out because I think it's sort of a way to do these agents more securely and the other thing I've built on top of Iron Curtain is these finite state machine workflows and you can basically think about it multi-agent coordination with sort of you know very prescribed edges between these agents but it's all completely configuration based, right? You write a YAML file. Yeah I like YAML. Anyway so it's a arbitrary YAML file. I was like well you know with this misdirection and sort of you know my gut feeling that a lot of this can be produced with just the right harness. One of the things that I ended up writing was a vulnerability discovery harness and you know it was able to find the FFmpeg vulnerability that was hidden for 16 years and I just found another zero-day in FFmpeg with it using the commercially available models, right?
我希望我们能够让开源领域的人们更平等地获得这些资源,因为我担心,如果你设立了这些有门槛的环境,你知道,那些真正能从中受益的人可能反而得不到他们所需的工具,无法保障自身安全。I hope that we can democratize access for the people in open source because one of my worries is if you sort of set up these gated environments, you know, maybe the people who sort of really would benefit don't get the tools that they need to make them safe.
主持人:听起来你需要组织一场“铁幕”黑客马拉松。Host: It sounds like you need to organize an Iron Curtain hackathon.
Niels Provos:这确实是个有意思的想法。我应该……我应该考虑一下。Niels Provos: That actually is an interesting idea. I should I should consider that.
开源维护者与软件许可协议Open source maintainers and software licensing
主持人:那么,你觉得黑客马拉松精神更多是源于开源理念,还是更偏向创业公司的那种理念?Host: So, do you think that the hackathon spirit that it Does that come more Is it more about the open source ethos or like more of the like kind of startup ethos?
尼尔斯·普罗沃斯:我觉得真正的问题是,你知道,你们为什么要做这件事?想要达成什么目标?而我的想法是,咱们不妨提出一些疯狂的点子,看看能不能享受把它们变成现实的过程。企业的做法则会是:“哦,所有人都必须参加黑客马拉松,而且最好做出些对公司有价值的东西。”对吧?我觉得这完全偏离了它的精神。Niels Provos: I think the question really is, you know, why are you doing this? What are the outcomes that you want to accomplish? And then my mind, it's let's have some crazy ideas and see if we can have fun with making them work. The corporate way of it would be, "Oh, everybody must participate in the hackathon and you better produce something that has value to the company." Right? I think that sort of completely misses the spirit of it.
主持人:你觉得参加黑客马拉松时,如果真的放开手脚、不一定非要做出能投入生产的东西,是不是反而更好?Host: Do you think it's actually better in a hackathon if you go like real crazy and don't necessarily try to make something that will go into production?
Niels Provos:如果大家得到的指示只是放开手脚,尽情发挥,你懂的,想办法做点什么,最后做出了和产品有关的东西,那很好。但如果这变成了一种义务和苦差事,而且你知道,绩效评估时会根据你在黑客马拉松期间做出的成果给你打分,那我觉得它就已经偏离初衷太远了。Niels Provos: If people are being told just go crazy, have fun, you know, figure something out and something product-related comes out of it, great. But if it's sort of this obligation and chore and you know you're going to get rated in your performance review on sort of what you produced during the hackathon, then I think it has sort of departed, you know, way too far from what it was supposed to be.
主持人:那么,你认为公司应该举办内部黑客马拉松吗?Host: So, do you think that companies should hold internal hackathons?
Niels Provos:是啊,只要大家玩得开心。你知道,如果这是个社交的机会,对吧?如果他们聚在一起,享受其中的乐趣。Niels Provos: Yeah, if people have fun with it. You know, if it's a social opportunity, right? If they get together and enjoy it.
主持人:OpenBSD 是开源的,嗯,但我读到,OpenBSD 里的很多软件组件如今都出现在 Android、macOS、Windows 这些专有平台上。你知道,他们拿走了其中的一些部分,因为我猜 OpenBSD 的许可证相当……Host: OpenBSD is open source, um but I read a lot of it the bits of software in OpenBSD are now in proprietary places like Android, macOS, Windows, like you know, they like took bits and pieces they're like cuz I guess the OpenBSD license is fairly
Niels Provos:这是一种非常宽松的许可证。没错。是的。Niels Provos: It's a very permissive license. That's right. Yeah.
主持人:你认为这些大公司为支持开源生态系统所做的够了吗?还是说他们应该采取更多行动?Host: Do you think that these big companies are doing enough to support the open source ecosystem or do you think they should be doing something more?
尼尔斯·普罗沃斯:我是说,当然了,对吧?世界上的每个人都在利用开源,让自己能更快地交付想给客户提供的产品。至于他们回馈得够不够,我不知道。我那愤世嫉俗的一面大概会说,肯定不够。问题不只是钱,对吧?问题在于,这些开源项目的许多维护者,都是在业余时间做这些事。有时候,光是砸钱解决问题其实并没有用,因为如果我忙着过自己的日常生活,只能抽空维护这个开源项目,那这笔钱我也没法用。我是说,我得雇个人才行。所以我觉得,目前很多批评都在说,大家都在用 AI,于是就收到了大量质量存疑的拉取请求。Niels Provos: I mean for sure, right? Everybody in the world is leveraging open source to get faster in whatever product they want to deliver to their customers. Whether they contribute enough back, I don't know. My cynical mind would probably say definitely not. The issue is not just money, right? The issue is that sort of a lot of the maintainers of these open source projects, they sort of do this on the side. And sometimes throwing money at the problem is actually not going to help because if I'm busy with my regular life and I sort of maintain this open source project on the side, I can't do anything with the money. I mean I would have to hire somebody. And so I think a lot of the criticism at the moment is the sort of everybody is using AI, you get lots and lots of pull requests of sort of, you know, dubious quality.
我不确定当时说这话的是 FFmpeg 维护者,还是 curl 维护者。他们大概是说:“我们收到了这么多安全报告,已经应接不暇了。你知道,如果你们不同时提供补丁,那这些报告我们其实都没法用。”从某种意义上说,这又回到了我之前在做的漏洞发现工作流,因为关键不在于你能不能找到潜在漏洞,而在于你能不能证明这些漏洞确实存在。这就要求模型实际编写一个概念验证漏洞利用程序,这样我作为维护者,就能毫无疑问地确认:是的,这确实是个问题。然后,我就可以把非常有限的时间和精力投入到有充分证据证明确实存在的问题上。从很多方面来说,这也算是回到了我之前谈到的安全问题。I don't know if it was the FFmpeg maintainers or maybe the curl maintainers who were saying, "We are getting all of these security reports. We're overwhelmed with them. You know, if you don't give us patches as well, then we can't really use any of this." And that then in some sense, you know, goes back to this vulnerability discovery workflow that I was working on because the point is not can you find potential vulnerabilities? Can you prove that these are really real vulnerabilities? And that sort of requires actually the models to write a proof of concept exploit so that if I'm a maintainer, I can without any doubt know that yes, this is a real issue. And now I can spend my very limited cycles on something where I have all the evidence that it's real. And that is sort of in many ways sort of full circle to what I was saying earlier about security.
你需要把不变量落实到位,因为安全行业很大程度上都在讲“我们会检测出坏事”,但你不可能做到完美检测。所以很多安全运营团队都得面对这样一个事实:他们会收到大量误报。他们大部分时间都花在处理这些误报上。我觉得这和开源很相似,对吧?You need to get the invariants in place because so much of the security industry is about the we will detect bad things and you can't detect perfectly. And so a lot of the security operations teams deal with the fact of that they get all these false positive alerts. They spend most of their time just on that and I think that is very similar with open source, right?
网络安全 EDM 歌曲与音乐Cybersecurity EDM songs and music
主持人:我注意到,你用的很多短语也出现在你的歌里。比如你有一首关于社会工程学的歌,还有一些歌的歌词里提到了横向移动。你是怎么决定要创作一首关于网络安全的歌的?Host: Now, I notice you know, a lot of the the phrases you use are also lyrics in your songs. So got a song about social engineering, you've got songs like with the lyrics lateral movement. How did you decide I'm going to make a song about cybersecurity?
Niels Provos:部分原因是我当时是 Stripe 的安全负责人,每天都得开车去市区。然后新冠疫情突然爆发了。我觉得,你知道,远程工作时,我没法特别有效地管理我的安全团队。你需要更加主动、更有意识地沟通和建立信任。但那时我每天多出了两个小时。于是我开始学电吉他。有了电吉他之后,你还可以录音。接着我就想,做音乐不是很棒吗?后来我意识到,电子音乐需要投入的精力要少得多。但另一方面,我在 Google 待了 15 年。最终,Google 在“极光行动”中遭到由中国政府支持的对手入侵。Niels Provos: Part of it was I was head of security at Stripe. And I had to drive to the city every day. And then all of a sudden, COVID happens. I felt that, you know, I couldn't manage my security organization sort of very effectively remotely. You sort of need to be much more up front and and intentional about the way in which you communicate and build trust. But now I had 2 hours at hands every day. And so I started learning electric guitar. And once you have electric guitar, you can also record it. And then I thought, well, wouldn't it be great to make music? And then I realized that sort of electronic music had way less overhead. But sort of on the flip side of that, I was 15 years at Google. I had Google ended up being compromised in Operation Aurora by adversaries backed by the Chinese government.
这对 Google 这个组织来说,算是一次安全态势方面的警钟。Google 之前就已经很重视安全了,对吧?从某种角度来说,我们在基础设施中构建了许多安全不变量:以这样的方式来构建基础设施,让许多攻击面从根本上不复存在。在很多方面,我们在 Stripe 做的也是完全一样的事,只不过吸取了在 Google 这 15 年里积累的所有经验教训。但令人遗憾的是,对吧?如果我看看一家公司的安全态势,就会发现大多数公司甚至负担不起安全项目,因为市面上根本没有什么现成产品可以买来就能确保安全。大多数公司,遗憾的是,安全行业里也有不少人,甚至都没有真正搞清楚需要做哪些工作。And it was sort of a wake-up call for Google as an organization on the security stance. And Google already took security seriously before, right? And we sort of built a lot of security invariants in the infrastructure from the perspective that you build the infrastructure in such a way that a lot of the attack surface doesn't even exist anymore. And in many ways we did exactly the same at Stripe, only with all the lessons learned from the 15 years at Google. But the sad thing is, right? If I look at a company and their security stance, most of them can't even afford the security program because there's sort of no off-the-shelf product that you can buy to make you secure. Most companies, and unfortunately sort of also a lot of people in the security business, don't really even have a solid understanding of the work that needs to be done.
我当时想,嗯,你知道,音乐或许是很好的教学方式。你知道,也许人们喜欢这些网络安全电子舞曲,并对歌词产生兴趣,甚至能吸引更多人加入这个行业,从而缓解人才短缺。I thought, well, you know, music could sort of be a great way to teach. You know, maybe if people like it and they sort of get interested in the lyrics of these cybersecurity EDM tracks, might even get more people to join the industry and sort of alleviate the shortage of talent.
歌曲节选:横向移动,宝贝。你能渗透我的网络吗?我最近的防御系统很顽固。Song excerpt: Lateral movement, baby. Can you infiltrate my network? My defenses are insistent lately.
Niels Provos:我有一个目标,对吧?那就是想在网络安全领域获得一个平台。我的意思是,我很享受创作音乐的过程,对吧?我的做法是,能运用很多社会工程手段。比如,安排一次与 GitHub 的访谈来推广我的音乐,你知道,这也是计划的一部分。Niels Provos: I have a goal, right? And the goal is I want to get the platform for cybersecurity. So, I mean, I enjoy the process of making the music, right? My approach is there's a lot of social engineering that can be done. For example, arranging an interview with GitHub to promote my music is, you know, part of that plan.
音乐节选Music excerpt
主持人:有没有人联系过你,说听了这些曲目之后,他们对安全更感兴趣了?Host: And have you had anyone reach out to you saying that that they've gotten more into security, you know, after listening to the tracks?
Niels Provos:遗憾的是,我还在等待那个时刻,不过我知道很多安全领域的人都喜欢这音乐。Niels Provos: Unfortunately, I'm still waiting for that moment, but I do know that a lot of the security people enjoy the music.
Cicada 3301 谜题与隐写术The cicada 3301 mystery and steganography
主持人:那么,Cicada 3301 是个非常神秘的谜团,网上到处出现了各种密码谜题,发布这些谜题的人据说是匿名的,没人弄清楚是谁发布的,也没人知道他们的目的——你知道,是不是为了给美国国家安全局招人之类的?而且直到现在,这仍然是个未解之谜。所以,我听说过一个传闻。你、你就是 Cicada 3301 吗?Host: So, Cicada 3301 is this great mystery with all these cryptographic puzzles that went off across the internet and they got posted like, you know, it's from someone anonymous and no one figured out who posted these puzzles and and what was the purp- you know, was it like recruiting people for NSA or what was it? And and it's still like this unsolved mystery. So, I've heard a rumor. Are Are you Cicada 3301?
Niels Provos:这个问题问得很直接,Pamela。我觉得我们应该循序渐进地回答。读博士期间,我研究的是隐写术。隐写术大致上就是这样一种概念:我能不能以某种方式隐藏信息,让别人甚至不知道其中藏着一条信息?其中一种我非常喜欢的做法,就是用图像来传递秘密信息:以一种人类无法察觉的方式,巧妙地修改图像中的一些比特。当时,我开发了一个叫 Outguess 的程序,用来把这些信息嵌入 JPEG 图像中。后来,我还开发了一个叫 Stegdetect 的程序,用来检测隐写图像。我最终还搭建了一个分布式系统,利用密歇根大学所有空闲的计算机来处理图像,寻找隐藏的信息。Niels Provos: That is a very blunt question, Pamela. I I think we should work up to that answer. Back when I was doing my uh PhD, I was working on steganography. And steganography is sort of this notion of the, you know, can I hide my messages in a way where people don't even know that a message is there. And one of the, you know, very favorite things is take an image instead of, you know, intelligently modify some of the bits without changing this image in a way that a human would be able to detect to convey a secret message. Back then, I developed this program called Outguess, which was a way of embedding these messages in JPEG images. I also ended up working on a program called Stegdetect to end up detecting steganographic images. And I ended up building this distributed system that utilized all the free computers at the University of Michigan to to process images for hidden messages.
我不认为我和所有学生都成了朋友,尽管我晚上在运行他们。[接下来的一个词听不清。] 嗯,你知道,我的理解是,其中一些 CPU 可能有点不堪重负。随着 Cicada 的一些内容变得更加公开,人们发现他们曾用 Outguess 在一些 Cicada 3301 谜题中隐藏信息。我相信,这可能就是他们与我建立联系的方式。Cicada 谜团中至今仍未解开的事情之一,是一本已经出版的书。那位作者看过我做的一期关于安全的播客,还注意到了我身后的书架。他在那里发现了很多与维京人有关的书。后来他去找了一位历史学家,说,你觉得,要参与这个谜题,一个人需要具备什么样的技能?I don't think I made friends with all of the students, even though I was running them at night. [A following word is unclear.] Um you know, my understanding is that some of these CPUs may have gotten bogged down a little bit. When some of the Cicada became a little bit more public, it turned out that they ended up using Outguess to hide messages in some of the Cicada 3301 puzzles. And I believe that this how the connection to me may have been made. And one of the things that are sort of still unsolved in the Cicada mystery is this book that got published. This author had seen a podcast I'd done on security and he sort of saw my bookshelf in the background. He found a lot of sort of Viking-related books there. And he ended up going to a historian and said, you know, in in your opinion, what is the skill set that somebody would need in order to participate in this puzzle?
他说,嗯,你需要密码学。然后,要写这本书,你多少得了解这种卢恩字母,以及它是如何构成的。你知道,这个叫尼尔斯的人,正好具备相关背景。他有技术背景,当时也在场。他们似乎在用他的隐写程序。他声称,我很可能就是 Cicada 3301 背后的人。你知道,我对他的回答是:恐怕要让你大失所望了,因为我无法向你证实这一点。那些都只是间接证据。And he was saying, well, you need cryptography. And then for this book, you sort of need enough knowledge about this runic alphabet and how it's put together. And this guy Niels, you know, he has exactly the right books in his background. He has the technical background. He was around. They were sort of using his steganography program. His assertion was that I was probably behind Cicada 3301. And you know, my answer to him was, I will have to terribly disappoint you because I cannot confirm that for you. That is all circumstantial evidence.
主持人:好吧,所以你没有否认,只是不予确认。Host: Okay, so you're not denying it. You're just not confirming it.
Niels Provos:我主要是觉得这些猜测挺有意思的。Niels Provos: I'm mostly amused by the speculations.
主持人:所以,我是说,Cicada 3301 看起来确实是另一种提高网络安全意识的策略,因为显然甚至还有一部独立电影之类的。Host: So, I mean, Cicada 3301 does seem like another strategy for raising cybersecurity awareness cuz apparently there was even a like an indie movie.
Niels Provos:哦,我、我之前不知道这事。所以,Cicada 3301 实际上也创作了音乐。而且,理论上也可能有一首关于这个主题的激活曲目。Niels Provos: Oh, I I wasn't aware of that. So, Cicada 3301 actually came up with music too. And it is hypothetically possible that there may be an activate track on that topic too.
主持人:哦,这是即将到来的一场吗?Host: Ooh, is this a one that's coming up?
Niels Provos:它可能已经发布了。Niels Provos: It may already have been released.
主持人:好的。Host: Okay.
刀剑锻造与正念Bladesmithing and mindfulness
所以你也是一位刀匠。So you're also a bladesmith.
Niels Provos:是的。Niels Provos: Yes.
主持人:所以你是制作光剑的。Host: So you create sabers.
尼尔斯·普罗沃斯:还有剑、刀、矛以及[词语不清]。Niels Provos: And swords and knives and spears and [word unclear].
主持人:所以我想你之前说过,钢铁的淬硬过程和安全加固的过程有点相似。对你来说,这种类比真的成立吗?还是说这只是个做几把剑的借口?Host: So I guess you've said before that the the process of hardening steel is kind of similar to the process of hardening security. Does Does it feel analogous to you? Or is that just an excuse to make some swords?
Niels Provos:嗯,我换个说法吧。有人写文章谈到我做这件事。你知道,有时候你就是想从一个完全不同的角度,编织出一座桥梁。我觉得,真正对我产生巨大影响的是其中的冥想成分。锻炉的声音特别大,你知道,你根本听不见手机响。你知道,你得小心,别把钢烧坏了。所以你必须活在当下,集中注意力。我在 Stripe 工作时,嗯,那是个压力非常大的职位。你知道,Stripe 每年处理数千亿美元的交易,而我和我的团队要确保那里不发生任何恶意行为。后来有一天,我妻子说:“Niels,这样下去不行。你知道,我要送你去上正念减压课程。”Niels Provos: Well, let me put it that way. Articles were written about me doing this and you know, sometimes you just want to sort of weave a bridge from a completely different perspective. I think it's really the meditative aspect that makes a huge difference for me. The forge is so loud, you know, you can't hear your cell phone. You you know, you need to be careful that you don't burn your steel. So you need to be in the moment and pay attention. When I was at Stripe, um it was a very high stress role. You know, Stripe was processing hundreds of billions of dollars every year and myself and my organization was responsible for nothing malicious happening there. At some point my wife said, "Niels, this is not working. You know, I'm going to be sending you to this mindfulness stress based reduction class."
这都是在新冠疫情期间左右发生的,对吧?我在线上做了大概两个月,也确实很体会到正念冥想的价值,以及这样一种想法:我能不能就坐下来,让自己的心安静下来,活在当下,让念头浮现,再让它们离去。我觉得这确实是当下每个在工作的人都该认真考虑的事,因为现在大家似乎总是害怕错过什么。人工智能的发展越来越快。你需要留出一些时间,退后一步。This was all sort of during COVID, right? I did this for two months sort of online and I sort of really appreciated the value of mindfulness based meditation and this notion of can I just sit down and sort of, you know, quiet my mind and sort of just be in the moment and let the thoughts enter and let them go. And I think that is something really to consider for everybody who's working at the moment because everybody sort of feels FOMO all the time now. AI is going faster and faster. You need to take some time and take a step back.
主持人:正如你所说,我们的错失恐惧感越来越强,焦虑感也在加剧,我们越来越缺乏耐心,因为现在我们能如此迅速地得到结果。Host: Our FOMO is increasing as you said, like our anxiety, our our impatience because now we can get results so quickly.
Niels Provos:对吧?这又回到了“我们为什么要做这一切”这个问题,对吧?今年是人工智能,明年又会是别的东西。但你知道,我们人类仍然需要彼此相伴,我认为即使是在企业职场中,这也是我们应该关注的重点。Niels Provos: Right? It sort of comes back to the why are we doing all of this, right? It's going to be AI this year, it's going to be something else next year. But you know, we as humans still need to be with each other and I think that is is what we should be focusing on even in the corporate workplace.
主持人:嗯,这似乎是个非常好的收尾,令人深受鼓舞。非常感谢你今天愿意和我坐下来,回答我这么多问题,包括那些尖锐的问题,也感谢你分享自己漫长人生中的种种故事,涉及网络安全、音乐、刀剑锻造,以及方方面面。Host: Well, that seems like a really nice note to finish on. It was very inspiring. Thank you so much for sitting with me today and answering my many questions, even my pointed questions, and for sharing all your stories from your long life in cybersecurity and music and bladesmithing and everything.
Niels Provos:是啊,谢谢你,Pamela。这很有趣。Niels Provos: Yeah, thanks, Pamela. This was fun.