Configure prompt injection attack protection

task australia Updated Sep 10, 2026 1 min read configure-prompt-injection-attack-protection.md
Raw file servicenow.com

Activate or deactivate prompt injection attack detection to protect all generative AI applications and AI-generated text and conversations.

Before you begin

Role required: sn_generative_ai.nsa_admin

About this task

Prompt injection attacks are a type of cybersecurity attack where someone tries to override the initial instructions of an LLM to cause unintended behaviors. AI Guardian detect and log these prompt injection attack attempts across all generative AI applications and features. You can also configure the prompt injection detection guardrail to block the AI-generated response when an attack is detected in addition to logging it.

You can export logs for review. For more information, see Export Now Assist Guardian logs.

Procedure

  1. Navigate to All > Now Assist Admin > Settings.

  2. In the side panel, go to Now Assist Guardian > Prompt Injection.

  3. Select the toggle to activate or deactivate prompt injection attack detection.

  4. Under Detection impact, select the options icon ([Omitted image "naa-more-options-icon.png"] Alt text: Options icon.) and then select Edit to change how detected attacks are handled.

    You can choose whether prompt injection attacks are blocked as well as logged.

    [Omitted image "image.na-guradian-prompt-injection"] Alt text: Prompt injection protection detection impact selection card with an option to choose the detection impact.

Result

Prompt injection detection is configured on your instance. When enabled, you see a standard error message when an attack is detected.

Parent Topic:AI Guardian

Keywords Now Assistprompt injection attck preventionGenerative AIGenAIGuardianAdminDetection impact
Search documentation
Search document titles and file paths on the australia branch