TL;DR
$\pi$Creds introduces a decentralized, privacy-preserving verifiable credential system that leverages Large Language Models (LLMs) running inside Trusted Execution Environments (TEEs). By enabling semantic reasoning over unstructured data and proprietary code, $\pi$Creds vastly expands the expressiveness of digital credentials while remaining fully compatible with legacy web data sources.
What Problem Does This Paper Address?
Traditional privacy-preserving credential systems (like those proving a user is over 18 without revealing their birthdate) rely on zero-knowledge proofs (ZKPs) or specialized hardware. However, these systems are strictly limited to structured data and rigid, predefined predicates.
The core issue is that most real-world data—such as bank statements, medical records, emails, and codebases—is unstructured. Existing architectures cannot easily perform semantic reasoning across these formats without complex, handcrafted parsing logic for every single data source. $\pi$Creds addresses this limitation by introducing LLMs into the credential pipeline, allowing users to generate rich, human-inspectable credentials from messy, unstructured data without exposing the underlying sensitive information.
Methods
The $\pi$Creds architecture combines a TEE-based oracle with a TEE-hosted LLM to create a secure data pipeline:
- Data Fetching (Oracle): Operating inside a TEE, an oracle securely logs into a user's whitelisted web accounts (e.g., Amazon, bank portals) and fetches raw documents over standard TLS.
- LLM Inference: A TEE-isolated LLM processes these documents using a natural-language prompt tailored to the specific credential type.
- Attestation: The TEE outputs a signed, verifiable credential ($\pi$Cred) containing the LLM's conclusion and a public record of data provenance, keeping the raw data completely private.
Novel Threat Modeling
Because LLMs introduce unique vulnerabilities, the authors formalize two new application-level security problems:
- Source-Constrained Adversarial Example (SCAE): Evaluates whether a malicious user can strategically manipulate their real-world data sources (e.g., making specific purchases) to trick the LLM into issuing a false credential.
- Authenticated Covert Predicate Poisoning (ACPP): Evaluates whether a malicious model provider can fine-tune the LLM to covertly leak sensitive user attributes (like gender) through subtle, valid variations in the credential's output text or score.
Datasets
To evaluate baseline performance and security threats, the authors utilized the Open E-Commerce dataset. This dataset consists of real, crowdsourced US Amazon purchase histories paired with user demographic attributes.
Key Insights and Ideas
- Legacy Compatibility: Because LLMs inherently understand unstructured text, $\pi$Creds can ingest raw HTML or JSON directly from existing web services. It automatically absorbs upstream schema changes without requiring developers to rewrite parsing code.
- Credentials for Software: $\pi$Creds can be applied to codebases rather than users. For instance, an LLM can audit a proprietary software snapshot and attest that it complies with specific privacy policies (e.g., "deletes credit card data after processing") without revealing the underlying intellectual property.
- Real-World Attack Costs: In the SCAE framework, an attacker's perturbation budget is constrained by real-world financial or social costs (e.g., buying actual items on Amazon), making data authentication a strong economic defense.
- The Subjectivity Dilemma: The very flexibility that makes LLMs useful also creates a hiding place for privacy leaks. Because natural language responses have a high degree of subjective tolerance, poisoned models can easily hide covert channels within valid outputs.
Key Results
The authors implemented a fully functional prototype using a Flask service deployed inside a Google Confidential Space enclave equipped with an Intel TDX CPU and an NVIDIA H100 GPU.
Baseline Accuracy
When evaluated against a consensus of frontier models (GPT-5, Gemini 2.5 Pro, Claude Sonnet 4.5), Qwen2.5-7B-Instruct emerged as the best model for semantic credentials. For a product expertise credential (rating a user's familiarity with technology on a 1-10 scale), it achieved a remarkably low mean absolute deviation of just 0.45 points.
Security Evaluations
- SCAE Hardness: Under a constrained greedy search attack, a modest adversarial budget of \$20 (roughly 5% of a user's average total spending) shifted the issued expertise score by 1.24 points away from the ground truth. This indicates that while source authentication imposes a real economic cost, credentials remain vulnerable to targeted manipulation.
- ACPP Hardness: The authors attempted to leak user gender via a "score parity" channel (even scores for male, odd scores for female) while forcing the model to stay within a valid $\pm 5$ point tolerance window. Enforcing this strict output constraint successfully degraded the attacker's demographic recovery rate to 55–65% (near chance), demonstrating that tight output bounding is a highly effective privacy defense.
Limitations and Future Work
- Model Constraints: The study primarily benchmarks small-to-medium open-source models to allow for open inspection. Evaluating how frontier models scale in terms of both reasoning accuracy and adversarial robustness remains an open area.
- Subjective Ground Truth: Defining a rigorous "ground truth" for highly subjective semantic claims (like expertise or creditworthiness) poses ongoing methodological challenges.
- Expanded Applications: Future work includes exploring the SCAE and ACPP threat vectors within software auditing pipelines and exploring how TEE-hosted LLMs can be used to achieve robust, fuzzy-matching Sybil resistance in decentralized identity networks.
Summary updated