A data access control method for DDS distributed system
By adopting the subject data access control method and attribute-based encryption technology in the DDS system, the data security problems caused by loose coupling characteristics are solved, fine-grained access control and efficient data transmission are realized, and the security and performance of the system are improved.
Patent Information
- Application Number
- CN202110758999.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-05
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2041-07-05
AI Technical Summary
Due to loose coupling characteristics in DDS distributed systems, there are security problems with data interaction, such as unauthorized publishing and subscription. Traditional access control methods are complex and difficult to achieve effective control of publishers, resulting in the impact of security and performance.
Using the theme data access control method, the access permissions are decomposed into publishing permissions and subscription permissions, combined with signature authentication technology and CP-ABE encryption technology, the theme's access control policy and attribute key management can achieve security control of data to prevent failure. Authorized publishing and subscriptions.
It realizes fine-grained data access control for the DDS system, improves security and performance, ensures the confidentiality of data transmission and the security of the system, and reduces the complexity of security management.
Smart Images

Figure CN113378230B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to access control technology in the field of information security, and in particular to a data access control method for a DDS distributed system. Background Art
[0002] In a distributed system based on the Data Distribution Service (DDS), each component transmits data in real time through topic-based publish / subscribe. Due to the loose coupling characteristics of DDS, the data transmission relationship between components becomes flexible, but it also brings security issues of data interaction, such as unauthorized publishing and unauthorized subscription, which seriously threatens the security of communication middleware and its upper-layer applications. Therefore, it is necessary to control data access in the DDS system.
[0003] Traditional DDS access control methods often only implement user-level access control, and the configuration of access control permissions is also complicated and cumbersome. It is necessary to define the access control permissions between publishers and subscribers one by one, that is, to determine whether a user can subscribe to data published by another user. Once the access control permissions are configured between two users, the subscriber can subscribe to all data published by the publisher (regardless of the topic).
[0004] Traditional DDS access control often uses encryption technology to implement access control for subscribers, that is, only legitimate subscribers can decrypt the data content, thereby preventing unauthorized subscriptions; in comparison, access control for publishers is more difficult. In a purely distributed publish / subscribe mechanism, there is no proxy or central server, and unauthorized publishers can easily publish data. Therefore, each subscriber needs to verify the identity of the publisher, which increases the processing burden on the subscriber. Currently, most DDS systems only implement access control for subscribers.
[0005] In addition, the essence of DDS publish / subscribe data is data-centric, one-to-many communication with loose coupling between publishers and subscribers. However, traditional DDS access control often implements one-to-one permission control between entities in the data domain based on identity. On the one hand, it is necessary to determine the identity of the legitimate publisher or subscriber in advance. On the other hand, if the same data is to be delivered to different subscribers, it is necessary to encrypt the data for different subscribers separately and then send it to the subscribers one-to-one, resulting in high message complexity. Therefore, in order to fit the application scenario of DDS data distribution, its access control method needs to start from the data resource itself and select a new cryptographic technology that is independent of entity identity and has the characteristics of one-party encryption and multiple-party decryption to achieve safer and more efficient data sharing. Summary of the invention
[0006] In order to overcome the deficiencies in the above-mentioned prior art and solve the data access control problem of the DDS distributed system, the present invention provides a subject data access control method of a DDS system. The present invention decomposes the access control authority of the subject data into subject publishing authority and subject subscription authority. In order to realize the access control of the publisher, the signature authentication technology is combined with the discovery and matching process of DDS, and the SEDP protocol is extended. Only the legitimate publisher can pass the signature authentication, and then establish a publish-subscribe relationship with the subscriber to prevent unauthorized publishing; in order to realize the access control of the subscriber and maintain the technical characteristics and advantages of the one-to-many communication between the publisher and the subscriber of the DDS system, the attribute-based encryption technology is introduced to convert the access control policy of the subject into the access control structure in CP-ABE. The publisher encrypts the data according to the access control structure, and the subscriber can successfully decrypt the data only if the attribute set meets the access control structure, thereby preventing unauthorized subscription.
[0007] Technical solution:
[0008] To achieve the above object, the present invention adopts the following technical solutions:
[0009] A data access control method for a DDS distributed system can implement access control on data of a topic and prevent unauthorized publishing and unauthorized subscription to the topic by clarifying the attributes that the legitimate publisher and legitimate subscriber of the topic need to have, without specifying the identities of the legitimate publisher and legitimate subscriber of the topic, and comprising the following steps:
[0010] S10, divide the data access control rights between domain participants into publishing rights and subscription rights of the subject, determine the publishing access control policy and subscription access control policy of the subject, and distribute the permission key pairs of the corresponding rights according to the user's attribute set and endpoint type (publishing end or subscribing end);
[0011] S20, combined with the DDS automatic discovery and matching process, the signature authentication technology is used to implement the authentication of user publishing authority;
[0012] S30. Combined with the DDS publish-subscribe process, the CP-ABE technology is used to implement authentication of user subscription rights.
[0013] Furthermore, the step S1 specifically includes the following steps:
[0014] S11, the DDS data management center determines the publishing access control policy and subscription access control policy of the subject data, and generates the publishing access control structure T of the subject accordingly P and subscription access control structure T s ;
[0015] S12. The DDS data management center generates an asymmetric key pair {GK, VK} for the subject for signature authentication;
[0016] S13. When a DDS user joins the DDS distributed system, the DDS data management center generates a corresponding attribute key SK based on the attribute set it owns;
[0017] S14. If the newly added DDS user is a publisher, verify whether its attribute set complies with the publishing access control policy. If it complies, the user is a legitimate publisher of the topic, and generate a publishing end authority key pair {GK, T s}; If not, the user does not have the publishing permission for the topic and verification failure is returned.
[0018] S15. If the newly added DDS user is a subscriber, verify whether its attribute set complies with the subscription access control policy. If it complies, the user is a legitimate subscriber of the topic, and a subscription-side permission key pair {VK, SK} is generated for it; if it does not comply, the user does not have the subscription permission for the topic, and verification failure is returned.
[0019] Furthermore, in step S2, the discovery and matching mechanism of DDS itself is used to add signature authentication of publishing authority on the basis of endpoint matching in the SEDP stage to prevent DataWriters that do not obtain publishing authority from illegally publishing data, which specifically includes the following steps:
[0020] In the S21, SEDP phase, the publisher adds an access control field to the endpoint information DiscoveredWriterData message and uses the signature key GK to digitally sign the published topic name Topic:
[0021] Sign=En GK (Hash(Topic)), fill Sign into the access control field;
[0022] In the S22, SEDP phase, after receiving the publisher's DiscoveredWriterData message, the subscriber parses the access control field in it, obtains the digital signature Sign, and uses the authentication key VK to authenticate the digital signature Sign: 1 =De VK (Sign), H 2 =Hash(Topic);
[0023] S23. Compare the hash value H in step S22 1 and H 2Are they equal. If they are equal, the authentication is successful, and the subscriber successfully matches the publishing rights of the remote publisher's DataWriter in the SEDP phase, and continues to establish a publish-subscribe relationship between the local subscriber's DataReader and the remote publisher's DataWriter; otherwise, the authentication fails, indicating that the remote publisher's DataWriter does not have the authority to publish related topics, preventing the local subscriber's DataReader from establishing a connection with the remote publisher's DataWriter, and the SEDP phase publish-subscribe relationship fails to be established.
[0024] Furthermore, in step S3, in combination with the DDS publish-subscribe process, CP-ABE is used to encrypt the subject data to prevent DataReaders that do not obtain subscription permissions from illegally subscribing to data, which specifically includes the following steps:
[0025] S31. When a legitimate DDS publisher publishes topic data, the publisher uses the subscription access control structure T of the topic. s , CP-ABE encryption is performed on the subject data Data: C = En Ts (Data), publish the ciphertext C;
[0026] S32. When a DDS user subscribes to a topic, the subscriber decrypts the received topic ciphertext data C using the attribute key SK: Data = De SK (C) If the decryption is successful, it means that the DDS user has the authority to subscribe to the topic and submits the decrypted topic data to the upper-layer application; otherwise, it means that the subscriber does not have the authority to subscribe to the topic and the topic data reception fails.
[0027] Beneficial effects:
[0028] The beneficial effects of the present invention are:
[0029] (1) A topic-level, attribute-based data access control model is defined to implement one-to-many, fine-grained access control in data distribution services from the perspective of data resources. This makes up for the shortcomings of existing DDS access control methods, such as coarse access control granularity (user level) and complex and cumbersome access control permission configuration (defined one-to-one by publishers and subscribers).
[0030] (2) By combining SEDP with signature authentication technology and utilizing DDS’s own discovery and matching mechanism, the problem of unauthorized publishing between components is solved, which not only improves the security of the system but also reduces the impact of security on the DDS publishing and subscription performance, thus striking a balance between the two.
[0031] (3) By integrating attribute-based encryption technology with the DDS publish-subscribe process, the problem of unauthorized subscription between components is solved while ensuring the confidentiality of data transmission, and loosely coupled, one-to-many access control of data distribution services is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 The overall flow chart of the data access control method of the DDS distributed system proposed by the present invention;
[0033] Figure 2 This is a diagram showing the publishing access control structure for Topic 1;
[0034] Figure 3 This is a diagram showing the subscription access control structure for Topic1; DETAILED DESCRIPTION
[0035] The technical solution of the present invention is further described in detail below in conjunction with embodiments.
[0036] Example: Figure 1 As shown, a data access control method for a DDS distributed system includes the following steps:
[0037] First, the DDS data management center analyzes the access control policy of a single topic (Topic1) in the system data resources (see Table 1, where 1 / 2 means that only one of the two attributes needs to be satisfied, and 1 / 1 means that only one attribute needs to be satisfied) and generates the publishing access control structure T of Topic1. p1 and subscription access control structure T s1 Respectively Figure 2 and Figure 3 At the same time, the DDS data management center generates a signature authentication key pair {GK 1 , VK 1}.
[0038] Table 1 Topicl access control policy
[0039]
[0040] Secondly, DDS users user1, user2 (publishing end), user3, user4 (subscribing end) in the distributed system submit user attribute sets to the data management center, as shown in Table 2. The DDS data management center generates the attribute key {SK 1 , S.K. 2 , S.K. 3 , S.K. 4}.
[0041] Table 2 DDS user attribute set
[0042] DDS Users Property Collection user1 (Production Line A, Production Department, Shanghai Region) user2 (Production Line B, Storage Department, Beijing Area) user3 (Production Line A, Operation and Maintenance Department, Beijing Region) user4 (Production Line B, Operation and Maintenance Department, Shanghai Region)
[0043] Then, the data management center publishes the access control structure T p1 Verify whether user1 and user2 have the publishing permission for Topic1, according to the subscription access control structure T s1 Verify whether user3 and user4 have the subscription rights to Topic1, and distribute the corresponding permission key pairs. Combining the above access control structure tree and the attribute sets of each DDS user, we can get: the attribute set of user1 satisfies T p1 , as the legitimate publisher of Topic1, obtain the signature key GK 1 and subscription access control structure T s1 ; The attribute set of user4 satisfies T s1 , as a legitimate subscriber of Topic1, obtain the authentication key VK 1 and symmetric key SK4; the attribute set of user2 and user3 does not satisfy the corresponding access control structure, so they do not have the corresponding permission to publish and subscribe to Topic1, and cannot obtain the corresponding permission key pair. This completes the data access control permission parsing and key distribution process of Topic1 in the DDS distributed system.
[0044] Finally, when DDS users user1 and user4 join the DDS distributed system, the entity discovery and matching process is first performed. User1 adds an access control field to the published endpoint information DiscoveredWriterData message and uses GK 1 Sign the published topic name Topic1: Sign1 = En GK1 (Hash(Topic1)), and fill Sign1 into the access control field. User4 receives the published endpoint information DiscoveredWriterData message from user1, parses the access control field to obtain the digital signature Sign1, and verifies the hash value H 1 and H 2 Are they equal (where: H 1 =De VK1 (Sign1), H 2 = Hash(Topic1)). Since GK 1 With VK 1The asymmetric key pair belonging to the same topic Topic1 is verified to be equal. User1 has the authority to publish Topic1 and can establish an inter-entity publish-subscribe relationship with user4. Then, the publish-subscribe phase of Topic1 topic data is entered. The legitimate publisher user1 uses the subscription topic structure T s1 CP-ABE encryption of published data: C = En Ts1 (Data), the legitimate subscriber user4 uses the attribute key SK 4 Decryption: Data = De SK4 (C) Since the attribute set of user4 conforms to the subscription access control structure T s1 , decryption is successful, and user4 receives the data Data of Topic1. This completes the data access control process of Topic1 of the DDS distributed system.
[0045] The above embodiments only express the implementation mode of the present invention by specific description, but cannot be understood as limiting the scope of the invention patent. For ordinary technicians in this field, the technical solution created by the present invention can be modified or improved without departing from the concept of the present invention, which all belong to the scope of the present invention.
Claims
1. A data access control method for a DDS distributed system, characterized in that: The following steps are involved: S1, divide the data access control rights between domain participants into publishing rights and subscription rights of the subject, determine the publishing access control policy and subscription access control policy of the subject, and distribute the permission key pair of the corresponding rights according to the user's attribute set and the endpoint type end; the endpoint type includes the publishing end or the subscribing end, and the step S1 specifically includes the following steps: S11, the DDS data management center determines the publishing access control policy and subscription access control policy of the subject data, and generates the publishing access control structure T of the subject accordingly P and subscription access control structure T s ; S12. The DDS data management center generates an asymmetric key pair {GK, VK} for the subject for signature authentication; S13. When a DDS user joins the DDS distributed system, the DDS data management center generates a corresponding attribute key SK based on the attribute set it owns; S14. If the newly added DDS user is a publisher, verify whether its attribute set complies with the publishing access control policy; if it complies, the user is a legitimate publisher of the topic, and generate a publishing end authority key pair {GK, T s }; If not, the user does not have the publishing authority for the topic and verification failure is returned; S15. If the newly added DDS user is a subscriber, verify whether its attribute set complies with the subscription access control policy; if it complies, the user is a legitimate subscriber of the topic, and a subscription-side permission key pair {VK, SK} is generated for it; if it does not comply, the user does not have the subscription permission for the topic, and verification failure is returned; S2. Combined with the DDS automatic discovery and matching process, the user's publishing authority is authenticated by using signature authentication technology; in step S2, the signature authentication process of publishing authority is added to the SEDP stage of the DDS discovery and matching process. Only when the signature authentication is successful can the establishment of the publish-subscribe relationship between the DataWriter and DataReader entities be completed to prevent unauthorized publishers from publishing subject data. The specific steps are as follows: In the S21, SEDP phase, the publisher adds an access control field to the endpoint information DiscoveredWriterData message and uses the signature key GK to digitally sign the published topic name Topic: Sign = En GK (Hash(Topic)), fill Sign into the access control field; In the S22, SEDP phase, after the subscriber receives the publisher's DiscoveredWriterData message, it parses the access control field in it, obtains the digital signature Sign, and uses the authentication key VK to authenticate the digital signature Sign: H1 = De VK (Sign), H2 = Hash (Topic); S23. Compare the hash values H1 and H2 in step S22 to see if they are equal; if they are equal, the authentication is successful, and the subscriber successfully matches the publishing rights of the remote publisher's DataWriter in the SEDP stage, and continues to establish a publish-subscribe relationship between the local subscriber's DataReader and the remote publisher's DataWriter; otherwise, the authentication fails, indicating that the remote publisher's DataWriter does not have the authority to publish related topics, preventing the local subscriber's DataReader from establishing a connection with the remote publisher's DataWriter, and the SEDP stage publish-subscribe relationship establishment fails. S3. Combined with the DDS publish-subscribe process, CP-ABE technology is used to implement user subscription rights authentication; In step S3, CP-ABE technology is used in the publishing and subscription process to implement authentication of user subscription rights and prevent unauthorized subscribers from subscribing to topic data, which specifically includes the following steps: S31. When a legitimate DDS publisher publishes topic data, the publisher uses the subscription access control structure T of the topic. s , CP-ABE encryption is performed on the subject data Data: C = En Ts (Data), publish the ciphertext C; S32. When a DDS user subscribes to a topic, the subscriber decrypts the received topic ciphertext data C using the attribute key SK: Data = De SK (C); If the decryption is successful, it means that the DDS user has the authority to subscribe to the topic and submits the decrypted topic data to the upper-level application; otherwise, it means that the subscriber does not have the authority to subscribe to the topic and the topic data reception fails.
