PulseAugur
实时 04:51:40
English(EN) I tested whether "just paste the leak into your AI to fix it" actually works. It depends on the model — here's what broke.

AI模型难以修复代码泄露;狭窄的提示可提高成功率

最近的一项实验测试了使用AI模型修复代码泄露(如API密钥)的有效性。研究发现,成功率因所使用的AI模型和提示方法而异。一些模型未能完全删除泄露的信息,要么将其注释掉,要么在解释中重新打印,要么在内部推理跟踪中保留它。然而,具体、狭窄的提示,明确指示AI删除秘密、使用环境变量,并避免在任何输出或推理跟踪中重现该值,在所有测试的模型中都证明是有效的。 AI

影响 特定的提示策略对于确保AI模型安全处理敏感代码、防止意外数据泄露至关重要。

排序理由 该项目详细介绍了一项实验及其关于AI模型在特定任务(修复代码泄露)中有效性的发现。[lever_c_demoted from research: ic=1 ai=1.0]

在 dev.to — LLM tag 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

AI模型难以修复代码泄露;狭窄的提示可提高成功率

报道来源 [1]

  1. dev.to — LLM tag TIER_1 English(EN) · 이령 ·

    I tested whether "just paste the leak into your AI to fix it" actually works. It depends on the model — here's what broke.

    <p>The gap I wanted to fill</p> <p>A secret scanner can tell you "you leaked an API key here." The usual next step everyone repeats is: paste it into ChatGPT/Claude/Gemini and ask it to fix it.</p> <p>But does that actually remove the secret? I had a hunch the answer was "depends…