Cargando…

Comparison of Entropy Calculation Methods for Ransomware Encrypted File Identification

Ransomware is a malicious class of software that utilises encryption to implement an attack on system availability. The target’s data remains encrypted and is held captive by the attacker until a ransom demand is met. A common approach used by many crypto-ransomware detection techniques is to monito...

Descripción completa

Detalles Bibliográficos
Autores principales: Davies, Simon R., Macfarlane, Richard, Buchanan, William J.
Formato: Online Artículo Texto
Lenguaje:English
Publicado: MDPI 2022
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9601406/
https://www.ncbi.nlm.nih.gov/pubmed/37420524
http://dx.doi.org/10.3390/e24101503
_version_ 1784817057307557888
author Davies, Simon R.
Macfarlane, Richard
Buchanan, William J.
author_facet Davies, Simon R.
Macfarlane, Richard
Buchanan, William J.
author_sort Davies, Simon R.
collection PubMed
description Ransomware is a malicious class of software that utilises encryption to implement an attack on system availability. The target’s data remains encrypted and is held captive by the attacker until a ransom demand is met. A common approach used by many crypto-ransomware detection techniques is to monitor file system activity and attempt to identify encrypted files being written to disk, often using a file’s entropy as an indicator of encryption. However, often in the description of these techniques, little or no discussion is made as to why a particular entropy calculation technique is selected or any justification given as to why one technique is selected over the alternatives. The Shannon method of entropy calculation is the most commonly-used technique when it comes to file encryption identification in crypto-ransomware detection techniques. Overall, correctly encrypted data should be indistinguishable from random data, so apart from the standard mathematical entropy calculations such as Chi-Square ([Formula: see text]), Shannon Entropy and Serial Correlation, the test suites used to validate the output from pseudo-random number generators would also be suited to perform this analysis. The hypothesis being that there is a fundamental difference between different entropy methods and that the best methods may be used to better detect ransomware encrypted files. The paper compares the accuracy of 53 distinct tests in being able to differentiate between encrypted data and other file types. The testing is broken down into two phases, the first phase is used to identify potential candidate tests, and a second phase where these candidates are thoroughly evaluated. To ensure that the tests were sufficiently robust, the NapierOne dataset is used. This dataset contains thousands of examples of the most commonly used file types, as well as examples of files that have been encrypted by crypto-ransomware. During the second phase of testing, 11 candidate entropy calculation techniques were tested against more than 270,000 individual files—resulting in nearly three million separate calculations. The overall accuracy of each of the individual test’s ability to differentiate between files encrypted using crypto-ransomware and other file types is then evaluated and each test is compared using this metric in an attempt to identify the entropy method most suited for encrypted file identification. An investigation was also undertaken to determine if a hybrid approach, where the results of multiple tests are combined, to discover if an improvement in accuracy could be achieved.
format Online
Article
Text
id pubmed-9601406
institution National Center for Biotechnology Information
language English
publishDate 2022
publisher MDPI
record_format MEDLINE/PubMed
spelling pubmed-96014062022-10-27 Comparison of Entropy Calculation Methods for Ransomware Encrypted File Identification Davies, Simon R. Macfarlane, Richard Buchanan, William J. Entropy (Basel) Article Ransomware is a malicious class of software that utilises encryption to implement an attack on system availability. The target’s data remains encrypted and is held captive by the attacker until a ransom demand is met. A common approach used by many crypto-ransomware detection techniques is to monitor file system activity and attempt to identify encrypted files being written to disk, often using a file’s entropy as an indicator of encryption. However, often in the description of these techniques, little or no discussion is made as to why a particular entropy calculation technique is selected or any justification given as to why one technique is selected over the alternatives. The Shannon method of entropy calculation is the most commonly-used technique when it comes to file encryption identification in crypto-ransomware detection techniques. Overall, correctly encrypted data should be indistinguishable from random data, so apart from the standard mathematical entropy calculations such as Chi-Square ([Formula: see text]), Shannon Entropy and Serial Correlation, the test suites used to validate the output from pseudo-random number generators would also be suited to perform this analysis. The hypothesis being that there is a fundamental difference between different entropy methods and that the best methods may be used to better detect ransomware encrypted files. The paper compares the accuracy of 53 distinct tests in being able to differentiate between encrypted data and other file types. The testing is broken down into two phases, the first phase is used to identify potential candidate tests, and a second phase where these candidates are thoroughly evaluated. To ensure that the tests were sufficiently robust, the NapierOne dataset is used. This dataset contains thousands of examples of the most commonly used file types, as well as examples of files that have been encrypted by crypto-ransomware. During the second phase of testing, 11 candidate entropy calculation techniques were tested against more than 270,000 individual files—resulting in nearly three million separate calculations. The overall accuracy of each of the individual test’s ability to differentiate between files encrypted using crypto-ransomware and other file types is then evaluated and each test is compared using this metric in an attempt to identify the entropy method most suited for encrypted file identification. An investigation was also undertaken to determine if a hybrid approach, where the results of multiple tests are combined, to discover if an improvement in accuracy could be achieved. MDPI 2022-10-21 /pmc/articles/PMC9601406/ /pubmed/37420524 http://dx.doi.org/10.3390/e24101503 Text en © 2022 by the authors. https://creativecommons.org/licenses/by/4.0/Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
spellingShingle Article
Davies, Simon R.
Macfarlane, Richard
Buchanan, William J.
Comparison of Entropy Calculation Methods for Ransomware Encrypted File Identification
title Comparison of Entropy Calculation Methods for Ransomware Encrypted File Identification
title_full Comparison of Entropy Calculation Methods for Ransomware Encrypted File Identification
title_fullStr Comparison of Entropy Calculation Methods for Ransomware Encrypted File Identification
title_full_unstemmed Comparison of Entropy Calculation Methods for Ransomware Encrypted File Identification
title_short Comparison of Entropy Calculation Methods for Ransomware Encrypted File Identification
title_sort comparison of entropy calculation methods for ransomware encrypted file identification
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9601406/
https://www.ncbi.nlm.nih.gov/pubmed/37420524
http://dx.doi.org/10.3390/e24101503
work_keys_str_mv AT daviessimonr comparisonofentropycalculationmethodsforransomwareencryptedfileidentification
AT macfarlanerichard comparisonofentropycalculationmethodsforransomwareencryptedfileidentification
AT buchananwilliamj comparisonofentropycalculationmethodsforransomwareencryptedfileidentification