arXiv:2611.12572cs.CRNov 2026

Manuscript Offprint

arXiv:2611.12572

Text2NGAC: a multi-LLM pipeline for NGAC policy extraction with mutation-based verification

Ayesha Habib, Huixiang Zhang, Dan Zhu, Waiz Haider

Abstract

Access-control policies are written in natural language but enforced as formal models, and translating them into NIST Next Generation Access Control (NGAC) graphs remains unsolved: prior systems cover only subsets of the NGAC model, and none verify the graphs they extract. We present TEXT2NGAC, a pipeline of cooperating large language models that disambiguates each sentence before extraction, escalates uncertain sentences to a multi-model ensemble, and checks the resulting graph with a five-strategy verifier whose own effectiveness is measured by controlled mutation testing. To our knowledge it is the first system to extract all four NGAC relationship types — associations, prohibitions, event-response obligations, and assignments — from real-world policy documents. Three results anchor the evaluation. The verifier detects 99.7% of 918 injected mutants and every structural fail-open fault, and the fault classes it misses are characterized and weighted by security consequence rather than left unexamined. The extracted graphs are enforceable: one corpus's graph loads unmodified into the NIST reference implementation, which reproduces all 55 access decisions the graph entails and fires an extracted obligation end-to-end. Extraction reaches 97.3-99.6% exact-tuple-match accuracy on the 714 scored sentences of four real corpora, far above three reproduced baselines on matched metrics, and paraphrase probes with semantic re-scoring bound the pipeline's sensitivity to rewording. Reported accuracy is wording- and benchmark-specific, adversarial input is outside the verifier's guarantees, and the intended deployment is extraction plus structural verification feeding expert review. A complete two-tier reproducibility artifact accompanies the paper.

Keywords: Access control, Next Generation Access Control (NGAC), Natural language processing, Large language models, Policy extraction, Mutation testing, Verification

1 Introduction

Access control policies (ACPs) are vital to protect resources against unauthorized access while guaranteeing accessibility to legitimate users. ACPs are typically part of security requirements, often written in natural language. They articulate strict rules describing how access is managed, who may access resources, and under what conditions. ACP statements are manually translated into a formal representation (i.e., a security model) (Hu et al. 2013) following a standard framework such as Role-Based Access Control (RBAC) (Sandhu et al. 1996; Ferraiolo et al. 2001) or Attribute-Based Access Control (ABAC). Next Generation Access Control (NGAC), standardized in NIST SP 800-178 (Ferraiolo et al. 2016), unifies attribute-based, role-based, and discretionary access control through a graph-based architecture with four relation types (associations, prohibitions, obligations, and assignments) and enforcement via the NIST Policy Machine (Ferraiolo et al. 2015).

Researchers have worked on automated extraction of ACP elements using NLP and machine learning techniques (Narouei et al. 2020; Xiao et al. 2012; Slankas et al. 2014; Alohaly et al. 2019). However, existing approaches to NGAC policy extraction face four critical challenges that remain unresolved.

Challenge 1: Incomplete NGAC coverage. Prior work covers only subsets of the NGAC model: rule-based extraction reaches associations and partial assignments at ~75% accuracy (Abdelgawad et al. 2023); LLM prompting reports 99% F1, but only on LLM-synthesized data and without obligations or verification (Lawal et al. 2024b); a NIST report excludes assignments entirely (Lawal et al. 2024a); and ABAC-oriented work targets flat Subject–Action–Resource triples (Yang et al. 2025). No existing approach supports all four NGAC types with obligations modeled as event-response structures per NIST SP 800-178.

Challenge 2: Linguistic complexity. Natural language policy documents contain compound sentences, pronoun ambiguity, and implicit subjects that confound single-pass extraction. For example, “Only the name and email are provided by the HCP” contains a conjunction requiring decomposition and a passive voice requiring subject resolution. The syntactic parsing of Abdelgawad et al. (2023) produces systematic failures on such constructs. Single-model approaches also exhibit per-type biases: our evaluation of 15 LLMs reveals that no single model dominates all NGAC types, with Assignment accuracy varying from 54% to 100% across models.

Challenge 3: Verification gap. Extracted policy correctness must be validated against formal NGAC semantics, yet zero of the four most relevant prior NL-to-NGAC systems (Abdelgawad et al. 2023; Lawal et al. 2024b; Yang et al. 2025; Lawal et al. 2024a) provide automated verification with measured effectiveness: Abdelgawad et al. (2023) include only partial rule-based checking, while Lawal et al. (2024b), Yang et al. (2025), and the NIST report (Lawal et al. 2024a) include no automated verification at all. Manual verification does not scale, and a single misclassified relationship in the 725-sentence corpus of this paper would suffice to silently create a security vulnerability.

Challenge 4: Verification rigor. Even when a verification phase is included, the question of whether it is effective at catching real errors is rarely answered. A pipeline that passes all of its own verification checks could still be wrong if the checks are too lenient. Across the same four prior systems above, none report quantitative evidence, such as detection rate against controlled fault injection, that the verifier (where present) would catch a deliberately corrupted policy graph.

Our contributions. In response to the above four challenges, we develop three integrated innovations:

(1) Proactive semantic disambiguation (Phase 0). We decouple linguistic complexity from extraction by resolving ambiguity before tuple extraction begins. An LLM-driven scoring rubric flags compound sentences, passive voice, pronoun ambiguity, and implicit subjects; flagged sentences are decomposed and rewritten by a comprehension-rewrite cycle, with an independent LLM validating that semantics are preserved. This addresses Challenge 2; its measured contribution is snapshot-dependent — largest where the base model is weakest (Section 4.9).

(2) Task-optimized multi-LLM ensemble (Phase A). A six-stage extraction pipeline routes each sentence through policy-class assignment, RAG-augmented type classification, and tuple extraction. A two-valued confidence-gated escalation mechanism (Section 9.1) routes low-confidence sentences to an ensemble that exploits empirically-measured per-type model complementarity. This addresses Challenges 1 and 2.

(3) Five-strategy verification paired with controlled-mutation evaluation (Phase B). Phase B verifies the extracted graph against the original sentences through five complementary strategies: coverage (every sentence is reflected), correctness (entities are well-typed), consistency (no allow/deny conflicts), obligation completeness (every obligation has both event and response), and minimality (no redundant edges). To assess the verifier's effectiveness against extractor errors, we adapt the NGAC mutation methodology of Chen et al. (2021) to the NL-extracted-graph setting: eight controlled fault-injection operators corrupt the verified graph in well-defined ways, and we measure the fraction of corruptions that Phase B detects, classifying every injected fault by its security consequence: fail-open faults that silently broaden privilege versus fail-closed faults that merely deny legitimate access. Under this classification, every structural fail-open fault is detected (438/438), while semantically plausible privilege-broadening faults are detected at only 37.7% — a measured boundary (Section 5.3). The novelty is narrower than Chen et al.'s “mutation testing for NGAC”: we apply mutation analysis to validate a verifier of NL-extracted policies (Section 8), addressing Challenges 3 and 4.

The paper proceeds from preliminaries and datasets (Section 2) through the three-phase pipeline (Section 3), the extraction results (Section 4), the controlled-mutation evaluation, the prompt-injection analysis, and the enforcement replay (Sections 5–7), related work (Section 8), and limitations (Section 9).

References (27)