NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Measuring Safety Alignment Effects in Autonomous Security Agents

Isaac David, Arthur Gervais

NeurIPS page · Open on the map

Category: AI Safety, Security & Alignment › LLM Agent Safety Evaluation · Type: empirical study · Keywords: safety alignment, autonomous security agents, evidence grounding, vulnerability analysis, LLM evaluation

Areas: AI Agents › Agent Robustness › Agent Failure Attribution; Safety & Security › Safety Benchmarking › Safety risk benchmarks; Evaluation & Benchmarks › Language Model and Agent Safety › Agent Safety Benchmarks; Benchmarks for LLMs & Agents › Agent Trustworthiness Benchmarks › Unsafe Agent Behaviors

Summary

The paper measures how safety alignment affects evidence-grounded behavior of autonomous security agents, finding that aligned models produce less grounded artifacts despite not refusing tasks.

Explained to a 5-year-old

We have robots that look at computer code to find security holes. They use helpful AI helpers that are trained to be safe. The safe helpers still try to work, but they sometimes miss important clues. The unsafe helpers find more clues but might be dangerous. The study shows that being safe can make the robot less accurate, and no method yet makes it both safe and accurate.

Explained to a 5-year-old, longer

In computer security, there are programs called autonomous agents that look at code. They use AI assistants to read the code and find problems. Usually, these AI helpers are trained to be safe, meaning they won't do harmful things. The researchers wanted to see if being safe changes how well the agents understand the code. They compared safe AI helpers with helpers that were not safe. The safe helpers still tried to finish their tasks, but their results were often missing important details. The unsafe helpers found more details and wrote better reports. Even the unsafe helpers couldn't solve the hardest tasks. The study shows that safety can make the agents less accurate. It also shows that simply removing safety doesn't make the agents fully reliable. This tells developers that they need new ways to keep agents both safe and accurate. The work helps us understand the trade-offs between safety and performance.

For a technical reader

The paper investigates how safety alignment influences the reasoning of autonomous security agents that analyze code in a sandbox. Using both aligned and uncensored Gemma 4 models, the authors measure task completion, refusals, unsafe actions, and whether the generated reports are grounded in actual code evidence. They find that aligned models continue to operate but produce artifacts with weaker evidence grounding, while uncensored models retrieve more relevant code and generate usable reports. All models still fail on the most challenging proof-of-trigger and patch-verification tasks. The results suggest that safety alignment alone is insufficient and that new alignment strategies preserving evidence-based behavior are needed.

Problem

Safety alignment is typically evaluated by whether models refuse harmful requests, but it is unclear how alignment influences the evidence-grounded reasoning of agents that already operate in sandboxed environments with tools.

Method

The authors evaluate both safety-aligned and uncensored Gemma 4 models in a shared security-agent harness, measuring task completion, refusals, unsafe actions, and evidence grounding from saved traces rather than self-reports.

Results

Aligned models continued to work but produced artifacts less likely to satisfy security-specific evidence checks, while uncensored models more often found relevant code and wrote usable reports; however, all conditions failed the hardest proof-of-trigger and patch-verification tasks.

Contributions

The work highlights that safety alignment can weaken evidence grounding in autonomous agents, proposes a trace-based evaluation framework for security agents, and shows that removing alignment does not fully restore reliable behavior.

Limitations and assumptions

The study is limited to Gemma 4 models, the hardest tasks remain unsolved, and authorization prompts do not mitigate the grounding gap.

Practical relevance

The findings warn developers that safety alignment may inadvertently reduce the quality of security analysis performed by autonomous agents, suggesting the need for alignment methods that preserve evidence-grounded reasoning.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction