Software engineering researchers Matteo Esposito, Mikel Robredo, Alexander Bakhtin, Davide Taibi, and Valentina Lenarduzzi have introduced a conceptual framework and architectural vision for integrating generative artificial intelligence into the DevSecOps lifecycle to automate Infrastructure as Code. While modern practitioners face tight release schedules and increasing deployment demands, existing studies have examined generative artificial intelligence only for isolated script creation rather than leveraging artifacts generated across sequential DevSecOps stages. The researchers, publishing in Automated Software Engineering, present an end-to-end, lifecycle-aware approach where generative models systematically analyze stage-specific artifacts to synthesize, adapt, and refine infrastructure scripts across development and production environments. Rather than reporting empirical validation datasets or measured runtime performance improvements, the published work establishes a theoretical framework and future empirical validation roadmap to determine whether generative tools can reliably serve as an infrastructure copilot. The study emphasizes that different infrastructure tools serve varied operational purposes and must adapt continuously to project requirements.
The authors trace the foundations of Infrastructure as Code to the principle of immutable infrastructure and disposable components introduced by Fowler in 2013, which superseded traditional mutable practices where servers and components remained unmodified after deployment. This modern operational paradigm benefits software organizations by simplifying operations, enabling continuous deployment, reducing manual configuration errors, and minimizing system downtime through cloud reboots aligned with continuous integration and delivery practices. Previous research cited by the authors highlights broad applications of infrastructure scripts across software engineering sub-domains, including constructing benchmarking suites to assess cloud application performance (Scheuner et al. 2015), implementing configuration management and code revision control (Artac et al. 2017), automating resource provisioning and microservice architectures (Parnin et al. 2017), and facilitating software testing (Ikeshita et al. 2017). Although Infrastructure as Code provides environmental consistency, scalability through reusable scripts, and distributed team collaboration tracked through git version control systems, creating scripts still demands substantial human effort and remains vulnerable to human error.
To address human engineering bottlenecks, the research team designs an automated framework structured around the nine stages of the DevSecOps model established by the United States Department of Defense and industry baselines. Earlier experimental work by Chanus and Aubertin demonstrated mild success in creating and automating infrastructure scripts with generative models, while Esposito et al. previously proposed an agentic framework based on the MAPE-K control loop for autonomous anomaly remediation in microservices. However, prior investigations did not synthesize or iteratively refine infrastructure across connected development stages. Because modern enterprise projects routinely employ diverse, coexisting infrastructure tools as documented by Rahman et al., the proposed framework envisions generative models continuously inspecting stage-specific artifacts to configure appropriate testing, staging, and deployment architectures. By automating script generation, the authors argue that engineering teams can maintain high script quality while shifting developer effort toward core software business logic, directly strengthening architectural robustness without incurring excessive manual infrastructure scripting overhead.
In the initial planning stage, which the researchers identify as the least automated phase of the DevSecOps workflow, project teams establish security analyses and detailed security testing schedules. Human planning workflows generate foundational artifacts, including user stories, software requirements, and architectural diagrams that define project scope and structure using platforms such as Jira, Slack, and IriusRisk. Under the proposed vision, these synthesized planning artifacts serve as structured inputs enabling generative artificial intelligence models to outline necessary infrastructure configurations. By analyzing functional specifications and non-functional requirements, the models can propose scalable infrastructure solutions, such as determining appropriate cloud services, configuring load-balancing mechanisms, establishing automated scaling policies, and provisioning multi-availability-zone architectures to guarantee high availability and disaster recovery. Furthermore, by ingesting early threat models formulated in accordance with Ekoramaradhya and Thorpe, the generative copilot is designed to draft initial Infrastructure as Code scripts that preemptively mitigate identified architectural vulnerabilities before coding commences.
During the development or coding stage, engineering activities focus on source code creation and static security testing of existing software implementations. In this phase, candidate artifacts include raw application source code, configuration files, and analytical reports generated by static security analysis tools (SSAT). Conventional static security tools evaluate source code against predefined rules to detect programming bugs, coding flaws such as SQL injection, cross-site scripting vulnerabilities, memory leaks, and null pointer dereferences, as well as architectural smells documented by Fontana et al. and Esposito et al. The proposed generative model extracts critical contextual parameters from these development artifacts, including environmental dependencies and necessary system resources, to generate and modify corresponding infrastructure scripts. Additionally, the copilot consumes diagnostic reports from static security tools to prevent the creation of insecure or smell-prone infrastructure configurations, effectively functioning as an automated infrastructure code reviewer that supports software updates and feature additions without deploying vulnerable code.
The building stage introduces compilation outputs and dependency structures, yielding artifacts such as build scripts, dependency graphs, and comprehensive Software Bill of Materials (SBOM) documentation. Security analysis in this phase relies on specialized static analysis tools examining compiled binaries or bytecode to identify post-build vulnerabilities. The authors highlight industry insights from Guerriero et al. showing that architectural heterogeneity, specifically polyglotism involving multiple programming languages within a single environment, represents a primary operational challenge in infrastructure automation. The proposed vision examines how generative artificial intelligence can streamline infrastructure creation from build scripts by identifying project languages, resolving cross-language dependencies, and optimizing build strategies to minimize build execution time and computational resource usage. Generative models would dynamically modify platform-agnostic Infrastructure as Code scripts to provision build environments, continuously tailoring infrastructural parameters to accommodate evolving technical dependencies and ensure consistent software portability across diverse target deployment environments.
When build artifacts successfully transition to staging environments, the testing stage generates test case suites, execution logs, evaluation metrics, and dynamic application security testing (DAST) reports. Security testing examines system responses to unexpected data inputs evaluating access control, authentication, and accounting mechanisms. The generative copilot uses these test outputs and dynamic security logs to refine infrastructure scripts for testing and staging environments, automatically updating infrastructure configurations across recurring build cycles. Following testing, the release phase manages runtime architecture through release notes, deployment scripts, version control tags, and release checklists. During release, engineering teams perform a second threat modeling phase focused on post-binary release concerns, including container security, cloud and serverless protection, secrets management, and potential bug bounty exposures. The generative AI model aligns infrastructure scripts with specific codebase versions through version control tags, optimizing deployment scripts based on release notes to reduce human error during infrastructure remediation.
In the deployment stage, software products transition into operational environments using deployment manifests, container images, Helm charts, environment configuration files, and service discovery registries. Infrastructure scripts are executed through automation platforms such as Terraform, Ansible, Puppet, and Chef, which validate infrastructure against security policies and established benchmarks like CIS benchmarks. Furthermore, container vulnerability scanning tools, including Clair, Trivy, and Aqua, produce diagnostic scanning reports for the generative system. The envisioned generative artificial intelligence model inspects container images to determine architectural execution requirements, leverages Helm charts to accommodate efficient Kubernetes deployments and environment dependencies, and incorporates container scanning reports to resolve configuration flaws. By interpreting security compliance evaluations prior to final execution, the copilot refines and corrects Infrastructure as Code definitions, preventing the automated deployment of insecure infrastructure and ensuring that runtime environments conform to established security baselines across successive deployment iterations.
The authors group the operational, monitoring, and response stages together due to their continuous, interdependent control loops within the DevSecOps lifecycle. These operational phases generate continuous monitoring logs, incident reports, anomaly alerts, deployment performance metrics, configuration management data, and environment usage statistics. Security activities encompass continuous log aggregation, real-time threat detection, endpoint security management, user activity auditing, and secrets management. The proposed generative copilot operates proactively, analyzing streaming monitoring data, performance reports, and security anomaly logs to detect infrastructure degradation or active cyber threats in real time. Rather than relying entirely on manual administrative intervention, the model dynamically adjusts Infrastructure as Code configurations with real-time resource demands and issues temporary remediation scripts to mitigate potential threats. This automated, closed-loop feedback mechanism aims to enhance system resilience and operational performance while adapting infrastructural capacity dynamically to fluctuating production workloads.
To transition the conceptual framework into practical engineering, the researchers outline an implementation roadmap and empirical validation agenda. The proposed implementation will establish a proof of concept integrating generative artificial intelligence models into DevSecOps workflows through stage-specific hooks and triggers, utilizing real-world software projects that adopt Infrastructure as Code tools. Empirical validation will systematically evaluate generative AI-produced scripts against those authored by human experts and existing state-of-the-art automation tools, assessing correctness, security compliance, adaptability to change, and overall operational effectiveness. The authors emphasize significant limitations and ethical challenges, citing studies on model failure with complex requirements (Zhang et al. 2025), training data deficiencies (Siddiq et al. 2024), scalability constraints, explainability deficits, hallucinations, and privacy leakage risks. To mitigate these threats, the framework mandates rigorous data governance, modular integration, security validation profiles, and human-in-the-loop oversight, concluding that generative AI must assist rather than replace human infrastructure experts.
Subject of Research: Generative artificial intelligence automation of Infrastructure as Code across the DevSecOps lifecycle
Article Title: Generative AI as an infrastructure copilot: automating Infrastructure-As-Code across the DevSecOps lifecycle
Article References: Esposito, M., Robredo, M., Bakhtin, A., Taibi, D., & Lenarduzzi, V. (2026). Generative AI as an infrastructure copilot: automating Infrastructure-As-Code across the DevSecOps lifecycle. Automated Software Engineering, 33(2), Article 58. https://doi.org/10.1007/s10515-026-00600-5
Image Credits: AI Generated
DOI: 10.1007/s10515-026-00600-5
Keywords: Generative AI, Infrastructure as Code, DevSecOps, Automated Software Engineering, Continuous Deployment, Threat Modeling, Static Security Analysis, Software Bill of Materials, Polyglotism, Dynamic Application Security Testing, Helm Charts, Container Security, Configuration Management, Anomaly Detection, Cloud Infrastructure, Human in the Loop, Software Release Management, Security Compliance
News Source: Denise Maddox. (November 25, 2026). Researchers Propose Generative AI Framework to Automate Infrastructure as Code Across DevSecOps. Scienmag.



