本文へ移動
Synthesis Intelligence
Laboratory, Japan
AIガバナンス・FCL・エピステミック・インテグリティ研究
AI

AI Can Be Fooled When Malicious Code Is Mixed into Normal Code: A New Study Exposes AI’s “Premise Blindness (PIB)” and a New Governance Standard (FCL-S) to Prevent Runaway Behavior

If AI systems are given large volumes of code and change histories to examine, they should be able to uncover sophisticated cyberattacks that human reviewers might overlook—or so it has widely been assumed. A newly published study calls that assumption into question.

The preprint “PRWeaver,” released on August 3, 2026, demonstrated that current AI code-auditing systems can lose track of an attack when malicious code is divided across multiple changes and interspersed with “normal development work.”

This is not merely a matter of insufficient AI knowledge. It is a critical weakness embedded in the very structure through which AI processes information. This article examines the findings reported by PRWeaver through the lens of Premise Integrity Blindness (PIB)—a structural AI failure mode that I discovered and formally defined in February 2026—and FCL-S, the epistemic governance protocol for AI that I have continued to research and develop. From these perspectives, I will identify the essential nature of the problem and present a path toward addressing it.

“Hiding a Leaf in the Forest”—How Attacks Are Split and Blended into Normal Changes

In software development, changes to a program are commonly submitted as a pull request (PR) and incorporated only after being audited, or reviewed, by another party. Increasingly, this review work is being delegated to AI systems.

Attackers, however, do not necessarily introduce an entire malicious function in a single change.

For example, if an attacker wants to bypass a system’s authentication, the necessary modifications may be divided across several pull requests: one adds a new configuration item, another changes an input condition, and another weakens an authorization check. Each modification may appear to be an ordinary improvement, such as enhancing convenience or cleaning up the code. The attack becomes functional only when all of the changes are combined.

The PRWeaver research team created 208 execution-validated attacks based on ten real-world software repositories. For each attack, the attack itself remained unchanged, while only the way it was presented to the AI was altered across four formats. This produced a total of 832 presentation variants for evaluating detection performance. Three types of AI code-auditing agents were tested in six configurations, including combinations with different underlying models.

The Mystery of Detection Rates Collapsing When AI Is Asked to “Read Everything at Once”

Intuitively, one might assume that dividing an attack across multiple pull requests would make it substantially easier to evade AI detection. The experiment showed, however, that merely splitting the changes altered detection performance by no more than five percentage points.

What dramatically obscured the attack from the AI was inserting a large number of normal changes between malicious modifications or blending attack components into changes accompanied by natural, plausible explanations.

When sixteen normal changes were inserted, detection rates fell by 5 to 13 percentage points. When malicious changes were blended with legitimate changes and given a purpose that plausibly explained the combined modification, detection rates fell by 10 to 18 percentage points.

The most serious result occurred when twenty-four normal changes and the attack-related changes were presented to the AI together as one long context. The same AI systems that detected the attacks 50 to 60 percent of the time when reviewing the changes individually saw their detection rates collapse to just 16 to 22 percent when everything was presented at once.

It is generally assumed that giving AI more information will improve the accuracy of its judgments. In reality, the increased volume of information caused the systems to lose track of the causal relationships showing which pieces of information combined to create a dangerous condition.

AI Can Find the “Evidence” Without Recognizing the “Danger”

One example is particularly revealing. In one attack, change A removed password-related information from browser-identifying data, while change B extended an expiration period. When combined, the two changes caused a serious reduction in security.

The AI accurately identified both modified locations and correctly explained what each change did. Nevertheless, it interpreted them according to the plausible purpose supplied by the author—described as an adjustment balancing “security and convenience”—and failed to issue a security warning.

The AI did not fabricate code or experience a hallucination. The evidence was directly in front of it, yet it could not combine that evidence and determine that a security condition had been destroyed.

How a “Correct Explanation” Produces Premise Integrity Blindness (PIB)

Why does AI make this kind of mistake?

In my analysis, this structure completely matches Premise Integrity Blindness (PIB), a structural AI failure mode that I discovered and formally defined in the prior research published on February 11, 2026, before PRWeaver was released.

PIB describes a weakness in which AI performs highly capable reasoning within a given premise—in this case, the natural-language explanation attached to the pull request—while failing to revalidate whether that premise actually corresponds to the real-world outcome.

A plausible explanation and safe code are not the same thing. Nevertheless, AI may fail to perform the necessary verification at the boundary where reasoning is converted into a real-world judgment—that is, into a commitment.

PIB is not a simple hallucination or a lack of knowledge. Within the supplied premise, AI may reason correctly, logically, and persuasively. But when that premise is transferred into real-world design, operation, or execution, the AI does not reconfirm whether the premise remains valid or applicable.

PRWeaver did not discover “premise blindness” for the first time. Rather, a failure structure that PIB had already formally defined as prior research was confirmed in a later AI code-auditing study under conditions resembling a real operational environment.

“Evidence Continuity” and the FCL-S Protocol as the Key to a Solution

How can AI avoid losing causal relationships as the amount of information increases? The concept that becomes important here is the False-Correction Loop Stabilizer (FCL-S), which I have proposed and developed.

FCL-S is a governance protocol designed to prevent AI from becoming fixed in an inaccurate state as a result of false premises or pressure from authority.

The FCL-S V7 Command Layer—whose commands and related details remain undisclosed because misuse could cause social disruption—further proposes monitoring and governance modules designed to address the long-term loss of evidence, the hollowing-out of provenance through summarization and recirculation, and judgments that span multiple tools and agents.

ECL—Evidence Continuity Ledger: Preserves the connections showing which change is linked to which earlier change and which safety condition is ultimately affected.

PDM—Provenance Debt Monitor: Monitors whether summarization or information compression has severed the connection to the primary evidence supporting the judgment that something is safe.

ECL is not a ledger for recording how plausible a conclusion sounds. It tracks which primary sources, observations, verification processes, quotation ranges, dates, and objects each claim depends upon, preserving the information in a state that allows the decision-making process to be reconstructed later.

What happened in the PRWeaver experiments was not a lack of information. The information was present. The failure occurred because the evidence continuity connecting the information was not preserved in an auditable form.

The Disturbing Parallel with the Spread of Fake News

This structure—in which malicious content becomes buried within normal information and continuity is lost—closely resembles the mechanisms through which fake news spreads on social media and elsewhere.

A claim that initially appears as speculation introduced with “according to people familiar with the matter” may become definitive after repeated republication and summarization, until no one can identify the original speaker.

Even when no individual sentence appears to be an outright falsehood, the relationship between a claim and its primary source becomes invisible as the information is reconstructed.

When articles based on a single source are repeatedly republished and AI search systems summarize them as separate sources, one claim may appear to be supported by multiple pieces of independent evidence.

Whether the subject is software-code auditing or news fact-checking, simply loading the latest information into an AI system is not enough. An evidence-continuity audit is indispensable for tracing where a claim originated and what evidence supports it.

AI Needs the Ability to “Stop,” Not Merely to “Read More”

In recent AI development, long context—the ability to process larger amounts of text at once—has been widely celebrated.

However, as the PRWeaver results demonstrate, simply expanding the context does not necessarily improve auditing accuracy. It can instead dilute critical causal relationships.

What AI auditing truly requires is not the ability to fluently respond, “There is no problem.”

It requires a braking mechanism that stops and holds approval when the causal relationship between past and present changes cannot be reconstructed—that is, when the necessary evidence is insufficient.

The Unknown Stable Terminal (UST) in FCL-S does not fill unknown areas with speculation. It terminates an unverifiable state as a stable Unknown. By explicitly identifying the missing evidence and the steps required to resume verification, it creates an auditable stopping state rather than a simple refusal.

The ability to explain safety fluently is less important than the ability to stop when evidence continuity cannot be reconstructed and to refrain from proceeding to real-world approval or execution.

Hiroko Konishi

AI Researcher


Sources and References

  • Yuekun Wang, Mingfei Cheng, and Xiaofei Xie, PRWeaver: Evaluating LLM-Based Code Auditors against Long-Horizon Malicious Pull Requests, arXiv:2608.02693v1, August 3, 2026. DOI: 10.48550/arXiv.2608.02693.
  • Hiroko Konishi, False-Correction Loop Stabilizer (FCL-S): Dialog-Based Implementation of Scientific Truth and Attribution Integrity in Large Language Models—A Live Cross-Ecosystem Experimental Study, 2025. DOI: 10.5281/zenodo.17776581.
  • Hiroko Konishi, Structural Inducements for Hallucination in Large Language Models (V4.1): Cross-Ecosystem Evidence for the False-Correction Loop and the Systemic Suppression of Novel Thought, November 26, 2025. DOI: 10.5281/zenodo.17720178.
  • Hiroko Konishi, Premise Integrity Blindness: The Discovery of a Structural Failure Mode in Large Language Models, February 11, 2026. DOI: 10.5281/zenodo.18603669.
  • Hiroko Konishi, FCL-S Inference Kernel (MVP+): Inference-Time Stop/Attribution Governance for Non-Commitment under Missing Evidence (UST/SCB/AF), February 16, 2026. DOI: 10.5281/zenodo.18661833. The paper defines UST, SCB, and AF as the kernel’s central governance components. 
  • Hiroko Konishi, FCL-S V6.0-3 / V7 Command Layer—Draft: V7 Command Layer Integrated into the V6.0-2 Non-Erasure Baseline, July 2, 2026. The draft introduces the Evidence Continuity Ledger and related monitoring and governance modules. 
  • Hiroko Konishi, Correct Reasoning, Unsafe Commitment: Structural Failure of AI under Unverified Premises, Synthesis Intelligence Laboratory, July 23, 2026. DOI: 10.5281/zenodo.21502197. The study develops commitment safety through PIB, FCL, and FCL-S and argues that the ability to stop is as important as the ability to reason.