Security action based on anomaly detection using AI model profiles and user profiles
Abstract
Techniques are described herein that are capable of performing a security action based on anomaly detection using artificial intelligence (AI) model profiles and user profiles. AI model profiles (e.g., a model-session profile, a model-prompt profile, and/or a model-response profile) associated with AI model(s) are generated. User profiles (e.g., user-session profiles, user-prompt profiles, and/or user-response profiles) associated with users of the AI model(s) are generated. A security action is performed with regard to an incoming AI prompt as a result of a difference between the incoming AI prompt and one or more of the AI model profiles and/or one or more of the user profiles being greater than or equal to a difference threshold.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 17 · Forward citations: 0.
Claims (21 — 3 Independent, 18 Dependent)
- Claim 1Independent Claim
A system comprising: a processor system; and a memory that stores computer-executable instructions that are executable by the processor system to at least: generate a model-session profile that represents semantic meanings of model sessions of an artificial intelligence (AI) model, a model session comprising a first subset of AI prompts received by the AI model during the model session and a first subset of AI responses generated by the AI model in response to the first subset of the AI prompts; generate a model-response profile that represents semantic meanings of the AI responses; generate user-session profiles that represent semantic meanings of user sessions of users with regard to the AI model, a user session comprising a second subset of the AI prompts that is received from a user at the AI model during the user session and a second subset of the AI responses that is generated by the AI model in response to the second subset of the AI prompts; generate user-prompt profiles for the users, a user-prompt profile representing a semantic meaning of a third subset of the AI prompts that is received from a user at the AI model; assign anomaly scores to an incoming AI prompt, the anomaly scores representing differences between the incoming AI prompt and the model-session profile, the model-response profile, at least a subset of the user-session profiles, and at least a subset of the user-prompt profiles; and trigger execution of an instruction, which causes a security action to be performed with regard to the incoming AI prompt, as a result of an anomaly score, which is comprised in the anomaly scores, being greater than or equal to an anomaly score threshold.
- Claim 2Depends on #1
The system of claim 1, wherein the anomaly scores correspond to the differences between the incoming AI prompt and a normal distribution of the model sessions represented by the model-session profile, a normal distribution of the AI responses represented by the model-response profile, a normal distribution of the user sessions represented by at least the subset of the user-session profiles, and a normal distribution of subsets of the AI prompts represented by at least the subset of the user-prompt profiles.
- Claim 3Depends on #2
The system of claim 2, wherein the computer-executable instructions are executable by the processor system further to at least: generate the normal distribution of the model sessions represented by the model-session profile, the normal distribution of the AI responses represented by the model-response profile, the normal distribution of the user sessions represented by at least the subset of the user-session profiles, and the normal distribution of subsets of the AI prompts represented by at least the subset of the user-prompt profiles using a one-class classifier.
- Claim 4Depends on #1
The system of claim 1, wherein the computer-executable instructions are executable by the processor system to at least: classify the incoming AI prompt as an anomalous AI prompt as the result of the anomaly score, which is comprised in the anomaly scores, being greater than or equal to the anomaly score threshold; and trigger the execution of the instruction, which causes the security action to be performed with regard to the incoming AI prompt, as a result of the incoming AI prompt being classified as the anomalous AI prompt.
- Claim 5Depends on #1
The system of claim 1, wherein the computer-executable instructions are executable by the processor system to at least: generate user-response profiles for the users, a user-response profile representing a semantic meaning of a third subset of the AI responses that is generated by the AI model in response to a subset of the AI prompts that is received from a user at the AI model; and trigger the execution of the instruction causes the security action to be performed with regard to the incoming AI prompt further as a result of a difference between the incoming AI prompt and a user-response profile in the user-response profiles being greater than or equal to a second difference threshold.
- Claim 6Depends on #1
The system of claim 1, wherein the computer-executable instructions are executable by the processor system to at least: generate a model-session feature vector, which is comprised in the model-session profile, by embedding at least a subset of the model sessions; generate a model-response feature vector, which is comprised in the model-response profile, by embedding at least a subset of the AI responses; generate user-session feature vectors, which are comprised in the user-session profiles, by embedding respective second subsets of the AI prompts that are received from the users at the AI model during the user sessions and respective second subsets of the AI responses that are generated by the AI model in response to the respective second subsets of the AI prompts; generate user-prompt feature vectors, which are comprised in the user-prompt profiles, by embedding respective third subsets of the AI prompts that are received from the users at the AI model; and trigger the execution of the instruction, which causes the security action to be performed with regard to the incoming AI prompt, as a result of a difference between an embedding that represents the incoming AI prompt and the model-session feature vector, the model-response feature vector, a first identified feature vector that represents at least a subset of the user-session feature vectors, or a second identified feature vector that represents at least a subset of the user-prompt feature vectors being greater than or equal to the difference threshold.
- Claim 7Depends on #6
The system of claim 6, wherein the model-session feature vector is an embedding of a single model session from the model sessions; and wherein the model-response feature vector is an embedding of a single AI response from the AI responses.
- Claim 8Depends on #6
The system of claim 6, wherein the model-session feature vector is an embedding of an aggregation of the model sessions; and wherein the model-response feature vector is an embedding of an aggregation of the AI responses.
- Claim 9Depends on #6
The system of claim 6, wherein the first identified feature vector represents a single user-session feature vector in the user-session feature vectors; and wherein the second identified feature vector represents a single user-prompt feature vector in the user-prompt feature vectors.
- Claim 10Depends on #6
The system of claim 6, wherein the first identified feature vector represents an aggregation of the user-session feature vectors; and wherein the second identified feature vector represents an aggregation of the user-prompt feature vectors.
- Claim 11Depends on #6
The system of claim 6, wherein the computer-executable instructions are executable by the processor system to at least: generate the model-session feature vector, the model-response feature vector, the user-session feature vectors, and the user-prompt feature vectors using a cross-lingual language model.
- Claim 12Independent Claim
A method implemented by a computing system, the method comprising: generating a model-session feature vector in a model-session profile, which represents semantic meanings of model sessions of artificial intelligence (AI) models, by embedding at least a subset of the model sessions, a model session comprising a first subset of AI prompts that is received by an AI model during the model session and a first subset of AI responses that is generated by the AI model in response to the first subset of the AI prompts; generating a model-response feature vector in a model-response profile, which represents semantic meanings of the AI responses that are generated by the AI models, by embedding at least a subset of the AI responses; generating user-session feature vectors in user-session profiles, which represent semantic meanings of user sessions of users with regard to the AI models, by embedding the user sessions, which comprise respective second subsets of the AI prompts that are received among the AI models from the users during the user sessions and respective second subsets of the AI responses that are generated in response to the respective second subsets of the AI prompts; generating user-prompt feature vectors in user-prompt profiles for the users by embedding respective third subsets of the AI prompts that are received among the AI models from the users; assigning anomaly scores to an incoming AI prompt, the anomaly scores representing differences between an embedding that represents the incoming AI prompt and the model-session feature vector, the model-response feature vector, a first identified feature vector that represents at least a subset of the user-session feature vectors, and a second identified feature vector that represents at least a subset of the user-prompt feature vectors; and triggering execution of an instruction, which causes a security action to be performed with regard to the incoming AI prompt, as a result of an anomaly score, which is comprised in the anomaly scores, being greater than or equal to an anomaly score threshold.
- Claim 13Depends on #12
The method of claim 12, wherein at least the subset of the user-session feature vectors comprises a single user-session feature vector from the user-session feature vectors; and wherein at least the subset of the user-prompt feature vectors comprises a single user-prompt feature vector from the user-prompt feature vectors.
- Claim 14Depends on #2
The method of claim 2, wherein at least the subset of the user-session feature vectors comprises an aggregation of the user-session feature vectors; and wherein at least the subset of the user-prompt feature vectors comprises an aggregation of the user-prompt feature vectors.
- Claim 15Depends on #12
The method of claim 12, wherein the model-session feature vector represents a normal distribution of the model sessions represented by the model-session profile; wherein the model-response feature vector represents a normal distribution of the AI responses represented by the model-response profile; wherein the user-session feature vectors represent normal distributions of respective subsets of the user sessions; and wherein the user-prompt feature vectors represent normal distributions of the respective third subsets of the AI prompts that are received among the AI models from the users.
- Claim 16Depends on #12
The method of claim 12, further comprising: generating user-response feature vectors in user-response profiles for the users by embedding respective fourth subsets of the AI prompts that are received among the AI models from the users; and assigning an identified anomaly score to the incoming AI prompt, the identified anomaly score representing a difference between the embedding that represents the incoming AI prompt and a third identified feature vector that represents at least a subset of the user-response feature vectors; wherein triggering the execution of the instruction causes the security action to be performed with regard to the incoming AI prompt further as a result of the identified anomaly score being greater than or equal to a second anomaly score threshold.
- Claim 17Depends on #12
The method of claim 12, wherein the model-session feature vector is an embedding of an aggregation of the model sessions of the AI models.
- Claim 18Depends on #12
The method of claim 12, wherein the model-response feature vector is an embedding of an aggregation of the AI responses that are generated by the AI models.
- Claim 19Depends on #12
The method of claim 12, wherein the model-session feature vector, the model-response feature vector, the user-session feature vectors, and the user-prompt feature vectors are generated using a cross-lingual language model.
- Claim 20Independent Claim
A computer program product comprising a computer-readable storage medium having instructions recorded thereon for enabling a processor-based system to perform operations, the operations comprising: generating a model-session profile that represents semantic meanings of model sessions of artificial intelligence (AI) models, a model session comprising a first subset of AI prompts received by an AI model during the model session and a first subset of AI responses generated by the AI model in response to the first subset of the AI prompts; generating a model-response profile that represents semantic meanings of a plurality of AI responses that are generated by the AI models in response to a plurality of AI prompts; generating a model-prompt profile that represents semantic meanings of the plurality of AI prompts; generating user-session profiles that represent semantic meanings of user sessions of users with regard to the AI models, a user session comprising a second subset of the plurality of AI prompts that is received from a user at an AI model during the user session and a second subset of the plurality of AI responses that is generated by the AI model in response to the second subset of the plurality of AI prompts; generating user-prompt profiles for the users, a user-prompt profile representing semantic meanings of respective AI prompts in a third subset of the plurality of AI prompts that is received among the AI models from a user; generating user-response profiles for the users, a user-response profile representing semantic meanings of respective AI responses in a third subset of the plurality of AI responses that is generated by an AI model in response to a subset of the plurality of AI prompts that is received from a user at the AI model; assigning anomaly scores to an incoming AI prompt, the anomaly scores representing differences between the incoming AI prompt and the model-session profile, the model-response profile, the model-prompt profile, at least a subset of the user-session profiles, at least a subset of the user-prompt profiles, and at least a subset of the user-response profiles; and triggering execution of an instruction, which causes a security action to be performed with regard to an incoming AI prompt, as a result of an anomaly score, which is comprised in the anomaly scores, being greater than or equal to an anomaly score threshold.
- Claim 21Depends on #20
The computer program product of claim 20, wherein the anomaly scores represent differences between the incoming AI prompt and a normal distribution of the model sessions represented by the model-session profile, a normal distribution of the plurality of AI responses represented by the model-response profile, a normal distribution of the plurality of AI prompts represented by the model-prompt profile, a normal distribution of the user sessions represented by at least the subset of the user-session profiles, a normal distribution of third subsets of the plurality of AI prompts represented by at least the subset of the user-prompt profiles, and a normal distribution of third subsets of the plurality of AI responses represented by at least the subset of the user-response profiles.
Technical Overview & Description
BACKGROUND Artificial intelligence (AI) models may encounter security threats, such as cyberattacks and data breaches. For example, a malicious entity may attempt to infect an AI model with malware or gain unauthorized access to the AI model. In another example, a malicious entity may cause an AI model to generate undesirable (e.g., offensive) outputs by injecting undesirable information into data that the AI model uses to generate the outputs. Anomaly detection techniques may be used to detect security threats to AI models. An anomaly detection technique is configured to identify an unusual occurrence (e.g., an unusual pattern or behavior) with regard to a system. For instance, an anomaly detection technique that is used on an AI model may be configured to identify an atypical utilization of the AI model or an atypical output of the AI model. However, developing an anomaly detection technique for use on an AI model may be challenging. For example, the anomaly detection technique may require a comprehensive understanding of the AI model and behavior patterns of its users. A capability of the AI model to process various types of data and a relatively large quantity of data generated by the AI model may complicate development of the anomaly detection technique. Conventional anomaly detection techniques for AI models traditionally focus on detecting known malicious behavior in the AI models (e.g., jailbreak attempts) and have relatively low coverage. Accordingly, the conventional anomaly detection techniques may miss important signals and may require a rebuild of the AI models for each new security threat. SUMMARY Artificial intelligence (AI) is intelligence of a machine (e.g., a computing system) and/or code (e.g., software and/or firmware), as opposed to intelligence of a living creature (e.g., a human). An AI prompt indicates (e.g., specifies) a task that is to be performed by an AI model. Examples of an AI prompt include but are not limited to a zero-shot prompt, a
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (17)
Non-Patent Literature (6)
- Sahil, S. Sood, S. Mehmi and S. Dogra,
- “
- Artificial intelligence for designing user profiling system for cloud computing security: Experiment,
- ”
- 2015 International Conference on Advances in Computer Engineering and Applications, Ghaziabad, India, 2015, pp. 51-58, (Year: 2015).
- International Search Report and Written Opinion received for PCT Application No. PCT/US2025/039377, mailed on Oct. 30, 2025, 13 pages.