# US 2023/0273998 A1 · System for detecting malwares in a resources constrained device

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

- Number: US 2023/0273998 A1
- Document ID: US20230273998A1
- Status: Published application
- Kind: A1
- Application number: 18/109,815
- Filed: 2023-02-14
- Published: 2023-08-31
- Earliest claimed: 2022-02-25
- Applicants: Commissariat A L'energie Atomique Et Aux Energies Alternatives; Universite Grenoble Alpes; Institut Polytechnique De Grenoble
- Inventors: Nikolaos POLYCHRONOU; Pierre-Henri THEVENON; Maxime PUYS; Vincent BEROULLE
- Web page: https://patentgrep.com/patent/US20230273998A1

## CPC

- G06F 21/52: during program execution, e.g. stack integrity {; Preventing unwanted data erasure; Buffer overflow}
- G06F 21/566: {Dynamic detection, i.e. detection performed at run-time, e.g. emulation, suspicious activities}
- G06F 21/552: {involving long-term monitoring or reporting}
- G06F 21/554: {involving event detection and direct action}
- G06N 20/00: Machine learning
- H04L 63/1416: {Event detection, e.g. attack signature detection}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A system for detecting malwares in a resources constrained device, the system includes a monitoring module, embedded on the device, for measuring, at a predefined adaptable monitoring period, internal hardware events related data, a local machine learning module, embedded on the device, for providing a confidence score that each monitored data is a malware, the local machine learning module being configured to raise an alert if the confidence score is higher than a first predefined alert threshold and to locally store the monitored data in a memory if the confidence score is lower than the first predefined alert threshold and higher than a second predefined suspicious threshold, a remote machine learning module, embedded on a remote server, for receiving the stored monitored data at a predefined transmission rate and process the received data to detect if it corresponds to malware.

## Claims

### Claim 1

A system for detecting malwares in a resources constrained device, the system comprising:
a monitoring module, embedded on the device, for measuring, at a predefined adaptable monitoring period, internal hardware events related data,
a local machine learning module, embedded on the device, for providing a confidence score that each monitored data is a malware, the local machine learning module being configured to raise an alert if the confidence score is higher than a first predefined alert threshold and to locally store the monitored data in a memory if the confidence score is lower than the first predefined alert threshold and higher than a second predefined suspicious threshold and do not store the monitored data otherwise,
a remote machine learning module, embedded on a remote server, for receiving the stored monitored data at a predefined transmission rate and process the received data to detect if it corresponds to malware.

### Claim 2 (depends on 1)

The system for detecting malwares of claim 1, wherein internal hardware events related data are hardware events counters.

### Claim 3 (depends on 2)

The system for detecting malwares of claim 2, furthermore comprising dedicated hardware performance counters configured to store hardware events counters and being inaccessible by the operating system of the device.

### Claim 4 (depends on 1)

The system for detecting malwares according to claim 1, wherein the local machine learning module implements a first machine learning algorithm and the remote machine learning module implements a second machine learning algorithm having a detection accuracy higher than the first machine learning algorithm.

### Claim 5 (depends on 4)

The system for detecting malwares according to claim 4, wherein the second machine learning algorithm is a time-series machine learning algorithm having a history table for storing a predefined number n of samples and the local machine learning module is furthermore configured to, when the confidence score is lower than the first predefined alert threshold and higher than the second predefined suspicious threshold, store the monitored data and at most n consecutive previous monitored data having a confidence score lower than the second predefined suspicious threshold.

### Claim 6 (depends on 1)

The system for detecting malwares according to claim 1, wherein the first predefined alert threshold is determined in such a way that the monitored data for which an alert is raised by the local machine learning module has a predetermined amount of false positives.

### Claim 7 (depends on 6)

The system for detecting malwares according to claim 6, wherein the first predefined alert threshold is determined after the local machine learning module is trained in such a way that an amount, equal to said predetermined amount of false positives, of confidence scores of training data corresponding to normal applications are above the first predefined alert threshold.

### Claim 8 (depends on 1)

The system for detecting malwares according to claim 1, wherein the second predefined suspicious threshold is determined in such a way to minimize the amount of data locally stored that is not a malware to a predefined amount.

### Claim 9 (depends on 1)

The system for detecting malwares according to claim 1, wherein the predetermined monitoring period is equal to at most half a minimum amount of time each process must run on the device before being preempted by the operating system of the device.

### Claim 10 (depends on 1)

The system for detecting malwares according to claim 1, comprising a data limiter module configured for scaling monitored data to a normalized range.

### Claim 11 (depends on 10)

The system for detecting malwares according to claim 10, wherein the data limiter module is configured to:
determine integer values a and b such that a is at least equal to the maximum value of the monitored data, b is at most equal to the minimum value of the monitored data and a-b is equal to a power of two, calculate the scaled data y as y=(x−b)·28−c, where x is the monitored data and a−b=2c.

### Claim 12

A computer-implemented method for detecting malwares in a resources constrained device, the method comprising:
measuring, at a predefined adaptable monitoring period, internal hardware events related data,
executing a first machine learning algorithm on the device, for providing a confidence score that each monitored data is a malware, the local machine learning algorithm being configured to raise an alert if the confidence score is higher than a first predefined alert threshold and to locally store the monitored data if the confidence score is lower than the first predefined alert threshold and higher than a second predefined suspicious threshold,
transmitting the stored monitored data, at a predefined transmission rate to a remote server,
executing, at the remote server, a second machine learning algorithm on the transmitted monitored data to detect it if corresponds to malware.

### Claim 13 (depends on 12)

A computer program product, the computer program product comprising a computer-readable storage medium having computer executable instructions embodied therewith, the computer executable instructions being executable by a processor to cause the processor to perform the steps of the method of claim 12.
