# US 2015/0150131 A1 · Method and Product for Providing a Predictive Security Product and Evaluating Existing Security Products

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

- Number: US 2015/0150131 A1
- Document ID: US20150150131A1
- Status: Published application
- Kind: A1
- Application number: 14/404,457
- Filed: 2014-02-10
- Published: 2015-05-28
- Earliest claimed: 2013-02-10
- Assignees: Cyactive Sercurity Ltd.
- Applicants: Cyactive Security Ltd.
- Inventors: Shlomi Boutnaru; Liran Tancman; Michael Markzon
- Web page: https://patentgrep.com/patent/US20150150131A1

## CPC

- H04L 63/1416: {Event detection, e.g. attack signature detection}
- G06F 21/564: {by virus signature recognition}
- G06F 21/567: {using dedicated hardware}
- H04L 63/1425: {Traffic logging, e.g. anomaly detection}
- H04L 63/1441: {Countermeasures against malicious traffic (countermeasures against attacks on cryptographic mechanisms H04L9/002)}
- G06F 2221/033: Test or assess software
- G06F 2221/2145: Inheriting rights or properties, e.g., propagation of permissions or restrictions within a hierarchy
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method, product and computer program product for effecting an Evolutionary Process on malware, the method including the steps of: (a) receiving a malware specimen; (b) generating variants of the malware specimen; (c) evaluating the variants and awarding each the variant a Fitness Score; (d) selecting the variants having at least a predefined the Fitness Score; and (e) using the selected variants as the malware specimens in step (a) from which to generate a new generation of the variants.

## Claims

### Claim 1

A system, comprising:
(a) a malware evolution engine adapted to generate malware variants of malware specimens; and
(b) an evaluator configured to evaluate said malware variants based on at least one of: a maliciousness level and an evasiveness level.

### Claim 2 (depends on 1)

The system of claim 1, further comprising:
(c) a malware fetcher, adapted to collect malware specimens for said evolution engine from at least one source selected from the group consisting of: repositories, production systems, and 3rd party products.

### Claim 3 (depends on 1)

The system of claim 1, further comprising:
(c) a detector builder, configured to generate a detector mechanism based on said malware variants generated by said evolution engine and evaluated by said evaluator.

### Claim 4 (depends on 1)

The system of claim 1, wherein said evolution engine is configured to generate said malware variants by performing at least one action selected from the group consisting of: applying mutations to executable code of said malware specimens, applying mutations to malware emitted network traffic, applying mutations to source code, applying mutations to assembly language code, and cross-merging said malware variants.

### Claim 5 (depends on 4)

The system of claim 4, wherein said mutations applied to said executable code are selected from the group consisting of:
(i) random mutations,
(ii) replacing a given command sequence with another, functionally equivalent, sequence of commands,
(iii) replacing a selected library call with a different, functionally equivalent, library call,
(iv) replacing a selected library used with a different, functionally equivalent, library,
(v) increasing respective probabilities of said mutations in areas identified as having a malicious function;
(vi) increasing respective probabilities of said mutations in areas identified as unlikely to prevent proper execution of said executable code;
(vii) increasing probability of said mutations in areas signed by security products;
(viii) increasing probability of said mutations in areas where previous said mutations resulted in an increased said fitness score;
(ix) rewriting headers of said executable code for a section where binary code has been added, resulting in expansion of said section;
(x) combining said executable code with other said executable code to produce combined code and rewriting relevant headers to allow for proper execution of said combined code; and
(xi) modifying certain sections of said executable code in order to change dynamic function calls to static invocation of relevant operating system calls.

### Claim 6 (depends on 4)

The system of claim 4, wherein an attack machine is configured to send said malware emitted network traffic to said evolution engine, said evolution engine being further configured to apply said mutations to said malware emitted network traffic and send said mutated malware emitted network traffic to a victim machine,
wherein results of said mutated malware emitted network traffic on said victim machine are evaluated by said evaluator to determine said maliciousness level.

### Claim 7 (depends on 6)

The system of claim 6, wherein said mutations applied to said malware emitted network traffic include correcting CRC/Checksum fields, or any other fields of a network packet in various protocols in order to render said CRC/Checksum or other fields valid after various mutations in payloads or headers of said packet.

### Claim 8 (depends on 6)

The system of claim 6, wherein said malware emitted network traffic is obfuscated by wrapping a network communication containing said malware emitted network traffic, in a secure channel.

### Claim 9 (depends on 4)

The system of claim 4, where said executable code of said malware specimens is obfuscated using techniques selected from the group including: packing, encrypting and encoding.

### Claim 10 (depends on 1)

The system of claim 1, wherein said evaluator awards Fitness Scores to said variants and wherein the system selects at least a portion of said variants as new said malware specimens, based on said Fitness Scores.

### Claim 11 (depends on 3)

The system of claim 3, wherein said evaluator awards Fitness Scores to said variants and wherein the system selects at least a portion of said variants for said Detector Builder, based on said Fitness Scores.

### Claim 12 (depends on 1)

The system of claim 1, where said evaluator ranks variants based on at least one of:
(a) a maliciousness level determination and
(b) an evasiveness level determination.

### Claim 13 (depends on 12)

The system of claim 12, wherein said maliciousness level determination is made at least in part based on whether said variants exhibit at least part of malicious characteristics exhibited by said malware specimen.

### Claim 14 (depends on 12)

The system of claim 12, wherein said evasiveness level determination is made at least in part based on whether said variants exhibit at least part of evasive characteristics exhibited by said malware specimen.

### Claim 15 (depends on 12)

The system of claim 12, wherein said evasiveness level is determined at least in part by submitting the malware specimen or variants to each of a plurality of malware detection systems

### Claim 16 (depends on 3)

The system of claim 3, wherein said detector builder is adapted to process at least one of the following elements to create a detector:
(a) executable binary of the malware variants,
(b) network traffic emitted or received by the malware variants,
(c) system calls of the malware variants,
(d) API calls of the malware variants, and
(e) memory footprint and content of the malware variants.

### Claim 17 (depends on 16)

The system of claim 16, wherein said detector builder produces at least one detector adapted to detect at least one of:
(a) network behavior signatures,
(b) network behavior patterns,
(c) executable signatures,
(d) executable patterns,
(e) system calls signatures,
(f) system calls patterns,
(g) CPU actions signatures,
(h) CPU actions patterns,
(i) API calls signatures, and
(j) API calls patterns.

### Claim 18 (depends on 17)

The system of claim 17, wherein said detectors are adapted to be deployed as standalone detection modules on a platform selected from the group including: an end-point, a gateway, a network element, a network appliance, and an integrated 3rd party detecting platform.

### Claim 19 (depends on 3, 11)

The system of claim 11, wherein said evasiveness level is further determined by running said malware specimen or variants against detectors built by the detector builder of claim 3.

### Claim 20 (depends on 13)

The system of claim 13, wherein said Evaluator is further configured evaluate said maliciousness level by running said variants on at least one of: a virtual machine (VM) and a physical computer.

### Claim 21

A method for effecting an Evolutionary Process on malware, the method comprising the steps of:
(a) receiving a malware specimen;
(b) generating variants of said malware specimen;
(c) evaluating said variants and awarding each said variant a respective Fitness Score;
(d) selecting said variants having at least a predefined said respective Fitness Score; and
(e) using said selected variants as said malware specimens in step (a) from which to generate a new generation of said variants.

### Claim 22 (depends on 21)

The method of claim 21, wherein said step of generating said malware variants includes performing at least one action selected from the group consisting of: applying mutations to executable code of said malware specimens, applying mutations to malware emitted network traffic, and cross-merging said malware variants.

### Claim 23 (depends on 22)

The method of claim 22, wherein said applying of said mutations to said executable code includes at least one of:
(i) random mutations,
(ii) replacing a given command sequence with another, functionally equivalent, sequence of commands,
(iii) replacing a selected library call with a different, functionally equivalent, library call,
(iv) replacing a selected library used with a different, functionally equivalent, library,
(v) increasing respective probabilities of said mutations in areas identified as having a malicious function;
(vi) increasing respective probabilities of said mutations in areas identified as unlikely to prevent proper execution of said executable code;
(vii) increasing probability of said mutations in areas signed by security products;
(viii) increasing probability of said mutations in areas where previous said mutations resulted in an increased said fitness score;
(ix) rewriting headers of said executable code for a section where binary code has been added, resulting in expansion of said section;
(x) combining said executable code with other said executable code to produce combined code and rewriting relevant headers to allow for proper execution of said combined code; and
(xi) modifying certain sections of said executable code in order to change dynamic function calls to static invocation of relevant operating system calls.

### Claim 24 (depends on 22)

The method of claim 22, wherein said applying mutations to malware emitted network traffic includes the steps of:
(i) sending said malware emitted network traffic from an attack machine to a router;
(ii) mutating elements of said malware emitted network traffic; and
(iii) sending said mutated malware emitted network traffic to a victim machine.

### Claim 25 (depends on 24)

The method of claim 24, further comprising evaluating said mutated malware emitted network traffic, the evaluating including:
(iv) registering a result of said mutated malware emitted network traffic on said victim machine; and
(v) evaluating said result in order to determine said Fitness Score.

### Claim 26 (depends on 21)

The method of claim 21, wherein said step of evaluating said variants includes at least evaluating Evasiveness and Maliciousness of each of said variants.

### Claim 27 (depends on 26)

The method of claim 26, wherein said Evasiveness is measured by scanning each said variant with a selected group of security products and awarding an Evasiveness Score, based on said security products' inability to detect said variant.

### Claim 28 (depends on 27)

The method of claim 27, wherein said Maliciousness is measured by determining, for each said variant, whether said variant causes malicious activity and awarding a Maliciousness Score, based on said determination.

### Claim 29

The method of 28, wherein each said variant is executed on at least one of: a virtual machine and a physical machine.

### Claim 30 (depends on 28)

The method of claim 28, wherein said Fitness Score is calculated based on, at least, said Evasiveness Score and said Maliciousness Score.

### Claim 31 (depends on 30)

The method of claim 30, wherein said Fitness Score is further calculated based on a degree of divergence of said variant from said malware specimen.

### Claim 32 (depends on 28)

The method of claim 28, further comprising the steps of:
(f) gathering trace data of said variants and benign files or network flow; and
(g) categorizing said trace data into at least one of the following categories: traces of malicious variants, traces of benign files, and traces of degenerated malware variants that lost their malicious activity during said evolutionary process.

### Claim 33 (depends on 32)

The method of claim 32, further comprising the step of:
(h) building Detectors capable of detecting, and distinguishing between, said malicious characteristics and said non-malicious characteristics.

### Claim 34 (depends on 33)

The method of claim 33, further comprising the step of:
(i) selecting, from among said Detectors, at least one said detector having a rating above a predetermined level, said rating based on:
(i) a number of said malicious characteristics correctly detected;
(ii) a number of non-malicious characteristics incorrectly detected; and
(iii) shortness of said detector, wherein a higher rating is awarded for shorter or lighter detectors determined in terms of at least one of: length, memory and computational workload

### Claim 35

A method comprising the steps of:
(a) receiving a malware specimen;
(b) generating variants of said malware specimen;
(c) scanning each said variant with a selected group of security products and awarding an Evasiveness Score, based on said security products' inability to detect said variant.

### Claim 36 (depends on 35)

The method of claim 35, further comprising the step of:
(d) awarding a rating to each of said security products based on a level of success in detecting said variants.

### Claim 37 (depends on 36)

The method of claim 36, wherein said rating is based on said level of success relative to other said security products.

### Claim 38

A method for training a Malware Detector for a Byte Stream, the method comprising the steps of:
(a) capturing a Byte stream of a Network session or any other binary data, and representing said byte stream as a linear vector of integers wherein said byte stream includes a trace of malware variants or benign network activity or files.
(b) reshaping said linear vector into a square matrix, thereby receiving a gray-scale image;
(c) normalizing said gray-scale image in order to unite resolution;
(d) extracting features from said normalized image using at least one image processing technique;
(e) repeating steps (a) to (d) and storing malicious variants in a first database and benign traffic in a second database;
(f) training the Malware Detector to distinguish between said malware variants and said benign traffic.

### Claim 39 (depends on 38)

The method of claim 38, wherein said at least one image processing technique is selected from the group consisting of: Gabor wavelet coefficients, Statistics of coefficients, Principal Component Analysis, Linear Discriminant Analysis, and Independent Component Analysis.

### Claim 40 (depends on 38)

The method of claim 38, wherein said training step is implemented with a Support Vector Machine.

### Claim 41

A method for generating malware variants from a malware specimen, the method comprising the steps of:
generating said malware variants by performing at least one action selected from the group consisting of
applying mutations to executable code of said malware specimens,
applying mutations to malware emitted network traffic, and
cross-merging said malware variants.

### Claim 42 (depends on 41)

The method of claim 41, wherein said applying of said mutations to said executable code is effected by at least one of:
(i) random mutations,
(ii) replacing a given command sequence with another, functionally equivalent, sequence of commands,
(iii) replacing a selected library call with a different, functionally equivalent, library call,
(iv) replacing a selected library used with a different, functionally equivalent, library,
(v) increasing respective probabilities of said mutations in areas identified as having a malicious
function;
(vi) increasing respective probabilities of said mutations in areas identified as unlikely to prevent
proper execution of said executable code;
(vii) increasing probability of said mutations in areas signed by security products;
(viii) increasing probability of said mutations in areas where previous said mutations resulted in
an increased said fitness score;
(ix) rewriting headers of said executable code for a section where binary code has been added,
resulting in expansion of said section;
(x) combining said executable code with other said executable code to produce combined code
and rewriting relevant headers to allow for proper execution of said combined code; and
(xi) modifying certain sections of said executable code in order to change dynamic function calls
to static invocation of relevant operating system calls.

### Claim 43 (depends on 41)

The method of claim 41, wherein applying mutations to malware emitted network traffic includes the steps of:
(i) sending said malware emitted network traffic from an attack machine to a router;
(ii) mutating elements of said malware emitted network traffic; and
(iii) sending said mutated malware emitted network traffic to a victim machine.

### Claim 44 (depends on 29)

The method of claim 29, further comprising the steps of:
executing said variant on both said virtual machine (VM) and said physical machine; and comparing results of executing said variant on said VM and executing said variant on said physical to machine in order to detect a discrepancy between said results.

### Claim 45 (depends on 44)

The method of claim 44, wherein if said discrepancy is found, said variant is evaluated only on said results of executing said variant on said physical machine.

### Claim 46 (depends on 29)

The method of claim 29, further comprising the step of sending at least one signal selected from: predetermined system signals, communication data, arguments, while executing said variant, in order to neutralize integrated triggers, wherein said at least one signal has been captured by agents on endpoint devices or network appliances.

### Claim 47 (depends on 29)

The method of claim 29, further comprising the step of:
monitoring code coverage while executing said variant, in order to identify code regions not executed, said not executed code regions being indicative of triggers integrated in said variant.
