Skip to main content

AI/ML / Gen AI / Controls / DEV

Model Output Filtering and Sanitisation

CCC.GenAI.CN02 · MachineLearning

Inspect and validate GenAI model output before passing it to users, applications or plugins in order to filter or sanitise insecure or unreliable output and prevent sensitive data leakage.

Related Capabilities

IDTitleDescription
CCC.Core.CP14API AccessThe service exposes a port enabling external actors to interact programmatically with the service and its resources using HTTP protocol methods such as GET, POST, PUT, and DELETE.
CCC.GenAI.CP15Text-Based PromptsAbility to input prompts in plain text.
CCC.GenAI.CP16Structured PromptsAbility to provide structured input such as JSON as prompts.
CCC.GenAI.CP17Contextual PromptsAbility to provide context or background information within the prompt to guide the response.
CCC.GenAI.CP18Interactive PromptsAbility to use conversational prompts to create interactive dialogues.
CCC.GenAI.CP19Image-Based PromptsAbility to input an image as a prompt to generate a response.
CCC.GenAI.CP20Custom Template PromptsAbility to define custom templates or structures for prompts to standardize interactions with the models.
CCC.GenAI.CP21Generate ContentAbility to generate a response given a foundation model, parameter values, and a prompt.
CCC.GenAI.CP24Content ModerationEnsure the service detects and filters abusive, harmful, and sensitive information to ensure responsible and safe use of the service.
CCC.Core.CP02Encryption at Rest Enabled by DefaultThe service automatically encrypts all data using industry-standard cryptographic protocols prior to being written to a storage medium.
CCC.Core.CP06Access ControlThe service automatically enforces user configurations to restrict or allow access to a specific component or a child resource based on factors such as user identities, roles, groups, or attributes.
CCC.GenAI.CP22Data ControlEnsures prompts, model outputs, embeddings, and training data fed by customers are not used to train foundation models.
CCC.GenAI.CP03Embedding Model SelectionAbility to select a foundation model used for tasks like semantic search, clustering, and document similarity by converting text into vector embeddings.
CCC.GenAI.CP06Customizable Model SelectionProvide users the ability to fine-tune models with their own data.
CCC.GenAI.CP07Parameter Tuning - TemperatureAbility to control the randomness and creativity of the response.
CCC.GenAI.CP08Parameter Tuning - Max TokenAbility to limit the length of the response.
CCC.GenAI.CP09Parameter Tuning - Top P (Nucleus Sampling)Ability to adjust the number of likely next tokens to consider based on cumulative probability.
CCC.GenAI.CP10Parameter Tuning - Top KAbility to limit the number of token choices for the next word.
CCC.GenAI.CP11Parameter Tuning - Stop SequencesAbility to halt generation when a predefined sequence is encountered.
CCC.GenAI.CP12Parameter Tuning - Frequency PenaltyAbility to penalize words that have been used frequently, reducing their likelihood of being repeated.
CCC.GenAI.CP13Parameter Tuning - Presence PenaltyAbility to penalize tokens that have already been used, encouraging the model to introduce new tokens.
CCC.GenAI.CP14Parameter Tuning - Context LengthAbility to control how much prior conversation or input the model will use for generating coherent responses.
CCC.GenAI.CP25Plugin IntegrationsAbility for the model to use tools to complete a model interaction. For example web search, python code execution or external maths engine.

Related Threats

IDTitleDescription
CCC.GenAI.TH01Prompt InjectionPrompt injection may occur when crafted input is used to manipulate the GenAI model's behaviour, resulting in the generation of harmful or unintended outputs. Prompt injection can be either direct (performed via direct interaction with the model) or indirect (performed via external sources ingested by the model). Both text-based and multi-modal prompt injection is possible.
CCC.GenAI.TH03Sensitive Information DisclosureSensitive data can be memorised by the model from user interaction or training and may then be leaked to unintended and unauthorised parties by querying the model, for example through crafted prompts.
CCC.GenAI.TH04Insecure / Unreliable Model OutputA GenAI model may generate content that is incorrect, misleading or harmful, such as convincing misinformation (hallucinations) or vulnerable or malicious code, due to its reliance on statistical patterns rather than factual understanding. Directly using this flawed output without validation can lead to system compromises, poor decision-making, and legal or reputational damage.
CCC.GenAI.TH05Model OverrelianceModel overreliance and misplaced implicit trust in the output of a GenAI model may lead to the acceptance of inaccurate, biased or insecure outputs without proper validation or oversight, potentially resulting in operational failueres, compliance breaches and flawed decision making.
CCC.GenAI.TH06Unintended Action by a Model-Based AgentA model-based agent, given the authority to execute tools or interact with APIs, may perform an action that is harmful, incorrect, or not aligned with the user's true intent in response to a prompt. This can be caused by the model misinterpreting an ambiguous prompt or being manipulated by an adversary into misusing its delegated authority.

Assessment Requirements

IDTextApplicability
CCC.GenAI.CN02.AR01GenAI model output MUST be validated for format conformance, malicious patterns, sensitive data and inapropriate content before being passed to users, application or plugins.tlp-clear, tlp-green, tlp-amber, tlp-red
CCC.GenAI.CN02.AR02In the event of policy violations, the AI-generated content MUST be redacted, encoded or rejected.tlp-clear, tlp-green, tlp-amber, tlp-red

Guideline Mappings

FrameworkIDRemarks
FINOS-AIGFAIR-PREV-003User/App/Model Firewalling/Filtering
FINOS-AIGFAIR-PREV-017AI Firewall Implementation and Management
FINOS-AIGFAIR-PREV-002Data Filtering From External Knowledge Bases
FINOS-AIGFAIR-DET-001AI Data Leakage Prevention and Detection
SAIFOutput Validation and Sanitization
MITRE-ATLASAML.M0020Generative AI Guardrails
MITRE-ATLASAML.M0002Passive AI Output Obfuscation