Detection method, system, device and storage medium based on container interactive application

By automatically deploying detection plug-ins for files to be tested in container clusters and establishing detection task correlations, the cumbersome problems of instrumentation and detection setting processes in the existing technology are solved, and the efficiency and convenience of security detection are improved.

CN115185644BActive Publication Date: 2024-08-27CHINA TELECOM CORP LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210876630.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-25
Publication Date
2024-08-27
Estimated Expiration
2042-07-25

AI Technical Summary

Technical Problem

Existing interactive security detection technology requires users to manually instrument and establish detection tasks separately, resulting in high usage thresholds and low detection efficiency. In addition, security detection cannot be fully integrated into the continuous integration process, making the process cumbersome.

Method used

By establishing a detection plug-in configuration file for the files to be tested in the container cluster, the detection plug-in is automatically deployed, and based on the configuration parameters, detection information is collected and fed back, detection tasks and correlations are established, and instrumentation and detection settings are automated.

Benefits of technology

It greatly improves the efficiency of security detection, simplifies the user operation process, and makes security detection more convenient and efficient.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115185644B
    Figure CN115185644B
Patent Text Reader

Abstract

The present invention provides a detection method, system, device and storage medium based on container interactive application, wherein the method includes: establishing a detection plug-in configuration file for a file to be tested in a container cluster, the detection plug-in configuration file includes a download path for the detection plug-in and configuration parameters related to the download of the detection plug-in; deploying the detection plug-in configuration file to a container with the file to be tested, and when the file to be tested is started, the detection plug-in in the container is activated; the detection plug-in collects relevant detection information based on the configuration parameters and feeds back; establishing a detection task based on the received detection information, and establishing an association relationship between the detection task and the file to be tested based on the configuration parameters; performing security detection based on the detection task, and feeding back the detection result information to the file to be tested based on the association relationship. The present invention can realize the automation of the plug-in and detection setting process, can bring convenience to users, and greatly improve the efficiency of security detection.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] Interaction was originally a computer term. It refers to the process in which the system receives input from the terminal, processes it, and returns the result to the terminal, that is, human-computer dialogue. Interactive application security testing (IAST) is a technology that automatically identifies and diagnoses software vulnerabilities in applications and APIs. Among them, interactive application security detection combines dynamic and static security detection, and achieves the purpose of discovering security vulnerabilities by analyzing and processing requests. It has the characteristics of being able to trace vulnerabilities with high accuracy. The process of interactive detection includes: receiving requests, scanning requests, sending requests to inject taint markers, receiving corresponding results and scanning. Continuous integration is a software development practice. In a containerized continuous integration system, the system will automatically complete the build, packaging, and deployment operations for users.

[0003] Since IAST needs to obtain application-related requests, it needs to perform instrumentation operations. In the current interactive security detection practice, users are often required to manually instrument and establish a separate detection task plan, which results in a certain threshold for the implementation of interactive detection and reduces the efficiency of security detection.

[0004] In existing continuous integration systems that integrate interactive detection capabilities, many times, not much consideration is given to how to fully integrate security detection into the entire process, but security detection is treated as a separate process. For interactive detection, which requires additional steps, the overall process becomes more cumbersome and bloated.

[0005] In view of this, the present invention proposes a detection method, system, device and storage medium based on container interactive application.

[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present invention, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0007] In view of the problems in the prior art, the purpose of the present invention is to provide a detection method, system, device and storage medium based on container interactive application, which overcomes the difficulties of the prior art, can realize the automation of the insertion and detection setting process, can bring convenience to users, and greatly improve the efficiency of security detection.

[0008] An embodiment of the present invention provides a detection method based on a container interactive application, comprising the following steps:

[0009] Creating a detection plug-in configuration file for the file to be tested in the container cluster, wherein the detection plug-in configuration file includes a download path for the detection plug-in and configuration parameters related to the download of the detection plug-in;

[0010] Deploy the detection plug-in configuration file to a container having the file to be tested, and activate the detection plug-in in the container when the file to be tested is started;

[0011] The detection plug-in collects relevant detection information based on the configuration parameters and feeds back;

[0012] Establishing a detection task based on the received detection information, and establishing an association relationship between the detection task and the file to be tested based on the configuration parameters;

[0013] A security detection is performed based on the detection task, and the detection result information is fed back to the file to be tested according to the association relationship.

[0014] Preferably, the detection plug-in configuration file is established for the file to be tested in the container cluster, and the detection plug-in configuration file includes a download path of the detection plug-in and configuration parameters related to the download of the detection plug-in, including:

[0015] Establishing several detection plug-in configuration files for the files to be tested in the container cluster, each of the detection plug-in configuration files includes a download path for the detection plug-in and configuration parameters related to the download of the detection plug-in, and the configuration parameters include a feedback address and port for detection information; and

[0016] A mapping relationship table between the detection plug-in configuration file, container type and preset detection task type is established.

[0017] Preferably, the step of deploying the detection plug-in configuration file to a container having the file to be tested, and activating the detection plug-in in the container when the file to be tested is started, comprises:

[0018] Detecting the type of the container having the file to be tested;

[0019] Obtain a corresponding detection plug-in configuration file according to the container type;

[0020] Send the corresponding detection plug-in configuration file to the container;

[0021] When the file to be tested is started, the detection plug-in in the container is activated.

[0022] Preferably, the detection plug-in collects relevant detection information based on the configuration parameters and feeds back the information, including:

[0023] The activated detection plug-in collects relevant detection information based on the configuration parameters;

[0024] The detection information is sent to the feedback address and port.

[0025] Preferably, the step of establishing a detection task based on the received detection information and establishing an association relationship between the detection task and the file to be tested based on the configuration parameters includes:

[0026] Establishing a detection task based on the received detection information and the name of the file to be tested;

[0027] An association relationship is established between the detection task and the file to be detected based on the configuration parameters.

[0028] Preferably, the performing of security detection based on the detection task and feeding back the detection result information to the file to be tested according to the association relationship includes:

[0029] Perform safety testing based on the testing task and testing information to obtain testing result information;

[0030] The association relationship feeds back the detection result information to the file to be tested.

[0031] Preferably, the performing of security detection based on the detection task and feeding back the detection result information to the file to be tested according to the association relationship further includes:

[0032] Obtaining a set of files of the same type as those to be tested in the container cluster according to the files to be tested;

[0033] The detection result information is associated with all the files to be tested in the set of files of the same type.

[0034] An embodiment of the present invention further provides a detection system based on a container interactive application, which is used to implement the above-mentioned detection method based on a container interactive application. The detection system based on a container interactive application includes:

[0035] A configuration file module, wherein the files to be tested in the container cluster establish a detection plug-in configuration file, wherein the detection plug-in configuration file includes a download path of the detection plug-in and configuration parameters related to the download of the detection plug-in;

[0036] A file deployment module, deploying the detection plug-in configuration file to a container having the file to be tested, and activating the detection plug-in in the container when the file to be tested is started;

[0037] An information feedback module, wherein the detection plug-in collects relevant detection information based on the configuration parameters and feeds back the information;

[0038] A detection task module, which establishes a detection task based on the received detection information, and establishes an association relationship between the detection task and the file to be tested based on the configuration parameters;

[0039] The security detection module performs security detection based on the detection task and feeds back the detection result information to the file to be tested according to the association relationship.

[0040] An embodiment of the present invention further provides a detection device based on a container interactive application, comprising:

[0041] processor;

[0042] a memory storing executable instructions of the processor;

[0043] The processor is configured to perform the steps of the above-mentioned detection method based on container interactive application by executing the executable instructions.

[0044] An embodiment of the present invention further provides a computer-readable storage medium for storing a program, wherein the program, when executed, implements the steps of the above-mentioned detection method based on container interactive application.

[0045] The purpose of the present invention is to provide a detection method, system, device and storage medium based on container interactive application, which can realize the automation of the plugging and detection setting process, bring convenience to users, and greatly improve the efficiency of security detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Other features, objectives and advantages of the present invention will become more apparent from a reading of the detailed description of non-limiting embodiments made with reference to the following accompanying drawings.

[0047] Figure 1 It is a flow chart of the detection method based on container interactive application of the present invention.

[0048] Figure 2 It is a flowchart of step S110 in an embodiment of the detection method based on container interactive application of the present invention.

[0049] Figure 3 It is a flow chart of step S120 in the embodiment of the detection method based on container interactive application of the present invention.

[0050] Figure 4 It is a flowchart of step S130 in an embodiment of the detection method based on container interactive application of the present invention.

[0051] Figure 5 It is a flowchart of step S140 in an embodiment of the detection method based on container interactive application of the present invention.

[0052] Figure 6 It is a flowchart of step S150 in an embodiment of the detection method based on container interactive application of the present invention.

[0053] Figure 7 It is a module schematic diagram of the detection system based on container interactive application of the present invention.

[0054] Figure 8 It is a module schematic diagram of a configuration file module in an embodiment of a detection system based on container interactive applications of the present invention.

[0055] Fig. 9 It is a module schematic diagram of a file deployment module in an embodiment of a detection system based on container interactive applications of the present invention.

[0056] Fig.10 4 is a schematic diagram of an information feedback module in an embodiment of a detection system based on container interactive application of the present invention.

[0057] Fig.11 It is a module schematic diagram of a detection task module in an embodiment of a detection system based on container interactive application of the present invention.

[0058] Fig.12 It is a module schematic diagram of a security detection module in an embodiment of a detection system based on container interactive applications of the present invention.

[0059] Fig.13 , 14 It is a schematic diagram of the implementation process of the detection method based on container interactive application of the present invention.

[0060] Fig.15 It is a schematic diagram of a detection device based on container interactive application of the present invention. DETAILED DESCRIPTION

[0061] The following describes the implementation methods of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the content disclosed in the present application. The present application can also be implemented or applied through other different specific implementation methods, and the details in the present application can also be modified or changed in various ways according to different viewpoints and application systems without departing from the spirit of the present application. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.

[0062] The following is a detailed description of the embodiments of the present application with reference to the accompanying drawings so that those skilled in the art can easily implement the present application. The present application can be embodied in a variety of different forms and is not limited to the embodiments described herein.

[0063] In the representations of the present application, the representations with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" etc. mean that the specific features, structures, materials or characteristics represented in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the represented specific features, structures, materials or characteristics may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples represented in the present application and the features of the different embodiments or examples, unless they contradict each other.

[0064] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the representation of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0065] In order to clearly describe the present application, components irrelevant to the description are omitted, and the same reference symbols are given to the same or similar components throughout the specification.

[0066] Throughout the specification, when a device is said to be "connected" to another device, this includes not only the case of "direct connection" but also the case of "indirect connection" by placing other elements therebetween. In addition, when a device is said to "include" a certain component, unless otherwise stated, it does not exclude other components, but means that other components may be included.

[0067] When a device is said to be "on" another device, it may be directly on the other device, but there may also be other devices between it. In contrast, when a device is said to be "directly" on another device, there are no other devices between it.

[0068] Although the terms first, second, etc. are used to represent various elements in some examples, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, the first interface and the second interface, etc. are represented. Moreover, as used in this article, the singular forms "one", "one" and "the" are intended to also include plural forms, unless there is an opposite indication in the context. It should be further understood that the terms "comprising" and "including" indicate the existence of features, steps, operations, elements, components, projects, kinds, and / or groups, but do not exclude the existence, occurrence or addition of one or more other features, steps, operations, elements, components, projects, kinds, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Therefore, "A, B or C" or "A, B and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C". Only when the combination of elements, functions, steps or operations is inherently mutually exclusive in some way, will there be an exception to this definition.

[0069] The technical terms used herein are only used to refer to specific embodiments and are not intended to limit the present application. The singular form used herein also includes the plural form unless the sentence clearly indicates the contrary meaning. The meaning of "including" used in the specification is to specify specific characteristics, regions, integers, steps, operations, elements and / or components, and does not exclude the existence or addition of other characteristics, regions, integers, steps, operations, elements and / or components.

[0070] Although not defined differently, all terms, including technical and scientific terms used herein, have the same meaning as those generally understood by those skilled in the art to which this application belongs. Terms defined in commonly used dictionaries are additionally interpreted as having meanings consistent with the relevant technical literature and the contents of the current disclosure, and unless defined, shall not be overly interpreted as ideal or very formal meanings.

[0071] Figure 1 is a flow chart of the detection method based on container interactive application of the present invention. Figure 1 As shown, the detection method based on container interactive application of the present invention relates to the field of network configuration, and is a method of detecting method based on container interactive application. The process of the present invention includes:

[0072] S110: Create a detection plug-in configuration file for the file to be tested in the container cluster, where the detection plug-in configuration file includes a download path for the detection plug-in and configuration parameters related to the download of the detection plug-in.

[0073] S120: deploy the detection plug-in configuration file to a container having a file to be tested, and when the file to be tested is started, the detection plug-in in the container is activated.

[0074] S130: The detection plug-in collects relevant detection information based on the configuration parameters and feeds back the information.

[0075] S140: Establish a detection task based on the received detection information, and establish an association relationship between the detection task and the file to be tested based on the configuration parameters.

[0076] S150: Perform security detection based on the detection task, and feed back detection result information to the file to be tested according to the association relationship.

[0077] The interactive application security test (IAST) used in the security detection of the present invention is not a scanner. IAST continuously monitors the vulnerabilities in your application from the inside. Throughout the development life cycle, IAST provides real-time alarms through the tools you use in development and testing. The most notable feature of IAST is that it uses plugging to collect security information and directly discovers problems from the running code. It is not source code scanning (SAST) or HTTP scanning (DAST). The emergence of new technologies is to solve the historical problems left over from old technologies. The old technologies corresponding to IAST are SAST and DAST. Traditional application security testing mainly includes SAST (static application security testing) and DAST (dynamic application security testing). SAST performs white box analysis on the source code of the application. The analysis is run on the static view of the code, which means that the code is not running when it is detected, and the false alarm rate of SAST cannot be effectively controlled, and it is difficult to apply to systems in the production stage. DAST performs black box testing on the application and cannot access the code details. DAST products do not need to pay attention to the underlying technology and platform, so they are more widely used and have good accuracy. However, the technical characteristics of DAST determine its high false negative rate and cannot be applied to the R&D stage of the application.

[0078] The container in the present invention is a technology for bundling an application with all its necessary files into a runtime environment. As a unit, the container can be easily moved and run on any operating system in any environment. Using containers can isolate software so that it can run independently in different operating systems, hardware, networks, storage systems and security policies. This allows container-based applications to be seamlessly converted in development, testing and production environments. Since the operating system is not packaged into the container, each container only needs to use very few computing resources, not only taking up very little space, but also easy to install. By using containers, users can avoid crashes caused by incompatible environments and can obtain consistent performance on different machines. Developers can focus on the application itself without having to distract their energy to debug or rewrite for different server environments. Since the container does not contain an operating system, developers can efficiently deploy containers in a cluster, and each container can be responsible for retaining a single component of a complex application. By placing components in independent containers, developers can also update individual components without rewriting the entire application.

[0079] The detection method based on container interactive application of the present invention can realize automation of the plugging and detection setting process, can bring convenience to users, and greatly improve the safety detection efficiency.

[0080] Figure 2 It is a flowchart of step S110 in an embodiment of the detection method based on container interactive application of the present invention. Figure 3 It is a flow chart of step S120 in the embodiment of the detection method based on container interactive application of the present invention. Figure 4 It is a flowchart of step S130 in an embodiment of the detection method based on container interactive application of the present invention. Figure 5 It is a flowchart of step S140 in an embodiment of the detection method based on container interactive application of the present invention. Figure 6 It is a flowchart of step S150 in an embodiment of the detection method based on container interactive application of the present invention. Figures 2 to 6 As shown, in Figure 1 In the embodiment, on the basis of steps S110, S120, S130, S140, and S150, step S110 is replaced by S111 and S112, step S120 is replaced by S121, S122, S123, and S124, step S130 is replaced by S131 and S132, step S140 is replaced by S141 and S142, and step S150 is replaced by S151, S152, S153, and S154. Each step is described below:

[0081] S111. Create several detection plug-in configuration files for the files to be tested in the container cluster. Each detection plug-in configuration file includes a download path for the detection plug-in and configuration parameters related to the download of the detection plug-in. The configuration parameters include a feedback address and port for the detection information. And

[0082] S112: Establish a mapping relationship table between a detection plug-in configuration file, a container type, and a preset detection task type.

[0083] S121. Detect the type of container with the file to be tested. In this embodiment, the Docker container engine is used. Docker is an open source application container engine that allows developers to package their applications and dependent packages into a portable image, and then publish them to any popular Linux or Windows operating system machine, and can also achieve virtualization. The container uses a sandbox mechanism completely, and there will be no interface between each other. Docker uses a client-server (C / S) architecture mode and uses a remote API to manage and create Docker containers. Docker containers are created through Docker images. The relationship between containers and images is similar to objects and classes in object-oriented programming. There are four modes for Docker container networks, namely None, Bridge, Container, and Host. Below, I will explain these four types of network modes in detail. None type network, that is, no network, Docker container will not set any information about the network in the container, will not configure the network, but can add configuration to the container to give it a network environment. Bridge type network is the default network type for Docker containers. In this mode, Docker will virtualize a network for the container, and all Container containers will be assigned an IP address in this network, and different Containers can communicate with each other. Container mode allows multiple containers to communicate with each other, that is, containers share the network. Host mode allows the container to share the network with the host. At this time, the mapped ports may conflict, but the rest of the container (file system, process, etc.) is still isolated. At this time, the container and the host share the network.

[0084] S122. Obtain a corresponding detection plug-in configuration file according to the container type.

[0085] S123. Send the corresponding detection plug-in configuration file to the container.

[0086] S124. When the file to be tested is started, the detection plug-in in the container is activated.

[0087] S131. The activated detection plug-in collects relevant detection information based on the configuration parameters.

[0088] S132. Send the detection information to the feedback address and port.

[0089] S141. Establish a detection task based on the received detection information and the name of the file to be tested.

[0090] S142: Establish an association relationship between the detection task and the file to be tested based on the configuration parameters.

[0091] S151. Perform safety testing based on the testing task and testing information to obtain testing result information.

[0092] S152, the association relationship feeds back the detection result information to the file to be tested.

[0093] S153: Obtain a set of files of the same type as the files to be tested in the container cluster according to the files to be tested.

[0094] S154: Associating the detection result information with all the files to be tested in the same type of file set, so as to use the result of one detection to mark the files to be tested of the same type, thereby saving computing power.

[0095] The present invention can realize automation of the plugging and detection setting process, can bring convenience to users, and greatly improve the safety detection efficiency.

[0096] Figure 7 Schematic diagram of the module of the detection system based on container interactive application of the present invention. Figure 7 As shown, the detection system based on container interactive application of the present invention includes but is not limited to:

[0097] Configuration file module 51, the files to be tested in the container cluster are used to create a detection plug-in configuration file, where the detection plug-in configuration file includes a download path for the detection plug-in and configuration parameters related to the download of the detection plug-in.

[0098] The file deployment module 52 deploys the detection plug-in configuration file to the container having the file to be tested. When the file to be tested is started, the detection plug-in in the container is activated.

[0099] The detection information module 53, the detection plug-in collects relevant detection information based on the configuration parameters and feeds back.

[0100] The detection task module 54 establishes a detection task based on the received detection information, and establishes an association relationship between the detection task and the file to be detected based on the configuration parameters.

[0101] The security detection module 55 performs security detection based on the detection task and feeds back the detection result information to the file to be tested according to the association relationship.

[0102] For the implementation principle of the above modules, please refer to the relevant introduction in the detection method based on container interactive application, which will not be repeated here.

[0103] The container interactive application-based detection system of the present invention can realize automation of the plugging and detection setting process, can bring convenience to users, and greatly improve the safety detection efficiency.

[0104] Figure 8 It is a module schematic diagram of a configuration file module in an embodiment of a detection system based on container interactive applications of the present invention. Fig. 9 It is a module schematic diagram of a file deployment module in an embodiment of a detection system based on container interactive applications of the present invention. Fig.10 4 is a schematic diagram of an information feedback module in an embodiment of a detection system based on container interactive application of the present invention. Fig.11 It is a module schematic diagram of a detection task module in an embodiment of a detection system based on container interactive application of the present invention. Fig.12 It is a module schematic diagram of a security detection module in an embodiment of a detection system based on container interactive applications of the present invention. Figures 8 to 12 As shown, in Figure 8 On the basis of the device embodiment, the detection system based on container interactive application of the present invention replaces the configuration file module 51 by the plug-in configuration module 511 and the mapping relationship module 512. The file deployment module 52 is replaced by the container detection module 521, the file acquisition module 522, the file distribution module 523, and the file activation module 524. The detection information module 53 is replaced by the parameter acquisition module 531 and the information feedback module 532. The detection task module 54 is replaced by the task establishment module 541 and the association relationship module 542. The security detection module 55 is replaced by the detection result module 551, the result feedback module 552, the file collection module 553, and the result association module 554.

[0105] The following is a description of each module:

[0106] The plug-in configuration module 511 creates several detection plug-in configuration files for the files to be tested in the container cluster. Each detection plug-in configuration file includes a download path for the detection plug-in and configuration parameters related to the download of the detection plug-in. The configuration parameters include a feedback address and port for detection information.

[0107] The mapping relationship module 512 establishes a mapping relationship table between the detection plug-in configuration file, the container type and the preset detection task type.

[0108] The container detection module 521 detects the type of the container having the file to be detected.

[0109] The file obtaining module 522 obtains the corresponding detection plug-in configuration file according to the container type.

[0110] The file sending module 523 sends the corresponding detection plug-in configuration file to the container.

[0111] The file activation module 524 activates the detection plug-in in the container when the file to be tested is started.

[0112] The parameter collection module 531, the activated detection plug-in collects relevant detection information based on the configuration parameters.

[0113] The information feedback module 532 sends the detection information to the feedback address and port.

[0114] The task establishing module 541 establishes a detection task based on the received detection information and the name of the file to be detected.

[0115] The association module 542 establishes an association between the detection task and the file to be detected based on the configuration parameters.

[0116] The detection result module 551 performs safety detection based on the detection task and detection information to obtain detection result information.

[0117] The result feedback module 552 feeds back the detection result information to the file to be tested through the association relationship.

[0118] The file collection module 553 obtains a set of files of the same type as the files to be tested in the container cluster according to the files to be tested.

[0119] The result association module 554 associates the detection result information with all the files to be tested in the same type of file set.

[0120] For the implementation principles of the above steps, please refer to the relevant introduction in the detection method based on container interactive application, which will not be repeated here.

[0121] Fig.13 , 14 Schematic diagram of the implementation process of the detection method based on container interactive application of the present invention. Fig.13 , 14 As shown, the specific implementation scheme of the present invention is as follows:

[0122] The server 2 serving the container cluster generates a plug-in configuration, including plugin file download and related deployment configuration. Server 2 obtains the corresponding detection plugin configuration file by detecting the type of the container with the file to be tested. The corresponding detection plugin configuration file is sent to the container. During the deployment process of container 1, the parameters are added to the deployment task. After container 1 is deployed, the plugin file (Agent plugin file) will be started. When the file to be tested is started, the detection plugin in the container is activated. The detection end will receive relevant parameters through the plugin file, and automatically create tasks according to the default template, and associate it with the application according to the parameters. When container 1 performs a functional test task, the request is automatically detected through the plugin file. In this process, the user does not need additional configuration, and after the functional test is completed, the iast detection report can be obtained synchronously. In the present invention, the Agent file is used as the plugin file. The plugin file is the Agent plugin of the cloud security center. The container after the Agent plugin is installed can be protected by the cloud security center. The Agent will report the Agent online information to the cloud security center server in real time. If the Cloud Security Center Agent does not report its online information on time, the Cloud Security Center server will determine that the server is offline within the preset time and change the protection status of the server to unprotected in the Cloud Security Center console.

[0123] Among them, the application end for interactive detection (in container 1) sends relevant parameters to the engine at this address through the plug-in file according to the engine address and engine port in the parameters; and triggers the engine's automatic creation of detection task process. The engine end of interactive detection (in server 2) records the application name parameter based on the information received from the plug-in file. The engine end of interactive detection. The engine end of interactive detection automatically creates detection tasks according to the default detection settings and names the detection tasks with the application name. The engine end of interactive detection will also automatically associate the results for applications with the same name in the continuous integration system, so as to use the results of one detection to mark the same type of files to be tested, saving computing power. When the user initiates a test, the plug-in file will obtain the request, and the engine will automatically detect the request and finally obtain a security scan report.

[0124] When any company uses a continuous integration system, if there is a requirement for application security, interactive detection with good performance in both false positive and false negative rates will become the first choice, replacing static detection with a high false positive rate.

[0125] Due to its principle, when using interactive detection, it is necessary to go through the process of instrumentation and interactive detection task configuration. In order to improve the user experience and improve the efficiency of security detection, how to automate this process will also become a problem that must be faced.

[0126] In this scenario, using the method described in the present invention to automate instrumentation and task creation will greatly improve the efficiency of system use and facilitate the promotion of interactive security detection.

[0127] Compared with the prior art, the technical points of the present invention include:

[0128] According to user feedback during use, the present invention automates the process of interactive detection based on existing container cluster technology, fills the relevant technical gap, simplifies the user operation process of security detection, and improves detection efficiency.

[0129] The embodiment of the present invention further provides a detection device based on a container interactive application, comprising a processor and a memory in which executable instructions of the processor are stored, wherein the processor is configured to execute the steps of the detection method based on the container interactive application by executing the executable instructions.

[0130] As shown above, the detection system based on container interactive application of this embodiment of the present invention can realize the automation of the plugging and detection setting process, can bring convenience to users, and greatly improve the safety detection efficiency.

[0131] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as systems, methods or program products. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, which may be collectively referred to herein as "circuits", "modules" or "platforms".

[0132] Fig.15 Schematic diagram of the detection device based on container interactive application of the present invention. Fig.15 An electronic device 600 according to this embodiment of the present invention is described. Fig.15 The electronic device 600 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0133] like Fig.15 As shown, the electronic device 600 is in the form of a general computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different platform components (including the storage unit 620 and the processing unit 610), a display unit 640, etc.

[0134] The storage unit stores program codes, which can be executed by the processing unit 610, so that the processing unit 610 executes the steps of various exemplary embodiments of the present invention described in the electronic prescription circulation processing method section of this specification. For example, the processing unit 610 can execute the following steps: Figure 1 Follow the steps shown in .

[0135] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 6201 and / or a cache memory unit 6202 , and may further include a read-only memory unit (ROM) 6203 .

[0136] The storage unit 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: a processing system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0137] Bus 630 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0138] The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 600, and / or communicate with any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 650. Furthermore, the electronic device 600 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via a bus 630. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms, etc.

[0139] The embodiment of the present invention also provides a computer-readable storage medium for storing a program, and the steps of the detection method based on the container interactive application are implemented when the program is executed. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of various exemplary embodiments of the present invention described in the above-mentioned electronic prescription circulation processing method section of this specification.

[0140] As shown above, the detection system based on container interactive application of this embodiment of the present invention can realize the automation of the plugging and detection setting process, can bring convenience to users, and greatly improve the safety detection efficiency.

[0141] The program product 800 for implementing the above method according to an embodiment of the present invention may adopt a portable compact disk read-only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device.

[0142] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0143] Computer readable storage media may include data signals propagated in baseband or as part of a carrier wave, wherein readable program codes are carried. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program codes contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination thereof.

[0144] Program code for performing the processes of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, and the like, as well as conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0145] In summary, the purpose of the present invention is to provide a detection method, system, device and storage medium based on container interactive applications, which can realize the automation of the plugging and detection setting process, bring convenience to users, and greatly improve the efficiency of security detection.

[0146] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.

Claims

1. A detection method based on container interactive application, characterized in that: The following steps are involved: Creating a detection plug-in configuration file for the file to be tested in the container cluster, wherein the detection plug-in configuration file includes a download path for the detection plug-in and configuration parameters related to the download of the detection plug-in; Deploy the detection plug-in configuration file to a container having the file to be tested, and activate the detection plug-in in the container when the file to be tested is started; The detection plug-in collects relevant detection information based on the configuration parameters and feeds back; Establishing a detection task based on the received detection information, and establishing an association relationship between the detection task and the file to be tested based on the configuration parameters; A security detection is performed based on the detection task, and the detection result information is fed back to the file to be tested according to the association relationship.

2. The detection method based on container interactive application according to claim 1, characterized in that: The detection plug-in configuration file is established for the file to be tested in the container cluster, and the detection plug-in configuration file includes a download path of the detection plug-in and configuration parameters related to the download of the detection plug-in, including: Establishing several detection plug-in configuration files for the files to be tested in the container cluster, each of the detection plug-in configuration files includes a download path for the detection plug-in and configuration parameters related to the download of the detection plug-in, and the configuration parameters include a feedback address and port for detection information; and A mapping relationship table between the detection plug-in configuration file, container type and preset detection task type is established.

3. The detection method based on container interactive application according to claim 2, characterized in that: The step of deploying the detection plug-in configuration file to a container having the file to be tested, and activating the detection plug-in in the container when the file to be tested is started, includes: Detecting the type of the container having the file to be tested; Obtain a corresponding detection plug-in configuration file according to the container type; Send the corresponding detection plug-in configuration file to the container; When the file to be tested is started, the detection plug-in in the container is activated.

4. The detection method based on container interactive application according to claim 3, characterized in that: The detection plug-in collects relevant detection information based on the configuration parameters and feeds back the information, including: The activated detection plug-in collects relevant detection information based on the configuration parameters; The detection information is sent to the feedback address and port.

5. The detection method based on container interactive application according to claim 1, characterized in that: The step of establishing a detection task based on the received detection information, and establishing an association relationship between the detection task and the file to be tested based on the configuration parameters, includes: Establishing a detection task based on the received detection information and the name of the file to be tested; An association relationship is established between the detection task and the file to be detected based on the configuration parameters.

6. The detection method based on container interactive application according to claim 1, characterized in that: The performing of security detection based on the detection task and feeding back the detection result information to the file to be tested according to the association relationship includes: Perform safety testing based on the testing task and testing information to obtain testing result information; The association relationship feeds back the detection result information to the file to be tested.

7. The detection method based on container interactive application according to claim 1, characterized in that: The performing of security detection based on the detection task and feeding back the detection result information to the file to be tested according to the association relationship also includes: Obtaining a set of files of the same type as those to be tested in the container cluster according to the files to be tested; The detection result information is associated with all the files to be tested in the set of files of the same type.

8. A detection system based on container interactive application, characterized in that: include: A configuration file module, wherein the files to be tested in the container cluster establish a detection plug-in configuration file, wherein the detection plug-in configuration file includes a download path of the detection plug-in and configuration parameters related to the download of the detection plug-in; A file deployment module, deploying the detection plug-in configuration file to a container having the file to be tested, and activating the detection plug-in in the container when the file to be tested is started; An information feedback module, wherein the detection plug-in collects relevant detection information based on the configuration parameters and feeds back the information; A detection task module, which establishes a detection task based on the received detection information, and establishes an association relationship between the detection task and the file to be tested based on the configuration parameters; The security detection module performs security detection based on the detection task and feeds back detection result information to the file to be tested according to the association relationship.

9. A detection device based on container interactive application, characterized in that: include: processor; a memory storing executable instructions of the processor; The processor is configured to execute the steps of the container interactive application-based detection method according to any one of claims 1 to 7 by executing the executable instructions.

10. A computer-readable storage medium for storing a program, characterized in that: When the program is executed by a processor, the steps of the detection method based on container interactive application described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Method and system for automatically deploying IAST agent in k8s

    CN113722048A

  • Software defect detection method and system based on grey box test

    CN113742201A

  • Burial point automatic instrumentation method and device and computer readable storage medium

    CN114780958A

  • Container packaging device

    US11062022B1