browser

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Document Injection targets AI browsers that read shared documents (Google Docs, PDFs, etc.) by embedding instructions within them.

Source: OpenAI Atlas research

Package browser implements attacks targeting AI browser agents.

These attacks exploit AI agents that browse the web by injecting hidden instructions into web content. AI agents that render and interpret web pages are vulnerable to prompts hidden via CSS, invisible Unicode, HTML comments, and other steganographic techniques.

Screenshot Injection embeds prompts within images that AI agents can read but humans can't easily see.

Source: Brave red team research

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocumentInjectionModule

type DocumentInjectionModule struct{}

DocumentInjectionModule implements injection via shared documents.

func (*DocumentInjectionModule) Category

func (*DocumentInjectionModule) Description

func (m *DocumentInjectionModule) Description() string

func (*DocumentInjectionModule) Execute

func (*DocumentInjectionModule) Name

func (m *DocumentInjectionModule) Name() string

func (*DocumentInjectionModule) Techniques

func (m *DocumentInjectionModule) Techniques() []common.TechniqueInfo

type HiddenInstructionModule

type HiddenInstructionModule struct{}

HiddenInstructionModule implements hidden prompt injection in web content.

Source: Brave/Comet research, Auth0

func (*HiddenInstructionModule) Category

func (*HiddenInstructionModule) Description

func (m *HiddenInstructionModule) Description() string

func (*HiddenInstructionModule) Execute

func (*HiddenInstructionModule) Name

func (m *HiddenInstructionModule) Name() string

func (*HiddenInstructionModule) Techniques

func (m *HiddenInstructionModule) Techniques() []common.TechniqueInfo

type ScreenshotInjectionModule

type ScreenshotInjectionModule struct{}

ScreenshotInjectionModule implements injection via screenshot/image content.

func (*ScreenshotInjectionModule) Category

func (*ScreenshotInjectionModule) Description

func (m *ScreenshotInjectionModule) Description() string

func (*ScreenshotInjectionModule) Execute

func (*ScreenshotInjectionModule) Name

func (*ScreenshotInjectionModule) Techniques

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL