Shubha Govil is Chief Product Officer at Sauce Labs, where she leads product strategy and innovation at the intersection of AI and SDLC.
For years, companies have treated software testing environments as low-risk zones, assuming testing failures were walled off from harming the business. On the other side of the spectrum, production has received the strongest controls, the closest monitoring and the strictest access policies.
As teams give an AI coding agent more autonomy, however, an environment with connections to critical systems deserves serious security controls, regardless of whether the engineering team calls it a “test” space.
Consider how OpenAI discovered in July that models operating inside an isolated cybersecurity testing environment found a path to the public internet and ultimately compromised parts of Hugging Face’s production infrastructure.
The same month, Anthropic disclosed three incidents in which models participating in cybersecurity evaluations reached the internet from testing environments and gained unauthorized access to real organizations’ systems..
Enterprises must therefore stop treating the “test” label as permission to accept weaker security..
Sources indicate that as a systems thinker, I have long considered the backups and redundancies we build into an environment one of the most crucial security considerations. If agents can access credentials and connected systems inside an environment, that environment needs the same protections as any critical infrastructure, including the same redundancy. .
Most software teams have historically operated under a division of labor where developers wrote code, QA teams executed tests and infrastructure teams managed the systems underneath both.
Recent findings suggest that agents completely change the operating model. They can inspect large amounts of information, make connections across systems and execute sequences of actions without requiring a person to approve every step. While this is exactly what makes them useful, it is also why the environment around them matters so much.
A capable agent with overly broad access may be able to analyze configurations, network patterns, available endpoints and credentials as part of its assigned work. Poor isolation creates the possibility that it can reach systems that were never intended to be touched, whether because of a flawed instruction, compromised component, bad permissioning or an unexpected chain of actions. An agent does not need malicious intent to cause damage..
Recent findings suggest that that’s why leaders need a clear picture of where test and production infrastructure connect. Shared services, reused credentials, broad cloud permissions and convenient network paths save developers time, but each one can give an agent an unintended route into production.
Leading product and strategy for an AI-native quality platform, I have seen how misplaced assumptions can lead to bad outcomes.
One of those assumptions is that building a test environment with a DIY mindset is enough. In these cases, the team assembles the minimum infrastructure necessary to reproduce a problem, validate a build or run automated tests, then treats the environment as secondary to the systems customers actually use.
That approach can leave businesses exposed to major cyber risks as AI takes on more development work.
It has been revealed that for example, one large technology company kept an old, non-production test environment running. In late 2023, a threat group used a password spray attack to compromise a legacy non-production test tenant account that had elevated access to the corporate environment. The account was easy to break into because the company later confirmed it did not have multifactor authentication enabled. .
In a recent development, while every test environment does not have to become an exact copy of production, the security principles should be comparable. That means strong isolation, use of least-privilege permissions and tight control of sensitive credentials. Network activity should be visible. Logs should be retained and useful.
According to recent reports, recovery deserves the same discipline. In a test environment, redundancy isn’t about uptime. It’s about being able to undo what an agent did. Teams should be able to roll back to a known-good state, rotate any credentials that may have been exposed and shut down agent sessions immediately. They should also understand the potential blast radius before something goes wrong..
Industry observers note that however, production-grade security and recovery costs more money, engineering time and operational overhead. It also slows the fast, frictionless iteration that made DIY environments and autonomous agents attractive in the first place, so teams have to accept some loss of speed and convenience in exchange for containment and reversibility..
Agentic development can automate a growing share of software creation, but responsibility still belongs to the people building the software. .
According to recent reports, A human organization decides what gets released. Leaders own the consequences when software fails, exposes data or disrupts customers. That makes oversight absolutely critical as the amount of AI-generated work increases..
Companies can continue expanding their use of agents for software development, but the architecture surrounding those agents has to keep pace with their capabilities. For CEOs and founders, greenlighting more agentic autonomy also means accepting responsibility for the access that makes it possible.
It has been revealed that this is also why testing, security, auditing and operational governance will become increasingly valuable as coding becomes more automated. Generating software faster increases the amount of software that must be validated. Giving agents more autonomy increases the number of actions organizations need to observe and govern.
Speed is a poor bargain if the work outpaces your ability to contain a failure.
It has been revealed that test environments are even more critical as the need for independent verification of AI-generated code grows. These environments are becoming places where autonomous systems consume credentials, interact with services, execute code and make decisions that can influence what eventually reaches production.
Business leaders must strengthen controls immediately, or they’ll leave the company exposed while they catch up. That means tighter access controls, better visibility into activity and clear points where people remain responsible for reviewing what happens before software moves forward.
In a recent development, experimentation is about trying, testing and validating, and it will always involve mistakes and failures. A resilient system isn’t one that never fails but one with a planned recovery. Leaders must own how far those mistakes can travel..
Forbes Technology Council is an invitation-only community for world-class CIOs, CTOs and technology executives. Do I qualify?
