/** * Deceptive Delight Mutation - OWASP LLM01 (Prompt Injection) * * This mutation uses positive framing and pleasurable contexts to bypass * safety measures. Harmful requests are wrapped in upbeat, enthusiastic, * or feel-good contexts that make them seem more benign. * * The technique exploits the tendency of models to be more permissive * with requests framed positively. * * Reference: OWASP LLM Top 10 2025 - LLM01 Prompt Injection */ import { type CvssScore } from '../severity'; import type { Mutation } from './index'; export type DelightType = 'celebration' | 'learning_excitement' | 'helping_others' | 'creative_joy' | 'scientific_wonder' | 'game_fun'; export interface DeceptiveDelightOptions { /** Preferred delight type (random if not specified) */ delightType?: DelightType; /** Whether to add emoji enhancement */ addEmojis?: boolean; /** Whether to add positive suffix */ addSuffix?: boolean; } export declare class DeceptiveDelightMutation implements Mutation { readonly name = "deceptive-delight"; readonly description = "Uses positive framing and feel-good contexts to bypass safety measures (OWASP LLM01)"; readonly severity: "high"; readonly cvssScore: CvssScore; /** OWASP category */ readonly owaspCategory = "LLM01"; private delightType?; private addEmojis; private addSuffix; constructor(options?: DeceptiveDelightOptions); /** * Get a random item from an array */ private random; /** * Get delight type */ private getDelightType; /** * Add random emojis to text */ private enhanceWithEmojis; mutate(prompt: string): string; } //# sourceMappingURL=deceptive-delight.d.ts.map