arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.04289cs.CRcs.AIcs.SE
收藏

被污染的标识符在LLM去混淆中存活:对Claude Opus 4.6的案例研究

Poisoned Identifiers Survive LLM Deobfuscation: A Case Study on Claude Opus 4.6

Luis Guzmán Lorenzo

AI总结:

研究探讨了在LLM去混淆JavaScript时,被污染的标识符名称是否能存活于模型重构的代码中,发现被污染名称在多个实验中持续存在,并且即使模型正确理解语义,也会在注释中出现错误变量名。

摘要:

当LLM去混淆JavaScript时,被污染的标识符名称是否能存活于模型重构的代码中,即使模型明显理解正确的语义?通过在Claude Opus 4.6上进行192次推理运行,针对两种代码范式(力导向图模拟,A*路径寻找;50种条件,N=3-6),我们发现三个一致模式:(1)被污染名称在所有基线运行中都存在于两个艺术品中(物理:8/8;路径寻找:5/5)。匹配对照显示,当字符串表不形成连贯的替代领域时,即使术语无语义契合,这种现象也持续存在。(2)持久性与正确的语义注释共存:在15/17次运行中,模型写了错误的变量名,同时在注释中正确描述了实际操作。(3)任务框架改变了持久性:显式验证提示没有效果(12/12次运行,4种变体),但将任务框架从“去混淆此代码”改为“编写一个全新的实现”减少了传播率,从100%降至物理领域0-20%,路径寻找领域降至0%,同时保持检查的算法结构。匹配对照实验显示,当替换表缺乏连贯的替代领域信号时,零契合术语的持续率相同。早期领域梯度实验中的术语变化被领域连贯性和可恢复性所混淆。这些观察来自一个模型家族(Opus 4.6主模型;Haiku 4.5抽查)的两种范式。需要更广泛的推广。

英文摘要:

When an LLM deobfuscates JavaScript, can poisoned identifier names in the string table survive into the model's reconstructed code, even when the model demonstrably understands the correct semantics? Using Claude Opus 4.6 across 192 inference runs on two code archetypes (force-directed graph simulation, A* pathfinding; 50 conditions, N=3-6), we found three consistent patterns: (1) Poisoned names persisted in every baseline run on both artifacts (physics: 8/8; pathfinding: 5/5). Matched controls showed this extends to terms with zero semantic fit when the string table does not form a coherent alternative domain. (2) Persistence coexisted with correct semantic commentary: in 15/17 runs the model wrote wrong variable names while correctly describing the actual operation in comments. (3) Task framing changed persistence: explicit verification prompts had no effect (12/12 across 4 variants), but reframing from "deobfuscate this" to "write a fresh implementation" reduced propagation from 100% to 0-20% on physics and to 0% on pathfinding, while preserving the checked algorithmic structure. Matched-control experiments showed zero-fit terms persist at the same rate when the replacement table lacks a coherent alternative-domain signal. Per-term variation in earlier domain-gradient experiments is confounded with domain-level coherence and recoverability. These observations are from two archetypes on one model family (Opus 4.6 primary; Haiku 4.5 spot-check). Broader generalization is needed

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑