Large Language Models (LLMs) are revolutionizing software development, from automated code generation to complex bug fixing. However, a recent arXiv paper, published on June 11, 2026, highlights a critical blind spot: the performance of LLMs in the world of security-critical, cryptographic software. The research introduces MPC-Patch-Bench, a new repository-level benchmark that evaluates model capabilities in the domain of Secure Multi-Party Computation (MPC). The results are sobering and raise serious questions about the reliability of automated code repair.
The Root of the Problem: Why Standard Benchmarks Fail
MPC technologies are increasingly deployed for privacy-preserving machine learning, biomedical collaboration, and secure analytics. These systems allow multiple parties to jointly compute on their private data without revealing it to each other. Fixing code bugs within them is an extremely delicate task, as a seemingly harmless change can introduce a catastrophic security vulnerability.
The researchers found that general-purpose code repair benchmarks like SWE-bench are simply unsuitable for evaluating MPC software, due to three structural reasons:
- Infrastructure Dominance: MPC repositories are dominated by generic Python infrastructure rather than cryptographic logic, which skews the focus of the tests.
- Lack of Test Cases: The most high-value, security-critical MPC fixes often lack the standardized tests that rigid automated evaluation pipelines require.
- Insufficient Evaluation: A simple “fail-to-pass” evaluation (where a failing test passes after the patch) is not enough. The code must not only be functionally correct but also cryptographically safe.
From an AIQ standpoint, this problem extends far beyond MPC. For any high-assurance system, functional correctness is merely the tip of the iceberg. Verifying security, reliability, and compliance requires specialized, domain-specific knowledge and tools that general-purpose LLMs and their associated evaluation frameworks currently cannot provide.
MPC-Patch-Bench: A Targeted Benchmark for Security
To address these shortcomings, the researchers created MPC-Patch-Bench, which is built on two innovative frameworks. The first is the Data Curation Framework, which uses a domain-specific curation agent and a human-AI completion engine. This system filters raw pull requests through three cryptographic layers and synthesizes missing problem statements and Fail-to-Pass/Pass-to-Pass tests, yielding 205 fully verified instances.
The second component is the MPC Verifier, which performs the essential security validation. This module provides dedicated security and numerical-fidelity checks, including:
- Dynamic differential testing against plaintext oracles.
- MPC-specific static analysis rules that flag common flaws like unsafe reveals, insecure arithmetic, and illegal public/private casts.
In a corporate context, this means that a similar, multi-layered, automated verification process is essential for LLM-assisted patching of security-critical code. We cannot simply trust the model to “get it right”; every suggestion must be passed through an explicit verifier that understands the specific attack surfaces of the domain.
The Sobering Results: Functional Success Plummets After Security Verification
The most crucial findings of the research lie in the numbers. The strongest evaluated LLM was able to functionally resolve only 22.9% of the tasks in MPC-Patch-Bench. This is not a high success rate to begin with, but the story becomes truly alarming from here.
When these functionally correct patches were run through the MPC Verifier’s security checks, the verified resolution rate dropped to just 17.1%. This means that up to 40% of the functionally passing patches were rejected for cryptographic or numerical-fidelity violations. These are silent vulnerabilities that would go unnoticed by standard unit tests but could lead to severe data breaches in a production environment.
From an AIQ standpoint, these results have direct implications for companies in Hungary and across the EU. Privacy-Enhancing Technologies (PETs) like MPC are key to achieving GDPR compliance. If an MPC implementation “fixed” by an LLM contains a hidden flaw, it is not just a software bug but a potential data breach vector, which could lead to heavy fines. This phenomenon perfectly highlights the risk of LLM09: Overreliance from the OWASP LLM Top 10 list. Developers and decision-makers are prone to trusting model-generated code, especially if it appears to work functionally. This research proves that such trust can be a fatal mistake.
In the context of the EU AI Act, a privacy-critical system maintained by an LLM could easily be classified as high-risk. The regulation imposes strict requirements for the testing, validation, and human oversight of such systems. The use of tools like the MPC Verifier is not just a best practice; it may become a mandatory compliance element in the future.
The key takeaway is clear: LLMs can be incredibly useful assistants, but in security-critical domains, they cannot replace expert oversight and targeted, automated security verification. The gap between “it works” and “it’s secure” is far wider than many assume, and bridging that gap is the core mission of modern AI security auditing and red teaming.