Skip to content
AI.info

Research

Beyond Runtime Enforcement: Shield Synthesis as Defensibility Analysis for Adversarial Networks

Overview Research area: Formal methods for safety (safety games, attractor computation, shield synthesis) combined with adversarial multi-agent reinforcement learning and network security. Technical l

Beyond Runtime Enforcement: Shield Synthesis as Defensibility Analysis for Adversarial Networks
arXiv
2606.13621
Published
2026-06-11
Authors
Achraf Hsain, Sultan Almuhammadi

AI summary

Overview

  • Research area: Formal methods for safety (safety games, attractor computation, shield synthesis) combined with adversarial multi-agent reinforcement learning and network security.
  • Technical level: Advanced. The paper is built on temporal-logic specifications, deterministic finite automata, product games, least-fixed-point attractor computation, and tabular minimax Q-learning.
  • Scope (one sentence): The paper introduces "shielded analysis," a design-time framework that turns an already-solved safety game into (i) a formal certificate of whether a defense exists and (ii) a four-axis "defensibility fingerprint" describing how good that defense is, instantiated on a network-defense game with one reference topology and four controlled perturbations.

Note on naming: the arXiv listing carries the title "Beyond Runtime Enforcement: Shield Synthesis as Defensibility Analysis for Adversarial Networks," while the paper's own printed title is "Shielded Analysis: Certification and Characterization of Defensibility in Systems under Adversarial Interaction."

What This Paper Is About

Shielded reinforcement learning normally compiles a safety specification into an automaton, solves a game against a model of the system, and extracts a shield (a lookup table of permitted actions) that is then used at runtime to filter an RL agent's actions. The solved game is treated as a means to that filter, and thrown away afterwards.

This paper argues the solved game is itself the interesting object. The same safety verdict ("defensible") can hide very different operational burdens: the authors report two topology variants with nearly identical structural profiles whose mean clean-host fractions under adaptive pressure are 22.7% and 80.7%, even though every configuration evaluated is certified defensible. The goal is a framework that answers three questions from one encoded system: does a safe defense exist, what does that defense require, and which system changes would strengthen it.

Key Contributions

  1. Shielded analysis through asymmetrically constrained safety games. Two independently specified temporal requirements enter different stages of game solution: the defender specification φ_D seeds the attractor's initial unsafe set U, while the adversary specification φ_A filters the adversary's successor set during fixed-point iteration. The construction returns a defensibility certificate witnessed by the winning region W and executable as a shield.

  2. A relational reading of the solved game. The defensibility fingerprint combines three static readings (winning fraction, attractor shell geometry, shield latitude) with one adaptive reading of shield-constrained play. Each axis is informative on its own; their relationships show whether formal and operational assessments agree, diverge, or respond differently to system changes.

  3. Network-security instantiation and controlled evaluation. The framework is instantiated on a network defense game and evaluated on a reference configuration plus four controlled changes spanning topology, safety requirements, and adversary capabilities. The evaluation separates certification from operational quality and localizes structural effects by attractor depth.

  4. Public artifacts. The implementation, experiments, and topology data are released publicly at the linked repository (code under the MIT License; experimental data and outputs under CC-BY-4.0).

Main Findings

  • Certification and operational quality are different questions. Every configuration in the evaluation is certified defensible, yet two topology variants with nearly identical structural profiles sustain mean clean-host fractions of 22.7% and 80.7% under adaptive pressure. The certificate alone does not rank them.

  • Asymmetric enforcement is a correctness requirement, not a convenience. The paper argues that seeding adversary-violation states into the unsafe set U is incorrect wherever the adversary can eventually force its own automaton out of its accepting set: every adversary position then becomes a predecessor of U and the attractor absorbs the state space. The correct construction uses φ_D to define what must never happen and φ_A to define what the adversary cannot do.

  • Constraining the adversary can only help the defender (Proposition 3.5). Formally, restricting only adversary edges yields Attr* ⊆ Attr*_E and therefore W_E ⊆ W: the defender's winning region cannot shrink. The paper notes the asymmetry is directional — removing a defender edge would weaken the universal condition at defender vertices and could enlarge the attractor instead.

  • Certified indefensibility is a theorem, not a failed search. Finite safety games are determined, so from every position exactly one player has a winning strategy. The negative branch of the certificate therefore means "provably no such strategy exists," something RL-based adversarial evaluation cannot establish.

  • Attractor shells carry structural information. Because the iteration is read synchronously, the k-th attractor shell equals the set of positions with attractor rank exactly k, giving a depth distribution over positions by their forced distance from violation. This is used to build the shell steepness metric and to localize where structural effects land.

  • Violation-based rewards are structurally vacuous inside the winning region. Since no trajectory inside W reaches a φ_D-violating state, the adaptive layer instead rescales the dominance function μ to a symmetric zero-sum reward R_D(s) = 2μ(s) − 1, R_A(s) = −R_D(s), with rewards in [−1, +1].

  • Attractor solution cost is linear. Attractor computation is O(|V| + |E|).

  • Metrics are normalized and comparably oriented. All four axes take values in [0, 1], with larger values denoting a more defensible system.

  • Not reported in the available content. The truncated text stops inside Section 5. The detailed topology, the per-perturbation results, and the explicit formulas for the shield-latitude (SLT) and defender-dominance (DDR) axes are referenced to Sections 5.4, 5.5, 6, and 7 but are not present in the provided material, so no further figures are reproduced here.

Methodology in Plain English

The approach is a pipeline that reuses work a shield synthesis tool would already do, then reads extra answers off it.

  1. Encode the system as a two-player, turn-based, deterministic game. States are split into defender-turn and adversary-turn blocks, with a transition function that alternates whose move it is. A dominance function scores how favourable each state is to the defender, but does not participate in game solution — only in the adaptive metric later.

  2. Write two separate specifications. The defender's specification says what must never happen. The adversary's specification says which adversary behaviours are even admissible (a resource bound, an ordering constraint, a capability restriction). Both are safety properties and both compile mechanically into deterministic safety automata.

  3. Build the product game. The system state is paired with the current state of both automata, giving positions of the form (s, q_D, q_A). Product states where the defender automaton is in a rejecting state form the initial unsafe set.

  4. Compute the attractor with an asymmetric filter. The standard least-fixed-point iteration is run, but adversary moves that would push the adversary automaton out of its accepting set are removed from consideration. An adversary vertex enters the attractor if any admissible successor is already there (the adversary needs one path to danger); a defender vertex enters only if every successor is there.

  5. Read off the certificate, the winning region, and the shells. The complement of the attractor is the winning region; if the initial position lies in it, the configuration is certified defensible and the region witnesses a strategy. The iteration layers partition the absorbed states by forced distance to violation.

  6. Extract the shield. For every winning product state, the shield lists the actions whose successor stays outside the attractor; at adversary states it also requires the successor to be admissible under the adversary specification. This defines the bounded arena in which the later learning happens.

  7. Run two adversarial learners inside that arena. Two tabular Q-tables are maintained over a coarser observation (the underlying system state, not the full product state, so positions differing only in automaton state share Q-values but may permit different actions). Each player's update uses a cross-table minimax lookup, taking the negated maximum of the opponent's Q-values over shield-permitted actions only, so the value reported is sustained against an adversarially trained, reward-seeking opponent rather than an average-case one.

  8. Reset engagements when needed. If the adversary specification is meant to bind per engagement, an engagement reset returns the adversary and both automata to their initial configuration with probability p whenever play reaches a designated re-initialization set. The reset is a sampling device outside the transition function, so what is measured is a renewal process formed by concatenating legal engagement segments of the same certified arena; the paper states the protocol is valid when reset targets lie in W and the defender specification is preserved across reset boundaries, and that history-dependent defender specifications instead require automaton memory to persist.

  9. Plot the fingerprint. The four metrics — winning fraction, shell steepness, shield latitude, and defender dominance — are placed on common axes; the first three are functionals of the solved game and the fourth is a functional of the shielded learners.

Why This Matters

Impact on research. Shield synthesis has largely been framed as a runtime enforcement mechanism. This work repositions the solved game as a comparative instrument with two outputs: a binary certificate with a provable negative branch, and a graded characterization of operational quality. It also provides a principled way to make the safety requirement and the threat boundary independently variable analytical knobs, which the paper contrasts with reactive synthesis under environment assumptions (where both collapse into a single synthesis objective) and with multi-agent shielding under a shared specification.

Real-world applications (as motivated by the paper's instantiation):

  • Network segmentation design. Deciding whether a given network segment is defensible against a strategic attacker, and how much margin it has.
  • Architecture review with counterfactuals. Comparing candidate topology or specification changes to see which ones actually strengthen the defense, rather than which ones merely look structurally similar.
  • Safety certification of learning agents. Certified safety and operational quality are separate deliverables for systems where a policy that survives one adversary may fail against another.
  • Red-team evaluation with stronger guarantees. Adaptive evaluation is bounded inside the winning region, so reported results hold against an adversarially trained opponent rather than an average-case or fixed one.

Industry relevance. The paper positions the framework against two existing tool categories — static configuration verification, which decides reachability and isolation properties but does not model a strategic adversary, and reinforcement-learning-based adversarial evaluation, which produces operational readings but no certificate. The gap it targets is one practitioners in security architecture and safety-critical system design recognize: knowing that a defense exists is not the same as knowing what it costs to run.

Future Directions

  • Scaling beyond the stated assumptions. The paper explicitly flags that the framework is explicit-state, turn-based, and deterministic — the transition function is a function rather than a distribution, and both players observe the product state fully — and states that this carries implications for computational scope and extension. Lifting any of these is the natural next step.
  • Handling history-dependent defender specifications across resets. The paper notes that its renewal protocol (engagement resets) is valid when reset targets lie in W and the defender specification is preserved across reset boundaries, and that history-dependent defender specifications require their automaton memory to persist instead.
  • Broadening the controlled evaluation. Only one reference configuration plus four perturbations are evaluated in the reported material; the question of how predictive the fingerprint is across a wider range of topologies, safety requirements, and adversary capabilities is left open.
  • Understanding when static and adaptive readings diverge. The motivating case — two variants with nearly identical structural profiles sustaining 22.7% versus 80.7% clean-host fractions — is presented as evidence that the axes measure genuinely different things. A systematic account of when and why they disagree is a clear open question.

Target Audience

  • Formal methods researchers working on synthesis, safety games, and shielding who want to see the solved game reused as an analysis object rather than discarded as an intermediate artifact.
  • Safe reinforcement learning researchers interested in combining formal guarantees with adaptive evaluation of agent behaviour under adversarial pressure.
  • Network security architects and defenders evaluating segmentation, isolation, and topology choices against a strategic (rather than a fixed or average-case) adversary.
  • Engineers building certification or assurance tooling for safety-critical autonomous and multi-agent systems, who need a provable negative result as well as a positive one.

Authors’ abstract

Shielded reinforcement learning is typically presented as a runtime safety mechanism that compiles temporal-logic specifications into automata restricting an agent's actions. We argue this is the wrong product. The same automata-theoretic machinery -- specification compilation, product game construction, attractor computation, and winning-region extraction -- is better read as a design-time analytical instrument whose outputs are structural insights about a system rather than runtime constraints on a deployed agent. We instantiate this through a constrained two-player safety game for network defense. The two specifications are enforced asymmetrically: the defender specification defines the unsafe region of the game, whereas the attacker specification restricts the adversary's legal actions during attractor computation. Solving the game yields a defensibility verdict -- a formal certificate that a topology-specification pair is or is not defensible -- with the associated winning region and shield. Beyond the binary verdict, we derive topology-level metrics from the attractor structure and combine them with post-convergence behavior from shield-constrained adversarial multi-agent reinforcement learning. Together these form a defensibility fingerprint capturing both a network's formal safety properties and its operational behavior under adaptive play. A what-if analysis shows that formal defensibility and operational effectiveness capture distinct aspects of security: small architectural changes can produce large shifts in operational outcomes while leaving formal safety margins nearly unchanged. Shield synthesis is thus most valuable not as a deployment mechanism for safe agents, but as a framework for answering architectural questions about whether, where, and how a system can be defended. The defensibility verdict is the output, not the safe policy.

Read the original paper