A method, system and terminal for access control of secure data based on cloud computing

By using deep neural networks and encryption and decryption technology in a cloud computing environment, combined with stuttering word segmentation and SVM models, the problems of data privacy protection and mining result accuracy in cloud computing are solved, and the security and applicability of data access are achieved.

CN117349889BActive Publication Date: 2024-10-18SHENZHEN ZHIHECHUANGWEI INFORMATION TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202311365971.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-20
Publication Date
2024-10-18
Estimated Expiration
2043-10-20

AI Technical Summary

Technical Problem

In a cloud computing environment, it is difficult for existing technologies to effectively protect data privacy and ensure the accuracy of data mining results. Traditional solutions are not applicable due to security issues and require users to participate in the data mining process, which cannot meet the needs of data outsourcing in a cloud environment.

Method used

Adopt a secure data access control method based on cloud computing, obtain and preprocess data, extract text features, use deep neural networks to detect sensitive data, and build encryption and decryption keys in the cloud server, combined with stuttering word segmentation, SVM and word2vec models , to achieve data encryption processing and secure access.

Benefits of technology

It improves the accuracy of text readability classification, ensures the security and applicability of data access, and meets the needs of data privacy protection in cloud environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117349889B_ABST
    Figure CN117349889B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, system and terminal for access control of secure data based on cloud computing. The method obtains data for accessing a cloud server and performs preprocessing according to the data type to obtain text sample data, performs feature extraction on the text sample data to obtain text features, inputs the text features into text training data in a trained deep neural network, performs a readability detection on the text training data to obtain sensitive data corresponding to the text training data, inputs the sensitive data into a security model for encryption processing, constructs corresponding encryption and decryption keys in the cloud server to complete data security access to the cloud server, effectively improves the accuracy of text readability classification, and ensures the security and applicability of data access.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of data security processing, and in particular relates to a method, system and terminal for access control of secure data based on cloud computing. Background Art

[0002] At present, the world is in the era of big data. The potential commercial and scientific value of data discovered through data mining, machine learning and other technologies has attracted widespread attention from all walks of life. However, in the process of data collection, a large amount of personal sensitive information is often contained. Once this personal information is leaked, it will have serious adverse effects on individuals, institutions and even society. With the rapid development of cloud computing technology, users are more inclined to outsource raw data and mining computing tasks to cloud servers with powerful storage and computing capabilities, which brings new privacy protection issues. In the cloud computing environment, since it is impossible to directly control and manage remote cloud servers, users' requirements for privacy protection of cloud data and outsourced computing results are constantly increasing, resulting in some traditional solutions being no longer applicable due to security disclosure. In addition, some existing solutions reduce the accuracy of mining results while protecting data privacy, while other solutions require users to hold data and participate in the data mining calculation process, so they are not well applicable to the application scenarios of data mining outsourcing in the cloud environment. Summary of the invention

[0003] In view of this, the present invention provides a cloud computing-based secure data access control method, system and terminal that can improve the accuracy of text readability classification and data access security, to solve the above-mentioned technical problems, and specifically adopts the following technical solutions to achieve this.

[0004] In a first aspect, the present invention provides a method for access control of secure data based on cloud computing, comprising the following steps:

[0005] Acquire access data from the cloud server and pre-process it according to the data type to obtain text sample data, where the data type includes text data and image data;

[0006] Feature extraction is performed on the text sample data to obtain text features, wherein the text sample data is processed by using the Jieba word segmentation method to obtain a set of all words in each text, and all word vectors in the word set are summed and averaged to obtain a text vector to complete feature extraction;

[0007] Inputting text features into text training data in a trained deep neural network, performing readability detection on the text training data to obtain sensitive data corresponding to the text training data, wherein the text training data is detected using a contextual semantic sensitive text determination algorithm;

[0008] Sensitive data is input into the security model for encryption, and the corresponding encryption and decryption keys are built in the cloud server to complete the data security access of the cloud server.

[0009] As a preferred embodiment of the above technical solution, corresponding encryption and decryption keys are constructed in the cloud server to complete data security access to the cloud server, including:

[0010] Encryption generates KG(G,p,g)→{pk i ,sk i}: First use the multiplication cyclic group G with prime order p and generator g to randomly select a private key Then calculate And set the public key pk i =(G,p,g,h), where the public key pk i When encrypting plaintext m∈G, select random parameters Calculate the ciphertext m′ i =Enc(pk i ,m)=(g r ,m,h r ), the corresponding encryption algorithm is Enc(pk i ,m)→{m′ i}; Given two private keys sk of the E1Gama1 cryptographic algorithm i and sk j After that, the re-encryption key is calculated as rk i→j =sk i -sk j , the corresponding re-encryption key generation algorithm is RKG(sk i ,sk j )→{rk i→j}; Use the original ciphertext m′ in the re-encryption algorithm i Corresponding private key sk i and the re-encryption key rk i→j As input, calculate and output the re-encrypted ciphertext Corresponding private key sk j ; Use re-encrypted ciphertext in decryption algorithm and E1Gama1 private key sk j As input, calculate and output plaintext The corresponding decryption algorithm is Dec(sk j ,m′ j )→{m}.

[0011] As a preferred embodiment of the above technical solution, sensitive data is input into a security model for encryption processing, including:

[0012] The preset security model includes the data owner, multiple query users and cloud servers. The data owner’s private database D = {t1, t2...t n} contains n data tuples t i =(p i , c i ), where p i =(p i1 , p i2 ...p id ) represents a d-dimensional data point, c i Indicates the numerical classification label corresponding to the data point. The data owner generates a private key and encrypts the database. The ciphertext database D′=(t′1, t′2...t′ n ) is uploaded to the cloud server c1, and the ciphertext data tuple t′ i =(p′ i , v′ i ), where p′ i With p i The corresponding ciphertext data point, v′ i Indicates c i The corresponding ciphertext label;

[0013] The data owner outsources the k-nearest neighbor classification task to the cloud server. It is assumed that each query user has a private d-dimensional query data point q. The k-nearest neighbor classification is performed based on the private database D. The data owner generates a unique query data point encryption key for each query user. The query user encrypts the query point q and sends the ciphertext query point q′ to the cloud server c1. The cloud servers c1 and c2 jointly perform the ciphertext k-nearest neighbor classification and assign the classification label c′ to the ciphertext query point q′. q Return to the corresponding query user for decryption.

[0014] As a preferred embodiment of the above technical solution, the text training data is subjected to a readability detection to obtain sensitive data corresponding to the text training data, including:

[0015] Obtain the string to be detected, and use the SVM basic classifier algorithm to classify the readability of the string. After the string is classified by the basic classifier, it is divided into content with specific format data, readable content, and unreadable content;

[0016] The sensitive word matching algorithm is used to detect sensitive words in the string to be detected. If it contains sensitive words, the SVM classification algorithm is used to further detect the data to determine whether it contains sensitive words. Otherwise, the user data is fed back to be suspected of containing sensitive information.

[0017] As a preferred embodiment of the above technical solution, inputting text features into text training data in a trained deep neural network includes:

[0018] Use the sensitive word algorithm to determine whether the text contains sensitive words. If it does, then check whether it contains sensitive words. The verification process includes first using a feature filtering algorithm to extract features from the text, and then using the SVM classification algorithm to determine whether it contains sensitive information. If the classification result shows that the text contains sensitive information, then the text is determined to be sensitive text, otherwise the text is marked as suspected sensitive text;

[0019] The sentence containing suspected sensitive information is used as the classification feature, and the matching algorithm is used to match the sensitive text and its location. The location is determined by the sentence start and end symbols and sentence identifiers. The matching algorithm determines that the sentence contains sensitive words and selects the sentence containing sensitive text as the feature. The starting position of the sentence is obtained through the sentence identifier in front of the sensitive word, and the beginning and end of the sentence are found through the sentence start and end symbols.

[0020] As a preferred embodiment of the above technical solution, after obtaining the sentence containing the suspected sensitive information, each sentence of the suspected text is segmented, and the word vector corresponding to each word is obtained by using the word2vec model, and the word vector in each sentence is summed and averaged to obtain the sentence vector of the sentence;

[0021] The SVM algorithm is used to classify each sentence vector. If there is a sentence that is judged to contain sensitive information, the text is judged to contain sensitive information.

[0022] As a preferred embodiment of the above technical solution, feature extraction is performed on the text sample data to obtain text features, including:

[0023] After using Jieba word segmentation to process the text, we get the set of all words in each text. The set of words can be expressed as (W1, W2...W i ...W n ), extract features from the text, and use the word2vec model to get the word vector (V1, V2...V i ...V n ), add and average all the word vectors in the text to get the text vector V t The calculation expression is

[0024] As a preferred embodiment of the above technical solution, obtaining the data type of access to the cloud server and preprocessing the data type to obtain text sample data includes:

[0025] The data accessing the cloud server is normalized and classified according to the data type to obtain text sample data.

[0026] In a second aspect, the present invention also provides a cloud computing-based security data access control system, comprising:

[0027] A data acquisition module is used to acquire data accessed from a cloud server and pre-process the data according to the data type to obtain text sample data, wherein the data type includes text data and image data;

[0028] A feature extraction module is used to extract features from text sample data to obtain text features, wherein the text sample data is processed by using Jieba word segmentation to obtain a set of all words in each text, and all word vectors in the word set are summed and averaged to obtain a text vector to complete feature extraction;

[0029] A data detection module is used to input text features into text training data in a trained deep neural network, and perform a readability detection on the text training data to obtain sensitive data corresponding to the text training data, wherein the text training data is detected using a contextual semantic sensitive text determination algorithm;

[0030] The data processing module is used to input sensitive data into the security model for encryption processing, and to build corresponding encryption and decryption keys in the cloud server to complete data security access to the cloud server.

[0031] In a third aspect, the present invention further provides a terminal, a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that the processor can be used to execute the above method when executing the computer program.

[0032] The present invention provides a method, system and terminal for access control of secure data based on cloud computing, which obtains data for accessing a cloud server and performs preprocessing according to the data type to obtain text sample data, performs feature extraction on the text sample data to obtain text features, inputs the text features into text training data in a trained deep neural network, performs a readability check on the text training data to obtain sensitive data corresponding to the text training data, inputs the sensitive data into a security model for encryption processing, constructs corresponding encryption and decryption keys in the cloud server to complete data security access to the cloud server, effectively improves the accuracy of text readability classification, and ensures the security and applicability of data access. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0034] Figure 1 A flowchart of a method for access control of secure data based on cloud computing of the present invention;

[0035] Figure 2 A process diagram for sensitive information detection of the present invention;

[0036] Figure 3 A structural block diagram of a cloud computing-based security data access control system of the present invention; DETAILED DESCRIPTION

[0037] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0038] See also Figure 1 The present invention provides a method for access control of secure data based on cloud computing, comprising the following steps:

[0039] S1: Acquire data accessed from a cloud server and preprocess it according to the data type to obtain text sample data, where the data type includes text data and image data;

[0040] S2: Extract features from the text sample data to obtain text features, wherein the text sample data is processed using the Jieba word segmentation method to obtain a set of all words in each text, and all word vectors in the word set are summed and averaged to obtain a text vector to complete feature extraction;

[0041] S3: Inputting text features into text training data in a trained deep neural network, performing readability detection on the text training data to obtain sensitive data corresponding to the text training data, wherein the text training data is detected using a contextual semantic sensitive text determination algorithm;

[0042] S4: Input sensitive data into the security model for encryption processing, and build the corresponding encryption and decryption keys in the cloud server to complete the data security access of the cloud server.

[0043] In this embodiment, the corresponding encryption and decryption keys are constructed in the cloud server to complete the data security access of the cloud server, including: encrypting and generating KG(G,p,g)→{pk i ,sk i}: First use the multiplication cyclic group G with prime order p and generator g to randomly select a private key Then calculate And set the public key pk i =(G,p,g,h), where the public key pk iWhen encrypting plaintext m∈G, select random parameters Calculate the ciphertext m′ i =Enc(pk i ,m)=(g r ,m,h r ), the corresponding encryption algorithm is Enc(pk i ,m)→{m′ i}; Given two private keys sk of the E1Gama1 cryptographic algorithm i and sk j After that, the re-encryption key is calculated as rk i→j =sk i -sk j , the corresponding re-encryption key generation algorithm is RKG(sk i ,sk j )→{rk i→j}; Use the original ciphertext m′ in the re-encryption algorithm i Corresponding private key sk i and the re-encryption key rk i→j As input, calculate and output the re-encrypted ciphertext Corresponding private key sk j ; Use re-encrypted ciphertext in decryption algorithm and E1Gama1 private key sk j As input, calculate and output plaintext The corresponding decryption algorithm is Dec(sk j ,m′ j )→{m}. The readability of text is the premise for judging it as sensitive text, while encrypted, compressed data and some garbled characters are not readable. In order to identify readable text and unreadable text, it is necessary to judge the readability of the text.

[0044] It should be noted that the sensitive data is input into the security model for encryption processing, including: the preset security model includes the data owner, multiple query users and the cloud server, the data owner's private database D = {t1, t2...t n} contains n data tuples t i =(p i ,c i ), where p i =(p i1 ,p i2 ...p id ) represents a d-dimensional data point, c iIndicates the numerical classification label corresponding to the data point. The data owner generates a private key and encrypts the database, uploads the ciphertext database D′=(t′1, t′2...t′n) to the cloud server c1, and the ciphertext data tuple t′ i =(p′ i ,v′ i ), where p′ i With p i The corresponding ciphertext data point, v′ i Indicates c i The data owner outsources the k-nearest neighbor classification task to the cloud server, and assumes that each query user has a private d-dimensional query data point q. The k-nearest neighbor classification is performed based on the private database D. The data owner generates a unique query data point encryption key for each query user. The query user encrypts the query point q and sends it to the ciphertext query point q′ to the cloud server c1. The cloud servers c1 and c2 jointly perform the ciphertext k-nearest neighbor classification and assign the classification label c′ q The data is returned to the corresponding query user for decryption. The data type accessing the cloud server is obtained and preprocessed according to the data type to obtain text sample data, including: normalizing the data accessing the cloud server and classifying according to the data type to obtain text sample data.

[0045] It should be understood that readable words and sentences are more fluent, the grammar is more correct, and the structure of the article has a certain logic. For encrypted text or compressed text, since the text has been encrypted and compressed, the grammar and logical structure of the text do not conform to the inherent rules, so the text is not readable. However, for sensitive data judgment, it is necessary to ensure that the text data is readable, so that sensitive information can be found according to relevant algorithms. The Word2vec algorithm model can express words or sentences in the form of vectors, and can complete the relevant processing of words or sentences based on these vectors, and then obtain the semantic similarity of the text, and complete the correlation analysis between words. Feature extraction is to extract related words that can easily distinguish the difference between words from the feature set. Since feature extraction has relevant applications in various fields, the number of dictionaries in word or sentence classification is large, which leads to an increase in relevant dimensions, which brings serious troubles to the problem of sentence or word classification. Under the premise of ensuring the classification effect, it is necessary to further screen from a large number of features and extract the most representative features. The method obtains data for accessing the cloud server and preprocesses it according to the data type to obtain text sample data, extracts features from the text sample data to obtain text features, inputs the text features into the text training data in the trained deep neural network, detects whether the text training data is readable, and obtains the sensitive data corresponding to the text training data. The sensitive data is input into the security model for encryption, and the corresponding encryption and decryption keys are constructed in the cloud server to complete the data security access of the cloud server, which effectively improves the accuracy of text readability classification and ensures the security and applicability of data access.

[0046] Optionally, performing a readability check on the text training data to obtain sensitive data corresponding to the text training data includes:

[0047] Obtain the string to be detected, and use the SVM basic classifier algorithm to classify the readability of the string. After the string is classified by the basic classifier, it is divided into content with specific format data, readable content, and unreadable content;

[0048] The sensitive word matching algorithm is used to detect sensitive words in the string to be detected. If it contains sensitive words, the SVM classification algorithm is used to further detect the data to determine whether it contains sensitive words. Otherwise, the user data is fed back to be suspected of containing sensitive information.

[0049] In this embodiment, for the sensitive text determination algorithm, there are two important key points: efficiency and accuracy. Efficiency refers to responding to the processing of a large number of sensitive words and a large number of target texts in a short time. Accuracy refers to not only finding the words that meet the requirements in the text, but more importantly, distinguishing the context to determine whether it is a sensitive word, which may reduce the misjudgment rate of judging non-sensitive text as sensitive text. The sensitive algorithm depends to a large extent on the completeness of sensitive words, and the sensitive information of various industries varies greatly. In practical applications, the management of sensitive words is handed over to the administrator for configuration management, and the matching algorithm detects and filters the sensitive words in the text. At the same time, the feature filtering algorithm and the classification algorithm are combined to optimize the problem of only matching without considering the specific context, thereby improving the accuracy of the judgment.

[0050] See also Figure 2 , Input text features into the trained deep neural network text training data, including:

[0051] S10: using a sensitive word algorithm to determine whether the text contains sensitive words. If the text contains sensitive words, verifying whether the text contains sensitive words. The verification process includes first extracting features from the text using a feature filtering algorithm, and then using an SVM classification algorithm to determine whether the text contains sensitive information. If the classification result shows that the text contains sensitive information, the text is determined to be sensitive text, otherwise the text is marked as suspected sensitive text.

[0052] S11: The sentence containing suspected sensitive information is used as a classification feature, and a matching algorithm is used to match the sensitive text and its location. The location is determined by the sentence start and end symbols and sentence identifiers. The sentence containing sensitive words is determined by the matching algorithm and the sentence containing sensitive text is selected as a feature. The starting position of the sentence is obtained by the sentence identifier in front of the sensitive word, and the beginning and end of the sentence are found by the sentence start and end symbols.

[0053] S12: After obtaining the sentences containing suspected sensitive information, perform word segmentation on each sentence of the suspected text, use the word2vec model to obtain the word vector corresponding to each word, and obtain the sentence vector of the sentence by summing and averaging the word vectors in each sentence;

[0054] S13: Use the SVM algorithm to classify and judge each sentence vector respectively. If there is a sentence that is judged to contain sensitive information, the text is judged to contain sensitive information.

[0055] In this embodiment, feature extraction is performed on the text sample data to obtain text features, including: using Jieba word segmentation to process the text to obtain all word sets of each text, and the word set can be expressed as (W1, W2...W i ...W n), extract features from the text, and use the word2vec model to get the word vector (V1, V2...V i ...V n ), add and average all the word vectors in the text to get the text vector V t The calculation expression is The support vector machine algorithm SVM is an algorithm that classifies data in a supervised learning manner. In addition to being applicable to linear classification problems, the algorithm can also be applied to nonlinear classification problems. The SVM algorithm obtains feature vectors from sample data and maps these feature vectors to points in a high-dimensional space. Then, by solving the sample data, it finds the super-separating interface or a dividing line with the largest distance between two different categories of data. Based on the obtained dividing interface or dividing line, the data is divided into different types of data. After the data classification is completed, the super-separating interface or dividing line can be used as a reference to complete the relevant classification of the newly added data points.

[0056] It should be noted that the word2vec model can process natural language and transform it into vectors that can be recognized by computers. The core of this model is the process of transforming words or sentences into vectors. In this algorithm model, all words are represented in the form of vectors, so that the analysis of the association between words is transformed into the measurement of the relationship between their vectors, so as to analyze and mine the relationship between words. Word vectors have multiple dimensions, each of which represents different characteristics of the vector, and also represents different semantic and grammatical characteristics. Word vectors can show good semantic characteristics. Analyzing the relationship between words is transformed into analyzing the relationship between word vectors in the vector space composed of word vectors. When all vectors are represented in the vector coordinate system, it can be found that words with relatively close positions have similar or close semantics. On the contrary, the distance between semantically unrelated words is far. Based on this feature, this model can be used to perform a more generalized analysis of words and sentences.

[0057] See also Figure 3 The present invention also provides a cloud computing-based security data access control system, comprising:

[0058] A data acquisition module is used to acquire data accessed from a cloud server and pre-process the data according to the data type to obtain text sample data, wherein the data type includes text data and image data;

[0059] A feature extraction module is used to extract features from text sample data to obtain text features, wherein the text sample data is processed by using Jieba word segmentation to obtain a set of all words in each text, and all word vectors in the word set are summed and averaged to obtain a text vector to complete feature extraction;

[0060] A data detection module is used to input text features into text training data in a trained deep neural network, and perform a readability detection on the text training data to obtain sensitive data corresponding to the text training data, wherein the text training data is detected using a contextual semantic sensitive text determination algorithm;

[0061] The data processing module is used to input sensitive data into the security model for encryption processing, and to build corresponding encryption and decryption keys in the cloud server to complete data security access to the cloud server.

[0062] In this embodiment, the text data readability detection function is to help the data holder detect whether the read data content is readable, whether the content is meaningful, and whether it can be normally understood by the user. This function is mainly to prevent the data user from avoiding the data holder to detect the text content by encoding, encrypting, compressing or other methods. This function mainly detects whether the text is encoded, encrypted and compressed, whether the sentence length is appropriate, whether the part of speech analysis is in accordance with the requirements, etc. Re-encoded data, encrypted data, compressed data, garbled and meaningless data are all regarded as non-readable data. By obtaining the data accessed by the cloud server and preprocessing it according to the data type to obtain text sample data, feature extraction is performed on the text sample data to obtain text features, the text features are input into the text training data in the trained deep neural network, the text training data is read to detect whether it is readable to obtain the sensitive data corresponding to the text training data, the sensitive data is input into the security model for encryption processing, and the corresponding encryption and decryption keys are constructed in the cloud server to complete the data security access of the cloud server, which effectively improves the accuracy of text readability classification and ensures the security and applicability of data access.

[0063] The present invention also provides a terminal, a memory, a processor and a computer program stored in the memory and capable of running on the processor, characterized in that the processor can be used to execute the above method when executing the computer program.

[0064] In this embodiment, computer programs, computer instructions, etc. can be partitioned and stored in one or more memories. And the above-mentioned computer programs, computer instructions, data, etc. can be called by the processor. The processor is used to execute the computer program stored in the memory to implement the various steps in the method involved in the above embodiment. For details, please refer to the relevant description in the previous method embodiment. The processor and the memory can be an independent structure or an integrated structure integrated together. When the processor and the memory are independent structures, the memory and the processor can be connected by bus coupling.

[0065] It should be noted that the steps in the method provided by the present invention can be implemented by using the corresponding modules, devices, units, etc. in the system. Those skilled in the art can refer to the technical solution of the system to implement the step flow of the method, that is, the embodiments in the system can be understood as a preferred example of implementing the method, which will not be described in detail here. Those skilled in the art know that in addition to implementing the system and its various devices provided by the present invention in a purely computer-readable program code, it is entirely possible to implement the same functions in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, the system and its various devices provided by the present invention can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component; the devices for implementing various functions can also be regarded as both software modules for implementing the method and structures within the hardware component.

[0066] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art may make various modifications or variations within the scope of the claims, which do not affect the essence of the present invention.

[0067] In all examples shown and described herein, any specific values ​​should be interpreted as merely exemplary and not as limiting, and thus other examples of the exemplary embodiments may have different values.

[0068] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0069] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.

Claims

1. A method for access control of secure data based on cloud computing, characterized in that: The following steps are involved: Acquire data accessed from a cloud server and preprocess the data according to the data type to obtain text sample data, wherein the data type includes text data and image data; Feature extraction is performed on the text sample data to obtain text features, wherein the text sample data is processed by using the Jieba word segmentation method to obtain a set of all words in each text, and all word vectors in the word set are summed and averaged to obtain a text vector to complete feature extraction; Inputting text features into a trained deep neural network to obtain text training data, performing readability detection on the text training data to obtain sensitive data corresponding to the text training data, wherein the text training data is detected using a contextual semantic sensitive text determination algorithm; Sensitive data is input into the security model for encryption, and the corresponding encryption and decryption keys are built in the cloud server to complete the data security access of the cloud server; Build the corresponding encryption and decryption keys in the cloud server to complete the data security access of the cloud server, including: Encryption generates KG(G, p, g) → {pk i ,sk i }: First use the multiplication cyclic group G with prime order p and generator g to randomly select a private key Then calculate And set the public key pk i =(G, p, g, h), where the public key pk i When encrypting plaintext m∈G, select random parameters Calculate the ciphertext m′ i =Enc(pk i , m)=(g r , m, h r ), the corresponding encryption algorithm is Enc(pk i ,m)→{m′ i }; Given two private keys sk of the ElGamal cryptographic algorithm i and sk j After that, the re-encryption key is calculated as rk i→j =sk i -sk j , the corresponding re-encryption key generation algorithm is RKG(sk i ,sk j )→{rk i→j }; Use the original ciphertext m′ in the re-encryption algorithm i Corresponding private key sk i and the re-encryption key rk i→j As input, calculate and output the re-encrypted ciphertext Corresponding private key sk j ; Use re-encrypted ciphertext in decryption algorithm and ElGamal private key sk j As input, calculate and output plaintext The corresponding decryption algorithm is Dec(sk j , m′ j )→{m}; Sensitive data is entered into the security model for encryption, including: The preset security model includes the data owner, multiple query users and cloud servers. The data owner’s private database D = {t1, t2...t n } contains n data tuples t i =(p i , c i ), where p i =(p i1, p i2 ...p id ) represents a d-dimensional data point, c i Indicates the numerical classification label corresponding to the data point. The data owner generates a private key and encrypts the database. The ciphertext database D′=(t′1, t′2...t′ n ) is uploaded to the cloud server c1, and the ciphertext data tuple t′ i =(p′ i , v′ i ), where p′ i With p i The corresponding ciphertext data point, v′ i Indicates c i The corresponding ciphertext label; The data owner outsources the k-nearest neighbor classification task to the cloud server. It is assumed that each query user has a private d-dimensional query data point q. The k-nearest neighbor classification is performed based on the private database D. The data owner generates a unique query data point encryption key for each query user. The query user encrypts the query point q and sends the ciphertext query point q′ to the cloud server c1. The cloud servers c1 and c2 jointly perform the ciphertext k-nearest neighbor classification and assign the classification label c′ to the ciphertext query point q′. q Return to the corresponding query user for decryption.

2. The method for access control of secure data based on cloud computing according to claim 1, characterized in that: The text training data is checked for readability to obtain the sensitive data corresponding to the text training data, including: Obtain the string to be detected, and use the SVM basic classifier algorithm to classify the readability of the string. After the string is classified by the basic classifier, it is divided into content with specific format data, readable content, and unreadable content; The sensitive word matching algorithm is used to detect sensitive words in the string to be detected. If it contains sensitive words, the SVM classification algorithm is used to further detect the data to determine whether it contains sensitive words. Otherwise, the user data is fed back to be suspected of containing sensitive information.

3. The method for access control of secure data based on cloud computing according to claim 2, characterized in that: Input text features into the trained deep neural network to obtain text training data, including: Use the sensitive word algorithm to determine whether the text contains sensitive words. If it does, then check whether it contains sensitive words. The verification process includes first using a feature filtering algorithm to extract features from the text, and then using the SVM classification algorithm to determine whether it contains sensitive information. If the classification result shows that the text contains sensitive information, then the text is determined to be sensitive text, otherwise the text is marked as suspected sensitive text; The sentence containing suspected sensitive information is used as the classification feature, and the matching algorithm is used to match the sensitive text and its location. The location is determined by the sentence start and end symbols and sentence identifiers. The matching algorithm determines that the sentence contains sensitive words and selects the sentence containing sensitive text as the feature. The starting position of the sentence is obtained through the sentence identifier in front of the sensitive word, and the beginning and end of the sentence are found through the sentence start and end symbols.

4. The method for access control of secure data based on cloud computing according to claim 3, characterized in that: Also includes: After obtaining the sentences containing suspected sensitive information, perform word segmentation on each sentence of the suspected text, use the word2vec model to obtain the word vector corresponding to each word, and obtain the sentence vector of the sentence by summing and averaging the word vectors in each sentence; The SVM algorithm is used to classify each sentence vector. If there is a sentence that is judged to contain sensitive information, the text is judged to contain sensitive information.

5. The method for access control of secure data based on cloud computing according to claim 1, characterized in that: Feature extraction is performed on text sample data to obtain text features, including: After using Jieba word segmentation to process the text, we get the set of all words in each text. The set of words can be expressed as (W1, W2...W i ...W n ), extract features from the text, and use the word2vec model to get the word vector (V1, V2...V i ...V n ), add and average all the word vectors in the text to get the text vector V t The calculation expression is 6. The method for access control of secure data based on cloud computing according to claim 1, characterized in that: Obtain the data type of the accessed cloud server and perform preprocessing based on the data type to obtain text sample data, including: The data accessing the cloud server is normalized and classified according to the data type to obtain text sample data.

7. A cloud computing-based security data access control system according to the cloud computing-based security data access control method according to any one of claims 1 to 6, comprising: A data acquisition module is used to acquire data accessed from a cloud server and pre-process the data according to the data type to obtain text sample data, wherein the data type includes text data and image data; A feature extraction module is used to extract features from text sample data to obtain text features, wherein the text sample data is processed by using Jieba word segmentation to obtain a set of all words in each text, and all word vectors in the word set are summed and averaged to obtain a text vector to complete feature extraction; A data detection module is used to input text features into a trained deep neural network to obtain text training data, and to detect whether the text training data is readable to obtain sensitive data corresponding to the text training data, wherein the text training data is detected using a contextual semantic sensitive text determination algorithm; The data processing module is used to input sensitive data into the security model for encryption processing, and to build corresponding encryption and decryption keys in the cloud server to complete data security access to the cloud server.

8. A terminal, a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that: When the processor executes the computer program, it can be used to perform the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method and system for encrypting cloud server files and cloud server

    CN103442061A

  • CCA secure proxy re-encryption method with delegable verifiability

    CN107086911A

  • User privacy encryption method

    CN111984983A

  • Sensitive document identification method based on remote supervision

    CN113204975A

  • Sensitive word data processing method and device and electronic equipment

    CN113705225A