Skip to main content

This year’s William Chalmers lecturer wants to stay one step ahead of the hackers

Andrei Sabelfeld, Professor of Cybersecurity at Chalmers and William Chalmers lecturer 2026
Andrei Sabelfeld, Professor of Cybersecurity at Chalmers and William Chalmers lecturer 2026
Published Dec 02, 2026

What happens when someone tricks an AI assistant that has access to your email and your money? Andrei Sabelfeld, Professor of Cybersecurity at Chalmers, researches how software and AI systems can be made secure from the start. The day after this year’s William Chalmers Lecture, we met him and two of his doctoral students in the lab.

Andrei Sabelfeld

Title: Professor of Cybersecurity

Division: Computing Science, Department of Computer Science and Engineering, Chalmers

Research: Secure software, web security, information flow and secure AI agents

Other: Wallenberg Scholar. William Chalmers lecturer 2026

Contact: andrei@chalmers.se

Samuel Kajava

Title: Second-year PhD student, supervised by Andrei Sabelfeld

Division: Computing Science, Department of Computer Science and Engineering, Chalmers

Research: Information flow and security for AI agents

Contact: kajava@chalmers.se

Eric Olsson

Title: PhD student, supervised by Andrei Sabelfeld

Division: Computing Science, Department of Computer Science and Engineering, Chalmers

Research: Vulnerabilities in web applications and malicious browser extensions

Contact: laro@chalmers.se

Hacked the same day

On Thursday 12 November, Andrei Sabelfeld gave this year’s William Chalmers Lecture in Runan at the Chalmers Student Union building. Its title was “Kan vi ligga steget före hackarna? Säker kod, säker AI och säkrare framtid” (Can we stay one step ahead of hackers? Secure code, secure AI and a safer future).

On the day of the lecture, a member of the audience came up to him and said they had been hacked earlier that day. They had used the same password across several apps and were now busy resetting all their accounts.

– There’s no reason anymore to reuse passwords when you have password managers that come up with stronger passwords you don’t need to remember yourself, says Andrei Sabelfeld.

Many of the audience’s questions were about AI, including what happens if AI starts taking its own initiative. For Andrei Sabelfeld, it is important that researchers take part in that conversation.

– Society is worried. So it’s very important that we researchers and universities are out there telling people what’s going on, what is a legitimate concern and what is not, he says.

Security from the start

The core idea of the research is to work on security as early as possible. That can mean choosing secure programming languages and platforms, and analysing code while it is being developed.

– Rather than chasing attacks, we want to shift left and move as early as possible. By the time you release your software, you make sure you have built in all these security features, says Andrei Sabelfeld.

He uses the web as an example. SQL injection, where an attacker slips their own commands into a database query, is today a problem we know how to solve. The solution is frameworks that keep instructions and data apart.

– These are success stories, and that’s exactly what we need to take to the new types of problems with AI and prompt injection, he says.
 

PhD student Eric Olsson walks through the process of finding vulnerabilities in browser extensions.
PhD student Eric Olsson walks through the process of finding vulnerabilities in browser extensions.

Extensions that update in sync

Eric Olsson is a doctoral student in the group and works on two tracks. In one, he looks for vulnerabilities in web applications by having a program crawl through them and scan for injection flaws. Whoever owns the application can then fix them. In the other, he looks for suspicious groups of browser extensions in the Chrome Web Store.

In a study that has not yet been published, he has looked at when extensions are updated. Extensions that list different developers but update in sync with each other may have the same owner. One of the groups consists of around 60 extensions. When they are installed, updated or uninstalled, they open a tab showing advertising that is not allowed under Google’s terms. The group has reported the extensions to Google, but when we meet, they are still available.

Andrei Sabelfeld explains why extensions are a problem. They sit between the user and the web, often run on every page and can collect information such as cookies.

– An extension can have access to everything you browse. It’s a topic people should definitely know about, he says.
 

Samual Kajava and Eric Olsson are PhD students in the research group.
Samual Kajava and Eric Olsson are PhD students in the research group.
Andrei Sabelfeld
Andrei Sabelfeld

An agent that only gets to do its job

Until recently, most people used AI chatbots only to ask questions. Now AI assistants are being connected to our systems, for example an email assistant that can both summarise and send emails.

– People are very quick to give permissions to agents, to do coding, to buy things. And that opens the door to attacks, says Andrei Sabelfeld.

The work on AI agents follows two tracks. The first is about giving an agent only the permissions its task requires. An agent that books a table at a restaurant, for example, has no need to access your medical history.

The second track is about information flow, and this is where doctoral student Samuel Kajava works. Sometimes the agent has to have access to information, such as a to-do list. Then it is important to keep track of what can be trusted and where the information is sent. An email from an unknown sender should not carry the same weight as one from a colleague.

– In principle, we could say that nothing should be allowed, and then we have perfect security, but then we cannot do anything, says Samuel Kajava.

The challenge is to strike a balance between security and usefulness. An agent that keeps asking for permission quickly becomes annoying. The group tests its solutions by letting AI agents carry out large numbers of test tasks, and the results look promising. If someone tries to steal information, the user might, for example, get a warning that an email is about to be sent to a suspicious address.

Turbulent now, brighter later

In the short term, Andrei Sabelfeld is worried. Many older systems are written in programming languages that are not memory safe, from a time when security was not a priority. Now that AI has become so capable, the weaknesses are being exposed. He expects a turbulent period of perhaps a year.

– But long term, hopefully it’s for the better that we have AI, because AI is the defender’s best friend, he says.

He already sees signs of change, such as browser makers rewriting parts of their code from C and C++ to Rust. Ordinary users can think along the same lines as developers and avoid granting more permissions than necessary. Does a new microwave need to be connected to the internet? Probably not, and perhaps not the washing machine either.

So, can we stay one step ahead of the hackers?

– I think we have every chance to do that. But first we need to change the mentality. When people come to me and say they were hacked today, that’s too late, says Andrei Sabelfeld.

Collaboration is part of the answer. When he was asked during the lecture how different actors can work together to solve these problems, he pointed to Cybercampus.

– If a company has problems, it can find the right researcher and the right material through Cybercampus. It’s super important to have this kind of beacon, so people know they can turn to Cybercampus when it comes to security, he says.

Security does not have to be an obstacle, he argues.

– We were only able to start with online banking because there was encryption. Hopefully security research can continue to be that kind of enabler, he says.

Belongs to: Cybercampus Sverige
Last changed: Dec 02, 2026