AI Safety and Security Technical Debt in AI-Enabled System Engineering
Scoping review of 60 studies on AI safety and security technical debt, mapping 31 debt types, 7 root causes, and 34 mitigation guidelines.
The source paper reviews 60 studies, classifying 31 AI technical debt (AITD) types into 7 root-cause categories linked to safety and security concerns and 34 mitigation guidelines. The most frequent debts were data debt (45.00%), glue code (30.00%), and test debt (28.33%).
Introduction
As AI systems spread into high-stakes domains such as healthcare, finance, and autonomous driving, structural defects that accumulate during operation, rather than benchmark performance, have emerged as the main cause of failure. As the source paper notes in citing the classic observation by Sculley et al., machine learning systems carry all the maintenance problems of traditional software plus problems unique to ML. The issue is that this debt usually stays hidden and then surfaces all at once as performance degradation, ethical violations, or system failures.
This study matters to enterprise AI leaders and ML engineers because it translates the discussion of technical debt into the language of risk management, namely safety and security. Prior research has treated the two separately, but the source paper argues that data drift, feedback loops, and continuous model updates weaken both at once. It can therefore be read as a single classification framework that explains why projects fail in operation after moving beyond PoC.
What the Source Paper Says
The source paper examines how technical debt accumulating in AI-based systems erodes safety and security properties. The authors adopt AI TRiSM (AI Trust, Risk, and Security Management) as their conceptual lens and conduct a scoping review following the PRISMA-ScR guidelines. They collected 1,351 records from the ACM Digital Library, IEEE Xplore, Scopus, and Springer, removed 115 duplicates, and excluded 997 of the remaining 1,236 records after title and abstract screening. After reviewing the full texts of 239 papers, they selected 60 primary studies, all peer-reviewed papers published between 2015 and November 2025. Coding followed Corbin and Strauss’s Grounded Theory in the order of open, axial, and selective coding, and 31 debt types were derived from 101 initial codes. The authors report reaching theoretical saturation after three iterations.
As a result, the 31 debt types were classified into seven categories: data and libraries, model and code, algorithms, design and architecture, operations and lifecycle, documentation and communication, and testing and quality assurance. By frequency, the order is data debt at 45.00%, glue code at 30.00%, test debt at 28.33%, documentation debt at 25.33%, and requirements debt at 23.33%. These debts map onto 6 safety concerns and 12 security concerns, and 34 mitigation guidelines are presented in total: 8 safety guidelines and 26 security guidelines. AITD-MAP is the framework that integrates all of these elements. However, the source paper presents no empirical figures verifying the actual effectiveness of the guidelines, and it acknowledges that the mapping results from synthesizing guidelines in the existing safety and security literature and matching them to debt types.
Executive Key Takeaways
- 1 1. [Core Findings] AI technical debt arises from seven root causes, including data governance gaps, code integration, and insufficient testing, and it propagates through coupled pipelines while remaining latent, becoming safety and security risk.
- 2 2. [Practical Implications] Manage debt as a leading indicator of safety and security risk rather than only a performance problem, and prioritize foundational controls such as data validation, testing, version control, and access control.
- 3 3. [Open Questions] The source paper does not empirically demonstrate how much the 34 mitigation guidelines actually reduce debt accumulation and incident frequency, and which guidelines deliver the greatest benefit relative to cost remains open.
Through What Pathways Does AI Technical Debt Become a Safety and Security Risk?
First, the frequency distribution shows that the source of risk is not flashy algorithmic defects but the failure of foundational engineering. Data debt was reported in 27 of the 60 studies (45.00%), glue code in 18 (30.00%), and test debt in 17 (28.33%). The source paper maps data debt to model vulnerability and eroded trust in input validity from a safety perspective, and to data integrity problems from a security perspective. If left unaddressed, costs become visible only after an incident, as in the case where a single schema change caused a surge in false positives. However, frequency measures how often a debt is mentioned in the literature, not its severity, and the source paper itself cautions that a low frequency does not imply low severity.
Second, coupling between debts amplifies risk. Correction Cascades and Entanglement are described as pathways through which an adversarial change to one component propagates across the system. Undeclared Consumers are directly linked to authentication, authorization, and privacy problems. Hidden feedback loops simultaneously weaken data integrity and real-time security monitoring. The per-debt concern links reported in the source paper show that the same debt appears in both safety and security concerns, which is evidence that organizational structures separating the two domains are fragile.
Third, the limits of the evidence must be read clearly. This study is a scoping review, and its mappings and guidelines are the result of synthesizing prior literature and matching it to debt types. The source paper itself defines the mapping as an initial analysis stage, and some guideline entries retain authors’ notes marking items that need confirmation. The text also contains numerical inconsistencies: it states there are 34 guidelines, but the related-work section gives 16, and the total number of debts is written as 32 in one place. No data measure debt or incident reduction after guidelines are applied, so this framework should be treated as a tool for diagnosis and prioritization, not as a prescription proven effective.
The source paper’s debt ranking is a count of how often each debt is mentioned across the 60 studies. It does not measure incident costs or the magnitude of harm. The source paper directly cautions that debts reported at 5% or below, such as boundary erosion and correction cascades, can still be high-impact failure modes. Setting priorities by frequency alone can cause high-risk, low-frequency debts to be overlooked.
How Are the 7 Root-Cause Categories and 31 Debt Types Structured?
The classification in Chapter 4 of the source paper was built through the grounded-theory coding noted above. Two co-authors independently analyzed the full texts of the 60 studies and extracted 101 initial codes, which were then converged into 31 debts through comparison and clustering. These were grouped into 7 categories according to the causes of occurrence rather than symptoms. Disagreements were resolved through discussion until consensus was reached. However, one passage in the main text gives the number of debts as 32, so the notation is not consistent.
The first axis comprises data and library debt and model and code debt. The former stems from failures in data governance and dependency management, and includes data debt, the Pipeline Jungle, distributed ML library usage, and unnecessary dependencies. In a use case from the source paper, a computer vision team kept adding training image augmentations until the transformations between training and inference diverged, reducing detection accuracy on real images. The latter contains ten types, including glue code, correction cascades, undeclared consumers, hidden feedback loops, and the Deep God File. A Deep God File is a case in which a research Jupyter notebook containing everything from data cleaning to inference is deployed to production as a single script, making any modification risky.
The second axis comprises algorithm debt and design and architecture debt. Algorithm debt arises from flaws in the objective function and evaluation design, not from implementation. In one use case, a loan approval classifier optimized only overall accuracy on imbalanced data and consequently rejected applicants from minority groups at excessive rates. Design debt includes Configuration Debt, and one case presented shows a result that cannot be reproduced because the random seed and batch size were not recorded. This category also includes boundary erosion, compatibility debt, and abstraction debt.
Third, there are the operations and lifecycle, documentation and communication, and testing and quality assurance categories. Requirements debt, defect debt, version control debt, process and infrastructure debt, and build debt belong to the operations category. Documentation debt and culture, staffing, and social debt are defined as sociotechnical deficiencies. Test debt forms this category as a single type, illustrated by a sentiment analysis model that cannot handle neologisms and slang. The practical value of this classification lies in the fact that each debt is owned by different organizational units. If causes are not separated among data teams, research teams, and operations teams, the same defect is highly likely to be reproduced repeatedly across departments.
Which Debts Connect to the 6 Safety Concerns and 12 Security Concerns?
Chapter 5 of the source paper organizes the pathways through which debt erodes safety and security properties by concern. There are 6 safety concerns and 12 security concerns, and the source paper’s Table 5 and the source paper’s Table 6 present the debts linked to each concern along with their causal explanations. This mapping is defined by the source paper itself as an initial analysis stage, and it should be read with the limitation in mind that it synthesizes prior literature.
On the safety side, the first axis is the visibility of the basis for judgment. Explainability and Interpretability is linked to Jumbled Model Architecture, oversimplified metrics, and documentation debt. When the structure is opaque and evaluation metrics diverge from safety goals, it becomes difficult to justify decisions in domains where the basis for judgment matters, such as medicine or law. Robustness and Reliability is weakened by data debt, defect debt, and test debt. When known bugs are left unfixed and edge-case testing is insufficient, the likelihood of crashes or incorrect outputs under shock conditions increases. Bias and Fairness is affected simultaneously by algorithmic inclination, ethical debt, and oversimplified metrics, and evaluations that omit fairness metrics conceal harmful outcomes. Out-of-Distribution (OOD) Generalization is linked to the Pipeline Jungle, prototype debt, and oversimplified metrics. Reliance on aggregate metrics hides performance degradation on unseen inputs, so risk becomes visible only after deployment.
From a security perspective, access control and data reliability are central. Authentication and Authorization is caused by undeclared consumers, configuration debt, and glue code. If the development team does not know who uses model outputs, control itself is impossible. Data Integrity and Validation is linked to data debt, hidden feedback loops, and correction cascades, so when input validation is weak, incorrect data propagates downstream. Dependency-related vulnerabilities are created by unnecessary dependencies and compatibility debt. Packages left unupdated widen the attack surface, and the source paper points out that they can serve as backdoors. By the same logic, security patches and updates are difficult to apply consistently because of distributed ML library usage and multi-language smells.
The second notable point is that the same debts recur in both lists. Algorithmic bias, correction cascades, and entanglement appear in both the safety-related adversarial and poisoning attacks and the security-related resilience to adversarial attacks. The higher the coupling, the more a defect in one component spreads through the whole system. Ethical debt and oversimplified metrics also span both safety and security concerns. Based on this, the source paper suggests the limits of approaches that handle the two domains separately. However, because the links between debts and concerns are narrative correspondences grounded in literature rather than quantitative measures of causation, the strength of individual links and their probability of occurrence are not specified in the source paper.
How Are the 34 Mitigation Guidelines Grouped, and Which Debts Do They Target?
The 34 mitigation guidelines organized in Chapter 6 of the source paper are divided into 8 safety guidelines and 26 security guidelines, and every guideline is explicitly matched to specific debt types. The authors state that they did not devise these guidelines themselves but synthesized established practices from the existing safety and security literature and connected them to debts. The safety guidelines (Table 7 of the source paper) consist of Explainable AI (XAI), fairness assessment and bias mitigation, adversarial training, OOD detection, formal verification, domain adaptation and transfer learning, black-box auditing and logging, and secure federated learning. As a first correspondence, Explainable AI targets Jumbled Model Architecture, oversimplified metrics, and documentation debt, while formal verification targets defect debt, test debt, and Jumbled Model Architecture.
The source paper’s research team grouped the security guidelines into 8 thematic clusters. As a second group, in the transparency and accountability cluster, the Ethical Black Box records inputs, outputs, intermediate signals, and model state in a tamper-resistant manner and addresses ethical debt, entanglement, and undeclared consumers. Human-AI control mode switching adjusts whether AI output is executed autonomously or routed as a recommendation requiring human confirmation, mitigating entanglement and undeclared consumers. The AI-SBOM (AI System Software Bill of Materials) manages datasets, model versions, libraries, and configurations as a machine-readable inventory and targets data debt, unnecessary dependencies, version control debt, and documentation debt.
The third group is the resilience cluster. Multi-Model Consensus compares judgments from models with different architectures and data, reducing correction cascades and hidden feedback loops. Redundancy & Failover eliminates single points of failure created by algorithmic bias and unstable data dependencies. Continuous behavior and performance monitoring treats ethical debt, configuration debt, data debt, hidden feedback loops, and design debt as detection targets. In addition, configuration management, encryption, data validation, secure coding, incident response, threat intelligence, red teaming and RLHF, and single-programming-language policies are linked in the source paper’s Table 8 to items such as glue code, multi-language smells, and compatibility debt.
However, this list is a map of defensive measures, not evidence of effectiveness. The source paper presents no figures measuring how much debt or incidents decreased after the guidelines were applied, and the cost and priority of each guideline are not specified. Some entries retain the authors’ confirmation notes (in Section 6.2.22 of the source paper, ‘not sure - double check’), and the guideline count is inconsistent between 34 and 16 in the text. Accepting this mapping as a validated prescription is therefore a risky judgment. It should be used only as a starting point for diagnosing which debts lead to which concerns in one’s own systems.
Safety and Security Debt Items to Review Before Operating AI Systems
- Data change tracking and validation: Record schema changes, preprocessing rules, and dataset versions, and automatically validate the accuracy, format, completeness, and authenticity of input data before it enters the pipeline.
- Registration of model output consumers: Permit only authenticated APIs to services that call model outputs, keep access logs, and eliminate undeclared consumers.
- Expanding test scope: Include evaluations of data transformations, distribution shift, fairness, and adversarial inputs in the test suite, in addition to code correctness.
- Cataloging dependencies and configurations: Inventory datasets, model versions, libraries, and configuration values in the form of an AI-SBOM to identify unnecessary dependencies and vulnerable components.
Incorporating the Debt Classification into Enterprise Governance
The practical value of this study lies not in a new technique but in providing a common vocabulary. The mapping that connects data debt, glue code, and test debt directly to safety and security risk pathways is useful for translating engineering debt into the risk language that boards understand. This is the author’s interpretation; the source paper does not measure the effects of introducing governance.
At the same time, the parts this framework does not solve are clear. Most of the 34 guidelines rearrange existing best practices, so there is no cost information to guide what to do first under organizational resource constraints. Debts specific to large language models and agentic systems were included in search terms but are not analyzed separately. Practitioners would therefore be well advised to use this classification as a starting point for reassessing priorities by comparing it with their own incident history.
Principles for Managing AI Technical Debt as a Risk Indicator
To reflect the source paper’s classification in operational decision-making, the following three principles provide a starting point.
- Incorporate debt into the risk register: Record technical debt items linked to safety and security concerns, and set priorities by scope of impact rather than simple frequency.
- Secure foundational controls first: Build foundational controls such as data validation, version control, access control, and expanded testing before advanced defensive techniques.
- Verify the effectiveness of guidelines with your own metrics: Measure internally how adopted guidelines affect incident frequency and recovery time, and do not expand guidelines that have not been demonstrated to work.
Further reading
- European AI Regulation: From the AI Act to Future Regulatory Challenges
- Generative AI for Software Project Management: Insights Based on Practitioner Literature Review
- Analysis of AI Adoption in Scientific Research and Claude Usage Patterns
References and Source Paper Materials
On AI Safety and Security Technical Debt in Engineering AI-Enabled Systems
Authors: Muhammad Tukur, Hayatullahi Bolaji Adeyemo, Tao Chen, Nour Ali, Anis Zarrad, Rick Kazman, Marco Agus, Rami Bahsoon A
Venue / Publisher: arXiv
This research briefing was written from the source paper with the help of AI tools (AI Research Agent · MLOps, AI Research Agent · Strategy). Reviewed by Jay PARK, who is responsible for it.
Read more

Tech & MLOps ·
ADAZOR: Hypothesis Testing for Concept Drift Detection in Machine Learning
Tech & MLOps ·
Trust Must Survive Deployment: The Continuous Assurance Lifecycle for Adaptive AI Systems

Tech & MLOps ·
The Limits of Machine Learning Models of Misinformation

Tech & MLOps ·
Forward-Deployed Full-Stack Engineering for Autonomous Cloud MLOps