Abstract

A Technical Report: Operating a large language model (LLM) as a service requires more than inference infrastructure: the provider must also defend against adversarial interactions that seek to exploit the service, including jailbreaking for harmful use, sophisticated denial of service, and distillation attacks. We study this problem at the inference layer, using a hypothetical frontier lab, Five Elements Inc., as a running example. Because no public labelled dataset of adversarial LLM usage exists, we introduce a structural causal model (SCM) that generates a realistically grounded, labelled dataset of user-sessions, with coordinated multi-account campaigns, platform feedback, and three tiers of label observability. On this dataset we train a practical gradient-boosted detector that classifies each user-session as benign or malicious and, if malicious, by attack type. Against oracle labels the detector very nearly solves the binary task (AUPRC $0.993$), yet against the operational labels a real Trust & Safety team would hold, the same model scores an AUPRC of only $0.313$: the detector is more accurate than the labels used to evaluate it. For attack-type attribution, a naive argmax is dominated by the $98\%$ benign prior (macro-F1 $0.295$), whereas a simple thresholded decision engine raises macro-F1 to $0.489$ without sacrificing accuracy. The dataset is publicly released.

Keywords

Subject

Publication details

Journal
Not available
Open access
Green open access

Cite this article

APA 7

Lee, K. (2026). Inference-Layer Security: Defending Against Adversarial Inference and Infrastructure Abuse. https://omanscience.com/en/articles/inference-layer-security-defending-against-adversarial-inference-and-infrastructure-abuse

MLA 9

Lee, Keifer. "Inference-Layer Security: Defending Against Adversarial Inference and Infrastructure Abuse." https://omanscience.com/en/articles/inference-layer-security-defending-against-adversarial-inference-and-infrastructure-abuse.

Chicago (author–date)

Lee, Keifer. 2026. "Inference-Layer Security: Defending Against Adversarial Inference and Infrastructure Abuse." https://omanscience.com/en/articles/inference-layer-security-defending-against-adversarial-inference-and-infrastructure-abuse.

Harvard

Lee, K. (2026) 'Inference-Layer Security: Defending Against Adversarial Inference and Infrastructure Abuse', Available at: https://omanscience.com/en/articles/inference-layer-security-defending-against-adversarial-inference-and-infrastructure-abuse.

Vancouver

Lee K. Inference-Layer Security: Defending Against Adversarial Inference and Infrastructure Abuse. https://omanscience.com/en/articles/inference-layer-security-defending-against-adversarial-inference-and-infrastructure-abuse

IEEE

K. Lee, "Inference-Layer Security: Defending Against Adversarial Inference and Infrastructure Abuse," https://omanscience.com/en/articles/inference-layer-security-defending-against-adversarial-inference-and-infrastructure-abuse.