Skip to content
Preprint

Post-Hoc Trajectory-Risk Certification for Modular LLM-Based Security Agents

Aug 2026 · 1 citation · 35 references
Computer Science

TL;DR

This work distinguishes whether stages are dependent from whether an audit sample is large enough to certify that dependence, and gives matching upper and information-theoretic lower sample-complexity bounds, and shows that coarse-to-fine label selection can create near-perfect measured correlation without learned dependence.

Abstract

Autonomous security agents operate as staged pipelines, such as classifying network traffic and then attributing attacks to a specific technique. Split conformal prediction gives each stage finite-sample coverage, but deployment requires a trajectory-level guarantee across the full chain. These guarantees do not compose automatically when stages are independently trained and calibrated. Bonferroni allocation is distribution-free but conservative under correlated errors. We show that a natural pairwise-correlation extension to three or more stages is invalid because it gives a lower rather than an upper bound, and derive a valid spanning-tree alternative. We distinguish whether stages are dependent from whether an audit sample is large enough to certify that dependence, and give matching upper and information-theoretic lower sample-complexity bounds. We also show that coarse-to-fine label selection can create near-perfect measured correlation without learned dependence. On a two-stage intrusion-detection pipeline across 6 open LLMs and 2 datasets, removing this artifact reduces measured correlation from near 1 to 0-0.78. A direct audit of trajectory failure becomes 13.7% tighter than Bonferroni once the audit reaches the required sample size, but is worse when undersized. A modular certificate using per-stage certificates and a pairwise overlap bound yields a positive average gain of 0.6%, quantifying the cost of lacking joint access. Same-model, cross-model, and permuted-pairing tests show that residual dependence reflects shared sample difficulty, not shared model representations. Average trajectory coverage across 12 configurations is 92.7% +/- 2.4% at alpha = 0.10. Under cross-dataset deployment, single-step miscoverage reaches 100% even when accuracy remains 78%, showing that distribution shift destroys calibrated confidence before raw accuracy.

View source

Similar papers

#machine learning Preprint Sep 2026

A distribution-free certification framework for trustworthy crash-severity prediction

Crash-severity models inform screening, dispatch and site prioritization, yet are deployed without a finite-sample statement of what one prediction means. Off-the-shelf guarantees fail here, because the features that make crash severity distinctive defeat them: the KABCO outcome is ordinal, the recorded label is a fiel...

Amir Rafe, Subasish Das · 0 citations
Preprint Aug 2026

Local Violation Certification for Linear Predict-Then-Optimize Pipelines

This work mathematically demonstrates that standard sampling methods fail efficiently for rare violations, motivating a direct structural approach and introduces an exact sampling procedure and closed-form risk statistics that provide feature-level attributions without requiring repetitive random trials or complex samp...

Ş. Birbil, Wenhao Chi · 0 citations
Preprint Aug 2026

CyberLLM: A Multi-Agent LLM Framework for Autonomous Detection and Guarded Response in Automotive Cybersecurity

CyberLLM is presented, a multi-agent, LLM-orchestrated framework that autonomously detects vulnerabilities and executes remediations under a formal, runtime safety guard, and indicates that LLM agents can perform useful autonomous cyber-defense when wrapped in a deterministic, auditable safety envelope.

Nenad Petrovic, Oussama Jeddou, Feres Ben Fraj et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.