Security-by-Design for LLM-Based Code Generation: Leveraging Internal Representations for Concept-Driven Steering Mechanisms

Maximilian Wendlinger 1 , Daniel Kowatsch 1 , Konstantin Böttinger 1 , Philip Sperl 1 · 2026

Read Security-by-Design for LLM-Based Code Generation: Leveraging Internal Representations for Concept-Driven Steering Mechanisms by Maximilian Wendlinger 1 , Daniel Kowatsch 1 , Konstantin Böttinger 1 , Philip Sperl 1 (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2603-11212.txt.

Description

Maximilian Wendlinger and coauthors look inside code-generating language models. They find the models often register security problems. They do so even while writing insecure code. Combined benchmarks show current fixes yield only limited gains in correctness and security. The authors trace this gap to poor understanding of the internal mechanisms behind vulnerable output. Their method, Secure Concept Steering, nudges internal representations toward secure, functional code during generation. It is a lightweight modular add-on. It beats state-of-the-art approaches on several secure coding benchmarks.

Catalog record

CREATORMaximilian Wendlinger 1 , Daniel Kowatsch 1 , Konstantin Böttinger 1 , Philip Sperl 1
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE96390
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2603.11212

Browse the full library · About the Tower of Babel