# US 2021/0081531 A1 · Electronic device for classifying malicious code and operation method thereof

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

- Number: US 2021/0081531 A1
- Document ID: US20210081531A1
- Status: Published application
- Kind: A1
- Application number: 16/965,950
- Filed: 2019-01-29
- Published: 2021-03-18
- Earliest claimed: 2018-01-29
- Assignees: Samsung Electronics Co., Ltd.; Korea University Research and Business Foundation
- Applicants: Samsung Electronics Co., Ltd.; Korea University Research and Business Foundation
- Inventors: Jaewoo SEO; Suin KANG; Mincheol KIM; Hyemin KIM; Huykang KIM; Kiseok DO; Jooyeon MOON; Hyunmin SONG; Sejoon OH; Sooyeon LEE
- Web page: https://patentgrep.com/patent/US20210081531A1

## CPC

- G06F 21/561: {Virus type analysis}
- G06F 8/53: Decompilation; Disassembly
- G06F 16/00: Information retrieval; Database structures therefor; File system structures therefor
- G06F 16/35: Clustering; Classification
- G06F 18/22: Matching criteria, e.g. proximity measures
- G06F 18/25: Fusion techniques
- G06F 21/563: {by source code analysis}
- G06V 10/761: {Proximity, similarity or dissimilarity measures}
- G06F 2221/033: Test or assess software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

An electronic device is disclosed. An electronic device according to various embodiments comprises: a processor; and a memory electrically connected to the processor, wherein the processor may be configured to: obtain a plurality of first parameters associated with attributes of at least one malicious code and a plurality of second parameters associated with a system in which the at least one malicious code is executed; obtain a similarity on the basis of a first comparison result according to a first comparison method between the plurality of first parameters and a second comparison result according to a second comparison method between the plurality of second parameters; and classify the at least one malicious code into at least one cluster on the basis of the similarity between the at least one malicious code. Other various embodiments may be provided.

## Claims

### Claim 1

An electronic device, comprising:
a processor; and
a memory electrically connected to the processor,
wherein the processor is configured to:
obtain a plurality of first parameters associated with an attribute of at least one malicious code and a plurality of second parameters associated with a system where the at least one malicious code is executed;
obtain a similarity between the at least one malicious code based on a first comparison result according to a first comparison scheme between the plurality of first parameters and a second comparison result according to a second comparison scheme between the plurality of second parameters; and
classify the at least one malicious code into at least one group based on the similarity between the at least one malicious code.

### Claim 2 (depends on 1)

The electronic device of claim 1, wherein the plurality of first parameters is determined based on at least one of a name, file type, file size, and header information of the at least one malicious code.

### Claim 3 (depends on 1)

The electronic device of claim 1, wherein the processor is configured to obtain the plurality of second parameters by comparing strings of call sequences generated when the malicious code is executed on the system.

### Claim 4 (depends on 1)

The electronic device of claim 1, wherein the first comparison scheme includes a Jaccard similarity measurement scheme, and the second comparison scheme includes a Nilsimsa similarity measurement scheme.

### Claim 5 (depends on 4)

The electronic device of claim 4, wherein the processor is configured to obtain a ratio of an intersection to union of a set of the plurality of first parameters of a first malicious code of the at least one malicious code and a set of the plurality of first parameters of a second malicious code of the at least one malicious code, as a Jaccard similarity.

### Claim 6 (depends on 1)

The electronic device of claim 1, wherein the processor is configured to obtain the similarity based on an average of the first comparison result and the second comparison result.

### Claim 7 (depends on 1)

The electronic device of claim 1, wherein the processor is configured to, when a similarity between a first malicious code and second malicious code of the at least one malicious code is a threshold or more, classify the first malicious code and the second malicious code into the same group.

### Claim 8 (depends on 1)

The electronic device of claim 1, wherein the processor is configured to generate a network graph of the at least one malicious code based on the similarity between the at least one malicious code and the at least one group.

### Claim 9

A method of classifying malicious code, the method comprising:
obtaining a plurality of first parameters associated with an attribute of at least one malicious code and a plurality of second parameters associated with a system where the at least one malicious code is executed;
obtaining a similarity between the at least one malicious code based on a first comparison result according to a first comparison scheme between the plurality of first parameters and a second comparison result according to a second comparison scheme between the plurality of second parameters; and
classifying the at least one malicious code into at least one group based on the similarity between the at least one malicious code.

### Claim 10 (depends on 9)

The method of claim 9, wherein the plurality of first parameters is determined based on at least one of a name, file type, file size, and header information of the at least one malicious code.

### Claim 11 (depends on 9)

The method of claim 9, wherein obtaining the plurality of second parameters includes obtaining the plurality of second parameters by comparing strings of call sequences generated in response to the malicious code being executed on the system.

### Claim 12 (depends on 9)

The method of claim 9, wherein the first comparison scheme includes a Jaccard similarity measurement scheme, and the second comparison scheme includes a Nilsimsa similarity measurement scheme.

### Claim 13 (depends on 12)

The method of claim 12, wherein obtaining the similarity includes obtaining a ratio of an intersection to union of a set of the plurality of first parameters of a first malicious code of the at least one malicious code and a set of the plurality of first parameters of a second malicious code of the at least one malicious code, as a Jaccard similarity.

### Claim 14 (depends on 9)

The method of claim 9, wherein obtaining the similarity includes obtaining the similarity based on an average of the first comparison result and the second comparison result.

### Claim 15 (depends on 9)

The method of claim 9, wherein classifying the at least one malicious code into the at least one group based on the obtained similarity includes, in response to a similarity between a first malicious code and second malicious code of the at least one malicious code being a threshold or more, classifying the first malicious code and the second malicious code into the same group.

### Claim 16 (depends on 9)

The method of claim 9, the method further comprises generating a network graph of the at least one malicious code based on the similarity between the at least one malicious code and the at least one group.

### Claim 17

A non-transitory computer-readable recording medium retaining a program that, when executed by a processor, enable the processor to perform operations of:
classifying malicious code which may comprise obtaining a plurality of first parameters associated with an attribute of at least one malicious code and a plurality of second parameters associated with a system where the at least one malicious code is executed,
obtaining a similarity between the at least one malicious code based on a first comparison result according to a first comparison scheme between the plurality of first parameters and a second comparison result according to a second comparison scheme between the plurality of second parameters, and
classifying the at least one malicious code into at least one group based on the similarity between the at least one malicious code.
