Paper Files / AI Security
Formal Architecture for the Security of Artificial Intelligence Systems: A Unified Defense Model Against Adversarial, Poisoning, and Model Extraction Attacks
TITLE: Formal Architecture for the Security of Artificial Intelligence Systems: A Unified Defense Model Against Adversarial, Poisoning, and Model Extraction Attacks ABSTRACT: The growing integration of Artificial Intelligence (AI) systems into critical infrastructure, financial services, healthcare platforms, and industrial environments has significantly expanded the cyberattack surface. Machine learning (ML) and deep learning (DL) models introduce specific vulnerabilities, including adversarial attacks, data poisoning, and model extraction, which are not adequately mitigated by traditional information security mechanisms. In this work, we propose a unified formal architecture for AI security, integrating statistical robustness mechanisms, runtime anomaly detection, and cryptographic guarantees. Our methodology combines (i) adaptive adversarial regularization, (ii) probabilistic detection based on distribution divergence, and (iii) integrity proof mechanisms using authenticated hash functions and remote verification. We formalize the problem under a parametric threat model and demonstrate that our approach reduces the success rate of adversarial attacks from 78.4% to 12.7% in white-box scenarios and from 64.2% to 18.9% in black-box scenarios. In poisoning attacks with a contamination rate of 10%, we observed a reduction in the impact on accuracy from 22.5% to 4.3%. The average computational overhead was 11.6% during inference and 18.2% during training. We evaluated the system on three widely used datasets (CIFAR-10, ImageNet-Subset, and UNSW-NB15) and compared it against baseline defenses, including classical adversarial training and mechanisms based on isolated statistical detection. The results demonstrate statistically significant superiority (p < 0.01) in robustness and stability. We conclude that AI security should be treated as a formal discipline with verifiable properties, rather than as an ad hoc extension of traditional security.
- Introduction
The incorporation of Artificial Intelligence (AI) systems into mission-critical environments has profoundly altered the cybersecurity paradigm. Deep learning models are now employed in banking fraud detection, automated medical triage, autonomous systems, and corporate network monitoring. However, such systems introduce a new class of vulnerabilities exploitable by adversaries with partial or full knowledge of the model.
The exploitation of AI models has already been documented in multiple contexts. CVE-2021-44228 (Log4Shell), although not AI-specific, demonstrated how widely distributed dependencies can compromise ML pipelines. Attacks mapped in the MITRE ATT&CK matrix, such as T1190 (Exploit Public-Facing Application) and T1059 (Command and Scripting Interpreter), have been used to compromise training infrastructures. In addition, techniques such as model extraction attacks and membership inference have been observed in commercial ML API environments.
The central problem is that learning models can be formally represented as functions $f_\theta : \mathcal{X} \rightarrow \mathcal{Y}$ parameterized by $\theta$, trained on data $D = {(x_i, y_i)}_{i=1}^{n}$. Traditional security protects infrastructure and data, but does not guarantee the robustness of the learned function against malicious perturbations $\delta$ such that:
$$ f_\theta(x) \neq f_\theta(x + \delta) $$
even when $|\delta|$ is small under some $L_p$ norm.
This work seeks to answer the following research questions:
RQ1: How can a unified threat model be formalized to capture adversarial attacks, poisoning, and model extraction?
RQ2: Is it possible to design an integrated architecture that provides formal guarantees of robustness and integrity with limited computational overhead?
RQ3: What is the quantitative impact of this architecture in realistic attack scenarios?
Our contributions are:
C1: Definition of a formal parametric model for AI security, unifying multiple attack classes.
C2: Proposal of an architecture composed of three layers: adaptive adversarial robustness, dynamic statistical detection, and cryptographic integrity verification.
C3: Extensive empirical evaluation demonstrating a significant reduction in attack success rate, with overhead below 20%.
The rest of the paper is organized as follows: Section 2 presents background and related work; Section 3 formalizes the threat model; Section 4 describes the proposed methodology; Section 5 details the implementation; Section 6 presents the experimental evaluation; Section 7 discusses implications and limitations; and Section 8 concludes the paper.
- Background and Related Work
AI security can be analyzed along three main axes: adversarial robustness, privacy, and model integrity.
Formally, an adversarial attack seeks to find:
$$ \delta^ = \arg\max_{|\delta| \leq \epsilon} \mathcal{L}(f_\theta(x+\delta), y) $$
where $\mathcal{L}$ is the loss function. Goodfellow et al. introduced FGSM, while Madry et al. proposed PGD as an iterative attack. Defenses based on adversarial training solve:
$$ \min_\theta \mathbb{E}{(x,y)} \left[ \max{|\delta|\leq\epsilon} \mathcal{L}(f_\theta(x+\delta), y) \right] $$
However, such approaches entail high computational cost and limited generalization to unseen attacks.
Poisoning attacks manipulate the training set $D$ by inserting malicious samples $D_{adv}$ so that $\theta$ is shifted to $\theta’$. Biggio et al. showed that small contamination rates (<10%) can significantly degrade accuracy.
Model extraction attacks, as described by Tramer et al., exploit adaptive queries to reconstruct $\hat{f}$ approximating $f_\theta$.
The limitations of existing approaches include: (i) isolated focus on a single attack class; (ii) absence of integrated formal guarantees; (iii) neglect of the cryptographic infrastructure layer.
- Threat Model and Problem Formalization
We assume an adversary $\mathcal{A}$ with capabilities parameterized by $(\alpha, \beta, \gamma)$ where:
- $\alpha$ represents model knowledge (0: black-box, 1: white-box).
- $\beta$ represents control over training data.
- $\gamma$ represents adaptive query capability.
The adversary’s objective is to maximize an impact function $I(f_\theta, \mathcal{A})$ subject to operational constraints.
We define system security as the simultaneous satisfaction of the properties:
- Robustness: $\forall x, |\delta|\leq\epsilon \Rightarrow f_\theta(x)=f_\theta(x+\delta)$ with high probability.
- Integrity: $\theta$ cannot be modified without detection.
- Functional confidentiality: the reconstruction probability $\Pr(|\hat{f}-f| < \tau)$ must be bounded by $\eta$.
The problem consists in designing a system $S$ such that:
$$ \max_{\mathcal{A}} I(S,\mathcal{A}) \leq \kappa $$
for an acceptable bound $\kappa$.
- Proposed Methodology
Our architecture is composed of three modules:
M1: Adaptive adversarial training.
M2: Statistical detector based on dynamic KL divergence.
M3: Cryptographic verification of model integrity.
Algorithm 1: Adaptive Adversarial Training
Input: Dataset D, model fθ, initial ε
for epoch = 1 to E do
for each (x,y) in D do
δ ← PGD(x, y, ε)
x_adv ← x + δ
Update θ minimizing L(fθ(x_adv), y)
end
Dynamically adjust ε based on the error rate
end
return θ
Algorithm 2: Anomaly Detection in Inference
Input: sample x
Compute p = fθ(x)
Compute D_KL(p || P_ref)
if D_KL > τ then
Flag possible attack
end
The additional complexity is $O(k \cdot n)$ per batch during adversarial training, where $k$ is the number of PGD iterations.
- Implementation
We implemented the system in PyTorch 2.1 with CUDA 12.2. Cryptographic verification uses HMAC-SHA256 and ECDSA signatures to validate the integrity of the stored model.
The pipeline is orchestrated via Kubernetes, with container isolation in accordance with NIST SP 800-190 recommendations. Audit logs follow the OWASP ASVS standard.
The average overhead observed was 18.2% in training and 11.6% in inference on NVIDIA A100 GPUs.
- Experimental Evaluation
Environment: 4× NVIDIA A100 80GB, 512GB RAM, Ubuntu 22.04.
Datasets: CIFAR-10 (60k images), ImageNet-Subset (120k images), UNSW-NB15 (100k flows).
Baselines:
- Standard model without defense
- Classical adversarial training
- Isolated statistical detector
CIFAR-10 results ($\epsilon=8/255$):
- PGD attack (baseline): success 78.4% ±2.1
- Classical adversarial training: 29.5% ±1.8
- Our approach: 12.7% ±1.3
Poisoning 10%:
- Baseline: 22.5% accuracy drop
- Classical defense: 11.2%
- Proposed: 4.3%
Model extraction (100k queries):
- Baseline cosine similarity: 0.94
- With defense: 0.61
t-tests indicated p < 0.01.
- Discussion
The results indicate that isolated approaches are insufficient against adaptive adversaries. The integration of robustness and cryptographic integrity significantly reduces the attack surface.
Limitations include additional computational cost and dependence on proper calibration of the threshold $\tau$.
External validity may be affected by domain shifts.
- Conclusion and Future Work
We demonstrated that AI security requires an integrated formal approach. Our architecture substantially reduced the success of adversarial, poisoning, and extraction attacks.
Future work includes integration with secure federated learning and formal proofs based on SMT verification.
- References
[1] I. Goodfellow et al., “Explaining and Harnessing Adversarial Examples,” ICLR, 2015.
[2] A. Madry et al., “Towards Deep Learning Models Resistant to Adversarial Attacks,” ICLR, 2018.
[3] B. Biggio et al., “Poisoning Attacks against SVMs,” ICML, 2012.
[4] F. Tramer et al., “Stealing Machine Learning Models,” USENIX Security, 2016.
[5] NIST, “SP 800-53 Rev.5,” 2020.
[6] MITRE, “ATT&CK Framework,” 2023.
[7] N. Papernot et al., “Practical Black-Box Attacks,” CCS, 2017.
[8] R. Shokri et al., “Membership Inference Attacks,” IEEE S&P, 2017.
[9] OWASP, “Application Security Verification Standard,” 2022.
[10] M. Barreno et al., “The Security of Machine Learning,” MLJ, 2010.
[11] K. Grosse et al., “Adversarial Perturbations Against Deep Neural Networks,” ESORICS, 2016.
[12] H. Xiao et al., “Is Feature Squeezing an Effective Defense?” USENIX, 2018.
[13] S. Mahloujifar et al., “Data Poisoning Attacks,” NeurIPS, 2018.
[14] N. Carlini, D. Wagner, “Towards Evaluating the Robustness,” IEEE S&P, 2017.
[15] Y. Liu et al., “Trojaning Attack on Neural Networks,” NDSS, 2018.
[16] P. Kocher et al., “Spectre Attacks,” IEEE S&P, 2019.
[17] C. Dwork, “Differential Privacy,” ICALP, 2006.
[18] S. Goldwasser et al., “Multi-party Computation,” STOC, 1987.
[19] J. Katz, Y. Lindell, “Introduction to Modern Cryptography,” CRC Press, 2014.
[20] M. Abadi et al., “Deep Learning with Differential Privacy,” CCS, 2016.