# US 2023/0275915 A1 · Machine learning for anomaly detection based on logon events

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0275915 A1
- Document ID: US20230275915A1
- Status: Published application
- Kind: A1
- Application number: 17/682,594
- Filed: 2022-02-28
- Published: 2023-08-31
- Earliest claimed: 2022-02-28
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC.
- Inventors: Ishna KAUL
- Web page: https://patentgrep.com/patent/US20230275915A1

## CPC

- G06F 21/552: {involving long-term monitoring or reporting}
- H04L 63/1425: {Traffic logging, e.g. anomaly detection}
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/088: Non-supervised learning, e.g. competitive learning
- G06N 3/09: Supervised learning
- G06N 20/00: Machine learning
- G06N 20/10: using kernel methods, e.g. support vector machines [SVM]
- G06N 3/045: Combinations of networks
- H04L 63/08: {for authentication of entities (cryptographic mechanisms or cryptographic arrangements for entity authentication H04L9/32)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A computing system receives unlabeled datasets based on logon event data. Various features are extracted based on the unlabeled datasets. A probability score based on the various features is generated by unsupervised machine-learning models that have been trained using the unlabeled datasets. The probability score indicates whether the logon event data is anomalous. The probability score is used to label the unlabeled datasets to thereby generate labeled datasets. The various features are extracted based on the labeled datasets. A contribution score based on the various features is generated by supervised machine-learning models that have been trained using a subset of the labeled datasets. The contribution score specifies which of the various features are likely to have caused the logon event data to be labeled as anomalous. Output data is generated specifying features that likely caused the logon event data to be labeled as anomalous.

## Claims

### Claim 1

A computing system including an unsupervised machine-learning model that receives unlabeled logon event data and generates labeled logon event data indicative of an anomaly and a supervised learning-model that uses the labeled logon event data as input to determine features related to the logon event data that cause instances of the logon event data to be labeled as anomalous, the computing system comprising:
one or more processors; and
one or more computer-readable hardware storage devices having stored thereon computer-executable instructions that are structured such that, when executed by the one or more processors, the computer-executable instructions cause the computing system to perform at least:
receive one or more unlabeled datasets based on one or more instances of logon event data received from one or more devices;
extract a plurality of features based on the one or more unlabeled datasets;
generate a probability score based on the plurality of features, using one or more unsupervised machine-learning models that have been trained using a subset of the one or more unlabeled datasets, the probability score indicating whether an instance of the logon event data is anomalous;
use the probability score to label the one or more unlabeled datasets to thereby generate one or more labeled datasets that are based on the one or more instances of the logon event data;
extract the plurality of features based on the one or more labeled datasets;
generate a contribution score based on the plurality of features, using one or more supervised machine-learning models that have been trained using a subset of the one or more labeled datasets, the contribution score specifying which of the plurality of features are likely to have caused the instance of the logon event data to be labeled as anomalous; and
generate output data based on the plurality of features that are likely to have caused the instance of the logon event data to be labeled as anomalous.

### Claim 2 (depends on 1)

The computing system of claim 1, wherein the computer-executable instructions cause the computing system to further perform:
use the output data to determine if the logon event data that has been labeled as anomalous is malicious or benign.

### Claim 3 (depends on 1)

The computing system of claim 1, wherein the plurality of features comprise one or more of (1) a device name or identification, (2) an indication of a successful or unsuccessful logon, (3) an IP address from where the logon occurred, (4) a number of times a logon is successful or unsuccessful, (5) an account name, (6) an organization name, (7) a day of a week the logon occurred, (8) a time of a day the logon occurred, (9) an owner type, (10) a service type, (11) a domain type, (12) an operating system of the device, (13) whether this is a first logon attempt, or (14) a location from where the logon occurs.

### Claim 4 (depends on 1)

The computing system of claim 1, wherein the output data comprises a visualization that shows a visual indication of how likely each feature of the plurality of features is to have caused the instance of the logon event data to be labeled as anomalous or shows instances of anomalous and non-anomalous logon event data.

### Claim 5 (depends on 4)

The computing system of claim 4, wherein the visual indication is one of a cluster graph or a bar graph.

### Claim 6 (depends on 1)

The computing system of claim 1, wherein each instance of the logon event data is associated with a single user identification.

### Claim 7 (depends on 1)

The computing system of claim 1, wherein the one or more devices are associated with a single user identification.

### Claim 8 (depends on 1)

The computing system of claim 1, wherein the one or more devices are associated with multiple user identifications.

### Claim 9

A computing system including an unsupervised machine-learning model that receives unlabeled logon event data and generates labeled logon event data indicative of an anomaly and a supervised learning-model that uses the labeled logon event data as input to determine features related to the logon event data that cause instances of the logon event data to be labeled as anomalous, the computing system comprising:
one or more processors; and
one or more computer-readable hardware storage devices having stored thereon computer-executable instructions that are structured such that, when executed by the one or more processors, the computer-executable instructions cause the computing system to perform at least:
obtain unlabeled training datasets based on one or more instances of logon event data received from one or more devices;
extract a plurality of features based on the unlabeled training datasets;
train an unsupervised machine-learning model using the unlabeled training datasets such that the unsupervised machine-learning model is configured to generate a probability score based on the plurality of features, the probability score indicating whether an instance of the logon event data is anomalous;
obtain labeled training datasets that are based on the one or more instances of the logon event data that have been labeled by the probability score of the unsupervised machine-learning model;
extract the plurality of features based on the labeled training datasets; and
train a supervised machine-learning model using the labeled training datasets such that the supervised machine-learning model is configured to generate a contribution score based on the plurality of features, the contribution score specifying which of the plurality of features are likely to have caused the instance of the logon event data to be labeled as anomalous.

### Claim 10 (depends on 9)

The computing system of claim 9, wherein the plurality of features comprise one or more of (1) a device name or identification, (2) an indication of a successful or unsuccessful logon, (3) an IP address from where the logon occurred, (4) a number of times a logon is successful or unsuccessful, (5) an account name, (6) an organization name, (7) a day of a week the logon occurred, (8) a time of a day the logon occurred, (9) an owner type, (10) a service type, (11) a domain type, (12) an operating system of the device, (13) whether this is a first logon attempt, (14) a location from where the logon occurs, or (15) whether a new IP host or service was used at the logon time.

### Claim 11 (depends on 9)

The computing system of claim 9, wherein each instance of the logon event data is associated with a single user identification.

### Claim 12 (depends on 9)

The computing system of claim 9, wherein the one or more devices are associated with a single user identification.

### Claim 13 (depends on 9)

The computing system of claim 9, wherein the one or more devices are associated with multiple user identifications.

### Claim 14

A method for a computing system to use an unsupervised machine-learning model that receives unlabeled logon event data and generates labeled logon event data indicative of an anomaly and a supervised learning-model that uses the labeled logon event data as input to determine features related to the logon event data that cause instances of the logon event data to be labeled as anomalous, the method comprising:
receiving one or more unlabeled datasets based on one or more instances of logon event data received from one or more devices;
extracting a plurality of features based on the one or more unlabeled datasets;
generating a probability score based on the plurality of features, using one or more unsupervised machine-learning models that have been trained using a subset of the one or more unlabeled datasets, the probability score indicating whether an instance of the logon event data is anomalous;
using the probability score to label the one or more unlabeled datasets to thereby generate one or more labeled datasets that are based on the one or more instances of the logon event data;
extracting the plurality of features based on the one or more labeled datasets;
generating a contribution score based on the plurality of features, using one or more supervised machine-learning models that have been trained using a subset of the one or more labeled datasets, the contribution score specifying which of the plurality of features are likely to have caused the instance of the logon event data to be labeled as anomalous; and
generating output data based on the plurality of features that are likely to have caused the instance of the logon event data to be labeled as anomalous.

### Claim 15 (depends on 14)

The method of claim 14, further comprising:
using the output data to determine if logon event data that has been labeled as anomalous is malicious or benign.

### Claim 16 (depends on 14)

The method of claim 14, wherein the plurality of features comprise one or more of (1) a device name or identification, (2) an indication of a successful or unsuccessful logon, (3) an IP address from where the logon occurred, (4) a number of times a logon is successful or unsuccessful, (5) an account name, (6) an organization name, (7) a day of a week the logon occurred, (8) a time of a day the logon occurred, (9) an owner type, (10) a service type, (11) a domain type, (12) an operating system of the device, (13) whether this is a first logon attempt, (14) a location from where the logon occurs, or (15) whether a new IP host or service was used at the logon time.

### Claim 17 (depends on 14)

The method of claim 14, wherein the output data comprises a visualization that shows a visual indication of how likely each feature of the plurality of features is to have caused the instance of the logon event data to be labeled as anomalous or shows instances of anomalous and non-anomalous logon event data.

### Claim 18 (depends on 14)

The method of claim 14, wherein each instance of a logon event data is associated with a single user identification.

### Claim 19 (depends on 14)

The method of claim 14, wherein the one or more devices are associated with a single user identification.

### Claim 20 (depends on 14)

The method of claim 14, wherein the one or more devices are associated with multiple user identifications.
