System and method for detecting ransomware attacks utilizing database backups

The system uses database backups to perform detection tests on column-oriented data for early ransomware identification, reducing false positives and negatives, and optimizing resource use for large databases.

US20260377539A1Pending Publication Date: 2026-11-26EON IO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
US19/213612
Authority / Receiving Office
US · United States
Patent Type
Applications(United States)
Current Assignee / Owner
Filing Date
2025-05-20
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Existing ransomware detection mechanisms struggle to identify attacks on database data fields without generating high false positives or negatives, as they rely on file system changes and cannot detect alterations through legitimate database access.

Method used

A system and method that utilizes database backups in a column-oriented format to perform detection tests based on metrics such as row-changes, entropy levels, behavior patterns, and data types, generating an alert when a preconfigured number of tests fail, thereby minimizing false positives and negatives.

Benefits of technology

Early detection of ransomware attacks is achieved with reduced false alarms, optimizing computational resources and enabling timely mitigation, while being practical for large and complex databases.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US20260377539A1-D00000_ABST
    Figure US20260377539A1-D00000_ABST
Patent Text Reader

Abstract

A method and system for detecting ransomware attacks in a database based on database (DB) backups is presented. The method includes accessing at least one DB backup of a database, wherein each of the at least one DB backup includes files in a column-oriented format; performing a plurality of detection tests to detect a potential ransomware attack performed on the database, wherein each detection test is based on a metric associated with changes in the files in the column-oriented format in the at least one DB backup; and generating an alert in response to the detection of a potential ransomware attack, wherein the alert is generated based on a preconfigured number of detection tests that have failed.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates generally to digital backup and restoration, and specifically to detecting ransomware attacks based on digital backup.BACKGROUND

[0002] Database backup is the process of creating copies of data to protect against data loss, corruption, or hardware failure. Backups ensure that information can be restored if something goes wrong, maintaining data availability and minimizing downtime.

[0003] Ransomware is a highly disruptive form of malware that encrypts files or locks users out of systems, demanding a ransom for access restoration. The consequences can be severe, organizations may face major financial losses from ransom payments and business downtime. Even after paying, there is no assurance that data will be recovered, which can result in irreversible data loss and significantly cripple operations.

[0004] To reduce the likelihood and impact of such attacks, proactive strategies focus on minimizing vulnerabilities and strengthening defenses. Practices such as maintaining secure, offline backups, educating staff on phishing threats, and ensuring systems are regularly patched can drastically lower exposure. These efforts are critical in safeguarding organizations from the operational and financial devastation ransomware can cause.

[0005] Detecting ransomware attacks on the data fields of tables in such databases presents a number of challenges. Ransomware can act logically by exploiting the internal mechanisms of a database rather than targeting files on a file system. Instead of encrypting files directly, the ransomware can gain access to the database through legitimate channels such as stolen credentials. Once inside the database, the ransomware can issue standard SQL commands or API calls to alter the contents of the database. The ransomware may selectively encrypt or corrupt data fields, table values, metadata, and the like in a way that does not affect the operation and structure of the database but renders the actual data unusable or meaningless without a decryption key. Such attacker activity cannot be detected by implementing detection mechanism at the database's operating system or at the end-point.

[0006] Further, traditional ransomware detection mechanisms are challenged in detecting such attacks without issuing a high number of false positives and false negatives because such mechanisms often rely on monitoring file system changes. Encrypted or corrupted data may still appear as valid records to a database engine, making it difficult to distinguish malicious changes from legitimate user or application activity.

[0007] It would therefore be advantageous to provide a solution that would overcome the challenges noted above.SUMMARY

[0008] A summary of several example embodiments of the disclosure follows. This summary is provided for the convenience of the reader to provide a basic understanding of such embodiments and does not wholly define the breadth of the disclosure. This summary is not an extensive overview of all contemplated embodiments and is intended to neither identify key or critical elements of all embodiments nor to delineate the scope of any or all aspects. Its sole purpose is to present some concepts of one or more embodiments in a simplified form as a prelude to the more detailed description that is presented later. For convenience, the term “some embodiments” or “certain embodiments” may be used herein to refer to a single embodiment or multiple embodiments of the disclosure.

[0009] A system of one or more computers can be configured to perform particular operations or actions by virtue of having software, firmware, hardware, or a combination of them installed on the system that in operation causes or cause the system to perform the actions. One or more computer programs can be configured to perform particular operations or actions by virtue of including instructions that, when executed by data processing apparatus, cause the apparatus to perform the actions.

[0010] In one general aspect, a method may include accessing at least one DB backup of a database, where each of the at least one DB backup includes files in a column-oriented format. The method may also include performing a plurality of detection tests to detect a potential ransomware attack performed on the database, where each detection test is based on a metric associated with changes in the files in the column-oriented format in the at least one DB backup. The method may furthermore include generating an alert in response to the detection of a potential ransomware attack, where the alert is generated based on a preconfigured number of detection tests that have failed. Other embodiments of this aspect include corresponding computer systems, apparatus, and computer programs recorded on one or more computer storage devices, each configured to perform the actions of the methods.

[0011] Implementations may include one or more of the following features. The method may include: establishing a baseline for each metric associated with each detection test, where the baselines are established prior to performing the plurality of detection tests. The method where a detection test of the plurality of detection tests includes any one of: a row-change test, a behavior pattern test, an entropy level test, a DB statistical information test, a data type test, and a checksum check. The method where the detection test is the row-change test, and where performing the row-change test further may include: accessing a first DB backup and a second DB backup of the at least one DB backup; computing a number of row-changes between the first DB backup and the second DB backup; comparing the computed number of row-changes to a metric of a row-change baseline; and determining that the row-change test has failed when the computed number of row-changes exceeds the metric of the row-change baseline. The method where the detection test is the entropy level test, and where performing the entropy level test further may include: accessing a first DB backup of the at least one DB backup, computing an entropy level for columns of tables in in the first DB backup; comparing the computed entropy level to a metric of an entropy level baseline, the metric of the entropy level baseline is computed based on a DB backup taken before the first DB backup; and determining that the entropy level test has failed when the computed entropy level exceeds the metric of the entropy level baseline. The method may include: identifying changes in the database using a change detection capture (CDC) process. The method where the detection test is the behavior pattern test, and where performing the behavior pattern test further may include: accessing a first DB backup and a second DB backup of the at least one DB backup; scanning the second DB backup to identify changes in data stored relative to the first DB backup; analyzing the changes to determine a behavior pattern of the identified changes; comparing the determined behavior pattern to a metric of a behavior pattern baseline; and determining that the behavior pattern test has failed when the determined behavior pattern does not match the metric of the behavior pattern baseline. The method where the detection test is the data type test, and where performing the data type test further may include: accessing a first DB backup of the at least one DB backup;, determining a data type of columns of tables in the first DB backup, where the columns of tables in the first DB backup are saved in the files in the column-oriented format; comparing the determined data types to a metric of a data type baseline; and determining that the data type test has failed when the determined data types do not match the metric of the data type baseline. The method where determining the data type of columns of tables in the first DB backup further may include: scanning contents of the columns, where the contents include at least a syntactic structure and a semantic structure; generating a prompt, configured to be executed by an LLM, based on at least a prompt template, an instruction, and the scanned contents; and executing the prompt, by the LLM, to determine the data type for each a particular column. The method where the files in the column-oriented format include at least table in the database. The method where the database is any one of: SQL database and NoSQL database. Implementations of the described techniques may include hardware, a method or process, or a computer-tangible medium.

[0012] In one general aspect, a non-transitory computer-readable medium may include one or more instructions that, when executed by one or more processors of a device, cause the device to: access at least one DB backup of a database, where each of the at least one DB backup includes files in a column-oriented format; perform a plurality of detection tests to detect a potential ransomware attack performed on the database, where each detection test is based on a metric associated with changes in the files in the column-oriented format in the at least one DB backup; and generate an alert in response to the detection of a potential ransomware attack, where the alert is generated based on a preconfigured number of detection tests that have failed. Other embodiments of this aspect include corresponding computer systems, apparatus, and computer programs recorded on one or more computer storage devices, each configured to perform the actions of the methods.

[0013] In one general aspect, a system may include a processing circuitry. The system may also include a memory, the memory containing instructions that, when executed by the processing circuitry, configure the system to: access at least one DB backup of a database, where each of the at least one DB backup includes files in a column-oriented format. The system may in addition perform a plurality of detection tests to detect a potential ransomware attack performed on the database, where each detection test is based on a metric associated with changes in the files in the column-oriented format in the at least one DB backup. The system may moreover generate an alert in response to the detection of a potential ransomware attack, where the alert is generated based on a preconfigured number of detection tests that have failed. Other embodiments of this aspect include corresponding computer systems, apparatus, and computer programs recorded on one or more computer storage devices, each configured to perform the actions of the methods.

[0014] Implementations may include one or more of the following features. The system where the memory contains further instructions which when executed by the processing circuitry further configure the system to: establish a baseline for each metric associated with each detection test, where the baselines are established prior to performing the plurality of detection tests. The system where a detection test of the plurality of detection tests includes any one of: a row-change test, a behavior pattern test, an entropy level test, a DB statistical information test, a data type test, and a checksum check. The system where the memory contains further instructions that, when executed by the processing circuitry for the detection test is the row-change test, and, further configure the system to: access a first DB backup and a second DB backup of the at least one DB backup; compute a number of row-changes between the first DB backup and the second DB backup; compare the computed number of row-changes to a metric of a row-change baseline; and determine that the row-change test has failed when the computed number of row-changes exceeds the metric of the row-change baseline. The system where the memory contains further instructions that, when executed by the processing circuitry for the detection test is the entropy level test, and, further configure the system to: access a first DB backup of the at least one DB backup; compute an entropy level for columns of tables in in the first DB backup; compare the computed entropy level to a metric of an entropy level baseline, the metric of the entropy level baseline is computed based on a DB backup taken before the first DB backup; and determine that the entropy level test has failed when the computed entropy level exceeds the metric of the entropy level baseline. The system where the memory contains further instructions which when executed by the processing circuitry further configure the system to: identify changes in the database using a change detection capture (CDC) process. The system where the memory contains further instructions that, when executed by the processing circuitry for the detection test is the behavior pattern test, and, further configure the system to: access a first DB backup and a second DB backup of the at least one DB backup; scan the second DB backup to identify changes in data stored relative to the first DB backup; analyze the changes to determine a behavior pattern of the identified changes; compare the determined behavior pattern to a metric of a behavior pattern baseline; and determine that the behavior pattern test has failed when the determined behavior pattern does not match the metric of the behavior pattern baseline. The system where the memory contains further instructions that, when executed by the processing circuitry for the detection test is the data type test, and, further configure the system to: access a first DB backup of the at least one DB backup; determine a data type of columns of tables in the first DB backup, where the columns of tables in the first DB backup are saved in the files in the column-oriented format; compare the determined data types to a metric of a data type baseline; and determine that the data type test has failed when the determined data types do not match the metric of the data type baseline. The system where the memory contains further instructions that, when executed by the processing circuitry for determining the data type of columns of tables in the first DB backup, further configure the system to: scan contents of the columns, where the contents include at least a syntactic structure and a semantic structure; generate a prompt, configured to be executed by an LLM, based on at least a prompt template, an instruction, and the scanned contents; and execute the prompt, by the LLM, to determine the data type for each a particular column. The system where the files in the column-oriented format include at least tables in the database. The system where the database is any one of: SQL database and NoSQL database. Implementations of the described techniques may include hardware, a method or process, or a computer tangible medium.BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The subject matter disclosed herein is particularly pointed out and distinctly claimed in the claims at the conclusion of the specification. The foregoing and other objects, features, and advantages of the disclosed embodiments will be apparent from the following detailed description taken in conjunction with the accompanying drawings.

[0016] FIG. 1 is an example network diagram including a database backup system, utilized to describe some disclosed embodiments.

[0017] FIG. 2 is an example flowchart of a method for generating a DB backup that can be utilized for detecting a ransomware attack in accordance with an embodiment.

[0018] FIG. 3 is an example flowchart of a method for detecting ransomware attacks in databases based on DB backups in accordance with an embodiment.

[0019] FIG. 4 is an example flowchart of a method for detecting a ransomware attack based on column-oriented data files in a plurality of DB backups in accordance with an embodiment.

[0020] FIG. 5 is an example schematic diagram of a backup system according to an embodiment.DETAILED DESCRIPTION

[0021] It is important to note that the embodiments disclosed herein are only examples of the many advantageous uses of the innovative teachings herein. In general, statements made in the specification of the present application do not necessarily limit any of the various claimed embodiments. Moreover, some statements may apply to some inventive features but not to others. In general, unless otherwise indicated, singular elements may be in plural and vice versa with no loss of generality. In the drawings, like numerals refer to like parts through several views.

[0022] The disclosed embodiments include a method and system for detecting ransomware utilizing database backups (hereinafter, database backup, digital backup, or DB backup). The method and system include generating DB backups and using a predetermined number of DB backups (each of which is associated with the same instance of a database) to establish, during a learning phase, various baselines for metrics associated with the contents in the DB backups including, but not limited to, a row-change, a behavior pattern, an entropy level, a DB statistical information, a data type, and data quality. In a detection phase, generated DB backups are scanned as part of one or more detection procedures, to determine when the contents in the generated DB backups pass various detection tests. The detection tests include detecting when the metrics associated with the contents in the DB backups exceed a predetermined threshold from the baseline established during the learning phase for the corresponding metric.

[0023] In various disclosed embodiments, the method and system include generating a security alert based on a dynamically determined number of detection tests that have failed. Dynamically determining the number of detection tests that the contents in the DB backups must fail before generating a security alert ensures that the method and system generate security alerts that reflect a true cyberattack, minimizing the number of false positives and false negatives. When the contents in the DB backups must fail a higher number of detection tests in order for a security alert to be generated, the false positive rate for ransomware attacks is reduced. When the contents in the DB backups must fail a lower number of detection tests in order for a security alert to be generated, the false negative rate for ransomware attacks is reduced.

[0024] Reducing such false positives and false negatives by dynamically adjusting the number of detection tests that the contents in the DB backup should pass before triggering a security alert enhances compute resource utilization by minimizing unnecessary processing, lowering system contention, and reducing excessive logging and storage demands. Reducing false positives and false negatives in such a way prevents redundant analysis tasks, streamlines machine learning pipelines by decreasing retraining frequency, and allows for more accurate scalability planning. This leads to more efficient allocation of computational power toward genuine security threats and core business operations, rather than being wasted on handling false alarms.

[0025] Further, the disclosed embodiments may allow early detection of ransomware based on the data (contents) of the DB backup. That is, as an attacker begins manipulating data (e.g., column values) in the database, such changes will be reflected in the respective backup and detected as a ransomware attack or potential attack before a ransom demand is made. Such early detection would improve the security of the database and its backups, allow for early mitigation, and reduce the compute resources required to address such an attack.

[0026] Additionally, the disclosed embodiments cannot be practically performed by a human using pencil and paper. A human cannot practically generate a plurality of DB backups from a single database instance that may include hundreds of thousands of fields of different types. Nor can a human practically use a predetermined number of DB backups to establish, during a learning phase, various baselines for metrics associated with the contents in the DB backups and perform a detection procedure to determine when the contents in the generated DB backups pass various detection tests. A human cannot practically perform such operations given the large number and variety of contents associated with the underlying database instance in such a way and at speeds that are required to provide an operable solution.

[0027] FIG. 1 is an example network diagram including a database backup system, utilized to describe some disclosed embodiments. As illustrated in FIG. 1, a database 120 is backed up by the backup system 140 into database backups 160-1 through 160-N (hereinafter, DB backup 160 or DB backups 160). DB backup 160-1 contains a plurality of backup files 161-1 (hereinafter, backup files 161) and metadata 162-1 (hereinafter, metadata 162). DB backup 160-N contains a plurality of backup files 161-N (hereinafter, backup files 161) and metadata 162-N (hereinafter, metadata 162).

[0028] Database 120 may include a database application, a database management system (DBMS), a combination thereof, and the like. In some embodiments, a database 120 may be a column-oriented database, a relational database, a tabular relational database, a document-oriented database, and the like. In some embodiments, database 120 is a relational database (SQL database), which stores and provides access to data that is organized into tables, which consist of rows and columns. Each table represents a specific entity (like customers, orders, or products), and each row in a table represents a unique record of that entity. Columns represent the attributes of the entity, such as a customer's name or an order's date. Such databases are often stored across multiple tables to avoid redundancy and ensure consistency. Examples of SQL databases include PostgreSQL, MySQL, MSSQL, and the like.

[0029] In some embodiments, database 120 is a non-relational database (often called a NoSQL database), which does not use the traditional table-based relational structure (rows and columns) like SQL databases. Instead, according to this embodiment, such a database uses flexible data models that allow for scalability, speed, and diverse data storage. Examples of NoSQL databases include MongoDB and CouchDB.

[0030] In an embodiment, database 120 may include metadata, such as a database schema. In some embodiments, the database schema includes a data structure, such as a table, including a plurality of keys, at least a portion of which correspond to columns of the table.

[0031] In certain embodiments, the database 120 is deployed on one or more workloads 110. In an embodiment, workload 110 is a physical computing device, a virtual computing device (e.g., a virtual machine), a combination thereof, and the like. In some embodiments, a workload 110 is a software container. In an embodiment, a software container is deployed on a software container platform, such as Kubernetes®, Docker®, and the like.

[0032] According to an embodiment, a workload 110 is implemented as a virtual machine, a software container, a serverless function, a combination thereof, and the like. In some embodiments, a database 120 is implemented as a managed database, for example, utilizing Amazon® RDS. In an embodiment, a virtual machine is deployed as an Amazon® EC2 instance. A software container is deployed on a container platform such as Kubernetes®, Docker®, and the like. In some embodiments, a serverless function is deployed as an Amazon® Lambda function.

[0033] In an embodiment, workload 110 is configured to provide access to database 120, for example, over a network 130. In some embodiments, a cloud computing infrastructure is implemented on network 130. For example, in an embodiment, a cloud computing infrastructure is Amazon@ Web Services (AWS), Google® Cloud Platform (GCP), Microsoft® Azure, and the like. In certain embodiments, the cloud computing infrastructure is utilized to deploy a cloud computing environment. In an embodiment, a cloud computing environment is a virtual private cloud (VPC), a virtual network (VNet), a virtual private network (VPN), a combination thereof, and the like.

[0034] In some embodiments, workload 110 is configured to provide access to database 120 to a database backup system 140 (also referred to as a backup system 140). In an embodiment, backup system 140 is configured to generate a backup of database 120. In an embodiment, backup system 140 is implemented as a virtual machine, a software container, a serverless function, a combination thereof, and the like.

[0035] In an embodiment, backup system 140 is configured to generate DB backups 160 of a database by determining a retrieval key of database 120. For example, the DB backup 160 includes data and metadata of database 120. Data in the database includes data exported from the database, a database schema, a combination thereof, and the like.

[0036] According to an embodiment, metadata, and the like that allow the generation of a restored machine include a filesystem, a directory, a registry, configuration information, software product keys, a combination thereof, and the like. For example, according to an embodiment, machine backup includes an identifier of an operating system (such as Windows®, Linux®, etc.), an identifier of a database application (e.g., Apache® Derby), a filesystem, a registry file, a configuration file, a combination thereof, and the like.

[0037] Backup system 140 is configured to generate a restored database from the backup files 161. The restored database contains original data prior to backup, regardless of the changes made during the backup process.

[0038] In an embodiment, backup system 140 is configured to generate DB backup 160 based on the data stored in database 120. In certain embodiments, DB backup 160 includes a plurality of backup files 161. In an embodiment, the backup files 161 are a plurality of data files, stored each as a column-oriented data file. A column-oriented data file is, for example, Apache® Parquet. In an embodiment, values of each column of the database are stored in serial, contiguous, and the like, memory locations, which allows several benefits, such as, but not limited to, improved column-wise compression and reduced query execution processing by reading only the column and not an entire row of data, where the contents of the row may not be relevant to the query.

[0039] Backup system 140 may be configured to determine a retrieval key of the database. The retrieval key may be any key, value, keyword, index, or the like. To this end, backup system 140 is configured to generate a plurality of queries based on the retrieval key, each query returning a plurality of rows of data from the database. The plurality of rows may be stored as at least a column-oriented data file, e.g., the backup files 161.

[0040] According to an embodiment, a retrieval key is a database key that includes values that are unique for each row. For example, a retrieval key is, in an embodiment, an index value. As no two rows can have the same unique index value, an index value can be used as a retrieval key. In some embodiments, a retrieval key is a composite key, i.e., a combination of a key value of a first column and a key value of a second column, which together form a unique value.

[0041] According to the disclosed embodiments, backup system 140 generates metadata 162 that can be utilized to maintain a baseline for ransomware detection. In an example embodiment, the baseline provides rates of changes in tables in database 120, content category (e.g., data type) of columns in tables within database 120, statistical information on tables in database 120, and entropy level of contents of columns in tables within database 120. Metadata 162 may further include the information required to restore the database 120 without data affected by the ransomware.

[0042] In the embodiment, metadata 162 includes the content category of each column in every table within database 120. In one embodiment, categorizing the content involves running a large language model (LLM) on the contents of each column to provide a description of that content. This generated description may then be used as the column name, ensuring a unified naming convention across different tables. It is important to note that while the name of a column in a table remains unchanged, it serves as a unified designation.

[0043] For example, columns that contain residential addresses in different tables may be labeled as “home address,”“place of residency,” or “mailing address.” While the format of the content may be similar, or perhaps even identical, a language model (e.g., an LLM) would classify the contents of these columns under the same description. This information could then be processed using the LLM for classification. An example prompt may include:

[0044] “What would be a category for a column in a database having the following column values: 175 Morristown Rd., Basking Ridge, NJ; 201 Broadway Ave, NY; 130 Main Street, Springfield, NJ”

[0045] In one embodiment, the same prompt and the same large language model (LLM) are utilized to unify the column names, ensuring consistent results. An LLM can include, but is not limited to, various types of large language models, such as GPT-4 (OpenAI), Claude (Anthropic), Gemini (Google), and LLaMA (Meta), among others. In one embodiment, the generative AI system is external to backup system 140 and is accessed by the backup system 140 through an Application Programming Interface (API).

[0046] In an embodiment, the prompt may be a preconfigured template, where the contents of the columns are the variable parts of this template. In one example, only a subset of the values from a column is included in the prompt and provided to the language model (LLM). This approach is used to improve response time and decrease the computational resources required by the LLM.

[0047] In an embodiment, metadata 162 may include the rates of changes in tables in database 120. To this end, backup system 140 determines the number of changes from one backup to another. The number of changes can be measured per table, column (or file), or combination thereof.

[0048] In an embodiment, metadata 162 may include statistical information on tables in database 120. To this end, backup system 140 queries or accesses database 120 to retrieve such statistical information. Such statistical information may include an average table size, an average number of rows or files maintained by a table, average frequency of changes, and the like.

[0049] In an embodiment, metadata 162 may include entropy level of contents in tables in database 120. To this end, backup system 140 determines the predictability of the contents based on the syntactic structure, semantic structure, a combination thereof, and the like of the contents. The entropy level can be measured per table, column (or file), or combination thereof. When the entropy level is computed for columns, some or all of the columns' values and respective columns' names can be considered.

[0050] In some embodiments, backup system 140 is configured to detect potential ransomware attacks by analyzing the DB backups 160, including the backup files 161 and the metadata 162 in each respective DB backup 160. In an embodiment, this detection is based on changes in the data stored in the backup files 145 at different time intervals from one DB backup to another. Backup system 140 is configured to analyze the plurality of backup files 145 to establish a baseline for at least one metric related to the contents of the backup files 145. Establishing a baseline for a metric enables the backup system 140 to detect when a metric associated with the contents in the backup files 145 exceeds a predetermined threshold from a baseline for a corresponding metric. Backup system 140 is configured to generate a security alert when at least one metric associated with contents in the backup files 145 exceeds a predetermined threshold from a baseline for at least one metric. The security alert includes at least a notification of a potential ransomware attack, a summary of the attack, a combination thereof, and the like. The security alert is sent to user device 150.

[0051] User device 150 allows a security analyst to receive security alerts of potential ransomware attacks. User device 150 may be a laptop, a personal computer, a smartphone, or any device that can access the DB backup 160 via a backup system 140. Access is via, for example, a web portal. It should be noted that NoSQL databases do not maintain data in tables. In an example embodiment, data from NoSQL databases is stored in a table format that users can access. For example, in MongoDB, a collection of documents is used, where each document is converted into a row. Common files of the documents become columns, while any remaining files are consolidated into a final column.

[0052] It should be understood that the embodiments described herein are merely exemplary and not intended to be limiting. The arrangement illustrated in FIG. 1 is provided for illustrative purposes only and does not restrict the scope of the disclosed embodiments. Various modifications, adaptations, and alternative configurations may be implemented without departing from the spirit and scope of the disclosed embodiments.

[0053] FIG. 2 is an example flowchart 200 of a method for generating a DB backup that can be utilized for detecting a ransomware attack in accordance with an embodiment. The method may be performed by backup system 140. In an embodiment, generating a DB backup 140 includes generating a backup of the machine hosting the database (which omits the data of the database) and generating a backup of the data of the database as two distinct backups.

[0054] At S210, a database application is accessed. In an embodiment, accessing a database application (e.g., database 120, FIG. 1) includes detecting a database application deployed in a computing environment, such as a cloud computing environment. According to some embodiments, accessing a database application includes receiving a token, a credential, a combination thereof, and the like, to access the database application. In an embodiment, accessing the database application includes accessing a machine, a workload, and the like, on which the database application is deployed.

[0055] According to certain embodiments, the database application is a stand-alone database application deployed on a virtual machine. The database application may include a SQL database or a NoSQL database. Examples of NoSQL databases include MongoDB® and CouchDB®. Examples of SQL databases include PostgreSQL, MySQL, MSSQL, and the like. It should be noted that the backup process is performed for any type of database application. That is, the same process can be performed for SQL, NoSQL, or any other type of database application.

[0056] NoSQL databases use different terminology than SQL (relational) databases for the data they store. For example, in SQL databases, a “table” corresponds to a “collection,” a “row” is similar to a “document,” a “column” is equivalent to a “field,” and a “primary key” is represented by an “ID,” which serves as the default unique identifier. This description will primarily employ terminology from SQL databases for clarity, but the disclosed embodiments are not limited to these types of databases.

[0057] At S220, a retrieval key of the database is determined. In some embodiments, the retrieval key is an index of rows, for example. The retrieval key may include a value assigned to each row, which is a unique value, such that no two rows include the same value as the retrieval key.

[0058] In some embodiments, a retrieval key is generated based on a composite of multiple-column identifiers. For example, in an embodiment, two identifiers, each of a distinct column, form a retrieval key. In certain embodiments, a plurality of retrieval keys is selected, each retrieval key corresponding to a table of the database.

[0059] At S230, data is exported from the database application. The exported data may include at least tables and their contents. In an embodiment, exporting data from the database application includes generating a plurality of queries. In an embodiment, the plurality of queries is generated, each based on a value range of the retrieval key. For example, in an embodiment, a first query of the plurality of queries is generated based on a value range of ‘0’ to ‘10,000’ of the retrieval key, and a second query of the plurality of queries is generated based on a value range of ‘10,001’ to ‘20,000’. In an embodiment, there is no overlap between the values of the retrieval key for each of the generated queries.

[0060] In an embodiment, the query is generated in a query language, such as SQL. In an embodiment, data is exported from the database application utilizing a logical backup. For example, in a PostgreSQL database, a pg_dump command is utilized to export data from a database application to a logical backup. According to an embodiment, a logical backup includes schema and data as query language (e.g., SQL) commands, binary format, and the like. In an embodiment, a logical backup is a consistent snapshot, as opposed to a physical backup, which includes, for example, configuration files, raw files, directories, etc. As another example, in MongoDB, an export command mongoexport can be utilized to export collections (tables).

[0061] At S240, a plurality of backup files is generated. In an embodiment, the plurality of backup files is generated in a column-oriented data format, such as Apache® Parquet. In some embodiments, the plurality of backup files is generated such that a file, a group of files, etc., corresponds to a result of executing a query of the plurality of queries. Thus, data is exported from the database application into a plurality of backup files.

[0062] In an embodiment, data is exported from the database application into the plurality of backup files by generating the plurality of queries, executing each query on the database, receiving a result for each query, and storing the results as data files in a column-oriented data format.

[0063] In some embodiments, for example, where a logical backup is generated (e.g., utilizing pg_dump command), the plurality of backup files is generated by converting the logical backup into a plurality of column-oriented data format files.

[0064] In some embodiments, for example, when collections are exported (e.g., utilizing mongoexport / or mongodump command), the plurality of backup files are generated by converting the logical backup into a plurality of column-oriented data format files.

[0065] At S250, a database backup is generated. This process is executed on all exported backup files. The database backup is generated based on the plurality of backup files. In an embodiment, S250 includes generating or providing the metadata of the backup. The metadata may comprise the database schema, e.g., a data structure such as a table that includes a plurality of keys, at least some of which correspond to the table's columns, and the baselines. Various embodiments for establishing the baselines are discussed in detail above.

[0066] Although FIG. 2 shows example blocks of flowchart 200, in some implementations, flowchart 200 may include additional blocks, fewer blocks, different blocks, or differently arranged blocks than those depicted in FIG. 2. Additionally, or alternatively, two or more of the blocks of flowchart 200 may be performed in parallel.

[0067] FIG. 3 is an example flowchart 300 of a method for detecting ransomware attacks in databases based on DB backups in accordance with an embodiment. According to this embodiment, a DB backup is generated according to the embodiments discussed herein and includes a plurality of column-oriented data files that are analyzed to detect a potential ransomware attack while minimizing the number of false positives of an attack and the false negatives of an attack. The disclosure further allows for reducing false negatives and false positives of ransomware attacks.

[0068] In some embodiments, the method illustrated in flowchart 300 is performed by backup system 140, FIG. 1.

[0069] At S310, a plurality of DB backups is accessed. In an embodiment, a plurality of DB backups is accessed via APIs, secure tokens, catalog-based metadata services, a combination thereof, and the like. The DB backup includes data exported from the database; metadata, such as the database schema; a combination thereof; and the like.

[0070] In an embodiment, accessing the plurality of DB backups includes scanning the contents of the plurality of DB backups. In some embodiments, the plurality of DB backups includes DB backups generated from a database, at regular intervals. According to this embodiment, the contents of the plurality of DB backups are scanned at regular intervals to calculate baseline metrics associated with changes to the contents of the plurality of DB backups over a particular time interval from one DB backup to another.

[0071] At S320, a baseline for at least one metric is established based on changes to the contents in the plurality of DB backups during a learning phase. In some embodiments, establishing a baseline for at least one metric includes analyzing changes to the contents from one DB backup to another DB backup of the plurality of DB backups taken at regular intervals. Establishing at least one baseline for a metric is discussed in more detail with respect to FIG. 4.

[0072] At S330, during a detection phase, a potential ransomware attack is detected when a metric associated with certain changes to the contents of DB backups exceeds at least one threshold from a baseline for a corresponding metric. According to various embodiments disclosed in more detail hereinbelow, the predetermined threshold may vary depending on which metric the baseline is established for. A baseline is established for metrics associated with certain changes to the contents, including, but not limited to, data type (i.e., content category), behavior pattern, row-change (i.e., number of changes, including deletes updates and inserts), DB statistical information, and entropy level of the contents of columns across DB backups of the plurality of DB backups. In some embodiments, at least one threshold is predetermined for each of the metrics. In some embodiments, at least one threshold for each of the metrics is computed dynamically. Detecting a potential ransomware attack is discussed in more detail with respect to FIG. 4.

[0073] In some embodiments, a Change Detection Capture (CDC) method is performed to detect changes between DB backups, preferably DB backups taken in two (2) different consecutive point-in-times. The changes are evaluated based on the method discussed above.

[0074] At S340, a security alert is generated in response to the detection of a potential ransomware attack. The security alert may include at least a notification of a potential ransomware attack, a summary of the attack, a combination thereof, and the like. Determining whether a security alert is warranted and generating a security alert is discussed in more detail with respect to FIG. 4.

[0075] It should be understood that the disclosed embodiments are not limited to database backups stored in a column-based format and are equally applicable to backups saved in other formats.

[0076] Although FIG. 3 shows example blocks of flowchart 300, in some implementations, flowchart 300 may include additional blocks, fewer blocks, different blocks, or differently arranged blocks than those depicted in FIG. 3. Additionally, or alternatively, two or more of the blocks of flowchart 300 may be performed in parallel.

[0077] FIG. 4 is an example flowchart 400 of a method for detecting a ransomware attack based on column-oriented data files in a plurality of DB backups in accordance with an embodiment. According to this embodiment, the DB backups include a plurality of column-oriented data files that are analyzed to detect a potential ransomware attack. In some embodiments, reference to the contents of a plurality of DB backups includes the data stored in the column-oriented data files. In some embodiments, reference to the contents of the plurality of DB backups includes data in each column of the column-oriented data files. In some embodiments, the method illustrated in flowchart 400 is performed by backup system 140, FIG. 1.

[0078] At S410, at least one DB backup is accessed. In an embodiment, a DB backup is accessed via APIs, secure tokens, catalog-based metadata services, a combination thereof, and the like. The DB backup includes data of the database. Data of the database includes data exported from the database; metadata, such as the database schema; a combination thereof; and the like.

[0079] At S420, a detection procedure is performed. During the detection procedure, various detection tests are performed on the contents of at least one DB backup to detect indications of a ransomware attack. In an embodiment, at least two (2) DB backups are analyzed to detect whether changes to the contents from one DB backup to another DB backup are indicative of a ransomware attack. A ransomware attack, according to various embodiments, is indicated or detected when a metric associated with changes to the contents across various DB backups, respectively, of a predefined time interval, exceeds a predetermined threshold from a baseline for a corresponding metric over the same or similar predefined time interval. In various embodiments disclosed below, the predetermined threshold may be dynamically computed or pre-configured.

[0080] In some embodiments, the DB backups on which the detection procedure is performed are generated at regular intervals. Generating DB backups at regular intervals enables the scanning of the contents of a plurality of DB backups to determine changes to the contents over a predefined interval of time.

[0081] The following discusses the detection tests conducted during the detection procedure. These tests may be executed either in parallel or sequentially. Additionally, a user may select or preconfigure which test to apply to specific databases or tables.

[0082] In an embodiment, the detection tests include a row-change test. The row-change test detects when a number of changes to the contents from one DB backup to another DB backup over a predefined time interval exceeds a predetermined threshold from a baseline. The baseline, in this case, is a number of changes to the contents over the same or similar predefined time interval between DB backups of the plurality of DB backups that indicates normal activity in the underlying database.

[0083] In an embodiment, the row-change test is performed for the contents per column of a column-based data file of the plurality of DB backups. According to this embodiment, the number of changes to the contents in a particular column is calculated. The number of changes to the contents in the column is computed over the predefined time interval respective of DB backups of the plurality of DB backups and compared to a baseline number of changes to the contents in that particular column over the same or similar predefined time interval.

[0084] As a non-limiting example, an organization stores employee data in a database table. Each day, a DB backup of the employee table is created. These DB backups represent the complete state of the employee records on each respective day. A baseline number of changes to the contents in DB backups containing contents of employee records is calculated based on a number of modifications, additions, deletions, a combination thereof, and the like to the contents in the DB backups over a predefined time interval as indicated by the times at which each DB backup was generated. Because the data file is column-oriented, the comparison of attributes like salary, department, or name can be performed directly on entire columns rather than row by row. This approach improves efficiency, especially when only a subset of columns needs to be examined for updates.

[0085] For example, if the DB backup on Jan. 1, 2025, had ten thousand records and the DB backup on Jan. 2, 2025, shows that two hundred records have changed, then the percent change is calculated by dividing the number of affected records by the original count. In this case, the result would be a two percent change. Such a two percent change may be the baseline percent change for this table. When a percent change over the same or similar time interval exceeds a predetermined threshold from the two percent change baseline, then it is determined that the contents do not pass the row-change test. A cause of this deviation in percent change includes, but is not limited to, a vast number of updates or deletes to rows, often across multiple columns, all at once.

[0086] In an example implementation, performing the row-change test further may include accessing a first DB backup and a second DB backup of the at least one DB backup; computing a number of row-changes between the first DB backup and the second DB backup; comparing the computed number of row-changes to a metric of a row-change baseline; and determining that the row-change test has failed when the computed number of row-changes exceeds the metric of the row-change baseline.

[0087] In another embodiment, the detection tests include a behavior pattern test. The behavior pattern test is a test of whether a pattern in the contents in the DB backup over a predefined time interval exceeds a predetermined threshold from a baseline pattern over the same or similar predefined time interval. In an embodiment, determining a pattern in the contents over a predefined time interval includes analyzing scans of the contents taken at regular intervals.

[0088] In an embodiment, the behavior pattern test is performed for the contents per column, per row, and the like of a column-based data file of the at least one DB backup. According to this embodiment, patterns of behavior in the contents in a particular column, row, and the like are computed. The patterns in the contents are computed over the predefined time interval and compared to a baseline pattern of behavior in the contents in a particular column, row, and the like over the same or similar predefined time interval.

[0089] As a non-limiting example, an organization stores financial transactions in a database table called account_balances and a database tables called transaction_summary. Each hour, a DB backup of the tables is created. These DB backups represent the complete state of the financial transactions each respective hour. The DB backups contain columns including, but not limited to, account_id, total_deposits, total_withdrawals, last_transaction_type, and balance. A baseline pattern of behavior for the contents in DB backups is determined. Over a predetermined window of time, a baseline pattern of behavior is established for each column, each row, a combination thereof, and the like. The baseline patterns of behavior may be, for instance, that during business hours, small business accounts often show frequent deposits and withdrawals; and personal accounts tend to be less active, showing occasional debit card purchases or ATM withdrawals. Based on the account_id column, each row is scanned to detect what types of changes are associated with the contents in the rows over a predefined time interval.

[0090] When the pattern of behavior in the contents of a new hourly DB backup does not match the baseline pattern of behavior, it is determined that the content does not pass the behavior pattern test. Examples of such patterns of behavior that do not match the baseline pattern of behavior include, but are not limited to, a high number of personal accounts suddenly show large withdrawals, an unusual concentration of accounts previously dormant begin registering deposits from unknown sources, or other unpredictable changes. This deviation may be indicative of a cyberthreat actor corrupting the contents in the database.

[0091] In an example implementation, the behavior pattern test may include accessing a first DB backup and a second DB backup of the at least one DB backup; scanning the second DB backup to identify changes in data stored relative to the first DB backup; analyzing the changes to determine a behavior pattern of the identified changes; comparing the determined behavior pattern to a metric of a behavior pattern baseline; and determining that the behavior pattern test has failed when the determined behavior pattern does not match the metric of the behavior pattern baseline.

[0092] In yet another embodiment, the detection tests include an entropy level test. The entropy level test is a test of whether a change in entropy of the content in a DB backup exceeds a predetermined threshold from a baseline change in entropy.

[0093] The entropy level of contents is defined as the degree of unpredictability or randomness in the contents of columns in a database table. High entropy means the data in the column is diverse and lacks repetition, making it harder to compress and more information-rich. Low entropy, by contrast, indicates that the data contains many repeated or highly predictable values, which makes it easier to compress and often signals more stable or patterned content.

[0094] In an embodiment, the entropy level test is performed for the contents per column of a column-based data file of the at least one DB backup. According to this embodiment, the entropy level for the contents in a particular column is calculated. The entropy level for the contents in the column is computed over the predefined time interval and compared to a baseline entropy level for the contents in that particular column over the same or similar predefined time interval. The baseline may be established based on the entropy level computed in a DB backup taken prior to the DB backup being scanned for ransomware. As a non-limiting example, a column in a DB backup named email_address contains contents that follow a predictable format, such as firstname.lastname@company.com or other expressions associated with employee or customer records. The domain names are often limited in variety, and the local parts of the email addresses tend to repeat with minor variations. This repetition and structure keep the entropy relatively low. In some embodiments, a baseline entropy level for the email_address column is calculated across regular DB backups.

[0095] An entropy level of contents that exceeds a predetermined threshold from the baseline entropy level for the email_address column may be caused by a random shift in the character patterns in the contents of the column. For example, there are long sequences of seemingly random characters, often lacking “@” or “.com” and no longer following any predictable schema. Such sequences exhibit an entropy level that exceeds a predetermined threshold from the baseline entropy level established for the email_address column. Unlike legitimate increases in entropy that could arise from an expansion in email address diversity, this form of change is abrupt, structureless, and uniformly dispersed. Such a deviation may be indicative that a cyberthreat actor corrupted the contents of the database through ransomware, malware, or the like.

[0096] In an embodiment, the entropy level is detected based on the compression level of the column-oriented data files of the DB backup. In an embodiment, entropy level is detected using entropy calculations, e.g., the Shannon entropy formula.

[0097] In one implementation, the entropy level test may include accessing a first DB backup of the at least one DB backup; computing an entropy level for columns of tables in the first DB backup; comparing the computed entropy level to a metric of an entropy level baseline, the metric of the entropy level baseline is computed based on a DB backup taken before the first DB backup; and determining that the entropy level test has failed when the computed entropy level exceeds the metric of the entropy level baseline.

[0098] In yet another embodiment, the detection test includes a data type test. The data type test is a test of whether the data type of the content in the at least one DB backup does not match a baseline data type. The baseline data type is a compliant data type in a particular column, table, field, a combination thereof, and the like.

[0099] As a non-limiting example, database tables in a database store credit card numbers and Social Security Numbers (SSNs). Each hour, a DB backup of the tables is created. These DB backups represent the complete state of the table each respective hour. The DB backups contain columns including, but not limited to, credit_card_number and SSN. The content in these columns have well-defined syntactic structures and patterns. Credit card numbers typically have a defined length (usually 16 digits), and SSNs follow a 9-digit format, often represented as three digits, two digits, and four digits. Based on the syntactic and semantic structure of the contents, a baseline data type is established for these columns. Utilizing the data type test on the contents of each column in the DB backups over a predefined time interval, it is determined when the data type of the contents does not match the baseline data type. Such data type of the contents may include, but is not limited to, random alphanumeric characters, structurally invalid numbers, values that are too short, illegal characters, and the like.

[0100] In some embodiments, the data type test is performed using various checksum verification algorithms. According to this embodiment, relevant checksum algorithms are performed on contents that have various data types to determine when the data type is different than a baseline data type. A checksum is a value that is calculated for a certain data type that serves as an identifier that the data is valid. When a value, such as, but not limited to, a credit card number or a Social Security Number (SSN) includes a checksum, part of the number is derived mathematically from the other digits using a specific algorithm. The result of the specific algorithm is the checksum. If the value satisfies a certain condition, then the data type is valid. If the value does not satisfy a certain condition, then the data type is invalid. Various checksum algorithms performed according to this embodiment enable a detection procedure that includes the data type test. According to this embodiment, the validity of any data type that exhibits a pattern where a checksum algorithm can be applied is determined.

[0101] In an embodiment, the data type test is performed utilizing an LLM. The contents of the plurality of DB backups are scanned and fed into a prompt that is configured to be executed by an LLM. The prompt includes at least a prompt template, an instruction, and the contents of the plurality of DB backups. Based on the prompt, the LLM is configured to determine a baseline data type for a particular column, table, field, a combination thereof, and the like. The LLM is configured to determine when the data type for a particular column, table, field, a combination thereof, and the like does not match a baseline data type for that particular column, table, field, a combination thereof, and the like.

[0102] In an embodiment, to further reduce the usage of computer resources, a regular expression (Regex) of another textual analysis method can be used for the data type test. For example, Regex can be used to detect data types by matching data patterns. For example, to validate an SSN in the United States, which typically follows the format XXX-XX-XXXX, a Regex can be very effective.

[0103] In one implementation, the data type test may include accessing a first DB backup of the at least one DB backup; determining a data type of columns of tables in the first DB backup, wherein the columns of tables in the first DB backup are saved in the files in the column-oriented format; comparing the determined data types to a metric of a data type baseline; and determining that the data type test has failed when the determined data types do not match the metric of the data type baseline.

[0104] In yet another embodiment, the detection tests include a DB statistical information test. The statistical test includes analyzing the changes to the metadata from one DB backup to another, which reflects statistical information on tables in the underlying database. In an embodiment, the underlying database is queried or accessed to retrieve such statistical information. In another embodiment, such statistical information is available from the metadata across the plurality of DB backups taken over a predefined time interval. Such statistical information may include an average table size, an average number of rows or files maintained by a table, average frequency of changes, and the like. It is determined whether changes in some particular statistical measurements associated with the contents from one DB backup to another DB backup of the plurality of DB backups exceeds a predetermined threshold from a baseline change in a corresponding particular statistical measurement. For example, significant changes (e.g., 20%) in the size of the database or a table may be indicative of a potential malicious activity.

[0105] In another embodiment, the detection tests include a data quality test. Data quality refers to a degree to which data is accurate, complete, consistent, timely, valid, reliable, a combination thereof, and the like. The data quality test includes determining when the data quality in various data fields, columns, rows, and the like exceeds a predetermined threshold from a baseline for data quality associated with a respective data field, column, row, and the like. Various data quality methods can be utilized according to the disclosed embodiments. For example, validation rules can be utilized to check for correct format, range, and the like to ensure data conforms to expected standards. Potential attacks may be detected if the data quality deteriorates. The data quality tests should be performed on all tables, some tables, or selected tables in the database.

[0106] At S430, it is determined if any or all of the detection tests have failed. If YES, execution returns to S410. If NO, execution proceeds with S440. In an embodiment, if it is determined that the contents do not pass any one of the detection tests, execution proceeds with S440. In another embodiment, if it is determined that the contents do not pass more than one of the detection tests, execution proceeds with S440.

[0107] At S440, it is determined whether an alert is warranted. If NO, execution returns with S410. If YES, execution proceeds with S450.

[0108] Determining whether an alert is warranted based on a threshold number of tests that are passed serves to minimize the number of false positives and false negatives associated with potential ransomware attacks. For example, if all detection tests pass, this may indicate a high likelihood of a ransomware attack. Conversely, if only a single test passes while the others fail, the probability of an attack is considered low. To account for varying sensitivity requirements, the user may configure a threshold that determines when an alert should be generated. This threshold can be based on the number or proportion of tests that pass or fail.

[0109] By evaluating whether the number of passed tests meets or exceeds the configured threshold, the system can make more informed decisions about whether an alert is warranted. This approach helps reduce the incidence of false positives—alerts raised when no real threat exists, as well as false negatives, missed alerts during an actual attack. The threshold-based mechanism, therefore, enhances the reliability and precision of the ransomware detection process.

[0110] At S450, an alert is generated. The alert includes at least a notification of a potential ransomware attack, a summary of the attack, a combination thereof, and the like. The alert is sent to a user device, e.g., user device 150, FIG. 1.

[0111] Although FIG. 4 shows example blocks of flowchart 400, in some implementations, flowchart 400 may include additional blocks, fewer blocks, different blocks, or differently arranged blocks than those depicted in FIG. 4. Additionally, or alternatively, two or more of the blocks of flowchart 400 may be performed in parallel.

[0112] FIG. 5 is an example schematic diagram of a backup system 140 according to an embodiment. The backup system 140 includes, according to an embodiment, a processing circuitry 510 coupled to a memory 520, a storage 530, and a network interface 540. In an embodiment, the components of the backup system 140 are communicatively connected via a bus 550.

[0113] In certain embodiments, the processing circuitry 510 is realized as one or more hardware logic components and circuits. For example, according to an embodiment, illustrative types of hardware logic components include field programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), Application-specific standard products (ASSPs), system-on-a-chip systems (SOCs), graphics processing units (GPUs), tensor processing units (TPUs), Artificial Intelligence (AI) accelerators, general-purpose microprocessors, microcontrollers, digital signal processors (DSPs), and the like, or any other hardware logic components that are configured to perform calculations or other manipulations of information. The processing circuitry 510 is configured to operate as a generative AI system to execute, train, and / or perform inference on any type of language model.

[0114] In at least some embodiments, the processing circuitry 510 is configured to execute generative artificial intelligence (genAI) models, perform inference using or otherwise apply genAI models, train genAI models, fine-tune genAI models, combinations thereof, and the like. Such genAI models are configured to produce text, images, videos, or other forms of data, and may include, but are not limited to, language models (for example, but not limited to, large language models, small language models, etc.), text-to-image artificial intelligence (AI) image generation systems, text-to-video AI video generators, combinations thereof, and the like. To this end, the processing circuitry 510 may be adapted to realize a transformer deep learning architecture (e.g., a generative pre-trained transformer [GPT], bidirectional encoder representations from transformers [BERT], text-to-text transfer transformer [T5], etc.), a diffusion model, both, and the like.

[0115] In accordance with various such embodiments, the hardware utilized for the processing circuitry 510 is selected in order to enable genAI functionality based on factors such as, but not limited to, parallelism (e.g., amounts of parallel processing to be performed), memory demands (e.g., amounts of random access memory [RAM] utilized to store model weights and training during processing or video RAM [VRAM] to support large language models), clock speeds, thread counts, storage (for example, to support certain amounts of storage or storage speeds), cooling (e.g., liquid cooling or air cooling systems), power supply (e.g., in order to enable a target wattage used for certain kinds of activities), networking and connectivity (e.g., in order to support seamless data transfer for deployments involving communications between or among multiple machines or clusters), combinations thereof, and the like.

[0116] In embodiments which utilize large language models (LLMs) or otherwise perform operations which may require or be enhanced through use of parallel processing, the processing circuitry 510 may include one or more GPUs or other processing units suitable for parallel processing. Such GPUs may be configured to perform matrix multiplication operations including, but not limited to, performing dot product operations in order to support neural network operations (for example, by performing dot product operations for hidden layer computations) or performing dot product operations in an attention mechanism in order to compute a similarity score between vectors during attention weight computation. In at least some such embodiments using GPUs, the processing circuitry 510 may include a number of CPU cores that is equal to or greater than the number of GPUs in order to facilitate or otherwise support parallel processing via multiple GPUs.

[0117] In an embodiment, the memory 520 is a volatile memory (e.g., random access memory, etc.), a non-volatile memory (e.g., read-only memory, flash memory, etc.), a combination thereof, and the like. In some embodiments, the memory 520 is an on-chip memory, an off-chip memory, a combination thereof, and the like. In certain embodiments, the memory 520 is a scratch-pad memory for the processing circuitry 510.

[0118] In one configuration, software for implementing one or more embodiments disclosed herein is stored in the storage 530, in the memory 520, in a combination thereof, and the like. Software shall be construed broadly to mean any type of instructions, whether referred to as software, firmware, middleware, microcode, hardware description language, or otherwise. Instructions include, according to an embodiment, code (e.g., in source code format, binary code format, executable code format, or any other suitable format of code). The instructions, when executed by the processing circuitry 510, cause the processing circuitry 510 to perform the various processes described herein, in accordance with an embodiment.

[0119] In some embodiments, the storage 530 is a magnetic storage, an optical storage, a solid-state storage, a combination thereof, and the like, and is realized, according to an embodiment, as a flash memory, as a hard disk drive, another memory technology, various combinations thereof, or any other medium which can be used to store the desired information.

[0120] The network interface 540 is configured to provide the backup system 140 with communication with, for example, the network 130, workload 110, database 120, etc., according to an embodiment.

[0121] It should be understood that the embodiments described herein are not limited to the specific architecture illustrated in FIG. 5, and other architectures may be equally used without departing from the scope of the disclosed embodiments.

[0122] The various embodiments disclosed herein can be implemented as hardware, firmware, software, or any combination thereof. Moreover, the software is preferably implemented as an application program tangibly embodied on a program storage unit or computer-readable medium consisting of parts, or of certain devices and / or a combination of devices. The application program may be uploaded to, and executed by, a machine comprising any suitable architecture. Preferably, the machine is implemented on a computer platform having hardware such as one or more processing units (“PUs”), a memory, and input / output interfaces. The computer platform may also include an operating system and microinstruction code. The various processes and functions described herein may be either part of the microinstruction code or part of the application program, or any combination thereof, which may be executed by a PU, whether or not such a computer or processor is explicitly shown. In addition, various other peripheral units may be connected to the computer platform such as an additional data storage unit and a printing unit. Furthermore, a non-transitory computer-readable medium is any computer-readable medium except for a transitory propagating signal.

[0123] All examples and conditional language recited herein are intended for pedagogical purposes to aid the reader in understanding the principles of the disclosed embodiment and the concepts contributed by the inventor to furthering the art and are to be construed as being without limitation to such specifically recited examples and conditions. Moreover, all statements herein reciting principles, aspects, and embodiments of the disclosed embodiments, as well as specific examples thereof, are intended to encompass both structural and functional equivalents thereof. Additionally, it is intended that such equivalents include both currently known equivalents as well as equivalents developed in the future, i.e., any elements developed that perform the same function, regardless of structure.

[0124] It should be understood that any reference to an element herein using a designation such as “first,”“second,” and so forth does not generally limit the quantity or order of those elements. Rather, these designations are generally used herein as a convenient method of distinguishing between two or more elements or instances of an element. Thus, a reference to the first and second elements does not mean that only two elements may be employed there or that the first element must precede the second element in some manner. Also, unless stated otherwise, a set of elements comprises one or more elements.

[0125] As used herein, the phrase “at least one of” followed by a listing of items means that any of the listed items can be utilized individually, or any combination of two or more of the listed items can be utilized. For example, if a system is described as including “at least one of A, B, and C,” the system can include A alone; B alone; C alone; 2A; 2B; 2C; 3A; A and B in combination; B and C in combination; A and C in combination; A, B, and C in combination; 2A and C in combination; A, 3B, and 2C in combination; and the like.

Claims

1. A method for detecting ransomware attacks in a database based on database (DB) backups, comprising:accessing at least one DB backup of a database, wherein each of the at least one DB backup includes files in a column-oriented format;performing a plurality of detection tests to detect a potential ransomware attack performed on the database, wherein each detection test is based on a metric associated with changes in the files in the column-oriented format in the at least one DB backup; andgenerating an alert in response to the detection of a potential ransomware attack, wherein the alert is generated based on a preconfigured number of detection tests that have failed.

2. The method of claim 1, further comprising:establishing a baseline for each metric associated with each detection test, wherein the baselines are established prior to performing the plurality of detection tests.

3. The method of claim 2, wherein a detection test of the plurality of detection tests includes any one of: a row-change test, a behavior pattern test, an entropy level test, a DB statistical information test, a data type test, and a checksum check.

4. The method of claim 3, wherein the detection test is the row-change test, and wherein performing the row-change test further comprises:accessing a first DB backup and a second DB backup of the at least one DB backup;computing a number of row-changes between the first DB backup and the second DB backup;comparing the computed number of row-changes to a metric of a row-change baseline; anddetermining that the row-change test has failed when the computed number of row-changes exceeds the metric of the row-change baseline.

5. The method of claim 3, wherein the detection test is the entropy level test, and wherein performing the entropy level test further comprises:accessing a first DB backup of the at least one DB backup,computing an entropy level for columns of tables in the first DB backup;comparing the computed entropy level to a metric of an entropy level baseline, the metric of the entropy level baseline is computed based on a DB backup taken before the first DB backup; anddetermining that the entropy level test has failed when the computed entropy level exceeds the metric of the entropy level baseline.

6. The method of claim 3, wherein the detection test is the behavior pattern test, and wherein performing the behavior pattern test further comprises:accessing a first DB backup and a second DB backup of the at least one DB backup;scanning the second DB backup to identify changes in data stored relative to the first DB backup;analyzing the changes to determine a behavior pattern of the identified changes;comparing the determined behavior pattern to a metric of a behavior pattern baseline; anddetermining that the behavior pattern test has failed when the determined behavior pattern does not match the metric of the behavior pattern baseline.

7. The method of claim 5, further comprising:identifying changes in the database using a change detection capture (CDC) process.

8. The method of claim 3, wherein the detection test is the data type test, and wherein performing the data type test further comprises:accessing a first DB backup of the at least one DB backup;determining a data type of columns of tables in the first DB backup, wherein the columns of tables in the first DB backup are saved in the files in the column-oriented format;comparing the determined data types to a metric of a data type baseline; anddetermining that the data type test has failed when the determined data types do not match the metric of the data type baseline.

9. The method of claim 8, wherein determining the data type of columns of tables in the first DB backup further comprises:scanning contents of the columns, wherein the contents include at least a syntactic structure and a semantic structure;generating a prompt, configured to be executed by an LLM, based on at least a prompt template, an instruction, and the scanned contents; andexecuting the prompt, by the LLM, to determine the data type for each particular column.

10. The method of claim 1, wherein the files in the column-oriented format include at least tables in the database.

11. The method of claim 10, wherein the database is any one of: SQL database and NoSQL database.

12. A non-transitory computer-readable medium storing a set of instructions for detecting ransomware attacks in a database based on database (DB) backups, the set of instructions comprising:one or more instructions that, when executed by one or more processing circuitries of a device, cause the device to:access at least one DB backup of a database, wherein each of the at least one DB backup includes files in a column-oriented format;perform a plurality of detection tests to detect a potential ransomware attack performed on the database, wherein each detection test is based on a metric associated with changes in the files in the column-oriented format in the at least one DB backup; andgenerate an alert in response to the detection of a potential ransomware attack, wherein the alert is generated based on a preconfigured number of detection tests that have failed.

13. A system for detecting ransomware attacks in a database based on database (DB) backups comprising:a processing circuitry;a memory, the memory containing instructions that, when executed by the processing circuitry, configure the system to:access at least one DB backup of a database, wherein each of the at least one DB backup includes files in a column-oriented format;perform a plurality of detection tests to detect a potential ransomware attack performed on the database, wherein each detection test is based on a metric associated with changes in the files in the column-oriented format in the at least one DB backup; andgenerate an alert in response to the detection of a potential ransomware attack, wherein the alert is generated based on a preconfigured number of detection tests that have failed.

14. The system of claim 13, wherein the memory contains further instructions which when executed by the processing circuitry further configure the system to:establish a baseline for each metric associated with each detection test, wherein the baselines are established prior to performing the plurality of detection tests.

15. The system of claim 14, wherein a detection test of the plurality of detection tests includes any one of:a row-change test, a behavior pattern test, an entropy level test, a DB statistical information test, a data type test, and a checksum check.

16. The system of claim 15, wherein the memory contains further instructions that, when executed by the processing circuitry for the detection test is the row-change test, and, further configure the system to:access a first DB backup and a second DB backup of the at least one DB backup;compute a number of row-changes between the first DB backup and the second DB backup;compare the computed number of row-changes to a metric of a row-change baseline; anddetermine that the row-change test has failed when the computed number of row-changes exceeds the metric of the row-change baseline.

17. The system of claim 15, wherein the memory contains further instructions that, when executed by the processing circuitry for the detection test is the entropy level test, and, further configure the system to:access a first DB backup of the at least one DB backup;compute an entropy level for columns of tables in the first DB backup;compare the computed entropy level to a metric of an entropy level baseline, the metric of the entropy level baseline is computed based on a DB backup taken before the first DB backup; anddetermine that the entropy level test has failed when the computed entropy level exceeds the metric of the entropy level baseline.

18. The system of claim 17, wherein the memory contains further instructions which when executed by the processing circuitry further configure the system to:identify changes in the database using a change detection capture (CDC) process.

19. The system of claim 15, wherein the memory contains further instructions that, when executed by the processing circuitry for the detection test is the behavior pattern test, and, further configure the system to:access a first DB backup and a second DB backup of the at least one DB backup;scan the second DB backup to identify changes in data stored relative to the first DB backup;analyze the changes to determine a behavior pattern of the identified changes;compare the determined behavior pattern to a metric of a behavior pattern baseline; anddetermine that the behavior pattern test has failed when the determined behavior pattern does not match the metric of the behavior pattern baseline.

20. The system of claim 15, wherein the memory contains further instructions that, when executed by the processing circuitry for the detection test is the data type test, and, further configure the system to:access a first DB backup of the at least one DB backup;determine a data type of columns of tables in the first DB backup, wherein the columns of tables in the first DB backup are saved in the files in the column-oriented format;compare the determined data types to a metric of a data type baseline; anddetermine that the data type test has failed when the determined data types do not match the metric of the data type baseline.

21. The system of claim 20, wherein the memory contains further instructions that, when executed by the processing circuitry for determining the data type of columns of tables in the first DB backup, further configure the system to:scan contents of the columns, wherein the contents include at least a syntactic structure and a semantic structure;generate a prompt, configured to be executed by an LLM, based on at least a prompt template, an instruction, and the scanned contents; andexecute the prompt, by the LLM, to determine the data type for each particular column.

22. The system of claim 13, wherein the files in the column-oriented format include at least tables in the database.

23. The system of claim 22, wherein the database is any one of:SQL database and NoSQL database.