# US 2026/0064827 A1 · Protecting generative ai from malicious sequences of prompts

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0064827 A1
- Document ID: US20260064827A1
- Status: Published application
- Kind: A1
- Application number: 18/821,122
- Filed: 2024-08-30
- Published: 2026-03-05
- Earliest claimed: 2024-08-30
- Assignees: Cisco Technology, Inc.
- Applicants: Cisco Technology, Inc.
- Inventors: Aviva Vaknin; Aviad Rom; Gil Baron; Reem Rotenberg; Mordechay Gold
- Web page: https://patentgrep.com/patent/US20260064827A1

## CPC

- G06F 21/52: during program execution, e.g. stack integrity {; Preventing unwanted data erasure; Buffer overflow}
- G06F 2221/033: Test or assess software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In one implementation, a device identifies a sequence of related prompts for input to a generative model. The device makes individual maliciousness assessments of those prompts in the sequence of related prompts. The device makes a collective maliciousness assessment of the sequence of related prompts. The device prevents at least a portion of the sequence of related prompts from being input to the generative model, when any of the individual maliciousness assessments or the collective maliciousness assessment indicates a malicious request to the generative model.

## Claims

### Claim 1

A method, comprising:
identifying, by a device, a sequence of related prompts for input to a generative model;
making, by the device, individual maliciousness assessments of those prompts in the sequence of related prompts;
making, by the device, a collective maliciousness assessment of the sequence of related prompts; and
preventing, by the device, at least a portion of the sequence of related prompts from being input to the generative model, when any of the individual maliciousness assessments or the collective maliciousness assessment indicates a malicious request to the generative model.

### Claim 2 (depends on 1)

The method as in claim 1, wherein the generative model is a large language model (LLM).

### Claim 3 (depends on 1)

The method as in claim 1, wherein the device identifies the sequence of related prompts based on a unique sequence identifier associated with the sequence of related prompts.

### Claim 4 (depends on 1)

The method as in claim 1, further comprising:
providing, by the device, an indication that the portion of the sequence of related prompts was prevented from being input to the generative model.

### Claim 5 (depends on 1)

The method as in claim 1, wherein the individual maliciousness assessments indicate that those prompts in the sequence of related prompts are individually non-malicious and the collective maliciousness assessment indicates that the sequence of related prompts is malicious.

### Claim 6 (depends on 1)

The method as in claim 1, wherein the sequence of related prompts forms a malicious file or image.

### Claim 7 (depends on 1)

The method as in claim 1, wherein making the collective maliciousness assessment of the sequence of related prompts comprises:
making maliciousness assessments of different subsequences of the sequence of related prompts.

### Claim 8 (depends on 7)

The method as in claim 7, further comprising:
identifying the different subsequences of the sequence of related prompts by traversing a graph that represents the sequence of related prompts.

### Claim 9 (depends on 1)

The method as in claim 1, wherein the device uses a machine learning model to make the individual maliciousness assessments and the collective maliciousness assessment.

### Claim 10 (depends on 1)

The method as in claim 1, wherein the device is an intermediary device between an endpoint that issued the sequence of related prompts and a host for the generative model.

### Claim 11

An apparatus, comprising:
one or more network interfaces;
a processor coupled to the one or more network interfaces and configured to execute one or more processes; and
a memory configured to store a process that is executable by the processor, the process when executed configured to:
identify a sequence of related prompts for input to a generative model;
make individual maliciousness assessments of those prompts in the sequence of related prompts;
make a collective maliciousness assessment of the sequence of related prompts; and
prevent at least a portion of the sequence of related prompts from being input to the generative model, when any of the individual maliciousness assessments or the collective maliciousness assessment indicates a malicious request to the generative model.

### Claim 12 (depends on 11)

The apparatus as in claim 11, wherein the generative model is a large language model (LLM).

### Claim 13 (depends on 11)

The apparatus as in claim 11, wherein the apparatus identifies the sequence of related prompts based on a unique sequence identifier associated with the sequence of related prompts.

### Claim 14 (depends on 11)

The apparatus as in claim 11, wherein the process when executed is further configured to:
provide an indication that the portion of the sequence of related prompts was prevented from being input to the generative model.

### Claim 15 (depends on 11)

The apparatus as in claim 11, wherein the individual maliciousness assessments indicate that those prompts in the sequence of related prompts are individually non-malicious and the collective maliciousness assessment indicates that the sequence of related prompts is malicious.

### Claim 16 (depends on 11)

The apparatus as in claim 11, wherein the sequence of related prompts forms a malicious file or image.

### Claim 17 (depends on 11)

The apparatus as in claim 11, wherein the apparatus makes the collective maliciousness assessment of the sequence of related prompts by:
making maliciousness assessments of different subsequences of the sequence of related prompts.

### Claim 18 (depends on 17)

The apparatus as in claim 17, wherein the process when executed is further configured to:
identify the different subsequences of the sequence of related prompts by traversing a graph that represents the sequence of related prompts.

### Claim 19 (depends on 11)

The apparatus as in claim 11, wherein the apparatus uses a machine learning model to make the individual maliciousness assessments and the collective maliciousness assessment.

### Claim 20

A tangible, non-transitory, computer-readable medium storing program instructions that cause a device to execute a process comprising:
identifying, by the device, a sequence of related prompts for input to a generative model;
making, by the device, individual maliciousness assessments of those prompts in the sequence of related prompts;
making, by the device, a collective maliciousness assessment of the sequence of related prompts; and
preventing, by the device, at least a portion of the sequence of related prompts from being input to the generative model, when any of the individual maliciousness assessments or the collective maliciousness assessment indicates a malicious request to the generative model.
