Aravind Srinivas 发文表示 AI 智能体非常适合用于安全监控,并转发了利用智能体防范 GitHub 恶意代码合入的实操案例。被引用推文指出,针对 1Password 此前因黑客入侵 GitHub 植入恶意代码的事故,开发者可配置安全智能体持续监控传入的 PR,无需额外编写提示词即可根据角色命名自动工作。配套截图显示,该智能体可针对供应链篡改、后门及机密外泄等恶意行为进行私下告警,在代码合并前拦截安全隐患。
Teammates 用于安全监控太棒了!
1Password 遭到入侵,原因是黑客获得了 GitHub 的访问权限,创建了一个恶意代码更改,随后被批准并推送到了生产环境。 如果你担心自己的仓库也发生这种情况,可以设置一个安全队友持续监控传入的 PR,并在发现任何蓄意恶意的代码时发出警报。 我甚至不需要给我的新队友任何提示——它直接从我给它起的名字中明白了任务,并立即开始工作
原文
1Password was compromised because a hacker got access to GitHub and created a malicious code change that was subsequently approved and pushed to production. If you are worried about this happening in your own repo, you can set up a security teammate to continuously monitor incoming PRs and alert when it finds any code that is intentionally malicious. I didn’t even have to prompt my new teammate to get started — it immediately understood the assignment from the name I gave it and got to work
来源:Aravind Srinivas · x.com