Skip to content
Software development
ASD ISMISM-1924

ASD ISM 1924 Detect and mitigate adversarial prompts in generative AI applications

What it says

Generative AI applications evaluate user prompts to detect and mitigate adversarial inputs or suffixes designed to elicit unintended behaviour or assist in the generation of sensitive or harmful content.

Quoted as published. Everything else on this page is written by Control Stack.

What it means

In plain English

Generative AI applications must check user prompts to catch and block adversarial inputs that try to trick the AI into harmful or unintended behaviour.

If your organisation runs a generative AI application (software that creates text, images or code in response to a typed request, like a chatbot), people may deliberately craft tricky inputs to make it misbehave. These tricks, often called prompt injection or jailbreak attempts, can include hidden instructions or strange text added to the end of a request (a "suffix") designed to make the AI ignore its safety rules. This control requires the application to actively examine every user prompt, spot these manipulations, and stop the AI from being fooled into producing sensitive or harmful content.

Why it matters

If adversarial prompts are not detected, attackers can jailbreak the AI into leaking sensitive data or producing harmful content, exposing the organisation to data breaches and reputational damage.

How to implement

  1. The development team should add a prompt-screening step in front of the generative AI application that inspects each user request before it reaches the AI model, checking for known manipulation patterns and unusual suffixes that try to override the AI's instructions.

  2. The IT or AI team should keep a regularly updated list of known adversarial techniques (such as 'ignore previous instructions' phrasing and common jailbreak suffixes) and feed it into the screening tool so newly discovered attacks are caught.

  3. The development team should configure the application to block, sanitise, or flag suspicious prompts rather than passing them straight to the AI, and return a safe refusal message when a prompt is identified as adversarial.

  4. The AI team should run regular adversarial testing (sometimes called red teaming), deliberately feeding the application tricky prompts to confirm it detects and refuses attempts to produce sensitive or harmful content.

  5. The application owner should ensure every blocked or flagged prompt is logged so the security team can review attack attempts, measure how often they occur, and tune the detection rules over time.

Keep it running

Adversarial techniques evolve constantly, so keep detection rules current and re-test the application regularly rather than treating prompt screening as a one-time configuration.

Evidence and audit

  1. Check 1 of 5What an auditor asks for

    Ask for

    to see how the generative AI application screens incoming user prompts.

    Look at

    the design or configuration of the prompt-checking layer.

    Good evidence

    shows a documented mechanism that inspects every prompt for adversarial inputs and suffixes before the AI responds.

  2. Check 2 of 5What an auditor asks for

    Ask for

    the list of adversarial patterns or jailbreak techniques the application defends against and when it was last updated.

    Look at

    the update history.

    Good evidence

    shows a maintained, current list rather than a one-off setup left untouched.

  3. Check 3 of 5What an auditor asks for

    Ask for

    the results of recent adversarial testing or red-team exercises against the application.

    Look at

    the test cases and outcomes.

    Good evidence

    shows tricky prompts were tried, the system blocked them, and any failures were fixed.

  4. Check 4 of 5What an auditor asks for

    Ask for

    to be shown what happens when an adversarial prompt is submitted.

    Look at

    a live or recorded demonstration.

    Good evidence

    shows the application detects the attempt, refuses, and does not generate sensitive or harmful content.

  5. Check 5 of 5What an auditor asks for

    Ask for

    logs of detected or blocked prompts and who reviews them.

    Look at

    recent log entries and review records.

    Good evidence

    shows attempts are captured, regularly reviewed, and used to improve detection.

Mappings

Closest match in ISO/IEC 27001: A.8.26, Defining security requirements for applications, which this control supports.

ISO 27001

ISO/IEC 27001: 3 mappings

Mappings show how controls relate across frameworks. They do not imply full equivalence or certification.