Canonicalization of unicode prompt injections
AssigneeHiddenLayer, Inc.
InventorsKenneth Yeung, Jason Martin
Life of this patent
Estimating the term…
Loading patent…
AssigneeHiddenLayer, Inc.
InventorsKenneth Yeung, Jason Martin
Estimating the term…
A prompt for a generative artificial intelligence (GenAI) model is received which includes unicode. Unicode fonts in the prompt are identified and then translated into a plaintext representation. Further, unicode characters in the prompt are identified which each have an associated unicode tag. It is determined, based on the associated unicode tags, whether at least a portion of the unicode characters are valid. When at least a portion of the unicode characters are determined to be valid, the unicode characters in the prompt are converted into a plaintext representation. The prompt with the translated fonts and the converted unicode fonts are passed into the GenAI model. When at least a portion of the unicode characters are not determined to be valid, the unicode characters are removed from the prompt. This prompt with the translated unicode fonts, after the unicode characters are removed, is input into the GenAI model.
A computer implemented method comprising:
A computer implemented method comprising:
A computer implemented method comprising:
Dependencies are inferred from the claim text.