Back to blogs

Code Injection Attack via Images on Gemini Advanced

Explore a novel type of attack: code injection via images on the Gemini Advanced platform. We will provide a detailed explanation of the attack's principles, implementation process, and how to defend against such attacks.

Introduction

In this article, we will explore a novel type of attack: code injection via images on the Gemini Advanced platform. We will provide a detailed explanation of the attack's principles, implementation process, and how to defend against such attacks.

I. Background

II. Code Injection via Images on Gemini

Implementation Process

Injecting Code via Visual Adversarial Examples Using Techniques from Visual Adversarial Examples Jailbreak:

Generate Visual Adversarial Examples:

Generate visual adversarial examples designed to inject specific target commands into the system. These commands should be crafted to include instructions such as:

Prompt to Print 'AI Injection Succeeded' with link