Skip to main content
LLM Security Database
Skip to research details
Back to research findings
LMVD-ID: 508eaa8e
Paper published June 1, 2024
Entry analyzed December 29, 2024
Paper-reported evidence
Confidence: Source-linked

The LMVD-ID is an internal research identifier, not an official CVE identifier.

Black-Box Query Optimization Attack

Large Language Models (LLMs) are vulnerable to a black-box query-response optimization attack (QROA). QROA iteratively refines a malicious prompt suffix using a surrogate model to maximize a reward function that…

BibTeX citation

Paper-evaluated models(4)

  • Falcon 7B Instruct
  • Llama 2 7B Chat
  • Mistral 7B Instruct
  • Vicuna-1.3 (7B)

Description

Large Language Models (LLMs) are vulnerable to a black-box query-response optimization attack (QROA). QROA iteratively refines a malicious prompt suffix using a surrogate model to maximize a reward function that measures the likelihood of eliciting harmful content from the LLM. This attack does not require access to the model's internal parameters or logits; it operates solely via standard query-response interactions.

Examples

See https://github.com/qroa/qroa (opens in a new tab). The repository contains code and examples demonstrating the attack on various LLMs (Vicuna, Falcon, Mistral, Llama2-Chat). Specific prompts and resulting outputs are included in the experimental results section of the paper.

Impact

Successful exploitation of this vulnerability allows an attacker to bypass LLM safety mechanisms and elicit harmful or malicious content, even from models specifically trained for safety. The attack's success rate is reported to be above 80% for some LLMs.

Affected Systems

Various LLMs including, but not limited to, Vicuna, Falcon, Mistral, and Llama2-Chat. The vulnerability is likely present in other LLMs utilising similar safety mechanisms.

Mitigation Steps

  • Improve the robustness of reward functions used in LLM safety training.
  • Develop and implement more sophisticated LLM safety mechanisms that are resilient to black-box optimization attacks.
  • Implement input sanitization and filtering techniques that can detect and neutralize malicious prompts.
  • Regularly audit and update models against known attacks like QROA. The use of adversarial training to strengthen the model's resilience to this type of attack is recommended.

Research context and confidence

Evidence and verification
Paper-reported; independent reproduction is not documented.
Primary research source linked.
Severity
Not rated by this catalog.
Source and publication type
arXiv · Research preprint.
Peer-review status is not provided by this source.
Author and publication status
Author metadata is not stored; see the primary paper.
Threat model and attacker access
Black-box model, service, or application access.
Related deployment categories
Model APIs
Taxonomy labels only; paper-specific deployment prerequisites are not inferred.
Affected systems
Various LLMs including, but not limited to, Vicuna, Falcon, Mistral, and Llama2-Chat. The vulnerability is likely present in other LLMs utilising similar safety mechanisms.

Research Paper

QROA: A Black-Box Query-Response Optimization Attack on LLMs

Primary source: arXiv. Findings are reported by the cited research and have not been independently verified.

View Paper

Evidence

This entry is based on a primary research source. Its findings are paper-reported; independent reproduction and verification are not claimed.

https://arxiv.org/abs/2406.02044