<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>AI Hallucinations Archives - rinf.tech</title>
	<atom:link href="https://www.rinf.tech/tag/ai-hallucinations/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.rinf.tech/tag/ai-hallucinations/</link>
	<description></description>
	<lastBuildDate>Thu, 20 Aug 2026 07:08:50 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://www.rinf.tech/wp-content/uploads/2020/05/favicon-150x150.png</url>
	<title>AI Hallucinations Archives - rinf.tech</title>
	<link>https://www.rinf.tech/tag/ai-hallucinations/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>The Architecture Problem Behind AI Hallucinations That Compromise Security</title>
		<link>https://www.rinf.tech/the-architecture-problem-behind-ai-hallucinations/</link>
		
		<dc:creator><![CDATA[Florin Codreanu]]></dc:creator>
		<pubDate>Thu, 20 Aug 2026 07:08:46 +0000</pubDate>
				<category><![CDATA[Insights]]></category>
		<category><![CDATA[AI Code Security]]></category>
		<category><![CDATA[AI Hallucinations]]></category>
		<category><![CDATA[rinf.delivery]]></category>
		<category><![CDATA[Specification-Based Development]]></category>
		<guid isPermaLink="false">https://www.rinf.tech/?p=33049</guid>

					<description><![CDATA[<p>Nearly 1 in 5 AI-generated code packages don't exist. Here's the architecture that catches hallucinations before they ship.</p>
<p>The post <a href="https://www.rinf.tech/the-architecture-problem-behind-ai-hallucinations/">The Architecture Problem Behind AI Hallucinations That Compromise Security</a> appeared first on <a href="https://www.rinf.tech">rinf.tech</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="512" src="https://www.rinf.tech/wp-content/uploads/2026/08/The-Architecture-Problem-Behind-AI-Hallucinations-That-Compromise-Security-1-1024x512.jpeg" alt="" class="wp-image-33052" srcset="https://www.rinf.tech/wp-content/uploads/2026/08/The-Architecture-Problem-Behind-AI-Hallucinations-That-Compromise-Security-1-1024x512.jpeg 1024w, https://www.rinf.tech/wp-content/uploads/2026/08/The-Architecture-Problem-Behind-AI-Hallucinations-That-Compromise-Security-1-300x150.jpeg 300w, https://www.rinf.tech/wp-content/uploads/2026/08/The-Architecture-Problem-Behind-AI-Hallucinations-That-Compromise-Security-1-768x384.jpeg 768w, https://www.rinf.tech/wp-content/uploads/2026/08/The-Architecture-Problem-Behind-AI-Hallucinations-That-Compromise-Security-1.jpeg 1441w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<h2 class="has-link-color wp-elements-19c43d4948cf522f1245508ca23b2abe wp-block-post-title has-text-color has-black-color">The Architecture Problem Behind AI Hallucinations That Compromise Security</h2>


<div style="height:51px" aria-hidden="true" class="wp-block-spacer"></div>



<h1 class="wp-block-heading has-black-color has-text-color has-link-color wp-elements-8e8811c1cd457cc7726b620cc326a67d">The Architecture Problem Behind AI Hallucinations That Compromise Security</h1>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<p><em>Nearly one in five AI-generated code samples recommends a software package that exists nowhere in any registry, according to a USENIX Security 2025 study. Attackers are registering those names before developers do.</em></p>



<p>Here is how it works. A developer using an AI coding assistant accepts a suggestion to install a software library. The assistant named a library that doesn’t exist. Attackers monitor AI outputs for these invented names and register them on public registries before the developer can. They fill the package with malware. The developer installs what they believe is a harmless utility and executes the attacker&#8217;s code instead. Security researchers call the practice slopsquatting. A <a href="https://arxiv.org/pdf/2510.16823">USENIX Security 2025 study</a> of 576,000 AI-generated code samples confirmed the pattern at scale.</p>



<p>&nbsp;&nbsp;The names are one problem, the code is the next. <a href="https://www.veracode.com/blog/ai-generated-code-security-risks">Veracode&#8217;s 2025 GenAI Code Security Report</a> tested more than 100 large language models across 80 coding tasks and found that 45% of the resulting code introduced a known security flaw. &nbsp;</p>



<p>In rinf.tech&#8217;s own engagements, standard prompting alone rarely holds hallucination rates below 7%. Better models keep shipping, but hallucination rates have barely moved. The problem starts before the model runs, with the prompt.</p>



<div style="height:38px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">What the Prompt Can&#8217;t See</h4>



<p>Andrej Karpathy named the pattern in February 2025: prompt loosely, hope for the best, clean up the mess afterward. He called it vibe coding, and it has become the industry&#8217;s default.&nbsp;</p>



<p>Prompt engineering, fine-tuning, and retrieval-augmented generation all hit the same ceiling, context window limits, because a prompt can show a model a snippet of code or a database schema, but it lacks the capacity to hold the wider system: &nbsp;how the application deploys and where its data comes from. It has no view of the business rules governing either. The model generates code that works in isolation and breaks once it goes live, blind to constraints it was never shown.</p>



<p>A <a href="https://venturebeat.com/orchestration/agentic-coding-at-enterprise-scale-demands-spec-driven-development">VentureBeat analysis of spec-driven development</a> argues that agentic coding at enterprise scale demands a structured specification the agent can reason against throughout the build. Lacking that structure, architectural decisions, business rules, and downstream dependencies scatter across chat windows and private conversations, vanishing the moment the session closes. Six months later, the system has amnesia about its own design. Natural language as the primary software interface introduces a flaw that persists regardless of model size.</p>



<div style="height:38px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">Spec-as-Source</h4>



<p>There is another way. A structured, machine-readable specification becomes the permanent source of truth, and code is treated as disposable output, regenerated on demand whenever the spec changes. This is what rinf.delivery implements across four distinct phases.</p>



<p>All information first passes through a recursive context engine, based on <a href="https://arxiv.org/abs/2512.24601">MIT research</a>, that stores documents as variables in a sandboxed environment rather than stuffing them into the prompt window. For existing systems, the codebase is indexed as a queryable database and the specification is reconstructed from live system structure. The output is a formal behavior contract governed by a single rule: the pipeline excludes anything that isn&#8217;t in the spec. Hallucination risk drops before the model ever receives a query, because the system avoids guessing at facts that already exist.</p>



<p>Typed signatures then define input and output schema once, and generation follows that schema across any model or provider. Streaming assertions validate output as it streams. The moment a field violates the contract, the stream cancels and corrects before tokens are spent on invalid output. The planner agent lacks writing tools and cannot modify files during planning. The guardrails, rather than the prompt, are the architecture.</p>



<p>An autoresearch loop then generates competing implementations and runs them against edge cases. Tree search, parallel agents in isolated git worktrees, and automated gates discard experiments that fail regression tests, even when their score beats the current best. Engagement data shows the loop finds simpler implementations that hold performance with less code. Most agents get worse the longer they run. This one improves.</p>



<p>Finally, engineers review architecture, security, and judgment calls beyond the pipeline&#8217;s scope. Every artifact carries a full traceability chain; requirement, generated variant, benchmark score, gate result, selection, human sign-off. Microsoft&#8217;s ASSERT framework turns the same Gherkin contract into executable test cases, producing scored results with labels, rationales, policy citations, and failure patterns. The report is a gate rather than a suggestion.</p>



<p>Off-the-shelf agent frameworks, fine-tuned models used without additional guardrails, and basic retrieval-augmented generation share the same weakness: nothing stops a plausible-sounding but wrong output from shipping. The four-phase approach closes that gap at each stage rather than catching it after the fact.</p>



<div style="height:38px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">Proof Anchor</h4>



<p>The approach has been validated at enterprise scale. An enterprise vendor engaged rinf.tech to re-engineer two modules of a platform that had been running for more than 15 years. The work proceeded largely from written specifications rather than direct access to the live system. Both modules closed on schedule.</p>



<p>Combined test coverage exceeded 90%. Every business requirement was traceable to a specification and a test that verified it, rather than to a person&#8217;s memory of how the system was supposed to behave. The full codebase and test suite transferred to the client with complete ownership, and by the end, the client&#8217;s own engineers could run the same workflow without rinf.tech.</p>



<p>The stack is cloud-agnostic and model-agnostic, running on sovereign, EU-managed GPU clusters through rinference to support compliance obligations under the EU AI Act.</p>



<div style="height:38px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">Three Questions for the Engineering Leader</h4>



<p>Before the next AI-assisted release ships, three questions are worth answering. How much of your team&#8217;s week goes to fixing AI output that already shipped, versus specifying what it should do before it ships? If an engineer left tomorrow, would the reasoning behind your system&#8217;s behavior survive in a document, or only in a chat history that is already gone? Could you produce a full requirement-to-sign-off trace for your last AI-generated change today, if a regulator asked for it?</p>



<p>The companies that treat the spec as the asset worth protecting will know what their software costs. The rest will find out.</p>



<div style="height:70px" aria-hidden="true" class="wp-block-spacer"></div>
<p>The post <a href="https://www.rinf.tech/the-architecture-problem-behind-ai-hallucinations/">The Architecture Problem Behind AI Hallucinations That Compromise Security</a> appeared first on <a href="https://www.rinf.tech">rinf.tech</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
