1. Introduction
The need to incorporate security processes into development cycles has become highly pressing in recent times, with the goal of achieving greater speed in delivery without sacrificing security. DevSecOps can be viewed as more of a method that integrates security into development and operation cycles to mitigate the weaknesses of traditional security approaches related to increased risk considerations that involve security only as the final endpoint [
1,
2,
3]. Although there are immense benefits achievable through DevSecOps adoption, there are major hurdles to developing efficient pipelines.
While DevSecOps is theoretically mature, its empirical application faces a significant “adoption gap.” According to a Systematic Literature Review (SLR) of 54 primary studies, organizations face 21 distinct challenges, with tool integration (technical) and lack of specialized skills (human) being the most prevalent factors leading to pipeline abandonment or failure. These challenges quantify the severity of the gap between theoretical frameworks and practical, scalable implementations in multi-tier environments [
3].
Our proposed solution responds to these challenges with a practical assessment concerning a “proxy” DevSecOps pipeline intended to test PHP-based multi-tier Web applications. The “proxy” pipeline approach offers an efficient and automated processing mechanism, which stresses “Static Application Security Testing” without hampering integration with Continuous Integration/Continuous Delivery (CI/CD) methods [
4,
5]. Unlike traditional DevSecOps implementation methodologies that are complex to execute due to increased overheads, “proxy” pipelines are efficient with strong security checkpoints.
Our proposed pipeline makes use of infrastructure-as-code concepts [
6,
7] to deploy itself on Amazon Web Services to create development, production, and Jenkins environment instances. As per this pipeline, there are various security testing steps involved in the testing phase [
8] related to unit testing, code analysis [
9], code styling analysis, and vulnerability testing. The use of Jenkins to orchestrate these steps makes sure that security testing of committed code occurs before deployment.
We not only make theoretical contributions to architecture but also offer empirical validation for pipeline efficacy. We test our pipeline in four diverse settings: measuring its original efficiency, testing dynamic scaling in a scenario involving simultaneous developer commit activities, testing its safe mechanism functionality, and accuracy in security detection. These tests allow for empirical validation based on execution speed, system resource usage, and vulnerability detection rate per execution, among other parameters.
The value added by our work lies in filling a gap between our theoretical model of DevSecOps and experimental evidence related to implementing a DevSecOps pipeline. Although there are plenty of papers describing DevSecOps models and guidelines in terms of their principles or design details, there is not much related to experimental validation of individual DevSecOps pipeline implementations.
This proposed study looks to fulfill the following objectives:
To evaluate a multi-tier PHP Web application proxy DevSecOps pipeline based on DevSecOps best practices, using infrastructure as code and Static Application Security Testing;
To set up baselines concerning re-executions performed to gauge pipeline execution impacts;
To gauge pipeline scalability to serve multiple developers concurrently working;
To test safe, secure mechanisms to ensure system stability;
To measure security accuracy;
To define a cost analysis.
This manuscript will continue as follows:
Section 2 will introduce basic concepts related to DevSecOps basics and related work.
Section 3 will describe our materials and methods related to implementation details, our experimental design, and data collection.
Section 4 will provide results related to our experimental design.
Section 5 will interpret our results.
Section 6 will conclude our paper with major takeaways, limitations of our solution, and future directions.
4. Results
4.1. Pipeline Efficiency Baseline Results
The baseline efficiency measure based on 20 successive pipeline runs demonstrates very stable and reliable performance behavior. The average value of total execution time for all runs amounts to 122.08 s, with a standard deviation of 1.69 s, which results in a coefficient of variation of 1.38%. The median value of execution time of 122.08 s corresponds exactly to the average value and thus represents symmetry and no distinct outliers. The execution time varies from minimum to maximum values of 120.08 to 125.31 s, entailing a very small performance variation of 4.35%. The recorded 1.38% coefficient of variation (CV) indicates exceptional operational stability. In public cloud environments [
19], performance variance often ranges between 5% and 10% due to multi-tenancy noise; thus, a CV below 2% confirms that the proxy pipeline’s execution time is highly predictable and reliable for CI/CD integration.
The individual stage timing breakdown reveals that security testing stages take up about 41.82% of the overall execution time; code analysis stages occupy 23.78%; compilation and build stages require 15.91%; deployment stages use up 11.04% of time; and other stages, including checkout and database operations, make up 7.45% of overall pipeline time. The security testing stage is the individual stage which takes the maximum execution time of 51.03 s to complete. The reason for this encompasses not only security scanning but also the PHP security code checker and PHP antimalware scanner services involving 15 tools.
Analysis of convergence over time shows that there is immediate stabilization in execution time values, with very little variation apparent from the first iteration to subsequent ones. The value of 1.38% for the coefficient of variation over all 20 iterations shows very little variation and no need to wait for warm-up time to elapse. The immediate stabilization here shows that infrastructure as code obviates first runtime overhead.
After introduction of code modification via new functionality implementation, the average execution time for subsequent 20 trials recorded 126.24 s, with a standard deviation of 2.14 s, registering an average increase of 3.41% from baseline performance. The result of an independent samples t-test for the significance of differences in execution time of baseline and post-code modification scenarios registered a t-statistic of 8.47, with a p-value less than 0.001, registering the significance of differences in execution time at alpha level 0.05. Nevertheless, the value of Cohen’s d statistic registering effect size in these experiments registers 2.13, even though values differ significantly from the baseline; the absolute value of 4.16 s registers minimal significance from a practical perspective. Analysis of resource utilization helps in understanding distinct patterns of execution in the pipeline processes. CPU utilization reaches peak points in compilation and security scan processes and reaches its maximum utilization level to about 60–70% in development instances running Static Application Security Testing tools. However, memory utilization shows a peak of usage in tasks related to Database Operations. Disk I/O throughput shows higher usage in code checkout and deployment stages.
4.2. Dynamic Scaling Evaluation Results
The results from running multiple pipelines together have shown excellent performance of the system to deal with several commits from different developers simultaneously without significantly affecting its performance. The average time it took to run three pipelines together had a standard deviation of 2.27 s and averaged 128.24 s, meaning it performs just 5.04% above the single-processing result of 122.08 s.
Individual concurrent pipeline evaluation shows very little variation in performance distribution. The time taken to complete all three concurrent execution processes fell into remarkably small-time intervals, with less than 3% variation between the fastest and slowest times of concurrent execution. Despite concurrent execution processes occurring simultaneously, all three execution processes remained under acceptable time limits despite occurring simultaneously.
Analysis involving stage-to-stage comparisons for single execution baseline and concurrent execution scenarios identifies that security testing and compilation stages have the highest percentage increases, about 6.1%, due to concurrent execution. The stages involving code checkout and deployment have minimal percentage increases, about 2.6%, which indicate minimal I/O involvement due to network I/O. The unit test stage shows a percentage increase of about 4.2%, which aligns with CPU utilization.
The results for resource contention from our native script metrics indicate predictable behavior. The CPU utilization of development and production machines rose to 75–85% from 60–70% CPU utilization for single execution. The CPU utilization of the Jenkins orchestration environment rose to 45% from 25% baseline CPU utilization, indicating increased overhead of pipeline orchestration for every additional execution but not resulting in any scalability issues.
The average memory usage results differed little in single versus concurrent execution scenarios, averaging 2.9 GB in concurrent execution, as opposed to 2.8 GB in baseline. The peak utilization also rose to 3.6 GB but remained within the available 4 GB capacity. The trend here supports, once again, that memory is not a bottleneck for concurrent execution of pipeline processing. When conducted by independent samples t-test for comparative statistical analyses of concurrent execution versus basic single execution performance times, results showed values of 11.23 for “t” and p ¡ 0.001 for “p-value.” Both values were significantly lower than alpha level 0.05; hence, differences were deemed statistically significant. The effect size measure of 2.88 was large according to Cohen’s d test. Nevertheless, average percentage increments of 5.04% were acceptable, given additional costs of 6.16 s added to total execution times below two minutes.
4.3. Fail-Safe Mechanism Validation Results
The built-in security feature has proven to be strong by detecting and preventing vulnerabilities intentionally added to the source code. In several test cases involving the injection of security issues into the source code, it confirmed a 100% activation rate of security measures to prevent execution at production time. The 100% activation rate confirms the operational reliability of the fail-safe trigger; this demonstrates that the pipeline correctly enforces the security gate when a defined vulnerability is detected.
An example of a fix would be one where two security bugs were introduced simultaneously into the source code. In this case, it took PHP Security Scanner only 0.58 s to detect the two security bugs inserted during the security testing phase. The first security bug concerned the use of the eval function. The scanner identified it as problematic code responsible for remote code execution. The other security flaw concerned hard-coded password values. The scanner identified it as an exposure of sensitive data.
In these complex scenarios related to three vulnerabilities, issues like eval usage related to RCE vulnerability were detected, which, though not exploitable, remained reported, besides identifying issues related to the hard-coded password. The time for completion of these scenarios took about 0.56 s and resulted in identifying three issues.
In another test scenario, the pipeline’s SQL injection vulnerability detection capabilities were evaluated. When code involving SQL concatenation in SQL statements was applied to the application code, it identified potential SQL injections, where the construction of SQL queries involved SQL concatenation instead of parameterized queries. In addition, SQL injections via sprintf functions were detected in the source code.
The scanner also detected cross-site scripting vulnerability issues by identifying the use of the eval function, allowing remote code execution, and weak escape routines, where htmlentities functions can potentially bypass XSS be-cause of the incorrect encoding.
A scrutiny of the results of fail-safe responses shows full implementation of security gates. The pipeline directly labeled the build result as failed, meaning none of the deployment steps would proceed. The vulnerability reports from Jenkins logs were very detailed and even had references to vulnerability texts such as “don’t use eval,” “avoid hard-coding sensitive values,” etc.
The fail-safe component effectively ensured none of the vulnerable codes proceeded past the development stage. A history examination of the Jenkins build verifies that no deployment stages were performed after detection of vulnerability. The deployment stage, database migration stage, and all subsequent stages have a status marked as “skipped” in build logs to represent correct execution of fail-fast functionality to save resources and prevent propagation of vulnerability.
Analysis of pipeline actions related to fail-safe startup validates resource cleanup and decommissioning processes. The Terraform destroy processes in all three test scenarios were successfully completed via Jenkins post-build actions, even though all three pipeline tests were prematurely terminated. Verification from the AWS console confirmed successful termination of all three EC2 instances after failing their respective pipeline actions to avoid wastage of resources and related costs. The uniformity of responses in all test repetitions ensures reliability in the security gate deployment. In all test scenarios related to vulnerability injections, it can be seen that security issues had been properly detected, along with respective failure responses implemented by the pipeline, to ensure a 100% activation rate as part of fail-safe results with no occurrence of false negatives. The 100% detection success rate related to known vulnerability expressions re-emphasizes confidence in the security enforcement capabilities of the pipeline.
4.4. Security Detection Effectiveness Results
A systematic evaluation of security detection performance via multiple pipeline runs allows for quantitative evaluation of the accuracy and reliability of Static Application Security Testing tool suite performance. The pipeline showed reliable performance for vulnerability detection. The security test suite effectively identified several types of vulnerabilities, such as eval function-related remote code execution risks; SQL injection-related risks occurring via concatenation, as well as sprintf functions; cross-site scripting risks caused by improper output escaping; sensitive-data exposure issues due to hardcoded credentials; and improperly implemented security features via inadequate encoding approaches. The vulnerability types have been covered under the most critical areas of the OWASP Top 10 for PHP applications [
20].
Analysis of tool contributions helps to conclude that the PHP Security Scanner contributes to finding the greatest number of distinct securities vulnerability reports. The PHP Security Scanner applies its rules to search for security risks such as obvious and subtle vulnerability expressions like the use of eval, SQL query builders that allow SQL injections to occur, and improper management of user-supplied data. Other tools from SAST tools like PHP Code Analyzer, PHPStan, and PHP Mess Detector add quality to PHP source code that improves security by detecting complexity in PHP code sources.
The result of false-positive analysis shows critical operational characteristics. In standard code scans of the baseline application without intentionally incorporated vulnerabilities, security warnings were prompted by security scanner features whose evaluation requires context. One such example would be within the hardcoded password false-positive issue where security alerts were prompted for “
$password = ‘SuperSecret123!’;” regarding sensitive-data exposure. However, this specific example would be classified as a false positive considering it is written in example code instead of actual security features. The estimated false-positive rate would be about 10 to 15% [
20] based on manual evaluation of security alerts.
Analyzing the false positives in detail shows that these come from conservative detection rules where security, over precision, stands out as a major factor. In particular, if “eval” usage accompanies the warning, “guidance like,” scanners generally raise flags for any “eval()” is given, instead of flagging only “eval() calls.” Likewise, hardcoded strings patterned like passwords issue alerts despite their eventual context of use. Though these false positives cause investigating burdens, conservatism correlates to “shift-left” security strategies, where identifying suspicious elements early poses greater value than overlooked security holes.
Analysis for detection time shows that detection of vulnerabilities happens quickly in the security testing phase. The average time it takes from the start of a stage to the first vulnerability detected was estimated to be 0.56 to 0.58 s depending on scenarios of execution time, and it generally completes its security scan in 51 s. The quick feedback allows for security to be remediated instantly post-commit instead of discovering it days or weeks later via security checks. The complete vulnerability of reporting allows for remediation advice to be followed. In terms of eval vulnerability, remediation advice from the scanner reads, “Don’t use eval Ever.” For SQL Injection vulnerability issues, remediation advice from the scanner to client reads “Possible SQL Injection: query built by string concatenation or Possible SQL Injection: sprintf used to build SQL query.” In case of hardcoded sensitive values issues, remediation advice from the scanner to client reads, “avoid hard-coding sensitive values (e.g., ‘username’, ‘password’, etc.).”
4.5. Cost Analysis Results
Infrastructure cost analysis helps organizations make decisions about implementing pipeline adoption. Every execution of the pipeline results in costs associated with three EC2 instances running for the average execution time. According to present EC2 pricing offered by Amazon Web Services pricing website for pricing in the us-east-1 region, Development and Production EC2 instances of type “t2.medium” cost $0.0464/hour, and Jenkins EC2 instance of type “t2.micro” costs $0.0116/hour.
For baseline execution of the pipeline with an average time of 122.08 s (0.0339 h), the cost of infrastructure for baseline execution is
$0.00470. The cost breakdown is based on on-demand pricing and can be calculated as follows:
For an average development team making 20 commits per day involving 3–5 team members, the cost of infrastructure incurred on a daily basis would be approximately $0.094. The cost incurred for 22 working days in a month would be approximately $2.07. The cost incurred annually would be approximately $24.80.
Cost-saving options are available via the pricing options offered by Amazon Web Services. The pricing for one-year committed utilization of reserved instances would result in saving about 35% of costs; hence, costs would be lowered to about $16.12 annually. The three-year committed utilization of reserved instances would aid in saving about 53% of costs; hence, costs would be lowered to about $11.65 annually. The cost-saving would be about 60–70% via spot pricing for non-critical pipeline execution; hence, costs would be lowered to about $7.44–$9.92 annually.
Cost-effectiveness augments to justify competition in cost estimation by contrasting it with manually factorized security testing costs. Manual security testing related to traditional security evaluation incurs escalated costs to dedicate security team members. The market rate of security consultants stands around $150–$250 per hour. A security test would take security consultants 4–8 h to complete for every application release. In other words, it amounts to $600–$2000 for manually conducted security evaluations. The cost of security validation performed by the pipeline continuously amounts to $0.0047 per execution; it shows about 127,000-times lower cost reduction for a single security test execution compared to manual methods.
Despite the requirement for quarterly manual security checks to augment automatic security testing, cost-saving advantages are quite apparent. Assuming a $1000 quarterly expense for manual security checking done once per quarter by an organization to test security manually, annual expenses for such security checks would be $4000. Adding these to automatic pipeline costs, constituting $24.80 annually to continuously test 4400 commits in a year, makes total security testing expenses $4024.80 every year. Manual security checking for all commits would require about $2.64 million annually, assuming 20 commits in a day and 1 h costs $150 per hour.
The benefits of reduced vulnerability remediation costs are related to early vulnerability detection because of the pipeline. According to Synopsys and IBM Security data from the application security market, it costs about 5–10 times less to remediate security vulnerability issues if dealt with during development versus remediation of the same issues if they occur in production. The critical part here regarding remediation costs for this paper would be to estimate average costs related to remediation of security issues in production. This will be assumed to be about $5000 for this research. Detection of just five security vulnerability issues would translate to savings of about $25,000 to $50,000. Time-saving opportunities provide yet another critical dimension of value. The full security validation process via the automatic pipeline takes about 122 s versus hours and even days needed to accomplish security evaluation manually. The faster cycle time allows several deployment rounds every day, allowing for vastly increased development speed without compromising security requirements. In firms focusing on quick functionality turn-around to meet market demands and keep their competitive edge, time saving alone justifies expenditures related to implementing these security evaluation pipelines in terms of their market value. Some 4400 commits saving 4 h of security evaluations via automatic testing translates to about 17,600 h saved pertaining to $50 hourly development time costs, amounting to $880,000. Compared to a standard 1 h manual peer security review (industry average cost of ~$50/hour), the automated proxy run ($0.0047) provides a 10,000× cost reduction per commit, allowing for the frequency required by DevSecOps.
5. Discussion
5.1. Interpretation of Pipeline Efficiency Results
The empirical results prove the “proxy” DevSecOps pipeline to be very viable for organizations who target security validation automation but not necessarily complete pipeline complexities. The uniform execution time values and their coefficient of variation of 1.38% ensure excellent, predictable performance requirements necessary for production-level deployment planning. The performance level exceeds several other commercial tools like Jenkins, TeamCity, and other competitive tools and demonstrates perfect adherence to infrastructure-as-code principles for reproducible test environments.
The presence of immediate temporal stability without any warm-up runs makes this implementation different from conventional CI/CD solutions, wherein performance issues have been noticed in first-run scenarios. The lack of overhead related to first-run performance makes it seem like infrastructure-as-code provisioning by Terraform and management of dependencies to mitigate performance bottlenecks. Expectations related to first-run performance of the pipeline in organizations would be met.
The result of observing a statistic significantly different from zero for the 3.41% increment in pipeline execution time caused by code changes effectively resolves the issue of unpredictability associated with development delays caused by code changes affecting pipeline execution time. Though the test performed confirms the result to be statistically significant (p ≈ 0.001), it must be accepted that the absolute value of 4.16 s added to pipeline execution time poses little problem in practice. The result means that development teams do not have to think about unpredictable delays to development processes caused by code commits.
The stage-specific timing breakdown showing security testing to consume 41.82% of overall execution time emphasizes not only the completeness of security validation work but also its optimality from the implementation perspective. Note that it takes only 51 s to complete security testing because it combines 15 different security tools running simultaneously whenever possible. A shorter feedback cycle may be achieved by running security tools depending on changes in source code, but an overall execution time of 122 s allows for very fast development cycle execution. The resource utilization trend indicating peak CPU utilization of 60–70% and headroom to 75–85% for concurrent execution shows that cost efficiency and performance capabilities of the infrastructure are appropriately matched. CPU usage could perfectly support peak loads. Nevertheless, if organizations must migrate to more than three concurrent development environments, CPU utilization trend monitoring should be performed to determine when it is time to proceed with new infrastructure deployment.
While the proxy pipeline provides the technical framework for security, successful adoption is fundamentally tied to organizational culture [
3]. According to Rajapakse et al. [
3], “human-centric” challenges such as developer resistance and lack of specialized skills are the primary barriers to DevSecOps maturity. Our model serves as a socio-technical bridge by providing non-intrusive feedback, thus fostering trust between security and development teams.
5.2. Scalability
The results from dynamic scaling experiments, showing just 5.04% execution time overhead for three concurrent pipelines, form substantial evidence about scalability. The negligible overhead in performance shows optimal allocation of resources to deal with multiple workloads concurrently. It justifies creating separate development and production environment instances. A firm with about three to five development team members can safely use this architecture to scale without advancing additional baseline configuration scaling.
The uniformity in performance across concurrent runs, fluctuating below 3% variance from fastest to slowest concurrent pipes, implies resource contention remains low even at this level of concurrency. The proportional increments in each stage (6–8% for CPU-intensive and 2–3% for I/O-intensive stages) imply there is relative equality in resource utilization and no stage-level bottlenecks. Such equality makes scaling easier and implies scalability would be feasible via horizontal scaling of infrastructure to support scaling across large teams.
The slight spike in Jenkins’ orchestration overhead from 25% to 45% CPU utilization during concurrent execution deserves special attention for organizations engaging in major scaling activities. Although the overhead is not problematic at present, organizations accommodating 10 or more concurrent developers may choose to have separate Jenkins infrastructures for build agents to avoid creating bottlenecks in orchestration. The scale-up behavior of Jenkins’ overhead is linear.
The verification of negligible changes in memory usage during concurrent execution justifies the present allocation of 4 Gb of memory. Memory is not considered to be a bottleneck in such volumes; thus, organizations can concentrate their efforts related to optimization of their infrastructures solely on CPU allocation and network bandwidth. It makes planning easier and cuts expenditures related to additional allocation of memory.
The statistical significance of the performance overhead of 5.04% (p ¡ 0.001, Cohen’s d value of 2.88) and the absolute effect of 6.16 s demonstrates that it is critical to note that just because there is a level of statistical significance to something in DevSecOps assessment, it does not necessarily translate to practical significance. A finding may be very significantly reliable from a statistician perspective but have very little material effect from a practical perspective.
5.3. Security Aspect
The reliability of the fail-safe mechanism to activate in all test situations at 100% shows excellent ability to ensure code vulnerability prevention from reaching the production environment [
21]. The full activation rate in controlled testing environment situations provides very compelling verification of correct fulfillment of primary security enforcement goals by the pipeline. The reproducibility of results from diversified vulnerability types and numbers strengthens pipeline implementation quality.
The average time for vulnerability detection of 0.56–0.58 s from the time of security stage initiation shows how efficiently the PHP Security Scanner performs. Quick feedback to developers helps them grasp security issues based on new changes applied to their code to ensure guaranteed solutions. The advantage in time efficiency compared to human security audit processes (measured in hours/days to mere seconds) signifies revolutionary performance in security feedback.
The detailed vulnerability reporting regarding file paths, line numbers, types of vulnerability, and specific actions to take to remediate these issues helps to promote the “shift left” security concept by allowing self-service of security issues to be accomplished by the development community. Rather than security specialists needing to be involved to remediate all issues identified by analyses, many issues can be remediated by the development community based on detailed information presented.
Nevertheless, to appreciate the 100% detection rate result, it should be considered from the perspective of the experiment’s ability to effectively represent common vulnerability types in such a way that it limits their complexity level. More complex scenarios involving vulnerability obfuscation methods to target subtle functionality misunderstandings and less common attacker paths may be missed even by the State-of-the-Art SAST suite used in this research. The result of this perfect detection rate must not be misconstrued to represent comprehensive security; it only represents effectiveness in common vulnerability models.
The correct cleanup of the infrastructure after the activation of the fail-safe shows the level of operational maturity that sometimes is not considered in research and academia. The pipeline failures that result in orphaned infrastructure generate unnecessary cost and resource wastage. The Terraform destroy steps performed in Jenkins post-build workflows ensure failed builds do not introduce technical debt and reflect production-grade implementation quality.
5.4. Security Detection Accuracy Analysis
The fact that the vulnerability scan performed was broad and covered by a variety of security categories shows the high value added by the SAST toolset used. Its effectiveness in spotting potential risks related to remote code execution, SQL injections, cross-site scripting, exposure of sensitive information, and lack of proper security setup is a clear indicator that the tool setup is aimed at the most vulnerable categories covered in the OWASP Top 10 related to PHP applications.
A false-positive rate of 10% to 15% is deemed a fair trade-off for the purposes of security analysis within the developer stage of the SDLC. Though false positives incur an investigation cost on the developer community, this value is well within the acceptable thresholds defined by industry standards for SAST scans. The conservative detection strategy will fit within the concept of shift-left security because it emphasizes the detection of potential risks over those risks ultimately being left in the environment.
It is up to the organizations implementing this tool stack to create specific procedures concerning the prioritization of warnings related to security concerns in order to reduce the problem of warning fatigue. The specific example of a false positive concerning a hardcoded password is an example of the need for contextual evaluations. It is indeed true that a line of code containing the setting of a password, similar to “$password = ‘SuperSecret123!’” is a potential problem concerning protections, but it is acceptable in comments within example code projects.
The dominance of PHP Security Scanner tools in vulnerability scans indicates areas where optimization of the toolset is required. Scanners with few exclusive detections may be considered for removal from the toolset to optimize the process flow without hampering the security-scan capabilities of the toolset. However, firms must ascertain whether tools deemed redundant add value in terms of increased confidence levels regarding vulnerability detections. When the tools in a group of tools point toward the same vulnerability, they enhance the confidence level in the vulnerability’s existence rather than decreasing the scan times.
The degree of code analysis performed in under one second lends strong support for the concept of shift-left security because it makes its full execution possible. In effect, a positive response regarding code security is given to the developer in a matter of seconds after committing the code rather than after a period of days or weeks during a follow-up security audit. The ability for the scanner to provide specific and detailed remediation advice is an important factor for implementing DevSecOps successfully. A generic message including “security issue detected” without providing specific details is bound to involve a skilled security professional, leading to bottlenecks, and thus defeating the purpose of a shift-left strategy. This is because a detailed message including “Possible SQL Injection query built by string concatenation” with specific line numbers helps the developer understand and take corrective actions without involving skilled security professionals.
5.5. Cost–Benefit Evaluation
A cost of infrastructure of $0.0047 for each execution of the pipelines, with estimated costs of annual execution being $24.80, is an indicator of a very cost-effective strategy for security validation. This fact alone is an indicator of a huge cost saving of approximately 127,000 times what would be required in a manual process of security validation. Even with the need for historical testing and security reviews in a manual process, the costs would be orders-of-magnitude smaller than those of a totally manual process for security validation.
The potential indirect cost benefits of vulnerability discovery may be orders of magnitude larger than the direct cost benefits related to infrastructure-protection costs. Based on an estimated annual cost savings of $25,000–50,000 derived from the prevention of five production security incidents, the cost of investment is approximately 1000–2000 times the cost of infrastructure of $24.80 per year. This is a conservative estimate because it does not take into consideration other costs related to a production security incident, including reputation loss, customer-notification needs, and so on.
Productivity gains for the developer save about $880,000 per year, which is the greatest economic value derived from the elimination of the need for a manual security review process. While the cost-savings analysis makes numerous estimated assumptions about the requirements of a manual security review process, even a conservative estimate of 30 min for a commit saves the organization.
However, the cost of implementation needs to be taken into consideration by organizations, in addition to the cost of infrastructure, in a full-fledged cost–benefit analysis exercise. This is because the total amount of initial investment required is approximately 200–300 h, which includes spending on Terraform infrastructure setup (approximately 40–60 h), setting up and incorporating with Jenkins (approximately 60–80 h), incorporating SAST tools and testing of the same (approximately 80–120 h), and documentation and training exercises (approximately 20–40 h). With a fully loaded cost of $100 an hour, the total cost of setup would be in the range of $20,000–$30,000.
A continuous process of maintaining the tool will involve updating the tools every quarter, and this will take an estimated 4–8 h per quarter. There will be a need to tune the configuration according to false positives, and this will take 2–4 h per month. There will be a need for infrastructure updates, which will take 4–8 h quarterly. Developer training will take 4 h per new employee. A five-year full cost–benefit analysis shows a strong return on investment. A 5-year ROI analysis considers an ongoing maintenance effort of 48 h per year (4 h/month). This bandwidth is dedicated to tuning SAST rules to reduce false positives and updating Terraform providers. Despite these recurring efforts, the automation remains 98% more cost-effective than periodic manual security assessments over the same period.
5.6. Comparison with Existing DevSecOps Frameworks
The empirical results greatly correspond with established DevSecOps benchmark frameworks, most notably with the Framework of Business Index Concerning Security (FOBICS) proposed by Caniglia et al. [
12] in 2025. The Performance Security Index succeeds due to information about execution times (average 122 s) and cost-effectiveness (
$0.0047), proving, in effect, that an increase in security is not a roadblock in terms of performance. The Security Coverage Index is validated given the deployment of SAST tools related to remote code execution, SQL injection, cross-site scripting, exposure of sensitive data, and weak security installations, which correspond with the most pressing vulnerability types involving PHP applications.
The Early Security Index reflects a successful execution of the shift-left strategy with a seamless integration of security within a few seconds of code commit phases of the development life cycle. The average time taken to identify first vulnerability (0.56–0.58 s) and total pipeline runtime of 122 s positions the security validation stage at the earliest technically viable stage of the development life cycle, making the shift-left concept a reality rather than just a theoretical one.
However, some areas of the FOBICS categories, about the present implementation, show some weaknesses. The area of the Training Security Index is not entirely taken care of by the automated process, which means that additional organization-driven actions with regard to both security training and awareness need to be taken. Even if the process provides a remediation strategy with a level of detail that indirectly teaches developers about security aspects, the need for structured security training is definitely an organizational issue, rather than an area within the scope of the process itself.
The Collaboration DevSec Index includes a level of observation concerning teamwork and communication styles, going beyond pure process aspects.
The Robustness Index, an indicator of tool evolution throughout the project’s life cycle, is not captured within the scope of the present evaluation period. Although the pipeline shows stable performance throughout the experiment period, the characteristics of stability over longer periods require observation of update rates, breaking changes in tool APIs, and config drift over a period of a few years in an organization’s deployment.
Comparison with general DevOps performance data from Amaro et al. [
10] shows that the proxy pipeline is tackling many of the existing DevOps issues. This is because the deployment frequency is restricted only by the change management within the organization and takes only 122 s for execution, so deployment can be done within an hour if needed. But the lead time for changes is always predictable in 2 min increments from the stage of commits to deployment readiness, which helps in proper release planning. The failure rate of changes related to security vulnerability is close to zero due to full SAST checks and 100% fail-safe activation, but other failure types can occur. The MSD areas detected by the study carried out by Zhao et al. [
1] reveal potential areas for exploration by future work. Toward this objective, the current work will be restricted mostly within technical aspects related to performance and DevSecOps metrics related to execution times, resource consumption, cost of execution, vulnerability rates, and fail-safe reliability. There is negligible discussion about the dimensions related to organizations, humans, and culture, which is already a limitation accepted by many researchers. A DevSecOps assessment needs a multidimensional study within the key areas of effectiveness, readiness, collaboration, and cultural aspects related to DevSecOps adoption by organizations.
5.7. Practical Implementation Recommendations
On the basis of empirical evidence, there are a number of recommendations for organizations considering implementing a proxy pipeline. Organizations should design for immediate pipeline robustness rather than waiting for performance improvement in early runs. The value of 1.38% for the CoV in the initial realization tends to verify that Infrastructure Code abandons any need for warming-up phases before deployment in production if infrastructure code passes verification tests successfully.
Second, processes need to be set up for triaging security warnings before deploying the pipeline. The reported false-positive rate of 10 to 15% requires system-level analysis to identify true vulnerabilities and acceptable patterns of code to prevent false positives. Suggestions for improvement would involve appointing security champions for triaging purposes among development teams to offer expert insights into specific code patterns perceived as false positives, and regular reviews of tool setup to lower continuously recurring false positives when using security tools. Ignoring false positives can cause developers to lose focus on security alerts with time, rendering pipelines useless in their original purpose; that is, ensuring code security. In small development teams, the “Security Champion” role is typically assumed by a Lead Developer rather than a new hire. This individual dedicates approximately 10% of their bandwidth to triaging security reports and advocating for “secure-by-design” practices, ensuring that the proxy pipeline results are integrated into the daily development workflow.
Thirdly, it is important for organizations to adopt pipeline prioritization techniques regardless of team sizes to achieve optimal resource allocation. While the overhead cost of concurrent processing of 5.04% still remains low with three developers running together, a simple form of prioritization helps avoid resource conflicts when there is occasional surge activity. The solution would mean reserving immediate processing for critical branches (main, release, and hotfix), setting up queues with a maximum persistence of 5 to 10 min for feature branches when more developers are active simultaneously, and ensuring developers get adequate feedback on their position within the queues.
Fourthly, efforts need to be put into complementary security efforts other than those found in SAST-based proxy pipelines. The witnessed 100% fail-safe activation rate at carefully controlled test environments cannot create complacency about overall security assurance. Suggested complementary security efforts would entail Dynamic Application Security Tests at production-like environments for scanning runtime-level vulnerabilities; bi-yearly penetration tests at production environments with security experts to evaluate intricate attack paths; code-level security reviews related to authentication, authorization, and cryptography best practices; and security-awareness training programs targeting awareness creation at developer teams.
Fifthly, it is important to keep track of pipeline metrics with the intention of detecting trends that would require scaling or optimizations for infrastructure growth. Some of these tasks to keep track of would include mean execution time with notifications for persistent growth above 10%, evaluation of the 95th percentile of execution times for occasional inconsistencies in times, tracking overheads of concurrent execution times for scaling plans, and evaluation of false-positive rates for optimal tuning of tools.
Sixthly, there should be investment in educating developers about what pipelines can and cannot do. Developers need to know that just because pipelines run successfully, it does not mean that the code is production-ready; also, just because security validation passes does not mean that all vulnerabilities are checked, and that while pipelines can efficiently cover popular vulnerabilities, human security checks are really required.
5.8. Study Limitations
Many limitations exist, and they are related to areas for future study. Firstly, this evaluation was only done on PHP-based applications using a particular set of technologies: CentOS 7, PHP 7.0, MySQL databases, Nginx servers, and related tools. Directly applying these findings to other programming languages like Java, Python, JavaScript, or compiled languages would need verification. However, the concepts of implementing program-level proxies using pipeline architecture and infrastructure-as-code approaches and integrating SAST tools would easily apply to other sets of technologies with appropriate substitutions based on specific programming languages used.
These experimental scenarios were set up under carefully controlled circumstances with infrastructure cycled for every experiment. There would be integration of existing code, management of dependencies, skill differences among developers, and so on introduced into production scenarios that would increase technical debt with time. Although such experiments could isolate characteristics of pipeline speed, they would not necessarily reflect production scenarios with complexities introduced with time. Cross-sectional studies would demonstrate production-level characteristics over periods of extended development cycles.
Because of the vulnerability injection method employed to judge the effectiveness of security detection, more complex vulnerabilities with hidden semantic errors or obfuscation techniques would potentially go undetected using State-of-the-Art SAST solutions. The finding of 100% fail-safe activation rate should not be taken to imply perfect coverage of security features but rather with this specific set of vulnerabilities that were injected into it. Future research efforts would benefit greatly from testing these security features with more comprehensive vulnerability databases, like OWASP Benchmark, or real-world vulnerability databases.
Technical pipeline functionality was assessed without considering more organizational and cultural considerations related to adoption and success. Developers’ satisfaction with pipeline functionality related to their workflows, satisfaction with security team collaboration patterns, organizational processes for change management, or their organization’s general readiness for the cultural shift required by DevSecOps can greatly impact real-world success beyond pure technical capabilities. Qualitative research techniques like semi-structured interviews with developers and security engineers, team satisfaction and security awareness studies using online or offline questionnaires, ethnographic studies of developer workflows, or organizational case studies could enrich research with human insights.
The cost analysis was focused on the infrastructure costs of AWS and assumed savings in developer time and not taken into account other expenses related to cost of ownership. These unaccounted expenses would relate to opportunity costs incurred because of pipeline delays caused by unsuccessful builds, analysis times related to false positives within development teams, expenditures related to security incidents occurring undetected because of SAST tools, and costs related to tooling subscriptions and upgrades over multi-year engagements. There would be cost of ownership if measured over multi-year engagement periods.
The test with three developers performing concurrent compilation and program execution comes under small-team scenarios, which cannot necessarily apply at an organization level with more than three developers. Although there is an indication of possible scaling with an overhead of 5.04%, run-time scaling with more developers, like ten developers, twenty developers, or fifty developers, cannot yet be confirmed directly because resource competition patterns could demonstrate non-linear scaling at larger scales. While the pipeline scales effectively for three concurrent developers, these results serve as a preliminary baseline. Future studies should evaluate resource contention in larger organizational settings.
While evaluation timeframes of several weeks capture shorter-term behavior of Security Performance Characteristics (SPCs) well but not their longer-term developments, pipeline performances could degrade with code bases’ increase and breaking changes brought about by updates of dependencies because of tooling misconfigurations and infrastructure aging. Long-term studies of multiple years would provide valuable insights into SPCs’ attainability of stability and evolution patterns directly useful for total cost of ownership analysis.
The findings of this empirical evaluation are specific to the PHP ecosystem. The observed false-positive rate of 10–15% is consistent with industry benchmarks for SAST tools [
20]. While the proxy logic is language-agnostic, the detection rules are currently optimized for PHP-based multi-tier architectures [
20].
A 10–15% false-positive rate is consistent with high-sensitivity SAST tools. To manage alert fatigue, we suggest a triage process where developers focus on “high” severity alerts first, as recommended in empirical security studies [
20].
5.9. Generalizability and Transferability
Although inherent limitations exist within this study, there are several findings supporting generalization beyond this experimental setup. The primary assumption that benefits in cost savings exist when automating security testing compared with manual processes, with cost savings measured at several orders of magnitude, holds true independent of specific technologies and environments. Although specific multipliers differ according to labor and infrastructure costs, basic economic principles under which automating offers value apply universally.
The finding that pipelining with multiple concurrent processes entails a moderate level of performance overhead scaling directly with concurrency can easily be extended to other implementations of CI/CD with resource sharing for computation. The specific value of 5.04% with three concurrent processes considers resource allocation specific to this implementation; however, it can reliably be expected that similar scaling trends would exist when implementing different architectures with sufficient resource allocation.
The result that security detection accuracy necessarily entails trade-offs between true positives and false positives applies universally to security testing tools that can be automated. It becomes necessary for an organization to gauge the sensitivity of even different security tools depending on risk tolerance and investigation ability. The concept of the detection paradigm that favors security over accuracy becomes an important strategic aspect applicable to different SAST tools.
The concept of defense in depth, which implies more than one complementary measure for security, applies not only to SAST-based pipelines but to overall security programs, too. No security solution can offer foolproof security; therefore, holistic security plans need to combine Static Analysis, Dynamic Testing, Manual Code Checks, Penetration Tests, and Security Training. It can be applied regardless of specific technologies used for implementation.
The infrastructure-as-code model, which allows for reproducible and reliable infrastructure creation, can now be applied more broadly to other types of cloud infrastructures like Azure or Google Cloud Platform infrastructure, or even to traditional infrastructure with tools like Ansible. The advantages of automating infrastructure management, irrespective of technologies chosen, were always independent of those technologies.
It would be easy to adapt these patterns to different technology stacks because tools can easily be replaced systematically. For Java-based applications, replace PHP tools with SpotBugs, PMD, Find Security Bugs, and OWASP Dependency Check. For applications using Python, Bandit, Pylint, Safety, and Semgrep can replace PHP tools. For applications using JavaScript code, tools like ESLint with security plugins, npm audit, and Snyk can replace PHP tools easily because six-step pipeline architecture designs, safety features, and infrastructure-as-code concepts can easily be applied. The research design wherein efficiency measurement, scalability analysis, fail-safe checks, and accuracy of failure identification can be included offers a template that can be replicated regardless of different implementations of DevSecOps processes. These can be applied to different processes with adjustment of parameters like the number of iterations or the number of concurrent processes depending on different scenarios.