Skip to content

SAFE-IR: Evidence-constrained authorization for agent incident recoverySAFE-IR: Evidence-Constrained Authorization for Agentic Incident Recovery

Deepak Kumar Jain
Hitachi Digital
arXiv: 其他 AI 安全论文arXiv:2612.05996Originally published Indexed by this site · 2 days agoDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

The authors propose the SAFE-IR/ECRA authorization gate: in synthetic evaluation, unsafe executions drop from 2 to 0 and recoveries drop from 5 to 2; in real-time fault injection, both groups recover 3/5.

Threat modelThe paper treats AI remediation proposals as untrusted input and requires an independent, deterministic authorization gate between the proposer and the executor that can change the system. The current experiments involve no real infrastructure changes; prompt injection, authorization bypass and similar issues are listed only as future test items.

Questions
Language model agents can propose operational remediation plans, but a plausible proposal does not equal the authority to change production services. The authors focus on how to constrain operations that lack evidence or carry excessive risk between the proposer and the executor.
Methods
SAFE-IR uses a replaceable rules or Ollama proposer to generate actions, and then deterministic ECRA returns ALLOW, DENY, or REQUIRE_APPROVAL based on action risk, telemetry completeness, and symptom evidence.
Experiments and results
In six synthetic scenarios, ECRA reduces unsafe executions from 2 to 0 and oracle recoveries from 5 to 2. In five real-time fault scenarios, under llama3.2:1b proposals both groups recover 3/5, and ECRA denies the restarts in the two latency scenarios.
Limitations and future work
The authors note that there are few scenarios and they are single-fault, the executor only resets controlled faults, the real-time experiments had no independent repeated trials, and real-time scale-up or the approval path were not tested; the results cannot support conclusions about production safety, recovery rate, or MTTR.
Experimental setupsix fixed synthetic scenarios、five live fault-injection scenarios · recovered、unsafeExecuted et al.
Metrics
recoveredunsafeExecutedcorrectDiagnosisexecutedpolicyNanoselapsedMillis
AI summaryThe paper proposes the open-source prototype SAFE-IR, which uses deterministic gating ECRA (Evidence-Constrained Remediation Authorization) to separate remediation proposals from execution in agent incident recovery; the starting point is that a language model agent's remediation plan being reasonable does not equal authorization to change production services. Proposals can come from a rule system or a locally hosted Ollama model, and ECRA decides to allow, deny or escalate to human approval based on telemetry completeness, symptom corroboration and operational risk. In six fixed synthetic incidents, the gate eliminated the two unsafe executions that occurred without gating, but synthetic recoveries fell from five to two, because human approvals never went through and denied proposals were not revised; the authors note that recovery in this evaluation was specified by an oracle rather than observed on actual workloads, and the results serve only to illustrate trade-offs rather than to measure effectiveness. Preliminary fault-injection testing on a containerized service using a locally hosted model, replayed remediation proposals and an external HTTP health probe found that both the ungated and ECRA-gated configurations restored service in three of five scenarios, and ECRA additionally denied restart proposals lacking corroboration in two delayed scenarios. The paper also reports confounders and a protocol for a more complete evaluation.

The paper proposes the open-source prototype SAFE-IR, which uses deterministic gating ECRA (Evidence-Constrained Remediation Authorization) to separate remediation proposals from execution in agent incident recovery; the starting point is that a language model agent's remediation plan being reasonable does not equal authorization to change production services. Proposals can come from a rule system or a locally hosted Ollama model, and ECRA decides to allow, deny or escalate to human approval based on telemetry completeness, symptom corroboration and operational risk. In six fixed synthetic incidents, the gate eliminated the two unsafe executions that occurred without gating, but synthetic recoveries fell from five to two, because human approvals never went through and denied proposals were not revised; the authors note that recovery in this evaluation was specified by an oracle rather than observed on actual workloads, and the results serve only to illustrate trade-offs rather than to measure effectiveness. Preliminary fault-injection testing on a containerized service using a locally hosted model, replayed remediation proposals and an external HTTP health probe found that both the ungated and ECRA-gated configurations restored service in three of five scenarios, and ECRA additionally denied restart proposals lacking corroboration in two delayed scenarios. The paper also reports confounders and a protocol for a more complete evaluation.

Related events and news

1 events · 0 news mentions

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors study how to insert evidence-constrained authorization between AI remediation proposals and system execution, and report the trade-off between safety and recovery.

    The core problem is: an operational remediation plan proposed by a language model agent may look plausible, but that does not mean the evidence is sufficient or that it can be executed safely.

    • Problem scenario: When a service degrades, the agent can read incident data, infer causes and call tools; the authors argue that the gap between "suggestion" and "action" brings the risk of production changes.
    • Existing shortcomings: The paper argues that a fluent proposal cannot show whether the evidence supports the action, nor whether the action is safe; therefore an authorization decision independent of the probabilistic proposer is needed.
    • Core idea: Keep a replaceable rule-based or Ollama proposer, and insert a deterministic Evidence-Constrained Remediation Authorization (ECRA) between it and the executor, outputting ALLOW, DENY or REQUIRE_APPROVAL.
    • Threat model: The paper explicitly treats proposals as untrusted input and requires the authorization gate to execute independently of the proposer.
      • Goal: Prevent remediation proposals that lack evidence, have incomplete telemetry or are destructive from entering execution.
      • Knowledge and capability: The current prototype does not set an attacker knowledge level; prompt injection, authorization bypass and malformed model output are listed only for future testing.
      • Victim system: The synthetic prototype does not change infrastructure; the extended lab runs order, payment and inventory container services, but the executor only resets injected faults.
    • Paper outputs: The authors provide a Java/Spring Boot prototype, preliminary results on six synthetic scenarios and five real-time fault injection scenarios, and an evaluation protocol for a more complete study; they explicitly do not report MTTR improvement, production service recovery or statistical significance.
  2. What related research exists?

    Related work is divided into incident response agents, model action risk and independent policy decisions; the authors position SAFE-IR as a small authorization example.

    LLMs for incident response

    • Ahmed et al. (2023): studied more than 40,000 Microsoft incidents, used an LLM to recommend root causes and mitigation steps, and involved incident owners in human evaluation.
    • ReAct (Yao et al., 2023): has the model alternate between reasoning and tool calls, which the authors describe as the common pattern for current agents.
    • AIOpsLab (Chen et al., 2025): evaluates agents on deployed microservices combining fault injection, workload generation, and telemetry; the authors state that SAFE-IR is much smaller in scale, does not compete with it, and regard AIOpsLab as the environment required for follow-up protocols.

    Risks of acting on model output

    • OWASP LLM06:2025: lists Excessive Agency as an LLM application risk, i.e., a system having functionality, permissions, or autonomy beyond what the task requires.
    • Greshake et al. (2023): studied indirect prompt injection, showing that content retrieved by an application can manipulate model behavior; the authors consider this relevant to agents that read logs and alerts.
    • NIST AI RMF 1.0 (2023): provides a framework for organizations to govern such risks.

    Policy as an independent decision

    • Open Policy Agent (OPA): decouples policy decisions from the enforcing service; OpenTelemetry standardizes telemetry that policy can consume.
    • Relationship to ECRA: the authors explicitly state that ECRA is not an OPA replacement but a single Java method of about 15 lines, whose rules could also be written in OPA's policy language.

    Baselines and evaluation environment

    • Comparison configurations: the synthetic experiments compare ungated RULES/UNGUARDED with gated SAFE_IR; the real-time experiments compare matched ungated and ECRA-gated configurations, and no other defense methods were introduced as baselines.
    • Evaluation environment: uses the authors' own six fixed synthetic scenarios and five containerized fault-injection scenarios, and no experiments were run on AIOpsLab.

    The authors limit the contribution to incident-specific evidence checks, action allow-listing, explicit approval outcomes, and their test harness, rather than a general policy system or a large-scale AIOps benchmark.

  3. How does the paper address this problem?

    SAFE-IR uses a replaceable proposer to generate five types of actions, and then ECRA rules matched in a fixed order decide allow, deny or pending approval.

    The overall idea is to separate probabilistic remediation suggestions from deterministic authorization: SAFE-IR runs scenarios and records results, and ECRA only authorizes based on the proposal, telemetry, and action risk, and is not responsible for diagnosing root causes.

    Prototype and two proposers

    • Runtime interface: Java 21, Spring Boot 3.4.5, Maven; the REST interface lists scenarios or runs a single scenario by mode. Figure 1 shows that ECRA is enabled only in SAFE_IR mode.
    • Rules proposer: suggests RESTART_SERVICE when the service is unhealthy and the error rate is above 0.2; suggests SCALE_UP when latency exceeds 1,500 ms or queue depth exceeds 1,000; otherwise NO_OP.
    • Ollama proposer: defaults to llama3.2:3b, temperature 0, fixed seed, and requires JSON output with a brief explanation from among five actions; the prompt does not contain the target action, and failures or malformed responses error out directly with no retry and no fallback.

    ECRA authorization rules

    • Decision order: Table 1 uses the first matching rule: NO_OP is allowed; DELETE_DATABASE and PURGE_QUEUE are denied; incomplete telemetry is denied; restart or scale-up lacking the corresponding symptom is denied; a maintenance window or a risk score of at least 3 requires approval; the rest are allowed.
    • Risk scores: NO_OP is 0, RESTART_SERVICE is 2, SCALE_UP is 3, PURGE_QUEUE is 8, DELETE_DATABASE is 10. A well-evidenced restart can be allowed outside a maintenance window, while a well-evidenced scale-up always requires approval.
    • Nature of the thresholds: the authors state that the thresholds were chosen for ease of testing and were not calibrated with field data; the number of supporting signals returned is for reference only and does not participate in the decision.

    Execution, approval, and behavior after denial

    • Approval is not permission: the prototype has no approval workflow, and actions with REQUIRE_APPROVAL are recorded as not executed; DENY ends the run and does not require the proposer to provide an alternative action.
    • Lab executor: only executes supported remediations, implemented by resetting injected faults, and does not restart processes or change infrastructure; regardless of the authorization outcome, it rejects destructive or unsupported actions.
    • Real-time health determination: the extended lab runs the order, payment, and inventory services separately and uses an external HTTP probe to determine recovery, rather than a synthetic oracle.

    Synthetic scenarios and result determination

    • Six fixed scenarios: Table 2 includes service outage, latency spike, queue backlog, false alert, missing telemetry, and unsafe proposal; the observed values and target actions are all hardcoded.
    • Three modes: RULES is the rules proposer with no gate; UNGUARDED is the chosen proposer with no gate; SAFE_IR sends the proposal to ECRA. In unsafe proposal, the rules proposer is fixed to give a destructive action, used to test the gate.
    • Oracle definition: an executed action equal to the target action, or NO_OP with normal observations, is recorded as recovered; an executed action is recorded as unsafe if it is destructive, based on incomplete telemetry, or lacks supporting symptoms.
    • Recorded fields: Table 3 also defines correctDiagnosis, executed, policyNanos, and elapsedMillis; the authors state that elapsedMillis is not MTTR, and that policyNanos is affected by JVM warm-up and cannot be compared across modes.

    Preliminary real-time evaluation and full research protocol

    • Real-time method: proposals are generated with llama3.2:1b, each proposal is captured once, and after re-injecting the fault it is replayed to the ungated and ECRA configurations to reduce confounding from variation in model output.
    • Protocol requirements: the authors propose using real disposable services with live telemetry, defining unsafe independently, verifying health before and after actions, measuring time from incident to confirmed recovery, implementing approval and reporting its latency, and reporting unsafe attempts and unsafe executions separately, with confidence intervals, model and hardware configurations, cost, and failure modes.
  4. What experiments did the paper conduct?

    The experiments include 180 deterministic synthetic runs and five real-time fault scenarios; ECRA reduces synthetic unsafe executions while also reducing oracle recovery.

    Experimental Setup

    • Subject under test: What is evaluated is the ECRA authorization configuration, not the model's own capability; the synthetic experiments use only the rule-based proposer, and the real-time experiments use local Ollama llama3.2:1b to generate proposals.
    • Synthetic data: The six fixed single-fault scenarios in Table 2; each of the three modes is repeated 10 times, for a total of 180 REST runs, in an environment of GitHub-hosted Linux runner, Temurin JDK 21.0.13, Maven 3.9.15.
    • Nature of repetition: The proposer, policy and oracle are all deterministic, so all repeated results are identical; repetition only changes event identifiers and is not an independent trial.
    • Real-time data: Five single-fault scenarios on three containerized services, including three service-error and two latency-degradation; each captured proposal is replayed sequentially against both configurations after re-injecting the fault.
    • Metrics and adjudication: Synthetic recovered and unsafeExecuted are assigned by the oracle; real-time recovery is observed by an external HTTP probe. The paper does not use an LLM judge and does not report confidence intervals or statistical significance tests.
    • Test checks: All 10 JUnit tests pass, of which 5 directly test the policy and 5 test the offline experiment service; in addition, all 4 HTTP smoke assertions pass.

    Main Results

    Synthetic results come from Figure 2 and the summary in the main text, and real-time results come from Table 4; the per-scenario bars and values in Figure 2 are not visible in the text conversion.

    Swipe horizontally to read the table

    Evaluation and configurationRecoveryUnsafe execution/authorization resultUnresolved
    Six-scenario synthetic, ungated rule-based proposer5/62 unsafe executions1
    Six-scenario synthetic, SAFE_IR2/60 unsafe executions4
    Five-scenario real-time, ungated3/5Both restarts in latency scenarios ALLOW2
    Five-scenario real-time, ECRA-gated3/5Both restarts in latency scenarios DENY2
    • Synthetic trade-off: The authors state that the two unsafe executions disappear under SAFE_IR, but recoveries decrease from five to two; two scale-ups are not executed because approval can never be obtained, and the missing-telemetry restart is denied.
    • Denial is not recovery: Among unsafe proposals, ECRA denies DELETE_DATABASE, but there is no feedback or alternative action, and the incident remains unresolved; without the gate, this scenario is also unresolved.
    • Real-time results: All three service-error scenarios propose and allow RESTART_SERVICE, and both configurations recover; the two latency scenarios also propose restart, which ungated allows and ECRA denies, and neither configuration recovers.

    Confounding and Label Overlap in the Synthetic Evaluation

    • The same run can have two labels: In missing-telemetry, the ungated restart is recorded as a recovery because it matches the target action, and at the same time is recorded as unsafe because telemetry is incomplete; on this basis the authors argue that recovery rate and unsafe rate should be reported together.
    • Zero unsafe executions is partly caused by design: The oracle and ECRA share thresholds, and ECRA is stricter; the authors state that SAFE_IR's 0 cannot serve as evidence of generalization, and an independent unsafe definition is a prerequisite for actual evaluation.
    • Mode confounding: Offline RULES and UNGUARDED use the same proposer, so there are actually only two distinct arms; if Ollama is enabled, UNGUARDED and SAFE_IR each request new proposals, and differences may come from the model rather than the gate. The real-time experiments address this issue by capturing and replaying proposals.

    Adversarial Proposals and Executor Boundaries

    • Authorization tests: Additional proposals involve database deletion, queue purging and unsupported scaling, all of which ECRA denies; the ungated authorization configuration would accept these proposals.
    • No infrastructure safety difference: The restricted executor blocks destructive or unsupported actions under both configurations, so the authors state that the experiments show only a difference in authorization behavior, not a reduction in unsafe infrastructure changes.
    • Model proposal coverage: The real-time model proposes restart in all five scenarios and does not trigger the real-time SCALE_UP or approval path; the injected destructive proposals are also not given to the Ollama proposer, so they cannot be used to estimate how often the model proposes destructive actions.

    Other Ablations and Analysis

    • Maintenance window: The policy includes this branch, but no scenario sets the maintenance window flag, so the path is untested (Threats to Validity).
    • Repeated runs: Under the rule-based proposer, results are identical each time, so repetitions do not constitute independent samples (Tests, Measurements, and a Protocol for a Real Study).
    • Timing fields: policyNanos is affected by JVM warm-up and is not comparable across modes; elapsedMillis includes model calls and is not MTTR (Table 3).
    • Ollama default configuration: llama3.2:3b, temperature 0, fixed seed are described only as the prototype proposer; the original synthetic evaluation did not run Ollama.
  5. What are some points that can be further explored?

    The authors call for independent safety definitions, approval and alternative actions, and more complete fault evaluation; the existing real-time results support only preliminary integration feasibility.

    Limitations and future directions noted by the authors

    • Scenarios and action space: Few synthetic scenarios, manually constructed and single-fault, action space of only five items, target actions encode the authors' judgment of the correct fix; the maintenance-window path was not tested (Threats to Validity).
    • Unmodeled factors: The simulator does not model correlated faults, stale telemetry, rollback, infrastructure permissions, or post-action health state; the authors explicitly state that results cannot be generalized to production services (Threats to Validity).
    • Real-time execution limitations: The executor only resets controlled faults, does not restart real processes, and blocks destructive actions under both configurations, so it cannot demonstrate a reduction in unsafe infrastructure changes (Limitations, Threats to Validity).
    • Experimental design: The real-time experiments have only five single-fault scenarios, three simulated services, and one local small model, with sequential replay rather than independent repeated trials, so variance or statistical significance cannot be reported (Limitations, Threats to Validity).
    • Future work: The authors plan to increase fault scenario diversity, approval workflows, alternative remediation strategies, and evaluate using established incident response benchmarks (Conclusion).
    • Safety testing before the executor: The authors propose future testing of prompt injection via incident data, contradictory or stale evidence, malformed outputs, authorization bypass, repeated-action limits, and approval audit trails (Threats to Validity).

    Experimental coverage

    • Synthetic coverage: Six fixed scenarios, three modes, 10 repetitions per combination, 180 total; all use the rule-based proposer, repeated results are identical, and no Ollama runs.
    • Real-time coverage: Five single-fault scenarios on the three services order, payment, and inventory, with the proposal model llama3.2:1b; one captured proposal per scenario, replayed sequentially under two configurations.
    • Action coverage: The real-time model recommended RESTART_SERVICE in all five cases; the real-time experiments did not exercise SCALE_UP or the approval path, and the maintenance window was also not triggered in the synthetic scenarios.
    • Tests and measurement: 10 JUnit tests and 4 HTTP smoke assertions passed; the paper does not report MTTR, production service recovery, cost, confidence intervals, or statistical significance.
    • Protocol requirements: The authors require future reporting of unsafe attempts and unsafe executions separately, along with model and hardware configuration, cost, and failure modes; the current paper does not provide these complete results.
  6. Summarize the main content of the paper

    SAFE-IR demonstrates a prototype and trade-offs of an evidence-constrained authorization gate, but the authors explicitly limit the evidence to synthetic results and preliminary integration feasibility.

    SAFE-IR is a defense prototype for agent incident recovery: the AI can propose remediation actions, but they must pass through independent deterministic ECRA authorization before entering the execution stage.

    • Problem: fluent root-cause analysis and remediation suggestions do not constitute authorization to change the system; the authors focus on insufficient evidence, incomplete telemetry, and destructive actions.
    • Method: a rules or Ollama proposer selects from five actions, and ECRA checks action type, telemetry, symptoms, maintenance window, and risk score in a fixed order, returning ALLOW, DENY, or REQUIRE_APPROVAL.
    • Synthetic results: across six fixed scenarios, the ungated rules configuration had 5 oracle recoveries and 2 unsafe executions; SAFE_IR had 2 and 0 respectively, and unresolved scenarios increased from 1 to 4 (Figure 2 and Conclusion).
    • Source of trade-offs: two scale-up actions awaited approvals the prototype could not provide, and the missing-telemetry restart was denied; after a destructive proposal was denied there was no alternative action, so denial itself does not restore service.
    • Real-time results: llama3.2:1b suggested restart in all five containerized fault scenarios; both ungated and ECRA-gated were confirmed recovered 3/5 by an external HTTP probe, and ECRA denied proposals lacking restart evidence in two latency scenarios (Table 4).
    • Evidence boundaries: the oracle and ECRA share the unsafe threshold, the real-time executor only resets injected faults and both groups block destructive actions; the experiments had no independent repeated trials and did not test real-time scale-up or the approval path.

    The authors consider the results to support the feasibility of separating proposal generation from evidence-constrained authorization, while arguing that safety and recovery should be reported together, unsafe should be defined independently, feedback or fallback should be provided after denial, and a human path should be provided after approval; the authors do not claim production safety, recovery rate, or MTTR improvement on this basis.

Read originalarxiv.org