Safety protection method and device for drawing file, equipment, medium and program product

By matching the characteristic information of the drawing file with the target characteristic information, the problem of misidentification and missed identification in the security protection of the drawing file is solved, and the security and access security of the drawing file are improved.

CN118627115AActive Publication Date: 2024-09-10BEIJING VOLCANO ENGINE TECH CO LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202410741147.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-09-10
Estimated Expiration
2044-06-07

AI Technical Summary

Technical Problem

The existing technology has problems of misidentification and missed identification in the security protection of drawing files, resulting in insufficient access security of drawing files.

Method used

By obtaining the characteristic information of the drawing file and matching it with the target characteristic information set, security protection management is carried out based on the matching results, and natural language ideas are combined with the analysis and feature extraction of the drawing file to reduce misidentification and missed identification.

Benefits of technology

It improves the reliability and accuracy of the matching results of drawing files, ensures the safety of drawing files, avoids misidentification and missed identification, and enhances the accuracy of safety protection management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118627115A
    Figure CN118627115A
Patent Text Reader

Abstract

The invention relates to the technical field of data security, and discloses a security protection method and device for a drawing file, equipment, a medium and a program product. The safety protection method for the drawing file comprises the steps of obtaining a first drawing file; obtaining a matching result obtained by matching first feature information corresponding to the first drawing file with each piece of second feature information in a target feature information set; wherein the first feature information is obtained by analyzing the first drawing file to obtain description information of a target element in the first drawing file and performing feature extraction on the obtained description information of the target element; the target feature information set comprises second feature information of at least one protected drawing file; and performing security protection management on the first drawing file based on a matching result. By means of the method, the situation of drawing misrecognition or missed recognition can be effectively reduced, so that the reliability and accuracy of the matching result are improved, and the safety of the drawing is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data security technology, and in particular to a method, device, equipment, medium and program product for security protection of drawing files. Background Art

[0002] At present, in the private network / dedicated network of enterprises or other organizations, it is usually necessary to install security management software in the terminal devices. Through the security management software, network access control, security detection and data leakage protection can be performed on the terminal devices, especially the drawings in the terminal devices need to be protected from leakage.

[0003] Taking circuit drawings as an example, the production and manufacturing of high-tech manufacturing industry depends on the working principle of the circuit provided by the circuit drawings. Therefore, in order to ensure the security of the drawings, a method that can provide targeted security protection for the drawing files is urgently needed. Summary of the invention

[0004] In view of this, the present disclosure provides a method, device, equipment, medium and program product for security protection of drawing files to solve the problem of low security protection of drawing files.

[0005] In a first aspect, the present disclosure provides a method for protecting a drawing file, the method comprising:

[0006] Obtain the first drawing file;

[0007] Obtaining a matching result of matching the first feature information corresponding to the first drawing file with each second feature information in the target feature information set; wherein the first feature information is obtained by parsing the first drawing file to obtain description information of a target element in the first drawing file, and extracting features from the description information of the obtained target element; the target feature information set includes the second feature information of at least one protected drawing file;

[0008] The first drawing file is managed for security protection based on the matching result.

[0009] In a second aspect, the present disclosure provides a safety protection device for drawing files, the device comprising:

[0010] A first acquisition module, used to acquire a first drawing file;

[0011] A second acquisition module is used to obtain a matching result of matching the first feature information corresponding to the first drawing file with each second feature information in the target feature information set; wherein the first feature information is obtained by parsing the first drawing file to obtain description information of the target element in the first drawing file, and extracting features from the description information of the obtained target element; the target feature information set includes the second feature information of at least one protected drawing file;

[0012] The management module is used to perform security protection management on the first drawing file based on the matching result.

[0013] In a third aspect, the present disclosure provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the security protection method for drawing files of the above-mentioned first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0014] In a fourth aspect, the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method for securing drawing files of the first aspect or any corresponding embodiment thereof.

[0015] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions, which are used to enable a computer to execute the method for protecting the security of drawing files of the first aspect or any corresponding embodiment thereof.

[0016] The present embodiment provides a method for security protection of drawing files. The method performs security protection management on the first drawing file based on the matching result of the first feature information corresponding to the first drawing file and each second feature information in the target feature information set. The first feature information is obtained by parsing the first drawing file to obtain the description information of the target element in the first drawing file and extracting the features thereof, and the target feature information set includes the second feature information of at least one protected drawing file. Since the description information of the target element can describe the target element from a semantic perspective, and the first feature information is obtained after feature extraction on this basis, that is, by combining the idea of ​​natural language with the security protection of the drawing file, the occurrence of misidentification or missed identification can be effectively reduced, thereby helping to improve the reliability and accuracy of the matching results and ensure the security of the drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0018] Figure 1 is a schematic diagram of a network framework according to an embodiment of the present disclosure;

[0019] Figure 2 is a flowchart of a method for protecting a drawing file according to an embodiment of the present disclosure;

[0020] Figure 3 is a flowchart of another method for protecting the safety of drawing files according to an embodiment of the present disclosure;

[0021] Figure 4 is a flowchart of another method for protecting the safety of drawing files according to an embodiment of the present disclosure;

[0022] Figure 5 is a structural block diagram of a safety protection device for a drawing file according to an embodiment of the present disclosure;

[0023] Figure 6 It is a schematic diagram of the hardware structure of the computer device of the embodiment of the present disclosure. DETAILED DESCRIPTION

[0024] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0025] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may also be included below.

[0026] Herein, unless explicitly stated, executing a step “in response to A” does not mean executing the step immediately after “A” but may include one or more intermediate steps.

[0027] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition, use, storage or deletion of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0028] It is understandable that before using the technical solutions disclosed in the various embodiments of the present disclosure, the types, scopes of use, usage scenarios, etc. of the information involved in the present disclosure should be informed to relevant users and their authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations. The relevant users may include any type of right holders, such as individuals, enterprises, and groups.

[0029] For example, in response to receiving an active request from a user, a prompt message is sent to the relevant user to clearly prompt the relevant user that the operation requested to be performed will require obtaining and using the information of the relevant user, so that the relevant user can independently choose whether to provide information to software or hardware such as an electronic device, application, server or storage medium that executes the operation of the technical solution of the present disclosure based on the prompt message.

[0030] As an optional but non-limiting implementation, in response to receiving an active request from a relevant user, a prompt message is sent to the relevant user, for example, in the form of a pop-up window, in which the prompt message may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to select "agree" or "disagree" to provide information to the electronic device.

[0031] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0032] Office security usually involves the security management of networks, identities, and terminals. By implementing private network networking, access control, terminal management in private networks, and information security protection, digital office can be made safer, more efficient, and easier to use. Security management at the network level can ensure that private networks such as office networks can operate safely and efficiently, thereby ensuring that business data can be safely transmitted and stored. Security management at the identity level can improve the efficiency and security of identity authentication for users accessing private networks. Security management at the terminal level can achieve unified management of terminal devices within the private network, data leakage prevention, and terminal threat protection, thereby ensuring the security of corporate data.

[0033] In actual applications, the security management of networks, identities, and terminals can achieve technical linkage in multiple technical branches such as networking strategies, network access and control, remote access, unified terminal management, terminal detection and response, enterprise data leakage prevention, and identity authentication management, making digital office simpler, more efficient, and easier to implement.

[0034] In the related art, when there are many drawing files managed in an enterprise or other organization, in order to ensure the access security of drawings, drawings are distinguished by drawing name identification, and then targeted access is performed. However, since drawing names can be modified at will, and some drawings are not added with corresponding drawing names during the storage process, these drawings cannot be effectively identified, thus affecting the access security of drawings.

[0035] In view of this, the embodiment of the present disclosure provides a method for security protection of drawing files. After obtaining a first drawing file, based on the matching result of the first feature information corresponding to the first drawing file and each second feature information in the target feature information set, the first drawing file is managed for security protection, which can effectively reduce the occurrence of misidentification or missed identification, thereby helping to improve the reliability and accuracy of the matching result. Among them, the first feature information is obtained by parsing the first drawing file to obtain the description information of the target element in the first drawing file, and the feature extraction is performed on the description information of the acquired target element; the target feature information set includes the second feature information of at least one protected drawing file.

[0036] As an optional application scenario of the security protection method for drawing files provided by the embodiment of the present invention, Figure 1 As shown, a server with security management software is installed in server-side device 1, and a client with security management software is installed in terminal devices 2 to n. The server and the client are connected through a first network communication connection, thereby providing security protection for the drawing files in terminal devices 2 to n.

[0037] According to an embodiment of the present disclosure, an embodiment of a method for security protection of drawing files is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0038] In this embodiment, a method for protecting the security of drawing files is provided, which can be used in the client of the security management software in the above-mentioned terminal device. Figure 2 is a flow chart of a method for protecting a drawing file according to an embodiment of the present disclosure. Figure 2 As shown, the process includes the following steps:

[0039] Step S201, obtaining a first drawing file.

[0040] The first drawing file may be an offline drawing stored locally or an online drawing. The type of the first drawing file may be a circuit drawing, a building drawing, or an interior design drawing, etc., which may be determined according to actual business.

[0041] The first drawing file can be obtained from a local or cloud server, or can be obtained by downloading, editing or creating. The drawing file format may include but is not limited to any of the following: .schdoc (a software circuit diagram file format), .kicad_sch (a software circuit diagram file format), .edf (a software native drawing file format), etc. The specific drawing file format to be used depends on the actual design requirements, software compatibility and data exchange requirements, which are not limited here.

[0042] Step S202: Obtain a matching result of matching the first feature information corresponding to the first drawing file with each second feature information in the target feature information set.

[0043] Among them, the first characteristic information is obtained by parsing the first drawing file to obtain the description information of the target element in the first drawing file, and extracting the characteristics of the obtained description information of the target element. It should be noted that the parsing of the first drawing file can be implemented on the client side of the security management software, or on the server side of the security management software, etc., and there is no limitation on it here. Taking the server side of the security management software as an example, the client sends the first drawing file to the server side, and the server side parses the first drawing file and performs other processing to obtain the first characteristic information, and matches the first characteristic information with each second characteristic information in the target feature set to obtain a matching result, and sends the matching result to the client side. Accordingly, the matching result can be obtained on the client side.

[0044] Since the first drawing file is an unknown drawing file, in order to understand the drawing content in the first drawing file, the first drawing file is parsed to express the drawing content in the first drawing file in a concrete way, and then obtain the description information of the target element in the first drawing file. For example, taking the first drawing file as a circuit drawing as an example, the description information may include the connection relationship and annotation information of the pins corresponding to each target electronic component in the circuit drawing. The annotation information includes but is not limited to: the name, model, value, power, working conditions and other information of the component. For another example, taking the first drawing file as a mechanical drawing as an example, the description information may include the size, shape, installation method and other information corresponding to each target part in the circuit drawing. Among them, in the process of parsing, it can be parsed by semantic recognition, text matching or using a specified code parsing tool. For example, if parsing is performed by semantic recognition, the first drawing file can be converted into an abstract syntax tree (AST) by a preset lexer and parser, and then the description information of the target electronic component can be extracted from the AST. If the analysis is performed by text matching, information can be extracted by identifying keywords, variable names, function names, etc. of the target element, thereby obtaining description information of the target element. The specific analysis process can be determined according to the actual analysis method adopted, and is not limited here.

[0045] Feature extraction is performed on the description information to reduce the interference of redundant data, thereby obtaining first feature information that can express the key content of the first drawing file. For example, feature extraction can be performed by hashing or one-hot encoding the description information, and the specific feature extraction process can be determined according to actual needs.

[0046] The target feature information set includes the second feature information of at least one protected drawing file. The protected drawing file can be understood as a drawing file that specifies in advance that the drawing content needs to be protected. In order to determine the matching between the first drawing file and each protected drawing file, the first feature information corresponding to the first drawing file is matched with each second feature information in the target feature information set, so as to clarify the difference between the first feature information and each second feature information through the obtained matching result, so as to facilitate the subsequent rapid identification of whether the first drawing file needs targeted security protection, thereby effectively reducing the occurrence of misidentification or missed identification, and improving the reliability and accuracy of the matching results.

[0047] Step S203: Perform security protection management on the first drawing file based on the matching result.

[0048] Through the matching results, the matching status between the first drawing file and each protected drawing file can be clarified, and then according to the matching status, targeted security protection management can be performed on the first drawing file. Among them, security protection management includes but is not limited to means of protecting the first drawing file such as blocking, releasing or adding protection marks.

[0049] For example: if the matching result indicates that the first drawing file is a protected drawing file, the preset operation on the first drawing file is blocked. If the matching result indicates that the first drawing file is not a protected drawing file, the preset operation on the first drawing file is released. Alternatively, if the matching result indicates that the first drawing file is not a protected drawing file, the preset operation on the first drawing file is released, but a protection mark is added to the first drawing file to improve the transmission security of the first drawing file.

[0050] The security protection method for drawing files provided in this embodiment performs security protection management on the first drawing file based on the matching result of the first feature information corresponding to the first drawing file and each second feature information in the target feature information set. The first feature information is obtained by parsing the first drawing file to obtain the description information of the target element in the first drawing file and extracting the features thereof, and the target feature information set includes the second feature information of at least one protected drawing file. Since the description information of the target element can describe the target element from a semantic perspective, and the first feature information is obtained after feature extraction on this basis, that is, by combining the idea of ​​natural language with the security protection of the drawing file, the occurrence of misidentification or missed identification can be effectively reduced, thereby helping to improve the reliability and accuracy of the matching results and ensure the security of the drawings.

[0051] In some optional implementations, the above step S201 includes:

[0052] Step a1: in response to a preset operation on a first drawing file, obtaining the first drawing file.

[0053] The preset operation includes at least one of the following: sending the first drawing file to the outside of the first network, downloading the first drawing file, creating the first drawing file, and editing the first drawing file. That is, when the preset operation on the first drawing file is detected, in order to ensure the security of the first drawing file, the first drawing file is obtained so that targeted security protection management can be performed on it later to improve the access security of the first drawing file. The first network can be understood as an intranet used by an enterprise or other organization.

[0054] In other optional implementations, when security protection management is performed on the first drawing file based on the matching result, in response to the matching result indicating that the first drawing file is a protected drawing file, preset operations on the first drawing file can be blocked, and in response to the matching result indicating that the first drawing file is not a protected drawing file, preset operations on the first drawing file can be released, so as to improve the flexibility of security access management for the first drawing file.

[0055] In some optional implementation scenarios, if the first drawing file is a circuit drawing, the target element in the first drawing file is the target electronic component. Among them, the circuit drawing is a drawing used to describe circuit connections and component configurations. The circuit drawing can clearly display the function, structure and working principle of the circuit, and is one of the basic tools for electronic engineers to perform circuit design and troubleshooting. For example: the target electronic component can be a capacitor, resistor, inductor, potentiometer, electron tube, connector, sensor, etc. Among them, the file format of the circuit drawing may include but is not limited to: .schdoc (a format for describing circuit diagrams), .kicad_sch (a format for describing circuit diagrams), .brd (a layout file format).

[0056] If the first drawing file is an engineering drawing, the target element in the first drawing file is the building structure, mechanical parts, pipeline layout, etc. Among them, engineering drawings refer to drawings used for engineering design and construction, and are one of the important documents in engineering projects. Engineering drawings usually include architectural drawings, structural drawings, electrical drawings, pipeline drawings, etc. The specific target element will depend on the content of the engineering drawings. For example: if the type of engineering drawing is an architectural drawing, the corresponding target element is the target building component. For example: the target building component can be a plate, beam, column, wall, etc.

[0057] If the type of engineering drawing is a mechanical drawing, the corresponding target element is the target part. For example, the target part can be a shaft, gear, coupling, valve, etc. Different types of engineering drawings have different corresponding target elements.

[0058] The following will take the first drawing file being a circuit drawing as an example to specifically explain the process of parsing the first drawing file:

[0059] Step b1, parsing the source code of the circuit drawing to obtain description information of the target electronic component in the circuit drawing.

[0060] Source code is a text file generated when a circuit schematic is created by a specified application. The file format of the source code depends on the file format supported by the corresponding application. Different applications may support different file formats. For example, the file format can be .sch or .brd.

[0061] If the circuit drawing is unchanged, the source code will usually not change. Therefore, in order to fully understand the layout principle and execution logic of the circuit to be tested in the circuit drawing, the source code of the circuit drawing is obtained to obtain the specific description information of the circuit to be tested through the source code.

[0062] In order to clarify the circuit structure and layout characteristics of the circuit to be tested, the source code is parsed to obtain description information that can specifically describe the principle of the circuit to be tested. The description information includes but is not limited to the following: target electronic components, pin connections of target electronic components, and annotation information. The annotation information includes but is not limited to: the name of the target electronic component, pin function, circuit design description, and other information.

[0063] In some optional implementations, the above step b1 includes:

[0064] Step b11, performing field analysis on the source code of the circuit drawing to determine the target electronic component in the circuit drawing;

[0065] In order to determine the target electronic components involved in the circuit to be tested in the circuit drawing, the source code is parsed to identify the field or position where the description information of the target electronic components is located. For example, the specific field or mark where the target electronic component is located can be determined based on the syntax and structure of the source code, and then targeted parsing can be performed to determine the target electronic components in the circuit drawing, which helps to ensure the reliability of the determination of the target electronic components.

[0066] Specifically, the above step b11 includes:

[0067] Step b111, performing field analysis on the source code to determine the fields in the circuit drawing;

[0068] Step b112, screening the fields, determining the target field, and taking the electronic component corresponding to the target field as the target electronic component.

[0069] Specifically, the source code may include information that is not related to the circuit structure of the circuit to be tested, such as the definitions of various variables and functions, code control structures, code comments, and specific syntax and rules of programming languages. Therefore, in order to reduce the interference of invalid information, the source code is parsed to determine the fields related to electronic components. For example, the fields related to electronic components may include the name, model, parameters, connection method, and other information of the electronic components.

[0070] In order to clarify the target electronic component, the parsed fields are further screened to determine the fields directly related to the electronic component, thereby obtaining the target field, and the electronic component corresponding to the target field is used as the target electronic component. For example, a field library corresponding to the electronic component is preset. The field library includes multiple fields of candidate electronic components. The parsed field is matched with the fields of multiple candidate electronic components, and the matched field is used as the target field.

[0071] By determining the target field through field parsing and screening, the information related to the circuit structure can be quickly located in the source code. Then, during the subsequent feature extraction, the focus can be placed on the information related to the circuit to be detected, which helps to improve the efficiency of determining the target electronic components.

[0072] Step b12, extracting description information of the target electronic component from the source code.

[0073] In order to determine the layout of the target electronic components in the circuit to be detected, the description information of the target electronic components is extracted from the source code, so that the layout settings and layout planning between the target electronic components can be clarified based on the description information, so that the reliability of the first feature information can be improved during subsequent feature extraction.

[0074] Specifically, the above step b12 includes:

[0075] Step b121, extracting the connection relationship between target electronic components and model information of the target electronic components to obtain description information.

[0076] In order to determine the flow path of the signal between the target electronic components and the functional relationship between the target electronic components in the circuit to be detected, the connection relationship between the target electronic components is extracted from the source code. The connection relationship can be determined based on the pin information of the target electronic components.

[0077] Furthermore, since the functions performed by electronic components of different models are different, in order to better locate the function of the target electronic component in the circuit to be detected, the model information of the target electronic component is extracted from the source code, and then combined with the connection relationship between the corresponding target electronic component and other target electronic components, the description information of the target electronic component is obtained, which helps to better understand and analyze the role of the target electronic component in the circuit to be detected.

[0078] By parsing the source code of the first drawing file as described above, the description information of the target electronic component is determined, so that the layout position of the target electronic component in the circuit to be detected and the function performed can be quickly located, and then when performing feature extraction, the interference of invalid information can be effectively avoided, and the reliability and accuracy of the first feature information can be improved. Therefore, based on the matching result of the first feature information and each second feature information in the target feature information set, when performing security access management on the first drawing file, the pertinence and accuracy of security protection can be effectively improved.

[0079] In some optional embodiments, in order to make the first characteristic information more reliable and to fully express the layout position of each target electronic component in the circuit to be detected and the corresponding function to be performed, the description information of each target electronic component is processed separately, and then the electronic component features of multiple target electronic components are integrated to obtain the first characteristic vector corresponding to the first characteristic information. That is, the description information of the current target electronic component is subjected to feature extraction processing to obtain the electronic component features of the current target electronic component in the circuit to be detected. When the description information of all target electronic components has completed feature processing, all the obtained electronic component features are integrated to obtain the first characteristic vector that can represent the specific circuit principle of the circuit to be detected.

[0080] In this embodiment, a method for protecting the security of drawing files is provided, which can be used in the client of the security management software in the terminal device. Figure 3 is a flow chart of a method for protecting a drawing file according to an embodiment of the present disclosure. Figure 3 As shown, the process includes the following steps:

[0081] Step S301, obtaining a first drawing file.

[0082] Step S302: Obtain a matching result of matching the first feature information corresponding to the first drawing file with each second feature information in the target feature information set.

[0083] Specifically, the above step S302 includes:

[0084] Step S3021: Match the first feature vector with each second feature vector to determine the similarity between the first feature vector and the second feature vector.

[0085] The first eigenvector corresponds to the first feature information, and the second eigenvector corresponds to the second feature information.

[0086] The first feature information and the second feature information are respectively represented in the form of feature vectors, so that the difficulty of matching can be reduced when performing feature matching later. The dimension of the feature vector corresponds to the number of features. In some examples, the vector dimension of the first feature vector is the same as the vector dimension of the second feature vector.

[0087] To determine the matching between the first eigenvector and the second eigenvector, the cosine value between the first eigenvector and the second eigenvector is determined, and then according to the size of the cosine value, the similarity between the first eigenvector and the second eigenvector can be clarified, thereby helping to improve the accuracy of similarity determination.

[0088] The cosine value between the first eigenvector and the second eigenvector can be determined by the following formula:

[0089]

[0090] Where S(A,B) represents the cosine value between the first eigenvector and the second eigenvector, A represents the first eigenvector, B represents the second eigenvector, i represents the feature of the current dimension, and n represents the total number of dimensions of the eigenvector. The value range of S(A,B) is [-1,1]. If the value of S(A,B) is -1, it means that the first eigenvector and the second eigenvector are completely dissimilar. If the value of S(A,B) is 1, it means that the first eigenvector and the second eigenvector are completely similar.

[0091] Step S3022: Based on the comparison result between the similarity and the preset similarity threshold, a matching result between the first drawing file and the second feature vector is obtained.

[0092] In order to identify whether the first drawing file is the same as the protected circuit drawing, the obtained similarity is compared with the preset similarity threshold to determine the comparison result between the two, and then the matching result is determined based on the comparison result, which can effectively improve the efficiency of security protection management for the first drawing file. Among them, the preset similarity threshold can be understood as the minimum similarity at which the first feature vector and the second feature vector are considered to match. For example: if the comparison result indicates that the similarity is greater than or equal to the preset similarity threshold, it means that the first drawing file matches the protected circuit drawing, and then it can be determined that the first drawing file is a protected drawing file. If the comparison result indicates that the similarity is less than the preset similarity threshold, it means that the first drawing file does not match the protected circuit drawing, and then it can be determined that the first drawing file is not a protected drawing file.

[0093] Step S303: Perform security protection management on the first drawing file based on the matching result.

[0094] Specifically, the above step S303 includes:

[0095] Step S3031, in response to the existence of a matching result indicating a second feature vector whose similarity is greater than or equal to a preset similarity threshold, determine the target management level of the first drawing file according to the management level of the protected drawing file corresponding to the matched second feature vector, so as to perform security protection management on the first drawing file according to the target management level.

[0096] Specifically, if the matching result indicates that the similarity is greater than or equal to a preset similarity threshold, it means that the first drawing file matches the protected circuit drawing. Therefore, in order to improve the management efficiency of the first drawing file, the target management level of the first drawing file can be determined based on the management level of the protected drawing file corresponding to the matched second feature vector, so that the first drawing file can be managed according to the target management level in the future, thereby ensuring the timeliness of the management of the first drawing file and helping to reduce the cost of supervising circuit drawings.

[0097] The security protection method for drawing files provided in this embodiment can realize automatic detection and identification of target electronic components in circuit drawings, thereby improving work efficiency and accuracy. At the same time, by determining whether the first drawing file is a protected file drawing through feature vector matching, it is possible to effectively avoid missed identification or misidentification, thereby effectively improving the accuracy and reliability of the security protection management of drawing files.

[0098] In some optional implementations, the number of second feature information in the target feature information set may be multiple, and the corresponding businesses or products may not be exactly the same. To avoid missed identification, in the process of security protection of the first drawing file, the first feature necklace of the first drawing file may be matched with each second feature vector respectively, and then according to the matching result between the first feature vector and each second feature vector, it is determined whether there is a second feature vector in the multiple second feature vectors whose similarity with the first feature vector is greater than or equal to the preset similarity threshold, thereby helping to improve the accuracy of the matching result.

[0099] In some optional implementations, the method is applied to the client of the security management software, based on which the method further includes: receiving a target feature information set issued by the server of the security management software. In the production and manufacturing process of an enterprise or other organization, when there are many links involved, the accuracy of the security protection of the drawing file may be affected due to business isolation and other reasons. Therefore, in order to ensure the security of the drawing file protection, the server of the security management software can issue a target feature information set to the client of the security management software, so that when the client of the security management software detects a predicted operation on the first drawing file, it can perform targeted security protection management on the first drawing file based on the obtained target feature information set, thereby improving the efficiency of the security protection management of the first drawing file and ensuring the timeliness of the security protection of the first drawing file.

[0100] As a specific application embodiment of the disclosed embodiment, the server of security management software A is installed in server device 1, and the client of security management software A is installed in terminal device 2 to terminal device n respectively. Through interaction with the server of security management software A, multiple drawing files that need to be protected are determined. Based on the source code of each drawing file that needs to be protected, the second feature information of each drawing file that needs to be protected is determined, thereby obtaining a target feature information set. The server of security management software A sends the target feature information set to the client of the corresponding security management software A, for example, terminal device 2 to terminal device n. On this basis, terminal device 2 to terminal device n can use the target feature information set to identify the first drawing file currently obtained, and then perform targeted security protection management on the first drawing file.

[0101] Specifically, taking the first drawing file as a circuit drawing as an example, the process of performing security protection on the circuit drawing in the device where the client of the security management software A is located is as follows: Figure 4 As shown, the following steps are included:

[0102] Obtain source code of the circuit drawing. The circuit drawing may be obtained by the client of the security management software A in response to a preset operation on the circuit drawing. The preset operation includes at least one of the following: sending the circuit drawing to the outside of the first network, downloading the circuit drawing, creating the circuit drawing, editing the circuit drawing, or retrieving the circuit drawing from a local computer.

[0103] The source code is parsed to obtain description information of the target electronic component in the circuit drawing, and then feature extraction is performed on the description information to obtain first feature information corresponding to the circuit drawing.

[0104] The first feature information is matched with the second feature information in the target feature information set to determine the similarity between the first feature vector and the second feature vector. Based on the comparison result between the similarity and the preset similarity threshold, the matching result between the first drawing file and the second feature vector is obtained. If the comparison result indicates that the similarity is greater than or equal to the preset similarity threshold, it means that the first drawing file matches the protected circuit drawing, and the first drawing file is determined to be a protected drawing file. If the comparison result indicates that the similarity is less than the preset similarity threshold, it means that the first drawing file does not match the protected circuit drawing, and the first drawing file is determined not to be a protected drawing file. Among them, the target feature information set is issued by the server of security management software A. The second feature information is the feature information of the protected drawing file. The second feature information is obtained by parsing the source code of the protected circuit drawing and extracting the feature of the description information of the target electronic component in the obtained protected circuit drawing.

[0105] If the matching result indicates that the first drawing file is a protected drawing file, the preset operation on the first drawing file is blocked. If the matching result indicates that the first drawing file is not a protected drawing file, the preset operation on the first drawing file is released, and the circuit drawing can be sent to the audit for review later.

[0106] Through the above-mentioned security protection method for drawing files, it can be ensured that the first characteristic information is not affected by the modification of the drawing suffix or name during the extraction process, thereby improving the reliability of the first characteristic information. When the security protection of the drawing files is subsequently performed, the occurrence of missed recognition or misrecognition can be effectively reduced, thereby effectively improving the accuracy and reliability of security protection for drawing files.

[0107] In this embodiment, a safety protection device for drawing files is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0108] This embodiment provides a safety protection device for drawing files, such as Figure 5 As shown, including:

[0109] A first acquisition module 501 is used to acquire a first drawing file;

[0110] The second acquisition module 502 is used to obtain a matching result of matching the first feature information corresponding to the first drawing file with each second feature information in the target feature information set; wherein the first feature information is obtained by parsing the first drawing file to obtain description information of the target element in the first drawing file, and extracting features from the description information of the obtained target element; the target feature information set includes the second feature information of at least one protected drawing file;

[0111] The management module 503 performs security protection management on the first drawing file based on the matching result.

[0112] In some optional implementations, the first acquisition module 501 includes:

[0113] A file acquisition unit, configured to acquire the first drawing file in response to a preset operation on the first drawing file;

[0114] The preset operation includes at least one of the following: sending the first drawing file to the outside of the first network, downloading the first drawing file, creating the first drawing file, and editing the first drawing file.

[0115] In some optional implementations, the management module 503 includes:

[0116] A first management unit, configured to block a preset operation on the first drawing file in response to the matching result indicating that the first drawing file is a protected drawing file;

[0117] or

[0118] The second management unit is used to release the preset operation on the first drawing file in response to the matching result indicating that the first drawing file is not a protected drawing file.

[0119] In some optional implementations, the first drawing file is a circuit drawing, and the target element in the first drawing file is a target electronic component;

[0120] The module for parsing the first drawing file to obtain description information of the target element in the first drawing file includes:

[0121] The parsing unit is used to parse the source code of the circuit drawing to obtain the description information of the target electronic component in the circuit drawing.

[0122] In some optional implementations, the parsing unit includes:

[0123] A first processing unit is used to perform field analysis on the source code of the circuit drawing to determine the target electronic component in the circuit drawing;

[0124] The second processing unit is used to extract description information of the target electronic component from the source code.

[0125] In some optional implementations, the first processing unit includes:

[0126] A first execution unit is used to perform field parsing on the source code to determine the fields in the circuit drawing;

[0127] The screening unit is used to screen the fields, determine the target fields, and use the electronic components corresponding to the target fields as the target electronic components.

[0128] In some optional implementations, the second processing unit includes:

[0129] The extraction unit is used to extract the connection relationship between the target electronic components and the model information of the target electronic components to obtain description information.

[0130] In some optional implementations, the second acquisition module 502 includes:

[0131] A matching unit, used to match the first feature vector with the second feature vector, determine the similarity between the first feature vector and each second feature vector, the first feature vector corresponds to the first feature information, and the second feature vector corresponds to the second feature information;

[0132] The third processing unit is used to obtain a matching result between the first feature information and each of the second feature information based on a comparison result between the similarity and a preset similarity threshold.

[0133] In some optional implementations, the management module 503 includes:

[0134] The fourth processing unit is used to determine the target management level of the first drawing file according to the management level of the protected drawing file corresponding to the matched second feature vector in response to the existence of a matching result indicating that the similarity is greater than or equal to a preset similarity threshold, so as to perform security protection management on the first drawing file according to the target management level.

[0135] In some optional implementations, the above-mentioned security protection device for drawing files is applied to the client of security management software, and the security protection device further includes:

[0136] The receiving unit is used to receive the target feature information set sent by the server of the security management software.

[0137] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0138] The security protection device for the drawing files in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0139] The present disclosure also provides a computer device having the above Figure 5 Safety guards as shown in the drawings.

[0140] See also Figure 6 , Figure 6 is a schematic diagram of a computer device provided by an optional embodiment of the present disclosure, such as Figure 6 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 10 is taken as an example.

[0141] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0142] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0143] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0144] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0145] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.

[0146] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.

[0147] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0148] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0149] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for protecting the safety of drawing files, characterized in that: The method comprises: Obtain the first drawing file; Obtaining a matching result of matching the first feature information corresponding to the first drawing file with each second feature information in the target feature information set; wherein the first feature information is obtained by parsing the first drawing file to obtain description information of a target element in the first drawing file, and extracting features from the description information of the target element; the target feature information set includes the second feature information of at least one protected drawing file; The first drawing file is managed for security protection based on the matching result.

2. The method according to claim 1, characterized in that: The obtaining of the first drawing file comprises: In response to a preset operation on the first drawing file, acquiring the first drawing file; The preset operation includes at least one of the following: sending the first drawing file to the outside of the first network, downloading the first drawing file, creating the first drawing file, and editing the first drawing file.

3. The method according to claim 1, characterized in that The performing security protection management on the first drawing file based on the matching result includes: In response to the matching result indicating that the first drawing file is a protected drawing file, blocking a preset operation on the first drawing file; or In response to the matching result indicating that the first drawing file is not a protected drawing file, a preset operation on the first drawing file is released.

4. The method according to claim 1, characterized in that: The first drawing file is a circuit drawing, and the target element in the first drawing file includes a target electronic component; the parsing of the first drawing file to obtain the description information of the target element in the first drawing file includes: The source code of the circuit drawing is parsed to obtain description information of the target electronic component in the circuit drawing.

5. The method according to claim 4, characterized in that The step of parsing the source code of the circuit drawing to obtain description information of the target electronic component in the circuit drawing includes: Performing field analysis on the source code of the circuit drawing to determine the target electronic component in the circuit drawing; The description information of the target electronic component is extracted from the source code.

6. The method according to claim 5, characterized in that The performing field parsing on the source code of the circuit drawing to determine the target electronic component in the circuit drawing includes: Performing field analysis on the source code to determine the fields in the circuit drawing; The fields are screened to determine the target field, and the electronic component corresponding to the target field is used as the target electronic component.

7. The method according to claim 5, characterized in that The extracting the description information of the target electronic component from the source code includes: The connection relationship between the target electronic components and the model information of the target electronic components are extracted to obtain the description information.

8. The method according to claim 1, characterized in that The obtaining of the matching result of matching the first feature information corresponding to the first drawing file with each second feature information in the target feature information set includes: Matching the first feature vector with each second feature vector to determine the similarity between the first feature vector and each second feature vector, the first feature vector corresponds to the first feature information, and the second feature vector corresponds to the second feature information; Based on the comparison result between the similarity and a preset similarity threshold, a matching result between the first feature information and each of the second feature information is obtained.

9. The method according to claim 8, characterized in that The performing security protection management on the first drawing file based on the matching result includes: In response to the existence of the second feature vector whose matching result indicates that the similarity is greater than or equal to the preset similarity threshold, the target management level of the first drawing file is determined according to the management level of the protected drawing file corresponding to the matched second feature vector, so as to perform security protection management on the first drawing file according to the target management level.

10. The method according to any one of claims 1 to 9, characterized in that The method is applied to a client of security management software, and the method further comprises: Receive the target feature information set sent by the server of the security management software.

11. A safety protection device for drawing files, characterized in that: The device comprises: A first acquisition module, used to acquire a first drawing file; A second acquisition module is used to obtain a matching result of matching the first feature information corresponding to the first drawing file with each second feature information in the target feature information set; wherein the first feature information is obtained by parsing the first drawing file to obtain description information of a target element in the first drawing file, and extracting features from the description information of the target element; the target feature information set includes the second feature information of at least one protected drawing file; A management module is used to perform security protection management on the first drawing file based on the matching result.

12. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the drawing file security protection method according to any one of claims 1 to 10 by executing the computer instructions.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the drawing file security protection method according to any one of claims 1 to 10.

14. A computer program product, characterized in that It comprises computer instructions, and the computer instructions are used to enable a computer to execute the safety protection method for drawing files according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • The debugging method of the examination script of the circuit diagram

    CN109471637A

  • Engineering drawing recognition method, electronic equipment and related products

    CN110796016A

  • Method and device for determining similar circuit diagram of automobile and electronic equipment

    CN113360695A

  • High-voltage cable accessory drawing comparison method and system based on image recognition

    CN113591698A

  • Engineering drawing comparison device and method based on computer vision

    CN113627320A