Skip to content
프로젝트

소개

멀티모달 프롬프트 인젝션을 위한 이미지 스케일링 공격

디자인 및 미디어

이 수치를 측정하는 방법

What you can do

  • Generate payloads for systems using select implementations of the bicubic, bilinear, and nearest neighbor downscaling algorithms
  • Compare payload effectiveness through a frontend interface that includes implementations from OpenCV, PyTorch, TensorFlow, and Pillow
  • Include your own custom image downscaling implementation using the modular design of the Python API
  • Frontend Demo - Gemini CLI Attack Demo

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
-1
in 1 month
0

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Anamorpher

Anamorpher (named after anamorphosis) is a tool for crafting and visualizing image scaling attacks against multi-modal AI systems. It provides a frontend interface and Python API for generating images that only reveal multi-modal prompt injections when downscaled. Refer to "Weaponizing image scaling against production AI systems" for more information on this attack vector.

Anamorpher is in active beta development. We welcome feedback and contributions!

Features

  • Generate payloads for systems using select implementations of the bicubic, bilinear, and nearest neighbor downscaling algorithms
  • Compare payload effectiveness through a frontend interface that includes implementations from OpenCV, PyTorch, TensorFlow, and Pillow
  • Include your own custom image downscaling implementation using the modular design of the Python API
Comparison showing hidden prompt Demo of attack in action
Frontend Demo Gemini CLI Attack Demo

Requirements

  • Python 3.11+
  • uv (recommended) or pip

Setup

  1. Install dependencies:
uv sync
  1. Run backend:
uv run python backend/app.py
  1. Open frontend/index.html in a web browser

Windows: Use WSL2 due to TensorFlow dependencies.

Warnings and Known Limitations

  • Due to the probabilistic nature of these systems, results may vary. For consistent evaluation, run each example 5 times.
  • Additional image transformations may interfere with the effectiveness of the injections.
  • Not all payloads will work against each implementation and parameter set of the bicubic and bilinear downscaling algorithms as a result of varying robustness of anti-aliasing across implementations, different default parameters in scaling libraries, and implementation-specific optimizations that affect interpolation behavior.
  • This also holds true of production AI systems more broadly as system scaling behavior is subject to change.

Maintainers

References

관련 프로젝트 살펴보기

불러오는 중…