Why AI coding makes zero trust an AppSec requirement
Spectra Assure Free Trial
Get your 14-day free trial of Spectra Assure for Software Supply Chain Security
Get Free TrialMore about Spectra Assure Free TrialFeeling comfortable about the safety of your software supply chain because your organization has invested in SBOMs, signing, and provenance? You shouldnât.
In the AI coding era, those tenets of the traditional trust model arenât enough to ensure software safety. Thatâs because that model fails to answer an important security question: What is the code capable of doing?
CodeHunter CEO Ken Ammon, writing for Help Net Security, summarized the trust vacuum.
â[T]raditional trust models are insufficient when AI generates, modifies and deploys code faster than human review can keep up. We can no longer trust software based primarily on what it is, where it came from or whether it resembles something seen before.â
âKen Ammon
Brett Smith, a software developer at SAS, said trusted sources, signatures, SBOMs, and provenance prove identity and origin, but they donât prove intent or safety.
âA binary can be signed by a trusted vendor and have a perfect provenance chain and yet still be malicious if the build pipeline was compromised or contains a zero-day vulnerability.â
âBrett Smith
Hereâs why zero trust is now essential to application security (AppSec).
[ Join webinar: Independently Verified SBOMs: Why Trust Is No Longer Enough ]
SBOMs, signing, and provenance answer important questions, but AI coding brings new questions that they donât address, said Jeff Williams, CTO and co-founder of Contrast Security and founder of OWASP.
âAn SBOM tells you what components are present. A signature establishes who signed an artifact and whether it was modified. Provenance tells you where it came from and how it was built. None of that tells you whether the developer made a mistake, whether a trusted contributor or build environment was compromised, or whether the software will behave dangerously in your environment.â
âJeff Williams
We need to recognize that dangerous code can have a perfectly documented chain of custody. âThis becomes even more obvious with agentic systems,â Williams said. âThe same legitimate model, tools, and components can produce safe or dangerous behavior depending on the goal, context, data, and sequence of decisions made at runtime.â
âAuthenticity is useful evidence, but it isnât proof of safety.â
âJeff Williams
You need to know more than just whatâs inside the software; you need to understand what the software does or has the potential to do, said Denis Calderone, a principal and CTO of Suzu Labs. âThe Axios attacker never modified a single line of library code. The SBOM was clean. The package was signed. The provenance was legitimate. And it still dropped a [remote-access Trojan] on every machine that pulled it,â he said.
âAn SBOM is an ingredient list, not a safety test.â
âDenis Calderone
Jasmine Noel, Senior Product Marketing Manager at ReversingLabs, said applications and their dependencies often start multiple background processes to function properly â but there are hidden capabilities that can pass through.
âThe problem with that is those same background processes can mask hidden capabilities designed by malicious actors to activate only under specific circumstances, increasing the difficulty for routine code reviews â even with AI assistance â to determine when software is doing something it is not supposed to do.â
âJasmine Noel
Another challenge is that software (along with its hundreds of dependencies) will exhibit thousands of behaviors. So accurate behavior identification is only the first step. "Intelligence on malicious behaviors, behavior prevalence, toxic combinations of changes, and tracking behavior changes across versions are also crucial solution capabilities," Noel said.
CodeHunterâs Ammon wrote in his article that behavioral verification has to be added to software supply chain security controls. âA stronger model evaluates behavior before execution wherever possible, especially for high-risk artifacts such as third-party packages, installers, scripts, containers, CI/CD outputs and AI-generated code,â he wrote.
We have learned not to place implicit trust in networks, devices, and identities, Ammon said, and that same zero-trust approach now applies to software execution. âNo artifact should be trusted solely because of its origin, signature, or reputation,â he said.
âTrust is not inherited from supply chain evidence alone. Those controls remain foundational, but they do not answer the final execution question.â
âKen Ammon
Zero trust forces the authorization question, Suzu Labsâ Calderone said. âRight now, if code comes from a trusted source and passes a signature check, it runs,â he said. âZero trust for code means thatâs not enough.â
âYou evaluate what the code actually does â does it escalate privileges, does it make unexpected network calls, does it touch credentials? â and you make it then allow it to make decisions based on behavior, not just origin.â
âDenis Calderone
SASâs Smith said that applying zero trust to code execution makes software safer by shifting the security focus from âwho the software isâ to âwhat the software does.â
âBy replacing âtrust by identityâ with âverification by behavior,â we can better ensure that no process is granted implicit trust. Enforcing a least-privilege model on what a process can do helps block malicious actions regardless of where the software came from.â
âBrett Smith
When you stop trusting signatures and provenance, you eliminate the VIP pass that attackers exploit in supply chain attacks, Smith added.
He recommends that CISOs stop treating digital signatures as safety guarantees and move toward a binary authorization policy. The strategic goal is to shift KPIs from âHow fast can we detect a breach?â to âHow many unauthorized execution attempts did we prevent?â he said.
The idea of applying zero trust to code is interesting but not new, said Brian Jack, CISO of KnowBe4.
âPutting friction in place and requesting the user approve whatâs happening has been around a long time and, if done well, can be a great security control enhancement.â
âBrian Jack
However, Jack noted, if done poorly, it will frustrate users with too many prompts for approval that could put the user into a default click-approve mode. âThe other concern is [that] by offloading some of the responsibility to the user, how can you be sure that every user is operating off of the same baseline knowledge of what the software should and shouldnât do?â he said.
Contrast Securityâs Williams said zero trust for code is a sound principle, but it has had mixed results in the versions of it that have been tried over the years: the Java sandbox, SELinux, compartmented mode workstations, and others.
âTheyâve struggled because the policies are cumbersome, difficult to maintain, and prone to breaking legitimate software. Developers need to do inherently dangerous things â access private data, modify databases, create files, launch processes, and open network connections. When security controls prevent legitimate work, theyâre usually weakened or disabled.â
âJeff Williams
A noted exception to that rule is mobile, where Apple and Google control the operating systems, app stores, and distribution model and are able to make permissions mandatory. âThat kind of leverage doesnât exist across software generally,â Williams said.
Agentic AI could make traditional permission models nearly intractable, Williams added.
âEveryone is talking about guardrails, but an agent may legitimately need to read data, write code, call APIs, send messages, execute commands, and take actions across many systems. When the potential range of behavior is almost everything, expressing everything that should be allowed and disallowed in advance becomes impossible.â
âJeff Williams
Williams prescribed a layered strategy:
ReversingLabsâ Noel said one of the big misconceptions folks have is that the code has to be running for behavioral analysis to happen, making it a slow and arduous process.
âAnalyzing a software binary can deliver a comprehensive SBOM, evaluate the behaviors of each embedded artifact (even images and files that are not supposed to have behaviors), and perform threat detection in a single pass that is much faster and more rigorous than traditional dynamic analysis.â
âJasmine Noel
Gartner noted the blind spots with traditional AppSec in a recent report, "The Gartner CISO Playbook for Commercial Software Security." Alternatively, modern strategies should be based on software supply chain security tooling that evaluates âboth the software components and the security of the development practices followed to create it,â the report notes.
To carry this out, Gartner identifies required security controls and processes for effectively managing commercial software risk:
The above security measures should provide the risk scoring CISOs need âto inform procurement decisions and determine appropriate implementation controls,â Gartner noted in its report.
How it works
Once you click Generate, Ollama reads this article and crafts 5 comprehension questions. Your answers are graded against the article content â general knowledge won't be enough. Score 70+ to count toward your certificate.
Questions are cached â you'll always get the same 5 for this article.