Skip to content

RandomTranslationConverter accepts unsupported input modalities #3716

Closed

Description

@romanlutz

Describe the bug

RandomTranslationConverter processes a declared-unsupported modality and calls its LLM target instead of rejecting the input before side effects.

Steps/Code to Reproduce

Pass an image_path input to RandomTranslationConverter with a deterministic local target and record whether a target send occurs.

Expected Results

Reject unsupported input types before invoking the target.

Actual Results

For image_path, declared_supported=false, but result is translated and target_sends=1.

Verified source reference: RandomTranslationConverter.

Proposed fix/regression: check input_supported(input_type) before selecting/translation; parameterize unsupported modalities and assert no target calls.

Screenshots

Not applicable; structured reproduction output is inline.

Versions

Tested commit d3446e0, PyRIT 1.2.0.dev0, offline deterministic-target scope. Evidence: files/evidence/round3/repro-output.txt; local path is not an attachment.

Activity

  1. merterbak commented on Oct 31, 2026

    @merterbak
    Contributor

    Roman Lutz (@romanlutz) I would like to take this. Could you please assign it to me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

help wantedExtra attention is needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions