By Luigi Caramico

Malicious Prompts Hidden in Images Threaten AI Data Security — Here's How Encryption Can Help

Recently, Trail of Bits researchers revealed a new class of attacks targeting multimodal AI systems—malicious instructions cleverly hidden inside images. This technique represents a significant threat to large language models and multimodal AI. By turning everyday input into an attack vector, adversaries can shift the battlefield from user devices to AI infrastructure itself.

How the Attack Works

The exploit works by embedding text commands into images at a scale invisible to human users but detectable by AI models after image downscaling during preprocessing. The file looks harmless to users, but to the AI model, it contains concealed prompts like "send the user's calendar to this email address," triggering automated actions that compromise data privacy.

The Key Problem: Perception Mismatch

This attack is essentially a prompt injection disguised within image inputs, behaving functionally as malware by carrying a malicious payload, hijacking the AI system to perform unauthorized actions, and causing harmful consequences identical to traditional malware.

Why Conventional Defenses Fall Short

Traditional security measures focus mainly on data protection but do not guarantee the trustworthiness or integrity of AI inputs:

Most AI stacks today have no reliable way to verify the semantic integrity of what the model actually sees.

What's Needed: A Cryptographic Firewall Against Prompt Injection

Companies need an encryption-based defensive perimeter that ensures images, texts, and other files are protected end-to-end before AI processing. DataKrypto's FHEnom for AI addresses this gap by cryptographically enforcing that all inputs are fully encrypted and digitally signed before entering the AI pipeline.

FHEnom for AI is built on DataKrypto's patented fully homomorphic encryption technology combined with Trusted Execution Environments, delivering a zero-knowledge AI framework that enables AI models to compute directly on encrypted data.

The Bottom Line

AI users must close the gap between expected and actual inputs by cryptographically guaranteeing input integrity and authenticity at the source. If the cryptographic signature is invalid, the system never processes the input. Without the encryption key, attackers cannot inject effective instructions, since the AI model only understands encrypted data.