hottub.patents
US 12,705,382 B2#3168314 Most CitedActiveUnited States (USPTO)Utility

System and method for protecting source code from unauthorized access

0Forward Citations (#3168314 Global)
0.0/yrCitation Velocity (#3168314 Global)
0.00Citation PageRank (#3168314 Global)
25Prior Art Cited
8Structured Claims
0Drawings / Sheets

Abstract

A system for protecting source code from unauthorized access is disclosed. The system is configured to scan the source code and identify code segments, including function code. The system may perform code obfuscation, code separation, and code encryption. The system may extract a first set of code features from the function code. The first set of code features indicates a first task associated with the function code. The system accesses a training dataset comprising a sample code that is associated with a second task and a template code. The system compares the first task with the second task. In response to determining that the first task corresponds to the second task, the system obfuscates the function code with the template code. In response, the system updates the source code to include the obfuscated function code.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 25 · Forward citations: 0.

Claims (8)

  1. Claim 1Independent Claim

    A system for securing source code from unauthorized access, comprising: a memory configured to store: source code comprising a set of code lines, wherein the set of code lines comprises a first function code; and a training dataset comprising a set of sample codes, wherein a first sample code from among the set of sample codes is associated with a first task which the first sample code is configured to perform and a first template code; and a processor, operably coupled to the memory, and configured to: train a machine learning algorithm on the training dataset to identify which template code from the training dataset is to be added to a given function code of the source code based at least in part upon a task of the given function code, such that the identified template code is configured to perform the task of the given function code, and comprises an irrelevant code segment that does not alter the task; train the machine learning algorithm on a second set of sample codes, wherein ea

  2. Claim 2Depends on #1

    The system of claim 1, wherein the processor is further configured to: generate a first feature vector to represent the first set of code features; extract, via the trained machine learning algorithm, a second set of code features from the first sample code; generate a second feature vector to represent the second set of code features; compare the first feature vector with the second feature vector by determining a distance between the first feature vector and the second feature vector in a vector space; and determine that the distance between the first feature vector and the second feature vector is less than a threshold distance, wherein determining that the first task corresponds to the second task is in response to determine that the distance between the first feature vector and the second feature vector is less than the threshold distance.

  3. Claim 3Depends on #1

    The system of claim 1, wherein the processor is further configured to: revert the first function code to an initial state before the source code is compiled; compile the source code; and execute the compiled source code to perform the first task.

  4. Claim 4Depends on #1

    The system of claim 1, wherein obfuscating the first function code comprises changing a first variable name used in the first function code to a second variable name, wherein the second variable name is irrelevant to the first task associated with the first function code.

  5. Claim 5Depends on #1

    The system of claim 1, wherein obfuscating the first function code comprises encrypting a comment line associated with a code line in the first function code, wherein the comment line comprises text that describes a function of the code line.

  6. Claim 6Depends on #1

    The system of claim 1, wherein: the set of code lines further comprises a second function code configured to perform a third task; the memory is further configured to store the function splitting rule, wherein the function splitting rule indicates that the given function code is to be split such that each split code segment, individually, does not infer a task which the given function code is configured to perform; and the processor is further configured to obfuscate the second function code by dividing the second function code into a set of code segments according to the function splitting rule.

  7. Claim 7Depends on #1

    The system of claim 1, wherein the processor is further configured to obfuscate the source code by changing a first data structure associated with a portion of the source code to a second data structure, wherein the second data structure is different from data structures associated with other parts of the source code, wherein each of the first data structure and the second data structure comprises at least one of an array, a list, a linked list, or a stack.

  8. Claim 8Independent Claim

    A method for securing source code from unauthorized access, comprising: storing: source code comprising a set of code lines, wherein the set of code lines comprises a first function code; and a training dataset comprising a set of sample codes, wherein a first sample code from among the set of sample codes is associated with a first task which the first sample code is configured to perform and a first template code; training a machine learning algorithm on the training dataset to identify which template code from the training dataset is to be added to a given function code of the source code based at least in part upon a task of the given function code, such that the identified template code is configured to perform the task of the given function code, and comprises an irrelevant code segment that does not alter the task; training the machine learning algorithm on a second set of sample codes, wherein each sample code is associated with a respective set of split code segments after spl

Technical Overview & Description

TECHNICAL FIELD The present disclosure relates generally to information security, and more specifically to a system and method for protecting source code from unauthorized access. BACKGROUND Software applications and computer devices use application programming interfaces (APIs) to communicate with each other. The API may be implemented in source code and facilitate the communication of data to computer devices when the data is requested. SUMMARY The system described in the present disclosure is particularly integrated into practical applications of improving code security and protection techniques and the functioning of computer systems that are tasked to maintain and execute source code. This approach provides technical advantages and improvements such as reduced computing and network resources for code security and protection techniques. In the current systems, software applications use application programming language (API) requests to communicate with other software applications and devices. An API may act as an interface to access a respective software application and device. Bad actors may attempt to gain access to the source code of the API in order to gain access to the software application and devices, user information stored at the software application, and sensitive data, among others. Thus, APIs are usually targeted by bad actors to access software applications, devices, databases, and the like. In some cases, bad actors may attempt to reverse engineer the source code associated with an API, which if it remains undetected and unaddressed, may lead to data breaches and unauthorized access to the software application and devices. The disclosed system provides a solution to this and other technical problems in the realm of code security and protection. In some embodiments, the system may be configured to implement a machine learning algorithm to dynamically implement one or more of code obfuscation operations, code separation operations, and code encryptio

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.