Sign inGet started
Paper · arXiv

SpecCloak: Probing Harmful Code Generation through Engineering Specifications

The code generation capabilities of large language models (LLMs) can equally be misused to implement harmful functionality, underscoring the need to understand their safety behavior in response to programming requests. While request phrasing is known to influence refusal, it remains unclear whether the form in which coding task requirements are stated affects the refusal process for malicious code generation. We introduce PseudoSpec, a template that organizes functional requirements as engineering specifications, and investigate its effects through controlled comparisons, representation analysis, and activation interventions. Across five open-weight models, removing explicit risk keywords...

AuthorsWenbin Chen, Jiexin Wang, Guanting Wu et al.
Primary categorycs.SE
Published13 October 2026
Last updated at source13 October 2026
cs.SEcs.AI
Embed this entry
<iframe src="https://silytics.si/embed/item/e4aa73b3-ab34-45e1-9d8e-2af008a1c494" width="420" height="190" style="border:0" loading="lazy" title="Silytics entry"></iframe>

Free, no tracking. More about feeds and embeds.

Silytics shows public metadata from arXiv and links to the original. Information may be incomplete or out of date. Last refreshed 15 October 2026. Licenses and terms of the original apply to the work itself. Not financial, legal or professional advice.