← Back to blog

Assessing the Proper Abstraction Level of Security Knowledge for Code Generation

Our paper has been accepted for presentation at the 4th IEEE International Workshop on Reliable and Secure AI for Software Engineering (ReSAISE 2026).

TL;DR: I’m very happy to share that our paper, “Assessing the Proper Abstraction Level of Security Knowledge for Code Generation,” has been accepted for presentation at ReSAISE 2026, co-located with ISSRE 2026.

What we investigate

In this work, we study how the level of abstraction of security knowledge affects LLM-based code generation. We use the Common Weakness Enumeration (CWE) hierarchy to represent guidance at different levels of specificity.

Does more specific security guidance necessarily lead to more secure generated code?

This question matters because security instructions can range from broad principles to concrete weakness-level guidance. Choosing the right level may affect how well a model understands and applies that knowledge when generating code.

Why abstraction level matters

More detail is often assumed to be better, but models must also connect that detail with the broader context of a programming task. Our paper explores that trade-off systematically instead of assuming that the most specific guidance will always produce the safest result.

The aim is to better understand how security knowledge should be represented and supplied to code-generation systems, so that guidance is both actionable and appropriately scoped.

A collaborative effort

This acceptance is especially meaningful because the research was carried out with my colleagues at i3 lab, managed by the Quercus Software Engineering Group (QSEG), and within the Instituto Universitario de Investigación en Tecnologías Informáticas Aplicadas (INTIA) at the Universidad de Extremadura.

A big thank you to all my co-authors and collaborators for the discussions, revisions, experiments, and many iterations that made this work possible.

See you at ReSAISE 2026

ReSAISE 2026 is the fourth edition of the IEEE International Workshop on Reliable and Secure AI for Software Engineering and is co-located with the 37th IEEE International Symposium on Software Reliability Engineering (ISSRE 2026) in Limassol, Cyprus.

I’m looking forward to presenting the work and discussing the results with the community.

Links

← Volver al blog

Nuestro artículo sobre conocimiento de seguridad y generación de código, aceptado en ReSAISE 2026

“Assessing the Proper Abstraction Level of Security Knowledge for Code Generation” ha sido aceptado para su presentación en el 4.º IEEE International Workshop on Reliable and Secure AI for Software Engineering (ReSAISE 2026).

TL;DR: Me hace mucha ilusión compartir que nuestro artículo, “Assessing the Proper Abstraction Level of Security Knowledge for Code Generation,” ha sido aceptado para su presentación en ReSAISE 2026, celebrado junto a ISSRE 2026.

Qué investigamos

En este trabajo estudiamos cómo el nivel de abstracción del conocimiento de seguridad afecta a la generación de código basada en LLM. Utilizamos la jerarquía Common Weakness Enumeration (CWE) para representar indicaciones con distintos niveles de especificidad.

¿Una guía de seguridad más específica conduce necesariamente a código generado más seguro?

La pregunta es relevante porque las instrucciones de seguridad pueden ir desde principios generales hasta indicaciones sobre debilidades concretas. Elegir el nivel adecuado puede influir en cómo el modelo comprende y aplica ese conocimiento al generar código.

Por qué importa el nivel de abstracción

A menudo se asume que más detalle siempre es mejor, pero el modelo también debe relacionar ese detalle con el contexto general de la tarea de programación. Nuestro artículo estudia este equilibrio de forma sistemática, sin dar por hecho que la guía más específica producirá siempre el resultado más seguro.

El objetivo es comprender mejor cómo representar y proporcionar conocimiento de seguridad a los sistemas de generación de código, para que las indicaciones sean aplicables y tengan el alcance adecuado.

Un trabajo colaborativo

Esta aceptación tiene un significado especial porque la investigación se ha realizado junto a mis compañeros de i3 lab, gestionado por el Quercus Software Engineering Group (QSEG), y en el Instituto Universitario de Investigación en Tecnologías Informáticas Aplicadas (INTIA) de la Universidad de Extremadura.

Muchas gracias a todos mis coautores y colaboradores por las conversaciones, revisiones, experimentos y todas las iteraciones que han hecho posible este trabajo.

Nos vemos en ReSAISE 2026

ReSAISE 2026 es la cuarta edición del IEEE International Workshop on Reliable and Secure AI for Software Engineering y se celebra junto al 37th IEEE International Symposium on Software Reliability Engineering (ISSRE 2026) en Limassol, Chipre.

Estoy deseando presentar el trabajo y debatir sus resultados con la comunidad.

Enlaces