@using AIStudio.Tools.Security @inherits MSGComponentBase @T("Suspicious content was removed") @T("AI Studio found instructions aimed at the AI inside your content and removed them. Everything around them was kept, so you can continue working with the content. Please review what was removed below.") @T("Typical attacks on AI systems (e.g. prompt injection) hide instructions within untrusted content to trick an AI model into ignoring its intended rules or performing unintended actions.") @(this.showPromptInjectionInformation ? T("Hide more information") : T("More information")) @foreach (var result in this.Alert.Results) { @T("Source type") @result.Source.Kind.GetDisplayName() @T("Content source") @result.Source.Label @T("Removed content") @foreach (var finding in result.Findings) { @finding.Category.GetDisplayName() @finding.Snippet } @* The runtime caps how many passages it describes, while it removes every one of them. *@ @if (result.RedactedCount > result.Findings.Count) { @string.Format(T("And {0} more passages of the same kind."), result.RedactedCount - result.Findings.Count) } } @T("Prompt injection is a method used to manipulate AI systems such as chatbots. An attacker places misleading instructions in content so that the AI treats them as legitimate. This can cause the AI to ignore safeguards, expose private information, or generate harmful content.") @PromptInjectionGuardService.WIKI_URL @if (CanDisableFutureAlerts) { @T("Close and don't show again") } @T("Close")