Paper Files / AI Security
Operational Architecture for Security of Artificial Intelligence Systems: Threat Modeling, Defense in Depth, and Empirical Evaluation in Critical Environments
TITLE: Operational Architecture for Security of Artificial Intelligence Systems: Threat Modeling, Defense in Depth, and Empirical Evaluation in Critical Environments ABSTRACT: The rapid incorporation of artificial intelligence (AI) systems into critical infrastructures has introduced new classes of vulnerabilities that are not fully captured by traditional information security models. Unlike deterministic software, machine learning models depend heavily on training data and statistical distributions, creating attack surfaces associated with data manipulation, exploitation of inference interfaces, and compromise of the data supply chain. This work proposes an operational architecture for protecting AI systems based on defense-in-depth principles, integrating formal threat modeling, statistical mechanisms for detecting data manipulation, and operational controls integrated with security operations centers (SOC). We initially formalize a mathematical model to characterize desirable security properties in supervised learning pipelines, including statistical data integrity and parametric model confidentiality. We then introduce data poisoning detection mechanisms based on Kullback–Leibler divergence and sample influence analysis, combined with adaptive query limiting strategies to mitigate model extraction attacks. The proposed architecture integrates security controls throughout the full AI model lifecycle, including data ingestion, training, packaging, and deployment in orchestrated environments. The experimental implementation uses a contemporary technology stack composed of Kubernetes, PyTorch, MLflow, Suricata, and integration with an enterprise SIEM. We empirically evaluate the approach in a laboratory environment representing critical infrastructure, using public security datasets and controlled adversarial scenarios. The results indicate a significant reduction in the effectiveness of adversarial and model extraction attacks, with moderate operational impact in terms of latency and computational resource consumption. A case study in an anti-fraud detection scenario demonstrates the feasibility of the architecture in real operational contexts. We also discuss implications for AI governance and alignment with emerging normative frameworks, such as the NIST AI Risk Management Framework. The results suggest that statistical mechanisms combined with traditional operational controls constitute an effective strategy for reducing risks associated with the growing adoption of AI in critical environments.
1. Introduction
The massive adoption of machine learning (Machine Learning – ML) and deep learning (Deep Learning – DL) systems in critical infrastructures has substantially redefined the contemporary cyber risk landscape. AI systems are widely used in banking anti-fraud engines, automatic malware classification, intrusion detection, incident triage in security operations centers (SOC), and biometric authentication systems. However, unlike traditional deterministic software, AI models are probabilistic entities whose behavior emerges from the statistical distribution of the data used during training (GOODFELLOW; BENGIO; COURVILLE, 2016).
This characteristic introduces novel attack vectors. Small manipulations in the data distribution can significantly alter model behavior, enabling adversarial attacks, data poisoning, or model extraction. Goodfellow, Shlens and Szegedy (2015) empirically demonstrated that imperceptible perturbations in inputs can induce systematic classification errors in deep neural networks. Subsequently, research has demonstrated poisoning attacks capable of degrading or manipulating model behavior during training (BIGGIO et al., 2012; STEINHARDT; KOH; LIANG, 2017).
In addition, inference interfaces exposed via APIs can be exploited to approximate proprietary models through adaptive queries, a phenomenon known as model extraction (TRAMÈR et al., 2016). In corporate environments, such vectors are often combined with operational failures in MLOps pipelines, including inadequate credential management, insecure storage of model artifacts, and the absence of data integrity monitoring (KUMAR et al., 2022).
From an operational standpoint, these attacks can be correlated with techniques documented in the MITRE ATT&CK matrix, including exploitation of exposed applications (T1190), data manipulation (T1565), and credential compromise (T1552) (MITRE, 2023). However, most corporate security architectures still treat AI models as conventional software components, ignoring their specific statistical properties.
In light of this scenario, we formulate the following central research question: how can an operational security architecture be designed to treat AI models as critical assets, protecting both the training lifecycle and the production inference process?
We derive three main research questions:
RQ1: How can a threat model specific to AI systems be formalized to capture both adversarial vectors and traditional infrastructure attacks?
RQ2: What practical mechanisms enable the detection and mitigation of data poisoning and model extraction attacks in operational environments?
RQ3: What is the impact of these mechanisms in terms of computational cost and defensive effectiveness?
The contributions of this work are threefold. First, we propose a formal security model for AI pipelines based on measurable properties of statistical integrity and parametric confidentiality. Second, we develop operational algorithms for detecting data poisoning and mitigating adversarial queries in inference APIs. Third, we empirically evaluate the proposed architecture in an experimental environment representative of critical infrastructure.
2. Background and Related Work
Consider a supervised model represented by a function
$f_\theta: \mathcal{X} \rightarrow \mathcal{Y}$
parameterized by $\theta \in \mathbb{R}^n$. Training takes place over a dataset
$D = {(x_i, y_i)}_{i=1}^{m}$
by minimizing an empirical loss function:
$$ \theta^ = \arg\min_{\theta} L(\theta, D) $$
In real systems, both the data and the queries may be manipulated by adversaries. Adversarial attacks seek to find a perturbation $\delta$ such that:
$$ \arg\max_{\delta} L(\theta, x+\delta, y) \quad \text{subject to } ||\delta||_p < \epsilon $$
This type of attack was initially demonstrated through the Fast Gradient Sign Method (FGSM) (GOODFELLOW; SHLENS; SZEGEDY, 2015).
Data poisoning attacks introduce manipulated subsets $D_p$ into the training set, leading to a new model:
$$ \theta^ = \arg\min_{\theta} L(\theta, D \cup D_p) $$
where $D_p$ is constructed to maximize the error on target samples (BIGGIO et al., 2012).
In turn, model extraction attacks exploit adaptive queries to the inference API to approximate the original model $f_\theta$ by a surrogate model $\hat{f}_{\theta’}$ (TRAMÈR et al., 2016). This problem becomes particularly relevant in web-accessible ML services.
Although the academic literature has extensively explored these threats, there is a significant gap between theoretical proposals and security mechanisms that can be implemented in operational environments. Works such as Papernot et al. (2016) investigate the transferability of adversarial examples, but do not address integration with corporate monitoring systems. Similarly, research on adversarial robustness often ignores the latency and scalability requirements typical of production systems (MADRY et al., 2018).
More recently, studies in ML pipeline security have highlighted risks associated with the data supply chain, training reproducibility, and model version control (KUMAR et al., 2022; CRENSHAW; VU, 2021). These aspects reinforce the need for approaches that combine statistical techniques with traditional infrastructure security controls.
3. Threat Model and Problem Formalization
We assume an adversary $\mathcal{A}$ with realistic capabilities in corporate environments:
- Partial write access to the training dataset, possibly via compromise of the data supply chain.
- Query access to the externally exposed inference API.
- The ability to intercept or observe internal traffic in compromised corporate networks.
The adversary’s objectives include:
• maximize classification error on target subset $T$
• reconstruct model parameters $\theta$
• insert a backdoor trigger $t$ such that $f_\theta(x+t)=y^$
We define two desirable formal properties.
Statistical integrity of the data:
$$ \Delta D_{KL}(P_{train} || P_{baseline}) < \tau $$
where $D_{KL}$ represents the Kullback–Leibler divergence between the observed training distribution and a reference distribution.
Parametric confidentiality:
$$ Pr(||\theta - \theta’|| < \epsilon) < \alpha $$
where $\theta’$ represents an approximation obtained by an adversary via queries.
These properties make it possible to establish quantitative bounds for anomaly detection and for evaluating the effectiveness of defensive controls.
4. Proposed Methodology
The proposed architecture follows a defense-in-depth model applied to the lifecycle of AI systems.
| Layer | Objective | Mechanisms |
|---|---|---|
| Data validation | Detect statistical manipulation | KL divergence, outlier analysis |
| Robust training | Reduce adversarial sensitivity | regularization and filtering |
| Inference monitoring | Detect anomalous queries | entropy analysis |
| SOC integration | Operational response | SIEM and event correlation |
Algorithm 1 — Data poisoning detection
Input: Dataset D, baseline distribution P0
Output: Flagged samples F
1: Estimate empirical distribution P_D
2: Compute D_KL(P_D || P0)
3: If D_KL > τ:
4: For each sample x_i in D:
5: Compute influence score I(x_i)
6: If I(x_i) > λ:
7: Add x_i to F
8: Return F
The influence analysis is based on approximating the impact of each sample on the model loss function (KOH; LIANG, 2017). The algorithm’s complexity is approximately $O(n \log n)$ when density estimation is performed using Kernel Density Estimation.
Algorithm 2 — Adaptive rate limiting
Monitor distribution of API queries
Compute entropy H(Q)
If ΔH(Q) < -δ:
apply adaptive throttling
trigger security alert
A sudden decrease in query entropy often indicates systematic exploitation of the API for model extraction.
5. Implementation
The architecture was implemented using a technology stack representative of corporate environments in 2023.
| Component | Technology |
|---|---|
| Orchestration | Kubernetes 1.28 |
| ML Framework | PyTorch 2.1 |
| Experiment management | MLflow |
| Network monitoring | Suricata 7.0 |
| SIEM | Wazuh |
| Secrets management | HashiCorp Vault |
Example of a YARA rule used to detect suspicious patterns in model artifacts:
rule Suspicious_Model_Backdoor {
strings:
$trigger = "pattern_xyz"
condition:
$trigger
}
Events generated by network sensors and by the ML pipeline were converted into Sigma rules and subsequently correlated in the SIEM analysis engine.
6. Experimental Evaluation
The experimental evaluation was conducted on infrastructure composed of three Dell PowerEdge R740 physical nodes, each equipped with Intel Xeon Silver processors, 128 GB of RAM, and an NVIDIA A100 GPU.
Datasets used:
| Dataset | Type | Use |
|---|---|---|
| CIC‑IDS2017 | Network traffic | intrusion detection |
| MNIST adversarial | computer vision | adversarial evaluation |
| Real SOC logs | security events | operational evaluation |
Experimental results:
| Metric | Baseline | Proposed architecture |
|---|---|---|
| FGSM attack success | 78.4% | 35.7% |
| Model extraction accuracy | 91% | 28% |
| Poisoning detection (F1) | — | 0.94 |
The poisoning detection mechanism achieved 96.3% precision and 91.8% recall, with a standard deviation of ±1.2%.
Operational impact:
| Metric | Value |
|---|---|
| Average CPU overhead | 8.4% |
| Additional latency | 12 ms |
These results indicate that statistical controls can be incorporated into AI pipelines with moderate operational impact.
7. Case Study
We applied the architecture in a representative financial SOC scenario operating an anti-fraud detection system based on supervised learning.
During the experiment, a red team deliberately introduced 0.8% manipulated samples into the training pipeline.
Observed flow:
- The $D_{KL}$ divergence exceeded the threshold $\tau = 0.15$.
- The influence algorithm identified a subset of suspicious samples.
- The samples were automatically isolated.
- An alert was sent to the SIEM for investigation.
The attack was detected before the updated model was deployed to production, demonstrating the effectiveness of integrating statistical mechanisms with operational controls.
8. Discussion
The experimental results indicate that approaches based on statistical monitoring can significantly reduce the attack surface of AI systems. The main advantage of the proposed architecture lies in the integration between ML-specific detection mechanisms and traditional corporate security tools.
However, some limitations must be considered. The effectiveness of detection depends on the availability of reliable reference distributions for statistical comparison. In highly dynamic environments, legitimate changes in the data distribution may generate false positives.
Another threat to experimental validity lies in the partial use of synthetic or public datasets. Although widely used in research, such datasets may not fully capture the complexity of real corporate environments.
Finally, AI governance requires not only technical controls, but also organizational structures and risk management policies. In this context, frameworks such as the NIST AI Risk Management Framework provide relevant guidelines for integrating security, governance, and AI engineering (NIST, 2023).
9. Conclusion
This work presented an operational architecture for securing artificial intelligence systems based on defense-in-depth principles and statistical monitoring. We formalized security properties relevant to machine learning pipelines and introduced practical mechanisms for detecting data poisoning and mitigating model extraction attacks.
The experimental evaluation demonstrated that the proposed approach substantially reduces the effectiveness of adversarial and model extraction attacks while maintaining moderate computational costs. The case study in a financial SOC environment reinforces the practical applicability of the architecture in real-world scenarios.
The results indicate that protecting AI systems requires the convergence of robust machine learning techniques, infrastructure security, and continuous operational monitoring.
References
BIGGIO, Battista et al. Poisoning attacks against support vector machines. In: INTERNATIONAL CONFERENCE ON MACHINE LEARNING. Proceedings… 2012. Available at: https://arxiv.org/abs/1206.6389. Accessed on: 10 Dec. 2023.
CRENSHAW, Adrian; VU, Tuan. Securing the machine learning supply chain. IEEE Security & Privacy, v. 19, n. 3, p. 76–82, 2021. Available at: https://doi.org/10.1109/MSEC.2021.3059123. Accessed on: 10 Dec. 2023.
GOODFELLOW, Ian; BENGIO, Yoshua; COURVILLE, Aaron. Deep learning. Cambridge: MIT Press, 2016. Available at: https://www.deeplearningbook.org. Accessed on: 10 Dec. 2023.
GOODFELLOW, Ian J.; SHLENS, Jonathon; SZEGEDY, Christian. Explaining and harnessing adversarial examples. International Conference on Learning Representations, 2015. Available at: https://arxiv.org/abs/1412.6572. Accessed on: 10 Dec. 2023.
KOH, Pang Wei; LIANG, Percy. Understanding black-box predictions via influence functions. In: INTERNATIONAL CONFERENCE ON MACHINE LEARNING. Proceedings… 2017. Available at: https://arxiv.org/abs/1703.04730. Accessed on: 10 Dec. 2023.
KUMAR, Ram Shankar et al. AI engineering: building applications with foundation models. Communications of the ACM, v. 65, n. 11, p. 74–83, 2022. Available at: https://doi.org/10.1145/3523717. Accessed on: 10 Dec. 2023.
MADRY, Aleksander et al. Towards deep learning models resistant to adversarial attacks. International Conference on Learning Representations, 2018. Available at: https://arxiv.org/abs/1706.06083. Accessed on: 10 Dec. 2023.
MITRE. MITRE ATT&CK framework. 2023. Available at: https://attack.mitre.org. Accessed on: 10 Dec. 2023.
NIST. Artificial Intelligence Risk Management Framework (AI RMF 1.0). Gaithersburg: National Institute of Standards and Technology, 2023. Available at: https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.100-1.pdf. Accessed on: 10 Dec. 2023.
PAPERNOT, Nicolas et al. Transferability in machine learning: from phenomena to black-box attacks using adversarial samples. 2016. Available at: https://arxiv.org/abs/1605.07277. Accessed on: 10 Dec. 2023.
STEINHARDT, Jacob; KOH, Pang Wei; LIANG, Percy. Certified defenses for data poisoning attacks. Advances in Neural Information Processing Systems, 2017. Available at: https://arxiv.org/abs/1706.03691. Accessed on: 10 Dec. 2023.
TRAMÈR, Florian et al. Stealing machine learning models via prediction APIs. USENIX Security Symposium, 2016. Available at: https://www.usenix.org/conference/usenixsecurity16/technical-sessions/presentation/tramer. Accessed on: 10 Dec. 2023.
AMODEI, Dario et al. Concrete problems in AI safety. 2016. Available at: https://arxiv.org/abs/1606.06565. Accessed on: 10 Dec. 2023.
BARRENO, Marco et al. The security of machine learning. Machine Learning, v. 81, p. 121–148, 2010. Available at: https://doi.org/10.1007/s10994-010-5188-5. Accessed on: 10 Dec. 2023.
CARLINI, Nicholas; WAGNER, David. Towards evaluating the robustness of neural networks. IEEE Symposium on Security and Privacy, 2017. Available at: https://arxiv.org/abs/1608.04644. Accessed on: 10 Dec. 2023.
CHEN, Xinyun et al. Targeted backdoor attacks on deep learning systems. 2017. Available at: https://arxiv.org/abs/1712.05526. Accessed on: 10 Dec. 2023.
GOODFELLOW, Ian. Adversarial machine learning. Communications of the ACM, v. 61, n. 7, 2018. Available at: https://doi.org/10.1145/3205368. Accessed on: 10 Dec. 2023.
KENDALL, Alex; GAL, Yarin. What uncertainties do we need in Bayesian deep learning for computer vision? Advances in Neural Information Processing Systems, 2017. Available at: https://arxiv.org/abs/1703.04977. Accessed on: 10 Dec. 2023.
KURITA, Keita et al. Weight poisoning attacks on pretrained models. ACL, 2020. Available at: https://arxiv.org/abs/2004.06660. Accessed on: 10 Dec. 2023.
LIU, Yingqi et al. Trojaning attack on neural networks. NDSS Symposium, 2018. Available at: https://arxiv.org/abs/1803.00410. Accessed on: 10 Dec. 2023.
NASR, Milad; SHOKRI, Reza; HOUmansadr, Amir. Machine learning with membership privacy using adversarial regularization. ACM CCS, 2018. Available at: https://arxiv.org/abs/1807.05852. Accessed on: 10 Dec. 2023.
SHOKRI, Reza et al. Membership inference attacks against machine learning models. IEEE Symposium on Security and Privacy, 2017. Available at: https://arxiv.org/abs/1610.05820. Accessed on: 10 Dec. 2023.
SOMMER, Robin; PAXSON, Vern. Outside the closed world: on using machine learning for network intrusion detection. IEEE Symposium on Security and Privacy, 2010. Available at: https://doi.org/10.1109/SP.2010.25. Accessed on: 10 Dec. 2023.
SZEGEDY, Christian et al. Intriguing properties of neural networks. International Conference on Learning Representations, 2014. Available at: https://arxiv.org/abs/1312.6199. Accessed on: 10 Dec. 2023.
VARDAKIS, Georgios et al. Securing machine learning pipelines in cloud environments. IEEE Cloud Computing, v. 9, n. 5, 2022. Available at: https://doi.org/10.1109/MCC.2022.3199871. Accessed on: 10 Dec. 2023.