Skip to content
Book a conversation

AI safeguards

Understand how filters, validation, and access limits can form safeguards and why they need evaluation in the actual application.

Luiz GardelinUpdated Read in Markdown
All terms

A conversation about your organization.

Before recommending any tool, we talk with your teams and map how the work really happens.

Arrange a conversation
On this pageIntroduction

Also used as: AI guardrails.

AI safeguards are measures intended to reduce unwanted behavior and consequences when using artificial intelligence systems. They can include content filters, output validation, and action limits. As one implementation example, Amazon Bedrock Guardrails documentation describes configurable filters for generative application inputs and outputs. That service does not represent every possible form of safeguard. AWS, Amazon Bedrock Guardrails.

Controls at different application points

OWASP presents prompt injection mitigations that include validating output formats, limiting privileges, separating external content, and requiring human approval for higher-risk actions. It also acknowledges that foolproof prevention of this kind of attack has not been established. A filter's existence should therefore not be treated as a guarantee of complete safety. OWASP, prompt injection prevention and mitigation.

Model alignment concerns the objectives shaping model behavior. A safeguard may operate in the surrounding application, for example by preventing an operation that its account is not authorized to perform. Documentation should identify where each control operates and the consequence it is intended to prevent.

A hypothetical control and its test

Consider an assistant authorized to prepare draft replies but without permission to send them. In this hypothetical example, the sending restriction limits the consequence of an inappropriate response. A content filter and a person's review could provide additional measures, each with a stated purpose.

Test legitimate requests as well as attempts to cross the defined boundaries. Record which inputs were blocked, which should have been accepted, and what happens if a control fails. Assign responsibility for reviewing configuration and investigating incidents.

A model benchmark can help organize bounded tests, but evaluating safeguards must also account for the permissions, integrations, and consequences of the actual application. The decision goes beyond selecting a filter: it requires demonstrating which limits exist and how the organization checks that they work. Examine the consequence of a missed block as carefully as an unnecessary refusal.

Sources

  1. Detect and filter harmful content by using Amazon Bedrock Guardrails Amazon Web Services

    Configurable filters from a particular service, presented as one example of safeguards for generative applications.

  2. LLM01:2025 Prompt Injection OWASP GenAI Security Project

    Mitigations include validation, least privilege, and human approval; no foolproof prevention is promised.

Written by

Luiz Gardelin

Founder and lead consultant at The Company Brain

Luiz Gardelin is the founder and lead consultant at The Company Brain, an AI organizational transformation consultancy based in Brazil. He also founded Webinhood and Tropk.ai.

See all content by this author

A conversation about your organization.

Before recommending any tool, we talk with your teams and map how the work really happens.

Arrange a conversation

Related terms

Continue reading

All resources