SeGen

IT Security of Generative AI

Whether for vacation planning, drafting emails, or more complex work-related organizational issues and tasks—AI applications have become a part of many people’s daily and professional lives. However, as AI becomes more widespread, new attack vectors are emerging—namely, attacks on the AI models themselves. How secure is generative AI, and how can it be attacked? The SeGen (Security of Generative AI) project is getting to the bottom of these questions.

Our researchers are investigating various attack vectors targeting generative AI models. Based on this, they are developing attack scenarios and countermeasures to better protect GenAI and thereby make its use in both personal and corporate contexts safer.
In the project, our researchers are working with open-weight models such as Kimi, GLM, Deepseek, and Teuken. These models offer many advantages that are of interest to businesses and academia. These include, for example, digital sovereignty and transparency in the reproduction of results. The insights gained from open-weight models can later be applied to proprietary models.

Our researchers are investigating the following attacks on AI models: 

Jailbreaks via Mechanistic Interpretability

Jailbreaks aim to circumvent the security mechanisms of AI models. As part of a process known as “alignment,” LLMs are trained to recognize certain harmful or illegal requests and refuse to respond to them—such as instructions for building weapons or manufacturing illegal drugs. These protective mechanisms are embedded in the behavior of the neural network. Specific activation patterns help identify problematic requests and suppress or reject a response. As part of their research on the alignment of AI models, the SeGen researchers were able to show that these safety mechanisms can be surprisingly fragile. They demonstrated that, under certain conditions, existing safeguards can be circumvented without significantly impairing the model’s overall performance. Based on these findings, they are now developing more robust countermeasures to better protect models against such attacks.

Security of Agent-Based Systems

Thanks to increasing linguistic capabilities, AI models are being used more and more in agent-based systems. Agent-based systems are software systems that process the inputs and outputs of AI models and perform actions based on the results. Agents are granted decision-making autonomy and can independently use tools to obtain more information or complete tasks. This allows work steps to be automated more extensively and precisely without human intervention. 

However, this is precisely where the risk lies: agents that act independently can cause significant damage through manipulation or internal malfunctions. This includes, for example, irreversible data loss, compromised software systems, or data breaches. At SeGen, researchers are also investigating how alignment and mechanistic interpretability can be used to design more robust agent-based systems.

Backdoor Attacks

Attackers could take an open-weight model, alter the weights, and thus introduce an unintended functionality (backdoor) into the model without being noticed. Attackers can use a backdoor to

  • intentionally train the model to accept false facts
  • cause it to favor certain products
  • or instill a bias for or against certain groups of people.

The manifestation of these malicious functions can be very subtle, making these attacks difficult to detect and therefore particularly dangerous. In SeGen, researchers have developed a method for detecting hidden backdoors.

How does LLM training work?

A large language model (LLM) consists of a vast number of artificial neurons connected to one another via links. Each of these links has a weight. These weights determine how strongly information is passed on and processed within the model. At the start of training, the weights are assigned randomly. The model then processes large amounts of text and attempts to predict the next word (or token). The prediction is compared to the expected result, and an error is calculated based on this comparison. The training algorithm gradually adjusts the weights to reduce this error. This process is repeated very frequently. As a result, the LLM learns linguistic structures, relationships, and patterns from the training data. After training, what the model has learned is stored across its weights. This is not a traditional database of individual facts, but rather a complex network of learned relationships.

What does “Open Weight” mean?

“Open Weight” means that the weights of an LLM, which were adjusted during training, are made publicly available. They contain all the learned knowledge and the recognized patterns from the training data.

About the Project

SeGen is a joint project between Fraunhofer SIT and the Dieter Schwarz Foundation based in Heilbronn. The project began in early June 2026 and will run through the end of May 2027.

Contact
Dr.-Ing. Oren Halvani
Dr.-Ing. Oren Halvani
Artificial Intelligence & Security
Phone 06151-869306