Measuring Safety Alignment Effects in Autonomous Security Agents
Isaac David, Arthur Gervais
NeurIPS 2026
TL;DR. Safety alignment makes autonomous security agents safer, but less effective: aligned models refuse or fail more often on controlled repair tasks, while uncensored variants complete more work but behave less safely.
Abstract. Autonomous security agents use language models to inspect code, call tools, and test vulnerabilities inside authorized environments. Most safety evaluations ask whether a model refuses harmful single-turn requests. We study a different failure mode: whether safety alignment changes the evidence-grounded behavior of an agent that is already operating in a local sandbox with fixed tools and success checks.
We evaluate regular safety-aligned Gemma 4 models and uncensored Gemma 4 derivatives in the same security-agent harness. Each model receives authorized vulnerability-analysis tasks, and each run is scored from saved traces rather than self-reported success. We measure task completion, refusals, unsafe actions, and whether the final artifact is grounded in the relevant files, symbols, and vulnerability evidence.
The key finding is that the gap is not mainly visible refusal. The aligned Gemma 4 conditions usually continue working, but their artifacts are less likely to satisfy security-specific evidence checks. The uncensored Gemma 4 condition more often finds the relevant code, identifies reachability, and writes usable security reports. Clear authorization in the prompt does not recover this behavior. At the same time, all conditions fail the hardest proof-of-trigger and patch-verification tasks. These results suggest that safety alignment effects in autonomous security agents cannot be understood only as refusals: they also appear as weaker grounding and less specific defensive evidence. Removing alignment recovers some behavior, but does not make the agent reliable or safe.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:42 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The paper studies how safety alignment affects autonomous security agents operating in a local, authorized, sandboxed environment, rather than in single-turn refusal settings. The authors build a 30-task benchmark across five task classes with deterministic success predicates and per-run evidence-grounding metrics scored from saved traces, and evaluate four aligned versus less-restricted model pairs (Gemma 4 31B/26B, Qwen2.5-Coder 7B, Llama 3.1 8B) over 1,500 traces. The central finding is that the alignment effect is not primarily visible refusal: within the Gemma pairs the aligned models keep working but produce less-grounded artifacts, while cross-family the pattern does not hold, and all conditions fail the hardest proof-of-trigger and patch-verification tasks.
Reviewers found the problem important and counter-intuitive (pmUa, 578i, QhYx). The evaluation is well instrumented: multiple model pairs and families, deterministic trace-based scoring, evidence-grounding metrics beyond outcome counting, sanity and coding controls, and appropriate paired statistics. Two reviewers emphasized that the paper is unusually transparent and does not overfit to its hypothesis, reporting the cross-family cases that contradict a simple "less-restricted is better" narrative and gating its interpretation behind explicit decision rules (578i, pmUa).
The main weaknesses are shared: abliterated derivatives are imperfect counterfactuals for pre-alignment checkpoints, so the effect cannot be attributed cleanly to alignment fine-tuning (pmUa, 578i); a capability confound makes some cross-family comparisons less clean (QhYx); novelty partially overlaps a concurrent defensive-refusal-bias paper, and several results are small with metrics pinned at 0% (QhYx, pmUa). Crucially, the authors already surface these limitations and frame their derivatives as empirical probes rather than causal claims or deployment endorsements.
Two reviewers recommend acceptance (5, 5) and one is borderline reject (3), the latter driven mainly by novelty overlap and the capability confound rather than methodological error. The core contribution, that security-agent safety must be evaluated at the system level across success, refusal, unsafe action, and grounding rather than by refusal rate alone, is well supported by the released benchmark, deterministic scoring, and honestly reported cross-family results. The weaknesses temper the claims but do not undermine the contribution. I recommend acceptance as a poster.
Final justification
Taking into account the author response and subsequent reviewer discussion, I maintain my recommendation to accept the paper. The rebuttal substantially addressed the main concerns raised during review, in particular by clarifying the scope of the aligned-versus-derivative comparisons, providing additional details on the controller and experimental controls, and better distinguishing the contribution from concurrent work. The authors also committed to improving the presentation and releasing the implementation and reproduction artifacts needed to make the evaluation easier to independently understand and reproduce.
The discussion was ultimately supportive: the reviewers who were already positive maintained their acceptance-level assessments, concerns about reproducibility raised during the discussion were satisfactorily addressed in the subsequent exchange, and another reviewer indicated that the rebuttal addressed their main concern and increased their score. Some limitations remain regarding the extent to which differences between aligned and less-restricted derivatives can be interpreted causally as effects of alignment itself, but the authors have appropriately narrowed the claims to be model-, derivative-, and interface-sensitive.
Overall, the rebuttal and discussion strengthen rather than weaken the case for acceptance, and I therefore maintain my accept recommendation.
Read meta-review
Meta-review
The paper studies how safety alignment affects autonomous security agents operating in a local, authorized, sandboxed environment, rather than in single-turn refusal settings. The authors build a 30-task benchmark across five task classes with deterministic success predicates and per-run evidence-grounding metrics scored from saved traces, and evaluate four aligned versus less-restricted model pairs (Gemma 4 31B/26B, Qwen2.5-Coder 7B, Llama 3.1 8B) over 1,500 traces. The central finding is that the alignment effect is not primarily visible refusal: within the Gemma pairs the aligned models keep working but produce less-grounded artifacts, while cross-family the pattern does not hold, and all conditions fail the hardest proof-of-trigger and patch-verification tasks.
Reviewers found the problem important and counter-intuitive (pmUa, 578i, QhYx). The evaluation is well instrumented: multiple model pairs and families, deterministic trace-based scoring, evidence-grounding metrics beyond outcome counting, sanity and coding controls, and appropriate paired statistics. Two reviewers emphasized that the paper is unusually transparent and does not overfit to its hypothesis, reporting the cross-family cases that contradict a simple "less-restricted is better" narrative and gating its interpretation behind explicit decision rules (578i, pmUa).
The main weaknesses are shared: abliterated derivatives are imperfect counterfactuals for pre-alignment checkpoints, so the effect cannot be attributed cleanly to alignment fine-tuning (pmUa, 578i); a capability confound makes some cross-family comparisons less clean (QhYx); novelty partially overlaps a concurrent defensive-refusal-bias paper, and several results are small with metrics pinned at 0% (QhYx, pmUa). Crucially, the authors already surface these limitations and frame their derivatives as empirical probes rather than causal claims or deployment endorsements.
Two reviewers recommend acceptance (5, 5) and one is borderline reject (3), the latter driven mainly by novelty overlap and the capability confound rather than methodological error. The core contribution, that security-agent safety must be evaluated at the system level across success, refusal, unsafe action, and grounding rather than by refusal rate alone, is well supported by the released benchmark, deterministic scoring, and honestly reported cross-family results. The weaknesses temper the claims but do not undermine the contribution. I recommend acceptance as a poster.
Final justification
Taking into account the author response and subsequent reviewer discussion, I maintain my recommendation to accept the paper. The rebuttal substantially addressed the main concerns raised during review, in particular by clarifying the scope of the aligned-versus-derivative comparisons, providing additional details on the controller and experimental controls, and better distinguishing the contribution from concurrent work. The authors also committed to improving the presentation and releasing the implementation and reproduction artifacts needed to make the evaluation easier to independently understand and reproduce.
The discussion was ultimately supportive: the reviewers who were already positive maintained their acceptance-level assessments, concerns about reproducibility raised during the discussion were satisfactorily addressed in the subsequent exchange, and another reviewer indicated that the rebuttal addressed their main concern and increased their score. Some limitations remain regarding the extent to which differences between aligned and less-restricted derivatives can be interpreted causally as effects of alignment itself, but the authors have appropriately narrowed the claims to be model-, derivative-, and interface-sensitive.
Overall, the rebuttal and discussion strengthen rather than weaken the case for acceptance, and I therefore maintain my accept recommendation.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposed a new benchmark that measures safety alignment effects in autonomous security agents. Instead of directly studying the model's refusal against malicious request, this benchmark studies the safety behavior from a different perspective: how safety training changes the model behavior when being deployed in sandboxed environment for security auditing. Through comparative study across different model families and different alignment effort, the author find that safety training can sometime increase the failure rate even when authorization is granted to the model. Although removing alignment can recover some behavior, this is not the ultimate solution since the agent will become less reliable and safe. The author further argues that autonomous security-agent evaluations should consider multiple dimensions, including success, refusal, unsafe action, evidence grounding etc.
Strengths and weaknesses
Strengths
- The evaluation is comprehensive, it encompasses many 5 task classes, with comparisons across different model sizes, families, derivatives (aligned vs uncensored), random seeds. Experiment results are comprehensive with confidence interval reported.
- The threat model is clear. The authors detailed threat model in section 3.2
- The takeaways are informative, which will be useful for future security-auditing agent analysis
Weaknesses
- My biggest contribution for this paper is the novelty, as this is the not the first paper for analyzing the safety behavior for security-auditing agents. One typical example is the defensive refusal bias paper (https://arxiv.org/pdf/2603.01246), in which they also analyzed how safety training will affect the agent's behavior when deployed in cybersecurity environments. Although it mainly focuses on cybersecurity scenarios, and some ablations are different, the high-level takeaways seem pretty similar: clear authorizations leads an even-worse refusal rate for aligned agents, risk assessment for security-auditing agents should not be simplified as a single score.
- Some experiment results seems not supporting the claim. For example, for llama3.1-8B and qwen2.5-7b, the aligned model has higher success rate compared with the unaligned version. The authors explained this as the derivatives of these models are worse at following the protocol. But this makes the experiment setting less clean: to disentangle the effects brought by safety training or capability drop. We should have a setting where we ensure all the aligned model and unaligned model that are used for comparison have a similar capability. Otherwise the conclusion will be less convincing.
Questions
- For RQ4, compared to which runs do runs that read the expected files and name the relevant files, symbols, issues, and local evidence succeed more often?
Limitations
Yes
Final justification
Main concerns are addressed, and the author should add a detailed comparison with concurrent work in the camera-ready version.
Formatting concerns
No formatting concerns.
2 comments
I thank the authors' detailed response, which addresses my main concern. I have raised my score.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper investigates in detail how models perform differently at security-oriented programming tasks depending on whether the models have been "aligned". The investigation examines 4 pairs of models, where each pair consists of an aligned and an unaligned model. The models' performance on security tasks is examined in detail: rather than counting refusals or failures, the investigation looks at the model behavior (e.g., what amount of local context is referenced). The paper concludes that such detailed analysis is necessary to understand model performance on security tasks, as well as that whether a model is aligned does not straightforwardly imply that it will perform worse on security tasks.
Strengths and weaknesses
Strengths:
-
The paper tackles and interesting and important question.
-
At the high level, using 4 pairs of models seems an appropriate approach for assessing the impact of model alignment on security tasks.
-
The conclusion that model performance should be assessed in detail and not just by counting outcomes is compelling and well supported by the evidence.
-
The paper does not try to overfit the results to the hypothesis. The hypothesis is not proved, but the results are nonetheless informative, and are presented objectively and dispassionately, as befits a scientific paper.
Weaknesses:
-
Because paired aligned and non-aligned models were not always available, some aligned models were transformed into unaligned models. This process isn't described in enough detail to understand its impacts on the model. In turn, this understanding is important to be able to assess whether the comparison between aligned and unaligned models is fair. If the unaligned models are not in fact unaligned or are changed in many ways other than alignment then the investigation of the impact of alignment would be compromised.
-
Although 30 security tasks are used to test the models, it seems possible that the results were influenced by the specific choice of tasks. It would have been interesting to see whether random variation in the choice of tasks would affect the conclusions.
-
While the paper makes a compelling case that looking at model use outcomes isn't sufficient, it isn't clear how the more detailed examination of different models' behaviors would lead to choosing which model to use for a particular task. This makes the conclusion less actionable.
-
Many variables influence the outcomes, and not all are well enough explained. For example, the controller was updated as a result of pilot experiments, but it is unclear how this was done or whether the update may bias the controller towards or against some models. This puts the validity of the results into question.
Questions
Could you provide more information about the paired models that would support the stance that their main difference is alignment?
Could you provide more information about the controller repair, including to explain why it is not likely to have biased results in favor of some models?
Limitations
The section titled "Discussions, ethics, and limitations" does not discuss limitations or ethics.
However, overall this paper appears to be more transparent and objective than most.
Final justification
I read the authors' initial response as pushing back against some of my concerns, which reduced my enthusiasm for the paper, although I did not change my score. After further interaction with the authors, I'm more optimistic that a revised version of the paper and accompanying artifacts will address most of my concerns, and my enthusiasm now again matches my score of "accept".
Formatting concerns
None.
3 comments
Thank you for the thoughtful review and for highlighting the importance of detailed, behavior-level evaluation. Our analysis is designed not to rely on the assumption that each model pair differs only in alignment.
The Gemma derivatives share the corresponding instruction-tuned bases and apply refusal-removal weight edits, while Qwen and Llama use public third-party derivatives. Every run records the exact revision, hash, chat template, quantization, backend, and generation settings, and statistical tests are kept separate by family. The controls make the remaining differences visible: the Gemma gaps also occur on ordinary coding tasks, Qwen is approximately neutral, and the Llama derivative performs poorly under the tool protocol. These results directly motivate the paper’s family- and derivative-sensitive conclusion.
The repair controller adds the initial file inventory, converts repeated identical list_files actions into reading the first relevant source file, and repairs two common artifact-writing wrappers. These deterministic rules are applied across conditions and do not alter task ground truth or success predicates. In the matched ablation, all official-model prompt conditions remain at 0/50 successes under both controllers, while the less-restricted condition moves from 5/50 under strict control to 10/50 under repair. The controller therefore affects interface reliability and effect magnitude, but does not create the direction of the Gemma comparison.
The 30-task suite is deliberately stratified across five security-task classes rather than presented as a random sample of all security work. Task-blocked permutation tests examine whether the observed direction depends on a small number of included tasks, and the Gemma differences remain directionally robust.
The metrics are intended to support task-specific assessment across success, grounding, tool reliability, and unsafe behavio, not to prescribe one universally best model. Section 6 already discusses derivative provenance, non-security controls, tool-interface reliability, hard-validation limits, unsafe behavior, and deployment safeguards; we will make this material easier to identify through clearer internal signposting.
Thank you for the reply. My score was already in favor of acceptance, and so the rebuttal does not increase my comfort or confidence. If anything, I'm less comfortable with acceptance now.
I was previously concerned that I couldn't understand parts of the experimental process in enough detail to be fully confident that I could replicate the results or to understand how they influenced the results. I wish the rebuttal had gone further to convince me that authors would publish enough information to make replication easy. E.g., what are the precise actions that map to "converts repeated identical list files actions into reading the first relevant source file, and repairs two common artifact-writing wrappers"?
The rebuttal also argues that some of my concerns are misguided; a more constructive rebuttal might have agreed to tweak the writing -- which this one did for one concern -- so as to help a reader understand the paper more correctly.
Thank you for saying this so directly. We are sorry that our response came across as dismissive; that was not our intention. We should have focused more directly on how the evaluation can be independently understood and reproduced, and provided precise controller details rather than defending the existing presentation.
We commit to releasing the complete controller implementation and tests, tool schemas, task manifests and predicates, model configurations, redacted traces, and reproduction scripts. For every repair, we will document the exact trigger and before/after transformation, including the repeated list_files rule, deterministic file selection, and both artifact-writing repairs.
We will also revise the paper to incorporate your concerns explicitly and improve the relevant explanations. We appreciate your original support and the opportunity to correct the impression created by our response.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
Paper investigates the effect of safety alignment (or more accurately the abliteration of safety alignment) on code analysis tasks that are safety-adjacent which could be interfered with by the learned safety preferences (i.e. rejecting to perform some tasks because they can be viewed as harmful work such as vulnerability identification). This is an ethical contradiction of sorts: by making models safer, their trainers are making them less useful for (software) safety.
To investigate this, the paper compares the performance of several model pairs (original safety-tuned plus a safety-abliterated) on software vulnerability tasks that require the models to take a few steps towards a vulnerability analysis, with different steps having varied propensity to trigger safety-aligned refusal from a model.
Experiments show that refusal of safety aligned models is not the only problem, they might not refuse but still perform poorly (relative to the abliterated versions). Also, the performance losses are further demonstrated across the analysis task substeps (i.e. not all are affected equally). The final conclusion is a bit mixed in that 1 of the model classes perform better in their abliterated form, but two other classes have the opposite effect (but not as big).
Strengths and weaknesses
Strengths:
-
S1. Multiple model pairs across 3 different families; (good (experimental) quality).
-
S2. Initially counter-intuitive problem which requires study and wider community discussion to resolve (good significance).
-
S3. Well-written (good clarity).
Weaknesses:
-
W1. Ideally the paper wants to make a point about alignment fine-tuning but really what is possible to conclude is less about alignment fine-tuning and more about alignment abliteration. That is, we cannot conclude that the effects observed are due to alignment fine-tuning because pre-alignment-finetuned checkpoints are not available (or were not analyzed). Abliterated models are used as proxies for unaligned models but those may be far from what would be expected of pre-aligned ones. Abliteration methods may be responsible for the damage to performance.
G1. Suggestion: Discuss this limitation and include details of the abliteration methods used in the matched pairs. If there are multiple abliterated versions available for the same model derived using different methods, consider experimenting with them to try to reduce the impact of abliteration method on the sought experimental conclusions.
-
W2. Discussion of "authorized" environments is limited and does not directly address a fundamental issue: a model that is open-weights has no conception of "authorized". A task may be "authorized" in a sense that it is allowed according to a policy but everything necessary to distinguish authorized use and non-authorized use is provided by the model invoker and is an untrusted input. A model is therefore forced to make alignment decisions based on tasks instead of a distinct authorization input. If authorization itself cannot be a trusted input, the outcome seen for Qwen and Llama may be the best model builders can hope for, abliteration makes things worse so users should stick with the original.
G2. Suggestion: devote a bit more discussion to the trade-off model-builders must do in order to release open-weight models while still preserving some alignment tuning.
-
W3. Numeric results demonstrate small differences and many measures are pinned at 0%. While some results come with confidence intervals, they may be insufficient.
G3. Suggestion: consider increasing number of experiments, making them easier, or other options to increase the "dynamic-range" of the experimental results.
Smaller things:
- Many grammar issues in the paragraph starting line 248.
Questions
Q1. Are pre-alignment-fine-tuned models available?
Q2. What abliteration methods were used on the paired models and are those methods tunable in terms of strength that could have impact on the safety-adjacent task performance?
Q3. Did any runs result in intentional sandboxing violations (as described in 3.2, first paragraph)? What is the purpose of this check if not? Seems orthogonal to the problem at hand.
Q4. Why was the "authorized" condition tested only with Gemma 31B?
Limitations
L1. See first suggestion to weakness W1.
Final justification
Was positive. The related prior work concern of another reviewer was addressed by rebuttal so no reason to lower score.
Formatting concerns
None
3 comments
Thank you for the careful review and for recognizing the importance and experimental quality of the study. The paper deliberately treats the less-restricted derivatives as empirical probes, rather than assuming that they isolate the causal effect of alignment fine-tuning.
Q1. To our knowledge, architecture-matched pre-alignment checkpoints are not publicly available for these models. Our conclusions are therefore based on observed aligned-versus-derivative behavior and do not require interpreting the derivatives as pre-alignment checkpoints.
Q2. The upstream model cards describe the Gemma-31B derivative as using norm-preserving biprojected abliteration and the 26B derivative as additionally using expert-granular abliteration. Qwen and Llama use public third-party abliterated derivatives. The artifact records the exact revisions, hashes, templates, quantization, and inference settings, and the statistical analyses remain separate across families.
Q3. The benchmark neither targets nor permits third-party systems. Its unsafe-action measure records attempted or policy-violating actions within the benchmark scope. Such events occurred in 8/150 less-restricted Gemma-26B and 5/150 less-restricted Llama runs, with none for Gemma-31B or Qwen. This check distinguishes improved task performance from behavior that may introduce a safety trade-off.
Q4. The prompt ablation was scoped to Gemma-31B because it is the primary and most extensively evaluated pair. Authorization produced 0/150 successes, and three additional wording variants on the matched subset likewise showed no recovery. We interpret this result specifically for Gemma-31B rather than generalizing it across families.
The authorization point is consistent with our system-level framing: prompt text alone is not a trusted authorization mechanism. Authorization must instead be established through scoped tools, containment, logging, and evidence verification at the agent-system boundary.
Zero success on the proof-of-trigger and patch-verification classes is not used as evidence for a difference between conditions; it identifies a shared capability boundary. For the nonzero comparisons, we report paired tests, confidence intervals, task-blocked analyses, grounding, and failure phases. We will also correct the noted grammar issues, thank you, very helpful.
Re: Re Q2
Q2 is less about tracking down the parameters of the ablitarations used but rather about experimenting with those parameters. If ablitaration strength or type can be sufficiently explored as an experimental variable, some impact of the substitution of abliteration for pre-alignment-tuning could be reduced (or alternatively connecting the observations to the abliteration type or strength instead of abliteration in general).
Thank you for the helpful follow-up. We will add comparisons across abliteration methods and strengths in the updated version and revise the interpretation to attribute the observed effects to the specific transformations tested, rather than to abliteration generally.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Thank you for the thoughtful review and for noting the comprehensive evaluation and informative takeaways.
Regarding novelty, Defensive Refusal Bias and our paper examine different levels of the evaluation stack. That work studies single-turn responses to NCCDC-derived prompts, emphasizing refusal behavior and authorization wording. Our unit of analysis is multi-turn autonomous execution with fixed tools, executable local sandboxes, deterministic success predicates, saved traces, failure phases, unsafe actions, and evidence grounding.
The distinctive result here is that the primary Gemma gap occurs despite 0% visible refusal: the aligned model generally continues working, but less often produces the local symbols and evidence required by the task. The contribution is therefore an executable, trace-based demonstration that refusal-only evaluation can miss downstream differences in grounded agent behavior. We will add a concise comparison with the concurrent paper to make this distinction explicit.
The Qwen and Llama reversals are part of the result, rather than evidence for a universal “less-restricted is better” hypothesis. The paper reports them directly, keeps statistical analyses separate by family, and uses non-security controls to expose broader capability and tool-interface differences. Its conclusion is consequently model-family-, derivative-, and interface-sensitive rather than causal or universal. A capability-matched design would be necessary for a stronger causal claim, which is not the claim made here.
For RQ4, the comparator is runs within the same model and condition that do versus do not satisfy the relevant grounding field. This is a descriptive within-condition association, not a cross-family causal comparison. We will state that comparator explicitly.