AMAZINGINDEX.COM 每天一点 Amazing
60.4
VOL. 2026.11
2026.11.06
← 返回 2026.11.06 日报
日报快照 · Daily Snapshot
NO. 018

审计 AI 编程助手的行为轨迹

#ARTICLE HackerNews 2026.11.06
推荐指数 63.0 NO. 018 · 2026.11.06
发布2026/11/05Score58Comments11

Stroq 是一个本地 CLI 工具,能解析 Claude Code 和 Codex 的会话记录,追踪代理执行了哪些命令、读取了哪些文本、密钥流向了何处。对使用 AI 编程代理的团队来说,这是填补安全审计盲区的实用工具,尤其适合需要满足合规要求或担心 prompt injection 导致密钥泄露的场景。

目前 AI 编程代理的安全审计几乎是个真空地带,团队要么完全信任代理的输出,要么手动翻查会话日志,效率极低。Stroq 的聪明之处在于只做本地只读分析,不碰密钥值、不上传数据,打消了安全团队的顾虑。

与 GitHub 的 audit log 或 Claude 官方的 usage dashboard 相比,Stroq 聚焦在"代理到底读了什么、做了什么"这个更细粒度的问题上,填补了平台原生工具的能力缺口。它的 36 种攻击模式 sandbox 也暗示了作者对 prompt injection 和工具滥用场景的深入研究。

如果你已经在生产环境用 Claude Code 或 Codex 处理含敏感代码的仓库,建议先跑一遍 init 模式,看看现有会话里有没有异常的文件读取或网络请求模式。

意见分歧 10 条评论

核心争论:审计工具能否替代事前防护,事后追溯是否足够应对 AI 代理的安全风险

agybay_07

I've built project that helps to protect your computer from dangerous commands that your ai agent might execute. Have you noticed how often dont even check what our agents are actually running? Thats why I created Stroq. Try it locally npx @stroq/cli

embedding-shape

> helps to protect your computer from dangerous commands that your ai agent might execute How does "a local audit of what your coding agent did and why" help prevent dangerous commands? Sounds like your solution comes too late, innit? Sure, I can see that at 16:48 the agent ran "rm -rf --no-preserve

agybay_07

You’re right the command from my comment only generates a report and doesn’t actually prevent anything. stroq init sets up hooks that prompt for confirmation before a dangerous command is executed—but that’s a filter, not a sandbox

替代方案: AgentSight
查看原文 →