Information detection method, device and server

By performing similarity calculations on software gene sequences in a third-party development platform, sensitive information can be automatically determined, which solves the problem of manual review being difficult to accurately detect sensitive information and improves the accuracy and efficiency of sensitive data leakage detection.

CN110362968BActive Publication Date: 2024-10-18TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN201910641145.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-07-16
Publication Date
2024-10-18
Estimated Expiration
2039-07-16

AI Technical Summary

Technical Problem

In third-party open platforms, when manual review and detection of sensitive information is interfered by a large amount of irrelevant information, it is difficult to detect sensitive information and has low accuracy, and it is difficult to detect and deal with leakage hazards in a timely manner.

Method used

By obtaining the set keywords, search for the software gene sequence that matches the keyword in the published code of the third-party development platform, obtain the software gene sequence to be detected, and compare it with each software gene sequence in the software gene sequence collection. Calculate, determine the gene sequence of sensitive software, use similarity values ​​to determine whether it is sensitive information, and reduce the pressure of manual auditing.

Benefits of technology

It greatly improves the accuracy of sensitive data leakage detection, reduces the pressure of manual auditing, promptly discovers and processes leaked sensitive information, and reduces the harm of sensitive information leakage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110362968B_ABST
    Figure CN110362968B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses an information detection method, device and server. The information detection method comprises: obtaining a set keyword; searching for a software gene sequence matching the keyword in the published code of a third-party development platform to obtain a software gene sequence set; obtaining a software gene sequence to be detected; performing similarity calculations on the software gene sequence to be detected and each software gene sequence in the software gene sequence set, respectively, to determine a sensitive software gene sequence in the software gene sequence set. In the embodiment of the present application, by comparing the software gene sequence to be detected with the software gene sequence matching the keyword set by the user, it is automatically determined whether the published code of the third-party development platform contains sensitive information, which greatly improves the accuracy of sensitive data leakage detection and reduces the pressure of manual audit judgment, so that enterprises can timely discover and handle leaked sensitive information, and minimize the harm of sensitive information leakage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an information detection method, device and server. Background Art

[0002] In recent years, the development of the Internet has spawned a wide range of third-party open platforms with rich functions, which can be provided to third-party developers in the form of open interfaces. Third-party developers do not need to build the actual hardware and special software environment of the service locally, but manage software development and source code in the cloud. Take the third-party open source hosting platform GitHub as an example. As an open source code library and version control system, the Github platform currently has 24 million developers and 670 million projects, including more than 100 million files. As more and more applications are transferred to the cloud, Github has become the preferred method for managing software development and discovering existing code.

[0003] However, source code leakage has attracted the attention of more and more developers. Therefore, it is very necessary to conduct sensitive detection of existing codes in the same platform open to third parties. At present, the review and detection of sensitive information is mainly done manually. However, due to the open source behavior unique to the Internet industry, the open source components commonly used in the industry, and the frequent personnel turnover in the Internet industry, there are a lot of similarities in the project codes of different companies, and there are also forks and references between different projects. When searching for sensitive information, the results that are really needed are easily buried in a large amount of irrelevant information, which makes sensitive information detection very difficult. Summary of the invention

[0004] The present application provides an information detection method, device and server, which greatly improves the accuracy of sensitive data leakage detection and reduces the pressure of manual audit judgment, allowing enterprises to promptly discover and handle leaked sensitive information, minimizing the harm of sensitive information leakage.

[0005] In a first aspect, the present application provides an information detection method, the information detection method comprising:

[0006] Get the set keywords;

[0007] Searching for software gene sequences matching the keywords in the publicly available codes of the third-party development platform to obtain a set of software gene sequences;

[0008] Obtain the gene sequence of the software to be tested;

[0009] The similarity between the software gene sequence to be detected and each software gene sequence in the software gene sequence set is calculated to determine the sensitive software gene sequence in the software gene sequence set.

[0010] In some embodiments of the present application, the step of calculating the similarity between the software gene sequence to be detected and each software gene sequence in the software gene sequence set to determine the sensitive software gene sequence in the software gene sequence set includes:

[0011] taking the software gene sequences in the software gene sequence set as target software gene sequences respectively, and extracting the core software genes in the target software gene sequences;

[0012] Respectively calculating the similarity between each core software gene in the target software gene sequence and the software gene sequence to be detected, and obtaining a first similarity value corresponding to each core software gene;

[0013] According to the first similarity values ​​corresponding to the core software genes, it is determined whether the target software gene sequence is a sensitive software gene sequence.

[0014] In some embodiments of the present application, determining whether the target software gene sequence is a sensitive software gene sequence according to the first similarity value corresponding to each core software gene includes:

[0015] Obtaining the weight value of each software gene in the software gene sequence to be detected;

[0016] Respectively determining the software genes similar to the core software genes and the software gene sequences to be detected;

[0017] Calculate the second similarity value between the target software gene sequence and the software gene sequence to be detected according to the first similarity value corresponding to each core software gene and the weight value of the software gene similar to the software gene sequence to be detected;

[0018] According to the second similarity value, it is determined whether the target software gene sequence is a sensitive software gene sequence.

[0019] In some embodiments of the present application, determining whether the target software gene sequence is a sensitive software gene sequence according to the second similarity value includes:

[0020] Determining whether the second similarity value is higher than a first preset threshold, and if so, determining that the target software gene sequence is a sensitive software gene sequence;

[0021] Determining whether the second similarity value is lower than a second preset threshold, and if so, determining that the target software gene sequence is not a sensitive software gene sequence;

[0022] Among them, the first preset threshold is greater than the second preset threshold.

[0023] In some embodiments of the present application, determining whether the target software gene sequence is a sensitive software gene sequence according to the second similarity value further includes:

[0024] If the second similarity value is lower than the first preset threshold and higher than the second preset threshold, determining that the target software gene sequence is a suspicious sensitive software gene sequence;

[0025] A confirmation request is sent to a target terminal, so that a user of the target terminal confirms whether the target software gene sequence is a sensitive software gene sequence through the confirmation request, wherein the confirmation request includes information about the suspected sensitive software gene sequence.

[0026] In some embodiments of the present application, the keywords include at least one of user information, details page address, path in the project where the code is located, file name, file suffix, file upload time, file type, last modifier, last modification time, repository owner, source code details and Fork number.

[0027] In a second aspect, the present application provides an information detection device, the information detection device comprising:

[0028] A first acquisition unit, used to acquire a set keyword;

[0029] A search unit, used to search for software gene sequences matching the keyword in the public codes of the third-party development platform to obtain a set of software gene sequences;

[0030] The second acquisition unit is used to acquire the gene sequence of the software to be detected;

[0031] The similarity calculation unit is used to calculate the similarity between the software gene sequence to be detected and each software gene sequence in the software gene sequence set, and determine the sensitive software gene sequence in the software gene sequence set.

[0032] In some embodiments of the present application, the similarity calculation unit is specifically used to:

[0033] taking the software gene sequences in the software gene sequence set as target software gene sequences respectively, and extracting the core software genes in the target software gene sequences;

[0034] Respectively calculating the similarity between each core software gene in the target software gene sequence and the software gene sequence to be detected, and obtaining a first similarity value corresponding to each core software gene;

[0035] According to the first similarity values ​​corresponding to the core software genes, it is determined whether the target software gene sequence is a sensitive software gene sequence.

[0036] In some embodiments of the present application, the similarity calculation unit is specifically used to:

[0037] Obtaining the weight value of each software gene in the software gene sequence to be detected;

[0038] Respectively determining the software genes similar to the core software genes and the software gene sequences to be detected;

[0039] Calculate the second similarity value between the target software gene sequence and the software gene sequence to be detected according to the first similarity value corresponding to each core software gene and the weight value of the software gene similar to the software gene sequence to be detected;

[0040] According to the second similarity value, it is determined whether the target software gene sequence is a sensitive software gene sequence.

[0041] In some embodiments of the present application, the similarity calculation unit is specifically used to:

[0042] Determining whether the second similarity value is higher than a first preset threshold, and if so, determining that the target software gene sequence is a sensitive software gene sequence;

[0043] Determining whether the second similarity value is lower than a second preset threshold, and if so, determining that the target software gene sequence is not a sensitive software gene sequence;

[0044] Among them, the first preset threshold is greater than the second preset threshold.

[0045] In some embodiments of the present application, the similarity calculation unit is specifically used to:

[0046] If the second similarity value is lower than the first preset threshold and higher than the second preset threshold, determining that the target software gene sequence is a suspicious sensitive software gene sequence;

[0047] A confirmation request is sent to a target terminal, so that a user of the target terminal confirms whether the target software gene sequence is a sensitive software gene sequence through the confirmation request, wherein the confirmation request includes information about the suspected sensitive software gene sequence.

[0048] In some embodiments of the present application, the keywords include at least one of user information, details page address, path in the project where the code is located, file name, file suffix, file upload time, file type, last modifier, last modification time, repository owner, source code details and Fork number.

[0049] In a third aspect, the present application provides a server, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor performs the following steps:

[0050] Get the set keywords;

[0051] Searching for software gene sequences matching the keywords in the publicly available codes of the third-party development platform to obtain a set of software gene sequences;

[0052] Obtain the gene sequence of the software to be tested;

[0053] The similarity between the software gene sequence to be detected and each software gene sequence in the software gene sequence set is calculated to determine the sensitive software gene sequence in the software gene sequence set.

[0054] In a fourth aspect, the present application provides a storage medium having a computer program stored thereon, wherein the computer program is loaded by a processor to execute the steps in the information detection method as described in any one of the first aspects.

[0055] In the embodiment of the present application, by obtaining the set keywords; in the published code of the third-party development platform, searching for the software gene sequence matching the keywords, obtaining the software gene sequence set; obtaining the software gene sequence to be detected; calculating the similarity between the software gene sequence to be detected and each software gene sequence in the software gene sequence set, and determining the sensitive software gene sequence in the software gene sequence set. In the embodiment of the present application, by comparing the software gene sequence to be detected with the software gene sequence matching the keyword set by the user, it is automatically determined whether the published code of the third-party development platform contains sensitive information, which greatly improves the accuracy of sensitive data leakage detection and reduces the pressure of manual audit judgment, so that enterprises can timely discover and deal with leaked sensitive information, and minimize the harm of sensitive information leakage. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0057] Figure 1 is a schematic diagram of a scenario of an information detection system provided by an embodiment of the present invention;

[0058] Figure 2 is a schematic flow chart of an embodiment of an information detection method provided in an embodiment of the present invention;

[0059] Figure 3 is a schematic flow chart of an embodiment of step 204 in an embodiment of the present invention;

[0060] Figure 4 is a schematic flow chart of another embodiment of the information detection method provided in an embodiment of the present invention;

[0061] Figure 5 is a schematic structural diagram of an embodiment of an information detection device provided in an embodiment of the present invention;

[0062] Figure 6 It is a schematic diagram of the structure of a server provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0063] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0064] In the following description, specific embodiments of the present invention will be described with reference to steps and symbols performed by one or more computers, unless otherwise specified. Therefore, these steps and operations will be mentioned several times as being performed by a computer, and computer execution referred to herein includes operations by a computer processing unit of electronic signals representing data in a structured form. This operation converts the data or maintains it at a location in the memory system of the computer, which can be reconfigured or otherwise change the operation of the computer in a manner familiar to testers in the field. The data structure maintained by the data is a physical location in the memory, which has specific characteristics defined by the data format. However, the principles of the present invention are described in the above text, which does not represent a limitation, and testers in the field will understand that the various steps and operations described below can also be implemented in hardware.

[0065] The term "module" or "unit" used herein can be regarded as a software object executed on the computing system. The different components, modules, engines and services described herein can be regarded as implementation objects on the computing system. The apparatus and method described herein are preferably implemented in software, but can also be implemented in hardware, all within the scope of protection of the present invention.

[0066] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be intermediate elements. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0067] Embodiments of the present invention provide an information detection method, device and server.

[0068] See also Figure 1 , Figure 1 The present invention provides an example scenario diagram of an information detection system provided by an embodiment of the present invention. The information detection system may include a server 100, in which an information detection device is integrated. In the embodiment of the present invention, the server 100 is mainly used to obtain set keywords; search for software gene sequences matching the keywords in the public code of the third-party development platform to obtain a software gene sequence set; obtain a software gene sequence to be detected; perform similarity calculations on the software gene sequence to be detected and each software gene sequence in the software gene sequence set, and determine sensitive software gene sequences in the software gene sequence set.

[0069] In the embodiment of the present invention, the server 100 can be an independent server, or a server network or server cluster composed of servers. For example, the server 100 described in the embodiment of the present invention includes but is not limited to a computer, a network host, a single network server, a plurality of network server sets or a cloud server composed of a plurality of servers. Among them, the cloud server is composed of a large number of computers or network servers based on cloud computing. In the embodiment of the present invention, communication between the server and the client can be achieved through any communication method, including but not limited to mobile communications based on the 3rd Generation Partnership Project (3GPP), Long Term Evolution (LTE), Worldwide Interoperability for Microwave Access (WiMAX), or computer network communications based on TCP / IP Protocol Suite (TCP / IP), User Datagram Protocol (UDP), etc.

[0070] Those skilled in the art will understand that Figure 1 The application environment shown in the figure is only one application scenario of the present application solution and does not constitute a limitation on the application scenario of the present application solution. Other application environments may also include Figure 1 More or fewer servers as shown in , for example Figure 1 Only one server is shown in the figure. It can be understood that the information detection system may also include one or more other servers, which are not limited here.

[0071] In addition, the server in the embodiment of the present invention may be an enterprise server, such as Figure 1 As shown, the information detection system may also include a memory 200 for storing data, such as storing source code data of an enterprise, specifically, software gene sequences of software developed by the enterprise.

[0072] It should be noted that Figure 1 The scenario diagram of the information detection system shown is only an example. The information detection system and scenario described in the embodiment of the present invention are intended to more clearly illustrate the technical solution of the embodiment of the present invention, and do not constitute a limitation on the technical solution provided by the embodiment of the present invention. Ordinary technicians in this field can know that with the evolution of the information detection system and the emergence of new business scenarios, the technical solution provided by the embodiment of the present invention is also applicable to similar technical problems.

[0073] The following describes it in detail with reference to specific embodiments.

[0074] In this embodiment, description will be made from the perspective of an information detection device, which may be specifically integrated into the server 100 .

[0075] The present invention provides an information detection method, which comprises: obtaining a set keyword; searching for a software gene sequence matching the keyword in a public code of a third-party development platform to obtain a software gene sequence set; obtaining a software gene sequence to be detected; and performing similarity calculation on the software gene sequence to be detected and each software gene sequence in the software gene sequence set to determine a sensitive software gene sequence in the software gene sequence set.

[0076] See also Figure 2 , is a flow chart of an embodiment of an information detection method in an embodiment of the present invention, the information detection method includes:

[0077] 201. Get the set keywords.

[0078] Specifically, when enterprise users (such as enterprise managers or security maintenance personnel) need to perform sensitive information detection on a third-party development platform, they can set keywords, which are used to find matching software gene sequences in the publicly available code of the third-party development platform.

[0079] Among them, the third-party development platform can be an existing open platform for cloud-based management software development and source code, such as GitHub, Evernote, coding code hosting platform, Jianshu blog platform and other public online storage service platforms. It is understandable that with the development of technology, the third-party development platform can also be a newly emerging open platform for cloud-based management software development and source code.

[0080] In addition, in some embodiments of the present application, the keywords include at least one of user information, details page address, path in the project where the code is located, file name, file suffix, file upload time, file type, last modifier, last modification time, repository owner, source code details and number of Forks.

[0081] Specifically, the keyword may include a first keyword and a second keyword, wherein the first keyword may include a software gene sequence and display one or more types of information on the search display page. Specifically, the first keyword may include one or more of the following:

[0082] (1) Github user information: You can obtain the basic information of the repository owner.

[0083] (2) The path in the project where the code is located: the last path in the project where the source code is located

[0084] (3) File name: the name of the searched file

[0085] (4) File suffix: the suffix of the file

[0086] (5) File upload time: The upload time when the file was last indexed, converted to Beijing time

[0087] (6) Code matching segment: the matching code segment found by keyword search

[0088] (7) File type: The file type, for example, .doc\docx are both word files.

[0089] The first keyword can be used to search for software gene sequences matching the first keyword in the public codes of the third-party development platform on the search display page, and the software gene sequences can be further screened according to the second keyword. The second keyword can include one or more types of information in the details display page of the software gene sequence. Specifically, the second keyword includes one or more of the following:

[0090] (1) Details page address: You can use this URL to obtain details of a specific source code file;

[0091] (2) Warehouse owner: the owner of the warehouse;

[0092] (3) Project name: the name of the project that contains the source code;

[0093] (4) Project path: the path in the project where the source code is located;

[0094] (5)Last Modifier: The person who last modified the source code;

[0095] (6) Source code: source code details;

[0096] (7) Last modification time: marks the time when the source code was last uploaded to the Internet;

[0097] (8) Number of Forks: If a project is forked, even if the original owner of the project deletes the project, the project will still exist in the repository of the forker.

[0098] Among them, URL refers to Uniform Resource Locator (also known as Uniform Resource Locator / Location Address, URL address, etc., English: Uniform Resource Locator, often abbreviated as URL), sometimes also commonly known as web address (URL); open source refers to open source code, specifically refers to the author of the software code, who makes the written code public and everyone can cut it. And under certain agreements, other companies and developers can use this part of the code; open source components refer to open source components; warehouse refers to the collection of source code files containing all files of the software project; Fork refers to developing your own project based on other people's projects. Being forked multiple times means that the entire project source code is used by multiple people, and the number of forks refers to the number of times the project source code is used.

[0099] In the embodiment of the present invention, based on the second keyword, a software gene sequence matching the second keyword can be searched in the published code of the third-party development platform.

[0100] 202. In the publicly available codes of the third-party development platform, search for software gene sequences matching the keywords to obtain a set of software gene sequences.

[0101] Software Gene is a binary fragment with functions or information on the software body. Its concept is inspired by biological genes, and draws on the research ideas of gene analysis in bioinformatics to analyze and measure software, solving the analysis problems in today's software engineering field. Software Gene is the atomic unit of software function implementation, supporting the basic structure of software, storing all information of the software life cycle, and is the result of the mutual dependence, influence and restriction of the semantic implementation of the software programmer, compiler, basic library and system environment. The length of a software gene is relatively short, and the functions it represents are generally relatively simple.

[0102] A complex function of a program needs to be completed by combining multiple software genes. The combination is determined by the control flow. We call it a software gene sequence to describe the relationship between different genes. At present, a piece of consistent execution code on the software body is usually defined as a software gene. Consistent execution code means that under any user input condition, each instruction contained in it is either executed in full or not executed at all, which reflects the atomicity of software genes.

[0103] After obtaining the set keyword in step 201, the software gene sequence matching the keyword can be searched in the public code of the third-party development platform to obtain a software gene sequence set, wherein the software gene sequence set can include at least one software gene sequence.

[0104] Wherein, when the keyword includes the first keyword and the second keyword, the step of searching for a software gene sequence matching the keyword in the disclosed code of the third-party development platform to obtain the software gene sequence set may include: searching for a software gene sequence set matching the first keyword and the second keyword in the disclosed code of the third-party development platform. The software gene sequence in the software gene sequence set matching the first keyword and the second keyword may match both the first keyword and the second keyword, or may match the first keyword or the second keyword.

[0105] It should be noted that the keyword and software gene sequence matching described in the embodiments of the present invention refers to the information corresponding to the keyword included in the software gene sequence. For example, the keyword is "warehouse owner B", and the software gene sequence A corresponds to the warehouse owner B, which means that the software gene sequence A matches the keyword "warehouse owner B".

[0106] 203. Obtain the gene sequence of the software to be tested.

[0107] For an enterprise, its own developed software projects may include one or more software gene sequences. The software gene sequences to be tested are software gene sequences that need to be tested for sensitive information on a third-party development platform. Figure 1 The data is obtained from the memory 200 shown.

[0108] It should be noted that, in the embodiment of the present invention, step 203 may be performed before step 201 or simultaneously with step 201 . The specific sequence is set according to the actual application scenario and is not limited thereto.

[0109] 204. Calculate similarity between the software gene sequence to be detected and each software gene sequence in the software gene sequence set, and determine sensitive software gene sequences in the software gene sequence set.

[0110] In the embodiment of the present invention, by obtaining the set keywords; searching for software gene sequences matching the keywords in the published code of the third-party development platform to obtain a software gene sequence set; obtaining the software gene sequence to be detected; calculating the similarity between the software gene sequence to be detected and each software gene sequence in the software gene sequence set, and determining the sensitive software gene sequence in the software gene sequence set. In the embodiment of the present invention, by comparing the software gene sequence to be detected with the software gene sequence matching the keyword set by the user, it is automatically determined whether the published code of the third-party development platform contains sensitive information, which greatly improves the accuracy of sensitive data leakage detection and reduces the pressure of manual audit judgment, so that enterprises can timely discover and deal with leaked sensitive information, and minimize the harm of sensitive information leakage.

[0111] In some embodiments of the present invention, Figure 3 As shown, the step of calculating the similarity between the software gene sequence to be detected and each software gene sequence in the software gene sequence set to determine the sensitive software gene sequence in the software gene sequence set specifically includes:

[0112] 301. Use the software gene sequences in the software gene sequence set as target software gene sequences respectively, and extract the core software genes in the target software gene sequences.

[0113] Since not all codes in a house arrest project contain valid information, the code segments containing valid information are sorted out according to the enterprise characteristics, which are called core codes. Similarly, not all software genes in a software gene sequence are valid, and these valid software genes are called core software genes. In this embodiment, for each software gene sequence in the software gene sequence set, the core software genes therein are respectively extracted for subsequent similarity comparison.

[0114] Specifically, in this embodiment, the step of extracting the core software gene in the target software gene sequence may specifically include: obtaining a preset core software gene type; and extracting the core software gene in the target software gene sequence according to the core software gene type.

[0115] The core software gene type may be defined by a table, and a specific implementation is shown in Table 1 below:

[0116] Table 1

[0117]

[0118]

[0119] At this time, through the definition of the core software gene type in Table 1 above, the core software gene in the target software gene sequence can be confirmed and the core software gene in the target software gene sequence can be extracted.

[0120] 302. Calculate the similarity between each core software gene in the target software gene sequence and the to-be-detected software gene sequence respectively, and obtain a first similarity value corresponding to each core software gene in the target software gene sequence.

[0121] Specifically, a preset text similarity algorithm can be used to calculate the similarity between each core software gene in the target software gene sequence and the software gene sequence to be detected, and obtain the first similarity value corresponding to each core software gene in the target software gene sequence. The text similarity algorithm can adopt an existing text similarity algorithm, which is not specifically limited here.

[0122] 303. Determine whether the target software gene sequence is a sensitive software gene sequence according to the first similarity value corresponding to each core software gene in the target software gene sequence.

[0123] Among them, the determining whether the target software gene sequence is a sensitive software gene sequence according to the first similarity value corresponding to each core software gene in the target software gene sequence can further include: obtaining the weight value of each software gene in the software gene sequence to be detected; respectively determining each core software gene in the target software gene sequence and the software gene similar to the software gene sequence to be detected; calculating the second similarity value between the target software gene sequence and the software gene sequence to be detected according to the first similarity value corresponding to each core software gene in the target software gene sequence and the weight value of the software gene similar to the software gene sequence to be detected; and determining whether the target software gene sequence is a sensitive software gene sequence according to the second similarity value.

[0124] Specifically, assuming that the software gene sequence 200 to be detected includes software gene 210, software gene 220, software gene 230 and software gene 240, and the core software genes in the target software gene sequence 110 include software gene 111 and software gene 112, wherein the weight of software gene 210 in the software gene sequence to be detected is 0.6, the weight of software gene 230 in the software gene sequence to be detected is 0.2, and the weights of software genes 220 and 240 in the software gene sequence to be detected are both 0.1. In the target software gene sequence, software gene 111 is similar to software gene 210, and the first similarity value is 0.8. Software gene 112 is similar to software gene 230, and the first similarity value is 0.85. At this time, the second similarity value between the target software gene sequence 110 and the software gene sequence 200 to be detected can be: 0.85*0.2+0.8*0.6=0.17+0.48=0.65.

[0125] Furthermore, in some embodiments of the present invention, the step of determining whether the target software gene sequence is a sensitive software gene sequence based on the second similarity value may include: judging whether the second similarity value is higher than a first preset threshold, and if so, determining that the target software gene sequence is a sensitive software gene sequence; judging whether the second similarity value is lower than a second preset threshold, and if so, determining that the target software gene sequence is not a sensitive software gene sequence; wherein the first preset threshold is greater than the second preset threshold.

[0126] In other embodiments of the present invention, when the second similarity value between the target software gene sequence and the software gene sequence to be detected is lower than the first preset threshold and higher than the second preset threshold, the target software gene sequence may be a sensitive software gene sequence or may not be a sensitive software gene sequence. At this time, further auxiliary confirmation can be carried out with the aid of manual means. For example, the target software gene sequence can be sent to a target terminal (such as mid- to high-end enterprise managers or security maintenance personnel) for manual confirmation by the user of the target terminal.

[0127] At this time, the step of determining whether the target software gene sequence is a sensitive software gene sequence based on the second similarity value may also include: if the second similarity value is lower than the first preset threshold and higher than the second preset threshold, determining that the target software gene sequence is a suspected sensitive software gene sequence; sending a confirmation request to the target terminal so that the user of the target terminal confirms whether the target software gene sequence is a sensitive software gene sequence through the confirmation request, wherein the confirmation request includes information about the suspected sensitive software gene sequence.

[0128] It is to be understood that the target terminal described in the embodiments of the present invention includes both receiving and transmitting hardware devices, that is, devices with receiving and transmitting hardware capable of performing two-way communication on a two-way communication link. Such terminals may include: cellular or other communication devices, which have a single-line display or a multi-line display or a cellular or other communication device without a multi-line display. Specifically, the target terminal may be a desktop terminal or a mobile terminal, and the target terminal may be one of a mobile phone, a tablet computer, a laptop computer, and a desktop computer.

[0129] In a specific embodiment of the present invention, the first preset threshold value may be 0.9, and the second preset threshold value may be 0.5. Specifically, the second similarity value corresponds to whether the software gene sequence is sensitive or not as shown in Table 2 below:

[0130] Table 2

[0131] The second similarity value Is the software sensitive to gene sequences? ≥0.95 It is definitely a high-risk sensitive software gene sequence 0.9~0.94 Can be considered as sensitive software gene sequence 0.8~0.89 It may be a sensitive software gene sequence, which requires manual judgment 0.5~0.79 There is a possibility that it is a sensitive software gene sequence, which requires manual judgment <0.5 Not a sensitive software gene sequence

[0132] As can be seen from Table 2, if the second similarity value between the target software gene sequence and the software gene sequence to be detected is greater than 0.9, the target software gene sequence is considered to be a sensitive software gene sequence, and if the second similarity value between the target software gene sequence and the software gene sequence to be detected is less than 0.5, the target software gene sequence is considered not to be a sensitive software gene sequence. As shown in Table 2, further classification can be made based on the value of the second similarity value between the target software gene sequence and the software gene sequence to be detected, such as whether it is high risk, whether manual judgment is required, etc., which can be set according to actual conditions and are not limited here.

[0133] Through the second similarity value given above, the server can automatically determine whether the publicly available code in the third-party development platform contains sensitive software gene sequences, and whether immediate human intervention is required. This greatly improves the accuracy of sensitive software gene sequence leakage detection and reduces the pressure of manual review and judgment. It can timely discover and handle leaked sensitive information, and minimize the harm of sensitive information leakage.

[0134] The information detection method in the embodiment of the present invention is described below in conjunction with a specific application scenario.

[0135] See also Figure 4 , is a flow chart of another embodiment of the information detection method in the embodiment of the present invention, the information detection method is applied to a server, and the information detection method includes:

[0136] 401. Get the set keywords.

[0137] Assume that the user sets the keywords: user A (warehouse owner), java (file type), 2019 (file upload time).

[0138] 402. In the publicly available codes on the Github platform, search for software gene sequences matching the keyword to obtain a software gene sequence set 100.

[0139] In this embodiment, the third-party development platform is taken as an example of Github platform. At this time, assuming that according to the keyword in step 401, the software gene sequence matching the keyword can be searched in the public code of the Github platform to obtain the software gene sequence set 100. It is assumed that the software gene sequence set 100 includes software gene sequence 110, software gene sequence 120, software gene sequence 130 and software gene sequence 140.

[0140] 403. Obtain the gene sequence 200 of the software to be detected.

[0141] Assume that the software gene sequence 200 to be detected includes a software gene 210 , a software gene 220 , a software gene 230 , and a software gene 240 .

[0142] 404 . Use the software gene sequences in the software gene sequence set 100 as target software gene sequences respectively, and extract core software genes from the target software gene sequences.

[0143] Specifically, the core software genes are extracted from software gene sequence 110, software gene sequence 120, software gene sequence 130 and software gene sequence 140 respectively. Taking the target software gene sequence as software gene sequence 110 as an example, assuming that the software gene sequence 110, the core software genes include software gene 111 and software gene 112.

[0144] 405 . Calculate the similarity between each core software gene in the target software gene sequence and the software gene sequence to be detected, and obtain a first similarity value corresponding to each core software gene in the target software gene.

[0145] Here, the target software gene sequence is also taken as software gene sequence 110 as an example to introduce how to calculate the similarity between each core software gene in the target software gene sequence and the software gene sequence to be detected, and obtain the similarity value corresponding to each core software gene in the target software gene sequence, which is specifically as follows:

[0146] The software gene sequence 200 to be detected includes software gene 210, software gene 220, software gene 230 and software gene 240. The core software genes in the target software gene sequence 110 include software gene 111 and software gene 112. Assuming that the first similarity value between software gene 111 and software gene 210 in the target software gene sequence is calculated according to a preset text similarity algorithm, the first similarity value between software gene 111 and software gene 210 is 0.8, and the first similarity value between software gene 112 and software gene 230 is 0.85.

[0147] 406. Obtain a weight value of each software gene in the software gene sequence to be detected.

[0148] Specifically, it is assumed that the weight of software gene 210 in the software gene sequence to be detected is 0.6, the weight of software gene 230 in the software gene sequence to be detected is 0.2, and the weights of software genes 220 and 240 in the software gene sequence to be detected are both 0.1.

[0149] 407. Determine software genes that are similar to each core software gene in the target software gene sequence and the software gene sequence to be detected.

[0150] Specifically, it is assumed here that in the target software gene sequence, the software gene 111 is similar to the software gene 210 , and the software gene 112 is similar to the software gene 230 .

[0151] 408. Calculate a second similarity value between the target software gene sequence and the software gene sequence to be detected based on the first similarity value corresponding to each core software gene in the target software gene sequence and the weight value of the software gene similar to the software gene sequence to be detected.

[0152] Since the software gene sequence 200 to be detected includes software gene 210, software gene 220, software gene 230 and software gene 240, the core software genes in the target software gene sequence 110 include software gene 111 and software gene 112, wherein the weight of software gene 210 in the software gene sequence to be detected is 0.6, the weight of software gene 230 in the software gene sequence to be detected is 0.2, and the weights of software genes 220 and 240 in the software gene sequence to be detected are both 0.1. In the target software gene sequence, software gene 111 is similar to software gene 210, and the first similarity value is 0.8. Software gene 112 is similar to software gene 230, and the first similarity value is 0.85.

[0153] At this time, the second similarity value between the target software gene sequence 110 and the to-be-detected software gene sequence 200 may be: 0.85*0.2+0.8*0.6=0.17+0.48=0.65

[0154] 409 . Determine whether the target software gene sequence 110 is a sensitive software gene sequence according to the second similarity value between the target software gene sequence 110 and the software gene sequence to be detected 200 .

[0155] Specifically, the step of determining whether the target software gene sequence 110 is a sensitive software gene sequence according to the second similarity value between the target software gene sequence 110 and the software gene sequence 200 to be detected may include: judging whether the second similarity value between the target software gene sequence 110 and the software gene sequence 200 to be detected is higher than a first preset threshold value, and if so, determining that the target software gene sequence 110 is a sensitive software gene sequence; judging whether the second similarity value between the target software gene sequence 110 and the software gene sequence 200 to be detected is lower than a second preset threshold value, and if so, determining that the target software gene sequence 110 is not a sensitive software gene sequence; wherein the first preset threshold value is greater than the second preset threshold value.

[0156] When the second similarity value between the target software gene sequence 110 and the software gene sequence to be detected 20 is lower than the first preset threshold and higher than the second preset threshold, the target software gene sequence may be a sensitive software gene sequence or may not be a sensitive software gene sequence. At this time, further auxiliary confirmation can be made with the help of manual means. For example, the target software gene sequence can be sent to a target terminal (such as mid- to high-end enterprise managers or security maintenance personnel) for manual confirmation by the user of the target terminal.

[0157] Here, assuming that the first preset threshold value is 0.9 and the second preset threshold value is 0.5, according to the second similarity value of 0.65 between the target software gene sequence 110 and the software gene sequence to be detected 200 obtained in step 408, it is not possible to directly determine whether the target software gene sequence 110 is a sensitive software gene sequence. A confirmation request including the target software gene sequence 110 may be further sent to the user of the target terminal for further manual review.

[0158] According to the above method of confirming whether software gene sequence 110 is a sensitive software gene sequence, software gene sequence 120, software gene sequence 130 and software gene sequence 140 in software gene sequence set 100 may be confirmed in turn to be sensitive software gene sequences, which will not be described in detail here.

[0159] In this embodiment, by comparing the software gene sequence to be detected with the software gene sequence that matches the keywords set by the user, it is automatically determined whether the publicly available code of the third-party development platform contains sensitive information, which greatly improves the accuracy of sensitive data leakage detection and reduces the pressure of manual audit judgment, allowing enterprises to promptly discover and deal with leaked sensitive information, minimizing the harm of sensitive information leakage.

[0160] To facilitate better implementation of the information detection method provided in the embodiment of the present invention, the embodiment of the present invention also provides a device based on the above information detection method. The meanings of the terms are the same as those in the above information detection method, and the specific implementation details can refer to the description in the method embodiment.

[0161] See also Figure 5 , Figure 5 A schematic diagram of the structure of an information detection device provided in an embodiment of the present invention, wherein the information detection device 500 may include a first acquisition unit 501, a search unit 502, a second acquisition unit 503 and a similarity calculation unit 504, wherein:

[0162] A first acquisition unit 501 is used to acquire a set keyword;

[0163] A search unit 502 is used to search for software gene sequences matching the keyword in the public codes of the third-party development platform to obtain a set of software gene sequences;

[0164] The second acquisition unit 503 is used to acquire the gene sequence of the software to be detected;

[0165] The similarity calculation unit 504 is used to calculate the similarity between the software gene sequence to be detected and each software gene sequence in the software gene sequence set, and determine the sensitive software gene sequence in the software gene sequence set.

[0166] In some embodiments of the present application, the similarity calculation unit 504 is specifically used to:

[0167] taking the software gene sequences in the software gene sequence set as target software gene sequences respectively, and extracting the core software genes in the target software gene sequences;

[0168] Respectively calculating the similarity between each core software gene in the target software gene sequence and the software gene sequence to be detected, and obtaining a first similarity value corresponding to each core software gene;

[0169] According to the first similarity values ​​corresponding to the core software genes, it is determined whether the target software gene sequence is a sensitive software gene sequence.

[0170] In some embodiments of the present application, the similarity calculation unit 504 is specifically used to:

[0171] Obtaining the weight value of each software gene in the software gene sequence to be detected;

[0172] Respectively determining the software genes similar to the core software genes and the software gene sequences to be detected;

[0173] Calculate the second similarity value between the target software gene sequence and the software gene sequence to be detected according to the first similarity value corresponding to each core software gene and the weight value of the software gene similar to the software gene sequence to be detected;

[0174] According to the second similarity value, it is determined whether the target software gene sequence is a sensitive software gene sequence.

[0175] In some embodiments of the present application, the similarity calculation unit 504 is specifically used to:

[0176] Determining whether the second similarity value is higher than a first preset threshold, and if so, determining that the target software gene sequence is a sensitive software gene sequence;

[0177] Determining whether the second similarity value is lower than a second preset threshold, and if so, determining that the target software gene sequence is not a sensitive software gene sequence;

[0178] Among them, the first preset threshold is greater than the second preset threshold.

[0179] In some embodiments of the present application, the similarity calculation unit 504 is specifically used to:

[0180] If the second similarity value is lower than the first preset threshold and higher than the second preset threshold, determining that the target software gene sequence is a suspicious sensitive software gene sequence;

[0181] A confirmation request is sent to a target terminal, so that a user of the target terminal confirms whether the target software gene sequence is a sensitive software gene sequence through the confirmation request, wherein the confirmation request includes information about the suspected sensitive software gene sequence.

[0182] In some embodiments of the present application, the keywords include at least one of user information, details page address, path in the project where the code is located, file name, file suffix, file upload time, file type, last modifier, last modification time, repository owner, source code details and Fork number.

[0183] The embodiment of the present invention further provides a server, such as Figure 6 As shown, it shows a schematic diagram of the structure of the server involved in the embodiment of the present invention, specifically:

[0184] The server may include one or more processing core processors 601, one or more computer-readable storage media memories 602, a power supply 603, an input unit 604 and other components. Those skilled in the art will appreciate that Figure 6 The server structure shown in the figure does not constitute a limitation on the server, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0185] in:

[0186] The processor 601 is the control center of the server, and uses various interfaces and lines to connect various parts of the entire server. It executes various functions of the server and processes data by running or executing software programs and / or modules stored in the memory 602, and calling data stored in the memory 602. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operation storage medium, user interface and application program, etc., and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 601.

[0187] The memory 602 can be used to store software programs and modules. The processor 601 executes various functional applications and data processing by running the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating storage medium, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the server, etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 602 may also include a memory controller to provide the processor 601 with access to the memory 602.

[0188] The server also includes a power supply 603 for supplying power to each component. Preferably, the power supply 603 can be logically connected to the processor 601 through a power management storage medium, so as to manage charging, discharging, power consumption management and other functions through the power management storage medium. The power supply 603 can also include one or more DC or AC power supplies, recharge storage media, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.

[0189] The server may further include an input unit 604, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0190] Although not shown, the server may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 601 in the server will load the executable files corresponding to the processes of one or more application programs into the memory 602 according to the following instructions, and the processor 601 will run the application programs stored in the memory 602, thereby realizing various functions, as follows:

[0191] Obtain the set keyword; search for software gene sequences matching the keyword in the publicly available code of the third-party development platform to obtain a software gene sequence set; obtain the software gene sequence to be detected; perform similarity calculations on the software gene sequence to be detected and each software gene sequence in the software gene sequence set to determine the sensitive software gene sequence in the software gene sequence set.

[0192] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0193] To this end, an embodiment of the present invention provides a storage medium on which a computer program is stored, and the computer program is loaded by a processor to execute the steps in any one of the information detection methods provided in the embodiments of the present invention. For example, the computer program can be loaded by the processor to execute the following steps:

[0194] Obtain the set keyword; search for software gene sequences matching the keyword in the publicly available code of the third-party development platform to obtain a software gene sequence set; obtain the software gene sequence to be detected; perform similarity calculations on the software gene sequence to be detected and each software gene sequence in the software gene sequence set to determine the sensitive software gene sequence in the software gene sequence set.

[0195] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0196] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0197] Since the instructions stored in the storage medium can execute the steps in any information detection method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any information detection method provided in the embodiments of the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0198] The above is a detailed introduction to an information detection method, device and server provided in an embodiment of the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. An information detection method, It is characterized in that The information detection method comprises: Get the set keywords; In the publicly available code of the third-party development platform, searching for a software gene sequence matching the keyword to obtain a software gene sequence set, wherein the software gene sequence includes a plurality of software genes, and the software gene includes a consistent execution code; Obtain the gene sequence of the software to be tested; The software gene sequence to be detected is respectively subjected to similarity calculation with each software gene sequence in the software gene sequence set to determine the sensitive software gene sequence in the software gene sequence set, including: taking the software gene sequences in the software gene sequence set as target software gene sequences respectively, and extracting the core software genes in the target software gene sequence; respectively calculating the similarity between each core software gene in the target software gene sequence and the software gene sequence to be detected, and obtaining the first similarity value corresponding to each core software gene; obtaining the weight value of each software gene in the software gene sequence to be detected; respectively determining the software genes similar to each core software gene in the software gene sequence to be detected; calculating the second similarity value between the target software gene sequence and the software gene sequence to be detected according to the first similarity value corresponding to each core software gene and the weight value of the software gene similar to the software gene sequence to be detected; and determining whether the target software gene sequence is a sensitive software gene sequence according to the second similarity value.

2. The information detection method according to claim 1, It is characterized in that Determining whether the target software gene sequence is a sensitive software gene sequence according to the second similarity value includes: Determining whether the second similarity value is higher than a first preset threshold, and if so, determining that the target software gene sequence is a sensitive software gene sequence; Determining whether the second similarity value is lower than a second preset threshold, and if so, determining that the target software gene sequence is not a sensitive software gene sequence; Among them, the first preset threshold is greater than the second preset threshold.

3. The information detection method according to claim 2, It is characterized in that Determining whether the target software gene sequence is a sensitive software gene sequence according to the second similarity value further includes: If the second similarity value is lower than the first preset threshold and higher than the second preset threshold, determining that the target software gene sequence is a suspicious sensitive software gene sequence; A confirmation request is sent to a target terminal, so that a user of the target terminal confirms whether the target software gene sequence is a sensitive software gene sequence through the confirmation request, wherein the confirmation request includes information about the suspected sensitive software gene sequence.

4. The information detection method according to claim 1, It is characterized in that The keywords include at least one of user information, details page address, path in the project where the code is located, file name, file suffix, file upload time, file type, last modifier, last modification time, repository owner, source code details and number of forks.

5. An information detection device, It is characterized in that The information detection device comprises: A first acquisition unit is used to acquire set keywords, the keywords include a first keyword and a second keyword, the first keyword includes one or more types of information displayed on the search display page of the software gene sequence, and the second keyword includes one or more types of information on the detail display page of the software gene sequence; A search unit, used to search for a software gene sequence matching the keyword in the public code of the third-party development platform to obtain a set of software gene sequences, wherein the software gene sequence includes a plurality of software genes, and the software gene includes a consistent execution code; The second acquisition unit is used to acquire the gene sequence of the software to be detected; The similarity calculation unit is used to calculate the similarity between the software gene sequence to be detected and each software gene sequence in the software gene sequence set, and determine the sensitive software gene sequence in the software gene sequence set, including: taking the software gene sequences in the software gene sequence set as target software gene sequences, extracting the core software genes in the target software gene sequences; calculating the similarity between each core software gene in the target software gene sequence and the software gene sequence to be detected, and obtaining the first similarity value corresponding to each core software gene; obtaining the weight value of each software gene in the software gene sequence to be detected; determining the software genes similar to each core software gene in the software gene sequence to be detected; calculating the second similarity value between the target software gene sequence and the software gene sequence to be detected according to the first similarity value corresponding to each core software gene and the weight value of the software gene similar to the software gene sequence to be detected; and determining whether the target software gene sequence is a sensitive software gene sequence according to the second similarity value.

6. A server, It is characterized in that The invention comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps: Acquire set keywords, the keywords include a first keyword and a second keyword, the first keyword includes one or more types of information displayed on the search display page of the software gene sequence, and the second keyword includes one or more types of information on the details display page of the software gene sequence; In the publicly available code of the third-party development platform, searching for a software gene sequence matching the keyword to obtain a software gene sequence set, wherein the software gene sequence includes a plurality of software genes, and the software gene includes a consistent execution code; Obtain the gene sequence of the software to be tested; The software gene sequence to be detected is respectively subjected to similarity calculation with each software gene sequence in the software gene sequence set to determine the sensitive software gene sequence in the software gene sequence set, including: taking the software gene sequences in the software gene sequence set as target software gene sequences respectively, and extracting the core software genes in the target software gene sequence; respectively calculating the similarity between each core software gene in the target software gene sequence and the software gene sequence to be detected, and obtaining the first similarity value corresponding to each core software gene; obtaining the weight value of each software gene in the software gene sequence to be detected; respectively determining the software genes similar to each core software gene in the software gene sequence to be detected; calculating the second similarity value between the target software gene sequence and the software gene sequence to be detected according to the first similarity value corresponding to each core software gene and the weight value of the software gene similar to the software gene sequence to be detected; and determining whether the target software gene sequence is a sensitive software gene sequence according to the second similarity value.

7. A storage medium, It is characterized in that The storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute the steps in the information detection method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Security detection system based on open platform and detection method thereof

    CN102750469A

  • Chinese document gene matching method based on multi-weight system

    CN107491424A

  • Malware detection method based on software genetic technology

    CN108932430A

  • Method and apparatus for detecting pirated application program, computer device and storage medium

    CN109446753A

  • Sensitive information detection method and device and electronic device

    CN109766719A