Read-write partition access control method and device of electric power internet-of-things operating system
By identifying and decrypting the readable and writable partitions and file permissions in the power IoT operating system, combined with the data operation mode, a file security mechanism is established, which solves the problem of unrefined security control in the existing technology and improves system security and user experience. .
Patent Information
- Application Number
- CN202410767724.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-15
AI Technical Summary
The existing power Internet of Things operating system lacks refined management in the security control of read-write partitions, resulting in security measures that are too loose or too strict, affecting system efficiency and user experience, and it is impossible to differentiate between the confidentiality levels of different data and files. Handled effectively.
By identifying the permission levels of readable and writable partitions and files, combined with data operation modes and object operation permissions, partition decryption and file retrieval are implemented, and a file security mechanism is established to achieve refined access control of readable files and raise the threshold for data access. and security.
It achieves refined access control on the read-write partitions and files of the power IoT operating system, improves system security, avoids the adverse consequences of too loose or too strict security control methods, and ensures data efficiency and security. access.
Smart Images

Figure CN118779909A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power systems, and in particular to a method and device for controlling readable and writable partition access of a power Internet of Things operating system. Background Art
[0002] With the continuous improvement of the intelligent level of power systems, the power Internet of Things, as an important bridge connecting power equipment and information networks, is crucial to the stable operation of the entire power system. In this context, the power Internet of Things operating system, as the core control system, undertakes key tasks such as data processing and command issuance, and its internal data security and operation security are particularly important. In the operating system, data is usually stored in read-write partitions, which store configuration files, user data and various sensitive information required for system operation. In traditional power Internet of Things operating systems, security control for read-write partitions is often limited to a single encryption strategy or simple access control. This approach ignores the differences in confidentiality levels of different data and files, resulting in security measures that are either too loose, exposing security risks, or too strict, affecting system efficiency and user experience. Due to the lack of refined security management, once an attacker breaks through the outer defense line, it is easy to gain control of the entire system, resulting in serious security consequences. Summary of the invention
[0003] The present invention provides a method and device for controlling access to readable and writable partitions of an electric power Internet of Things operating system, so as to realize refined access control of readable and writable partitions and readable files of the electric power Internet of Things operating system, thereby greatly improving the security of the system.
[0004] According to one aspect of the present invention, a method for controlling access to readable and writable partitions of a power Internet of Things operating system is provided, comprising:
[0005] Responding to a data operation request of a data operation object; wherein the data operation request includes a readability file, a data operation mode, and an object operation authority level;
[0006] Identify the readable and writable partition and partition category to which the readable file belongs, and query the partition permission level associated with the partition category;
[0007] In the case where the object operation permission level is not less than the partition permission level, partition decryption and file retrieval are performed on the readable and writable partition to determine the readable file, and based on the file category of the readable file, a file security mechanism associated with the file category is queried;
[0008] Access control is performed on the data operation object according to the data operation mode and the object operation permission level through the file security mechanism.
[0009] According to another aspect of the present invention, a method for encrypting a readable and writable partition of a power Internet of Things operating system is provided, comprising:
[0010] Identify readable and writable partitions, and detect the readable files corresponding to each of the readable and writable partitions;
[0011] According to a preset confidentiality level framework, the readable and writable partitions and the readable files of each readable and writable partition are security classified to determine the partition authority level corresponding to each readable and writable partition and the file authority level corresponding to each readable file;
[0012] Classifying the readable files according to the file permission level, and determining the file category corresponding to each readable and writable partition;
[0013] Acquire a file security mechanism associated with the file category, and set the file security mechanism for the readable file; wherein the file security mechanism includes at least one of an access verification mechanism, a secure access mechanism, and a secure encryption mechanism;
[0014] Classifying the readable and writable partitions according to the partition authority level, and determining a partition category corresponding to each readable and writable partition;
[0015] A partition encryption algorithm associated with the partition category is obtained, and each of the readable and writable partitions is encrypted according to the partition encryption algorithm.
[0016] According to another aspect of the present invention, a readable and writable partition access control device for a power Internet of Things operating system is provided, comprising:
[0017] An access response module, used to respond to a data operation request of a data operation object; wherein the data operation request includes a readability file, a data operation mode and an object operation authority level;
[0018] A partition identification module, used to identify the readable and writable partition and partition category to which the readable file belongs, and query the partition authority level associated with the partition category;
[0019] A partition access module, used to perform partition decryption and file retrieval on the readable and writable partition, determine the readable file, and query the file security mechanism associated with the file category based on the file category of the readable file, if the object operation authority level is not less than the partition authority level;
[0020] The file access module is used to perform access control on the data operation object according to the data operation mode and the object operation permission level through the file security mechanism.
[0021] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0022] at least one processor; and
[0023] a memory communicatively connected to the at least one processor; wherein,
[0024] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the readable and writable partition access control method of the power Internet of Things operating system and / or the readable and writable partition encryption method of the power Internet of Things operating system described in any embodiment of the present invention.
[0025] According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer instructions, and the computer instructions are used to enable a processor to implement the readable and writable partition access control method of the power Internet of Things operating system and / or the readable and writable partition encryption method of the power Internet of Things operating system described in any embodiment of the present invention when executed.
[0026] The technical solution of the embodiment of the present invention responds to the data operation request of the data operation object. When the data operation request is detected, it only responds quickly to the data operation object, identifies the data operation request, and can effectively filter out the behavior that endangers data security; identifies the readable and writable partition and partition category to which the readable file belongs, and queries the partition authority level associated with the partition category. Based on the partition category and the partition authority level associated with the partition category, it can effectively filter the objects that do not have the authority to access the readable and writable partition, thereby raising the threshold for data access and ensuring data security; when the object operation authority level is not less than the partition authority level, the readable and writable partition is partition decrypted and the file is retrieved to determine the readable file, and the file security mechanism associated with the file category is queried based on the file category of the readable file. By establishing the first layer of security protection for partition protection and the second layer of security protection for file protection, refined control of file access is achieved, and access control of the data operation object is performed according to the data operation mode and the object operation authority level through the file security mechanism. The technical problem that the existing power Internet of Things operating system cannot perform fine-grained control over data access requests is solved, and different file security mechanisms are constructed for each category of files, making the entire security control more refined; it effectively avoids the adverse consequences caused by overly loose or overly strict security control methods.
[0027] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0029] Figure 1 It is a flow chart of a method for controlling read-write partition access of a power Internet of Things operating system provided by an embodiment of the present invention;
[0030] Figure 2 It is a flowchart of another method for controlling read-write partition access of a power Internet of Things operating system provided by an embodiment of the present invention;
[0031] Figure 3 It is a flowchart of another method for controlling read-write partition access of a power Internet of Things operating system provided by an embodiment of the present invention;
[0032] Figure 4 It is a flowchart of another method for controlling read-write partition access of a power Internet of Things operating system provided by an embodiment of the present invention;
[0033] Figure 5 It is a flow chart of a method for encrypting a readable and writable partition of a power Internet of Things operating system provided by an embodiment of the present invention;
[0034] Figure 6 A readable and writable partition access control device for a power Internet of Things operating system provided by an embodiment of the present invention;
[0035] Figure 7 A readable and writable partition encryption device for a power Internet of Things operating system provided by an embodiment of the present invention;
[0036] Figure 8 A schematic structural diagram of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0037] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0038] Figure 1This is a flowchart of a method for read-write partition access control of a power Internet of Things operating system provided by an embodiment of the present invention. The embodiment of the present invention can be used to perform access control on data access requests in a power Internet of Things operating system to perform fine control on readable files. The method can be executed by a read-write partition access control device of a power Internet of Things operating system. The read-write partition access control device of the power Internet of Things operating system can be implemented in the form of hardware and / or software. The read-write partition access control device of the power Internet of Things operating system can be configured in an electronic device. Figure 1 As shown, the method includes:
[0039] S110 , responding to a data operation request of a data operation object.
[0040] It should be noted that the embodiments disclosed in the present invention are applied to the power Internet of Things operating system, which is a bridge connecting power grid power equipment and information network. Access control is performed on the readable and writable partitions of the power Internet of Things operating system through the embodiments of the present invention.
[0041] The data operation object may be a system service object that requests data from a readable and writable partition of the power Internet of Things operating system. Exemplarily, the system service object may include power grid consumers, power grid management staff, and system maintenance staff.
[0042] Optionally, the readable and writable partition can be a logical partition of the power Internet of Things operating system, and the logical partition can write, read and format data. The files stored in the readable and writable partition that can be read and accessed by the power Internet of Things operating system can be used as readable files. In the power Internet of Things operating system, the readable files can allow modification, reading, deletion and addition through the power Internet of Things operating system. Exemplarily, the readable and writable partition can include a log information area, a power grid account data area and a system configuration area, and the readable files can include system control parameters, system setting files, power consumption records, power grid account data, operation logs and error reports.
[0043] The data operation request may be a request for data from the readable and writable partition of the power grid logistics operating system after connecting to the power Internet of Things operating system; the data operation request includes a readability file, a data operation mode, and an object operation permission level. Among them, the data operation mode may be a data operation on a readability file. In the power Internet of Things operating system, the data operation mode may include updating a readability file, accessing a readability file, and reading a readability file. Updating a readability file may be changing the content in a readability file, accessing a readability file may be browsing the content of a readability file, and reading a readability file may be downloading a readability file. Exemplarily, taking the readability file as the account data of a power grid account as an example, updating a readability file may be changing the account data, accessing a readability file may be browsing the power consumption record of the current power grid account, and reading a readability file may download the power consumption record to a local storage device.
[0044] The object operation permission level can be the identity permission of the data operation object in the power IoT operating system; the object operation permission level can be used to indicate the readable files that the data operation object can operate. Exemplarily, the object operation permission level can be primary permission, intermediate permission, advanced permission and administrator permission.
[0045] Optionally, before the data operation object requests data from the power Internet of Things operating system, the readability file to be requested is determined, and the data operation mode for the readability file is selected. When the data operation object initiates a data request to the power Internet of Things operating system, the object operation permission level associated with the data operation object is automatically read, and a data operation request is generated based on the combination of the readability file, the data operation mode and the object operation permission level.
[0046] Specifically, the data operation object sends a data operation request to the power Internet of Things operating system, and the power Internet of Things operating system responds to the data operation request and parses the data operation request to obtain the readability file, data operation mode and object operation authority level included in the data operation request.
[0047] S120: Identify the readable and writable partition and partition category to which the readable file belongs, and query the partition authority level associated with the partition category.
[0048] Among them, the partition category can be the access permission category corresponding to the readable and writable partition, and the partition category is associated with the partition permission level. The readable and writable partitions are classified according to the partition permission level of the readable and writable partitions, and the readable and writable partitions with the same partition permission level are classified into the same partition category. The partition permission level can be the permission level required to access the readable and writable partition. The power Internet of Things operating system usually sets the corresponding partition permission level based on the file content in the readable partition. Exemplarily, the partition permission level can be set to primary permission, intermediate permission, advanced permission and administrator permission.
[0049] Specifically, after the power IoT operating system obtains the readable file, it identifies the readable and writable partition to which the readable file belongs, obtains the partition category corresponding to the readable and writable partition, and queries the partition authority level associated with the partition category.
[0050] S130. When the object operation permission level is not less than the partition permission level, partition decryption and file retrieval are performed on the readable and writable partition to determine the readable file, and based on the file category of the readable file, query the file security mechanism associated with the file category.
[0051] Optionally, in an embodiment of the present invention, the readable and writable partition of the electric IoT operating system is usually in a partition encryption state. When accessing the readable file of the readable and writable partition, the readable and writable partition needs to be decrypted. Therefore, the electric IoT operating system first determines whether the object operation permission level of the data operation object can access the readable and writable partition, and compares the object operation permission level and the partition permission level of the data operation object. If the object operation permission level is not less than the partition permission level, it means that the data operation object can access the readable and writable partition. Further, the electric IoT operating system needs to decrypt the readable and writable partition to release the partition encryption state of the readable and writable partition.
[0052] When the power Internet of Things operating system releases the partition encryption state of the readable and writable partition, it is necessary to obtain the partition decryption algorithm corresponding to the readable and writable partition. In an embodiment of the present invention, the partition decryption algorithm is usually stored in the system database of the power Internet of Things operating system. When each readable and writable partition is encrypted, a corresponding partition decryption algorithm is generated at the same time, and the partition decryption algorithm and the readable and writable partition are stored in the system database in a one-to-one correspondence. When the power Internet of Things operating system decrypts, the partition decryption algorithm is queried in the system database, the readable and writable partition is partition decrypted, and a file search is performed in the readable and writable partition to obtain a readable file.
[0053] Optionally, in an embodiment of the present invention, the power Internet of Things operating system sets a corresponding file security mechanism for each readable file, and each readable file has a corresponding file security mechanism. The file security mechanism of each readable file is associated with the file category of the readable file; the file category can be set based on the file permission level of the readable file, and each file permission level corresponds to a file category. Readable files with the same file permission level are divided into the same file category, and the file category is associated with the file security mechanism.
[0054] Optionally, the file security mechanism of the power Internet of Things operating system includes an access verification mechanism, a secure access mechanism and a secure encryption mechanism. The file security mechanism associated with each file category can select any combination of the access verification mechanism, the secure access mechanism and the secure encryption mechanism.
[0055] Specifically, after the power Internet of Things operating system obtains the readable file in the readable and writable partition, it determines the file security mechanism corresponding to the readable file according to the file category of the readable file.
[0056] S140. Perform access control on the data operation object according to the data operation mode and the object operation permission level through the file security mechanism.
[0057] Optionally, the file security mechanism of the power Internet of Things operating system has a corresponding trigger mechanism. When the data operation object performs data operations on a readable file according to the data operation mode, the corresponding file security mechanism is triggered to perform access control on the data operation object to determine whether the operation authority level of the data operation object meets the file security mechanism.
[0058] The technical solution of the embodiment of the present invention responds to the data operation request of the data operation object. When the data operation request is detected, it only responds quickly to the data operation object, identifies the data operation request, and can effectively filter out the behavior that endangers data security; identifies the readable and writable partition and partition category to which the readable file belongs, and queries the partition authority level associated with the partition category. Based on the partition category and the partition authority level associated with the partition category, it can effectively filter the objects that do not have the authority to access the readable and writable partition, thereby raising the threshold for data access and ensuring data security; when the object operation authority level is not less than the partition authority level, the readable and writable partition is partition decrypted and the file is retrieved to determine the readable file, and the file security mechanism associated with the file category is queried based on the file category of the readable file. By establishing the first layer of security protection for partition protection and the second layer of security protection for file protection, refined control of file access is achieved, and access control of the data operation object is performed according to the data operation mode and the object operation authority level through the file security mechanism. The technical problem that the existing power Internet of Things operating system cannot perform fine-grained control over data access requests is solved, and different file security mechanisms are constructed for each category of files, making the entire security control more refined; it effectively avoids the adverse consequences caused by overly loose or overly strict security control methods.
[0059] Figure 2This is a flowchart of another method for access control of readable and writable partitions of an electric power IoT operating system provided by an embodiment of the present invention. The embodiment of the present invention discloses a specific method for access control of data operation objects through a file security mechanism corresponding to a readable file when updating a readable file. Figure 2 As shown, the method includes:
[0060] S210: Respond to a data operation request of a data operation object.
[0061] S220: Identify the readable and writable partition and partition category to which the readable file belongs, and query the partition authority level associated with the partition category.
[0062] S230. When the object operation permission level is not less than the partition permission level, partition decryption and file retrieval are performed on the readable and writable partition to determine the readable file, and based on the file category of the readable file, query the file security mechanism associated with the file category.
[0063] S240. When it is detected that the data operation mode is to update the readability file, determine the updated readability file based on the access verification mechanism of the file security mechanism, and generate an updated hash value corresponding to the updated readability file.
[0064] Wherein, updating the readability file may be a data operation to modify the file data in the readability file. Optionally, when the power IoT operating system detects that the data operation object modifies the data of the readability file, the access verification mechanism of the file security mechanism is activated, the access verification mechanism identifies the readability file where the data update occurs, obtains the updated readability file, and generates an updated hash value for the updated readability file. Wherein, the updated hash value may be calculated by a hash function based on the updated readability file, and the updated hash value can be used for data integrity verification.
[0065] Specifically, the power Internet of Things operating system detects that the data operation mode is to update the readability file, activates the access verification mechanism of the file security mechanism, identifies the updated readability file through the access verification mechanism, and calculates the updated hash value according to the updated readability file through the hash function.
[0066] S250: Obtain an initial hash value of the updated readability file. If the initial hash value and the updated hash value are different, obtain a file update plan and a file permission level corresponding to the file update plan.
[0067] The initial hash value may be a hash value calculated by the access verification mechanism in advance for each readability file through a hash function. It should be noted that when the file category of the readability file is associated with the access verification mechanism, the initial hash value of the readability file is generated in advance through the access verification mechanism, and the initial hash value of each readability file is stored in the system database.
[0068] The file update plan can be used to determine whether the power IoT operating system is running to update the readable file, and the file update plan records the readable files that can be updated. The file permission level of the file update plan can be used to determine whether the object operation permission level of the data operation object can update the data of the readable file. The file update plan is usually stored in the system database.
[0069] Specifically, the power IoT operating system obtains the initial hash value of the updated readability file in the system database, and makes a data integrity judgment on the updated readability file based on the initial hash value and the updated hash value. If the initial hash value and the updated hash value are different, it means that the readability file needs to be updated and saved, then the file update plan is retrieved from the system database, and the file permission level of the file update plan is determined.
[0070] S260: When the updated readability file exists in the file update plan, if the object operation permission level is not less than the file permission level, storing the updated readability file.
[0071] Specifically, check whether there is an updated readability file in the file update plan. If there is an updated readability file in the file update plan, make a permission judgment on the file permission level of the file update plan and the object operation permission level of the data operation object. If the object operation permission level is not less than the file permission level, the object operation permission level of the data operation object can update the readability file, and the updated readability file will be retained and stored.
[0072] Optionally, in another optional embodiment of the present invention, when there is no updated readability file in the file update plan, it means that the currently updated readability file is not allowed to perform data update, the data operation object is an illegally tampered file, and the data operation object is banned.
[0073] Optionally, in another optional embodiment of the present invention, when there is an updated readability file in the file update plan, a permission judgment is performed on the file permission level of the file update plan and the object operation permission level of the data operation object. If the object operation permission level is lower than the file permission level, it means that the object operation permission level of the data operation object is not capable of updating the readability file, and the original readability file is retained.
[0074] The technical solution of the embodiment of the present invention responds to the data operation request of the data operation object. When the data operation request is detected, it only responds quickly to the data operation object, identifies the data operation request, and can effectively filter out the behavior that endangers data security; identifies the readable and writable partition and partition category to which the readable file belongs, and queries the partition authority level associated with the partition category. Based on the partition category and the partition authority level associated with the partition category, it can effectively filter the objects that do not have the authority to access the readable and writable partition, thereby raising the threshold for data access and ensuring data security; when the object operation authority level is not less than the partition authority level, the readable and writable partition is partition decrypted and the file is retrieved to determine the readable file, and the file security mechanism associated with the file category is queried based on the file category of the readable file. By establishing the first layer of security protection for partition protection and the second layer of security protection for file protection, refined control of file access is achieved, and access control of the data operation object is performed according to the data operation mode and the object operation authority level through the file security mechanism. The technical problem that the existing power Internet of Things operating system cannot perform fine-grained control over data access requests is solved, and different file security mechanisms are constructed for each category of files, making the entire security control more refined; it effectively avoids the adverse consequences caused by overly loose or overly strict security control methods.
[0075] Figure 3 This is a flowchart of another method for access control of readable and writable partitions of an electric power IoT operating system provided by an embodiment of the present invention. The embodiment of the present invention discloses a specific method for access control of data operation objects through a file security mechanism corresponding to a readable file when accessing a readable file. Figure 3 As shown, the method includes:
[0076] S310: Respond to a data operation request of a data operation object.
[0077] S320: Identify the readable and writable partition and partition category to which the readable file belongs, and query the partition authority level associated with the partition category.
[0078] S330. When the object operation permission level is not less than the partition permission level, partition decryption and file retrieval are performed on the readable and writable partition to determine the readable file, and based on the file category of the readable file, query the file security mechanism associated with the file category.
[0079] S340: When it is detected that the data operation mode is accessing a readable file, a file permission level corresponding to the readable file is obtained based on a security access mechanism of the file security mechanism.
[0080] Optionally, the security access mechanism of the readable file requires secondary permission verification of the data operation object. The file permission level corresponding to the readable file can be obtained through the file category of the readable file, and the data operation object can be secondary verified according to the file permission level to determine whether the data operation object can access the readable file.
[0081] Specifically, when the power Internet of Things operating system detects that the data operation mode is to access a readable file, the file permission level corresponding to the readable file is obtained through the security access mechanism of the file security mechanism.
[0082] S350. If the object operation permission level is not less than the file permission level, obtain the security behavior index of the data operation object, and perform a security score on the data operation object according to the security behavior index through a pre-established security score mapping table to determine a security score.
[0083] Optionally, a permissions comparison is performed using the object operation permission level and the file permission level. If the object operation permission level is not less than the file permission level, it means that the data operation object has passed the secondary permission verification and can access the readable file; if the object operation permission level is less than the file permission level, it means that the data operation object has not passed the secondary permission verification and cannot access the readable file.
[0084] Among them, the security behavior indicators may include behavior history, the object operation authority level, and access frequency. The security behavior indicators are used to determine whether there are abnormalities in the access behavior of the data operation object in the power Internet of Things operating system.
[0085] Among them, the security score can be used to evaluate the access behavior of data operation objects.
[0086] Among them, the security score mapping table can be a pre-established data table for mapping and scoring according to the security behavior indicators of the data operation object. The security score mapping table can score for different security behavior indicators. Exemplarily, the security score mapping table can set corresponding scoring standards, taking the object operation permission level as an example, scoring for primary permission, intermediate permission, advanced permission and administrator permission respectively, with primary permission being 1 point, intermediate permission being 2 points, advanced permission being 3 points and administrator permission being 5 points.
[0087] Specifically, when accessing a readable file, a secondary permission verification is first performed based on the object operation permission level and the file permission level. If the object operation permission level is not less than the file permission level, the security behavior indicators of the data operation object are determined, and a security score is performed based on the security behavior indicators according to a pre-established security score mapping table to determine the security score of the data operation object.
[0088] Optionally, in another optional embodiment of the present invention, the security behavior indicator includes a behavior history, the object operation authority level, and an access frequency; and the step of performing a security score on the data operation object according to the security behavior indicator through a pre-established security score mapping table to determine a security score includes:
[0089] Obtain the number of unauthorized access attempts in the behavior history and the frequency of access to sensitive readable files of the access frequency; score the number of unauthorized access attempts, the frequency of access to sensitive files and the object operation permission level in turn through a pre-established security score mapping table to determine the behavior history score, access frequency score and permission role score; obtain the pre-set behavior history weight, access frequency weight and permission role weight; add the product of the behavior history weight and the behavior history score, the product of the access frequency weight and the access frequency score, and the product of the permission role weight and the permission role score to obtain the security score.
[0090] Among them, the behavior history of the data operation object can be the historical number of times the data operation object accesses the readable and writable partition of the power Internet of Things operating system; the number of unauthorized access attempts can be the number of times the data operation object accesses the readable and writable partition of the power Internet of Things operating system without having the object operation permission level.
[0091] Among them, the access frequency of the data operation object can be the number of times the data operation object accesses the readable files in the power Internet of Things operating system within a preset unit time. The preset unit time in the power Internet of Things operating system can be set to 24 hours a day. The frequency of accessing sensitive files can be the number of times the data operation object accesses the readable files with the file permission level of administrator authority within the preset unit time.
[0092] Among them, the behavior history score can be used to evaluate the security risk of the data operation object; the access frequency score can be used to evaluate the data leakage risk of the data operation object; and the authority role score can be used to evaluate the system trust of the data operation object.
[0093] Optionally, the number of unauthorized access attempts, the frequency of access to sensitive files, and the object operation permission level are compared with the scoring criteria in the security score mapping table one by one to obtain the behavior history score, access frequency score, and permission role score, respectively.
[0094] Optionally, the events of each data operation object are recorded in the system log of the power Internet of Things operating system. The system log can be connected to retrieve the log information corresponding to the current data operation object, and the number of unauthorized access attempts and access frequency in the log information statistical behavior history and the frequency of access to sensitive readable files.
[0095] Optionally, the access weight corresponding to each security behavior indicator is stored in the system data of the power Internet of Things operating system, and the corresponding behavior history weight, access frequency weight and permission role weight are set according to the behavior history, the object operation permission level, and the access frequency. The corresponding access weight can also be pre-set in each readable file, and the behavior history weight, access frequency weight and permission role weight are associated with the file category of each readable file. The behavior history weight, access frequency weight and permission role weight corresponding to each file category are different. Further, the behavior history weight, access frequency weight and permission role weight pre-set by the power Internet of Things operating system are obtained, and the behavior history weight is represented by B, the access frequency weight is represented by R, and the permission role weight is represented by F, and the w B Indicates the behavior history score, through w R Indicates the user role rating, through w F The user's access frequency score is represented by S, and the user's security score is represented by the product of the behavior history weight and the behavior history score, the product of the access frequency weight and the access frequency score, and the product of the permission role weight and the permission role score. The security score is obtained by adding the product of the behavior history weight and the behavior history score. The specific calculation formula is as follows:
[0096] S=w B ·B+w R ·R+w F ·F;
[0097] S360: If the security score is less than the preset access score, denying the data operation object access to the readability file.
[0098] The preset access score may be a score threshold that is pre-set to determine whether a data operation object has risks.
[0099] Specifically, the security score of the data operation object is compared with the preset access score. If the security score is less than the preset access score, the data operation object is denied access to the readable file; if the security score is greater than the preset access score, the data operation object is allowed to access the readable file.
[0100] The technical solution of the embodiment of the present invention responds to the data operation request of the data operation object. When the data operation request is detected, it only responds quickly to the data operation object, identifies the data operation request, and can effectively filter out the behavior that endangers data security; identifies the readable and writable partition and partition category to which the readable file belongs, and queries the partition authority level associated with the partition category. Based on the partition category and the partition authority level associated with the partition category, it can effectively filter the objects that do not have the authority to access the readable and writable partition, thereby raising the threshold for data access and ensuring data security; when the object operation authority level is not less than the partition authority level, the readable and writable partition is partition decrypted and the file is retrieved to determine the readable file, and the file security mechanism associated with the file category is queried based on the file category of the readable file. By establishing the first layer of security protection for partition protection and the second layer of security protection for file protection, refined control of file access is achieved, and access control of the data operation object is performed according to the data operation mode and the object operation authority level through the file security mechanism. The technical problem that the existing power Internet of Things operating system cannot perform fine-grained control over data access requests is solved, and different file security mechanisms are constructed for each category of files, making the entire security control more refined; it effectively avoids the adverse consequences caused by overly loose or overly strict security control methods.
[0101] Figure 4 This is a flowchart of another readable and writable partition access control method of the power Internet of Things operating system provided by an embodiment of the present invention. The embodiment of the present invention discloses a specific method for access control of data operation objects through the file security mechanism corresponding to the readable file when reading the readable file. Figure 4 As shown, the method includes:
[0102] S410: Respond to a data operation request of a data operation object.
[0103] S420: Identify the readable and writable partition and partition category to which the readable file belongs, and query the partition authority level associated with the partition category.
[0104] S430. When the object operation permission level is not less than the partition permission level, partition decryption and file retrieval are performed on the readable and writable partition to determine the readable file, and based on the file category of the readable file, query the file security mechanism associated with the file category.
[0105] S440: When it is detected that the data operation mode is reading a readable file, an encrypted file corresponding to the readable file is obtained based on a security encryption mechanism of the file security mechanism.
[0106] Among them, the encrypted file can be a file obtained by encrypting a readable file by the power Internet of Things operating system. It should be noted that in the embodiment of the present invention, when facing file reading, the power Internet of Things operating system does not directly provide the readable file to the data operation object for downloading, but backs up each readable file through a secure encryption mechanism and encrypts it through an encryption algorithm to obtain an encrypted file. Furthermore, when the secure encryption mechanism encrypts each readable file through an encryption algorithm, it also generates a decryption algorithm corresponding to the encryption algorithm, and stores the decryption algorithm and the encrypted file in association in the system database.
[0107] Specifically, when the power Internet of Things operating system detects that the data operation mode is to read a readable file, it activates the security encryption mechanism of the file security mechanism and obtains the encrypted file corresponding to the readable file in the system database.
[0108] S450: Obtain the file permission level corresponding to the encrypted file. If the object operation permission level is not less than the file permission level, retrieve the decryption algorithm corresponding to the encrypted file.
[0109] Optionally, the file permission level corresponding to the encrypted file is equal to the file permission level of the corresponding readable file, and the file permission level of the readable file is directly obtained as the file permission level of the encrypted file.
[0110] Specifically, obtain the file permission level corresponding to the encrypted file, determine the object operation permission level and file permission level corresponding to the data operation, and if the object operation permission level is not less than the file permission level, retrieve the decryption algorithm stored in association with the encrypted file in the system database.
[0111] S460: Decrypt the encrypted file according to the decryption algorithm to obtain the readable file, and send the readable file to the data operation object.
[0112] Specifically, the power Internet of Things operating system decrypts the encrypted file through a decryption algorithm to obtain a readable file, and sends the readable file to the data operation object.
[0113] The technical solution of the embodiment of the present invention responds to the data operation request of the data operation object. When the data operation request is detected, it only responds quickly to the data operation object, identifies the data operation request, and can effectively filter out the behavior that endangers data security; identifies the readable and writable partition and partition category to which the readable file belongs, and queries the partition authority level associated with the partition category. Based on the partition category and the partition authority level associated with the partition category, it can effectively filter the objects that do not have the authority to access the readable and writable partition, thereby raising the threshold for data access and ensuring data security; when the object operation authority level is not less than the partition authority level, the readable and writable partition is partition decrypted and the file is retrieved to determine the readable file, and the file security mechanism associated with the file category is queried based on the file category of the readable file. By establishing the first layer of security protection for partition protection and the second layer of security protection for file protection, refined control of file access is achieved, and access control of the data operation object is performed according to the data operation mode and the object operation authority level through the file security mechanism. The technical problem that the existing power Internet of Things operating system cannot perform fine-grained control over data access requests is solved, and different file security mechanisms are constructed for each category of files, making the entire security control more refined; it effectively avoids the adverse consequences caused by overly loose or overly strict security control methods.
[0114] Figure 5 The flowchart of a method for encrypting a readable and writable partition of a power IoT operating system provided by an embodiment of the present invention is used in the power IoT operating system to encrypt and configure access to readable and writable partitions and readable files before access control is performed on data access requests. The method can be executed by a readable and writable partition access control device of the power IoT operating system. Figure 5 As shown, the method includes:
[0115] S510: Identify readable and writable partitions, and detect a readability file corresponding to each readable and writable partition.
[0116] Specifically, the power Internet of Things operating system identifies partitions in the system, determines readable and writable partitions, detects readable files corresponding to each readable and writable partition through data discovery tools, and records the storage location and file type of the readable files.
[0117] S520. Security classification is performed on the readable and writable partitions and the readable files of each readable and writable partition according to a preset confidentiality level framework, and a partition authority level corresponding to each readable and writable partition and a file authority level corresponding to each readable file are determined.
[0118] Among them, the preset confidentiality level framework can be pre-set to set confidentiality levels for readable and writable partitions and readable files. The confidentiality level framework can set corresponding confidentiality levels according to the sensitivity of information and the degree of damage caused by information leakage.
[0119] Specifically, the power Internet of Things operating system performs information analysis on each readable and writable partition and each readable file based on a preset confidentiality level framework, sets a confidentiality level according to the sensitivity of the data associated with each readable and writable partition and each readable file and the degree of damage caused by information leakage, and determines the partition permission level corresponding to each readable and writable partition and the file permission level corresponding to each readable file.
[0120] S530: Classify the readability files according to the file permission level, and determine the file category corresponding to each readability file.
[0121] S540: Obtain a file security mechanism associated with the file category, and set the file security mechanism for the readable file.
[0122] S550: Classify the readable and writable partitions according to the partition authority levels, and determine a partition category corresponding to each of the readable and writable partitions.
[0123] S560: Obtain a partition encryption algorithm associated with the partition category, and perform partition encryption on each of the readable and writable partitions according to the partition encryption algorithm.
[0124] Specifically, when the power Internet of Things operating system encrypts the readable and writable partition, it is necessary to obtain the partition encryption algorithm corresponding to the readable and writable partition, and the partition encryption algorithm is used to encrypt the data of the readable and writable partition. In an embodiment of the present invention, the partition encryption algorithm is usually stored in the system database of the power Internet of Things operating system. When encrypting each readable and writable partition, a corresponding partition decryption algorithm is generated at the same time, and the partition decryption algorithm and the readable and writable partition are stored in the system database in a one-to-one correspondence. The power Internet of Things operating system encrypts each of the readable and writable partitions based on the partition encryption algorithm.
[0125] The embodiment of the present invention identifies readable and writable partitions and detects readable files corresponding to each readable and writable partition; performs security classification on the readable and writable partitions and the readable files of each readable and writable partition according to a preset confidentiality level framework, determines the partition authority level corresponding to each readable and writable partition and the file authority level corresponding to each readable file; classifies the readable files according to the file authority level, determines the file category corresponding to each readable file; obtains the file security mechanism associated with the file category, and sets the file security mechanism for the readable file; classifies the readable and writable partitions according to the partition authority level, determines the partition category corresponding to each readable and writable partition;
[0126] The partition encryption algorithm associated with the partition category is obtained, and each readable and writable partition is encrypted according to the partition encryption algorithm. The technical problem that the power Internet of Things operating system in the prior art cannot perform fine control on data access requests is solved, and different file security mechanisms are constructed for each category of files, making the entire security control more refined; effectively avoiding the adverse consequences caused by overly loose or overly strict security control methods.
[0127] Figure 6 A readable and writable partition access control device for a power Internet of Things operating system is provided in an embodiment of the present invention. Figure 6 As shown, the device includes: an access response module 610, a partition identification module 620, a partition access module 630 and a file access module 640, wherein:
[0128] The access response module 610 is used to respond to a data operation request of a data operation object; wherein the data operation request includes a readability file, a data operation mode and an object operation permission level;
[0129] A partition identification module 620, used to identify the readable and writable partition and partition category to which the readable file belongs, and query the partition permission level associated with the partition category;
[0130] The partition access module 630 is used to perform partition decryption and file retrieval on the readable and writable partition, determine the readable file, and query the file security mechanism associated with the file category based on the file category of the readable file when the object operation authority level is not less than the partition authority level;
[0131] The file access module 640 is used to perform access control on the data operation object according to the data operation mode and the object operation permission level through the file security mechanism.
[0132] The technical solution of the embodiment of the present invention responds to the data operation request of the data operation object. When the data operation request is detected, it only responds quickly to the data operation object, identifies the data operation request, and can effectively filter out the behavior that endangers data security; identifies the readable and writable partition and partition category to which the readable file belongs, and queries the partition authority level associated with the partition category. Based on the partition category and the partition authority level associated with the partition category, it can effectively filter the objects that do not have the authority to access the readable and writable partition, thereby raising the threshold for data access and ensuring data security; when the object operation authority level is not less than the partition authority level, the readable and writable partition is partition decrypted and the file is retrieved to determine the readable file, and the file security mechanism associated with the file category is queried based on the file category of the readable file. By establishing the first layer of security protection for partition protection and the second layer of security protection for file protection, refined control of file access is achieved, and access control of the data operation object is performed according to the data operation mode and the object operation authority level through the file security mechanism. The technical problem that the existing power Internet of Things operating system cannot perform fine-grained control over data access requests is solved, and different file security mechanisms are constructed for each category of files, making the entire security control more refined; it effectively avoids the adverse consequences caused by overly loose or overly strict security control methods.
[0133] Optionally, the file access module is specifically used for:
[0134] When detecting that the data operation mode is to update the readability file, determining the updated readability file based on the access verification mechanism of the file security mechanism, and generating an updated hash value corresponding to the updated readability file;
[0135] Obtaining an initial hash value of the updated readability file, and if the initial hash value and the updated hash value are different, obtaining a file update plan and a file permission level corresponding to the file update plan;
[0136] In the case where the updated readability file exists in the file update plan, if the object operation permission level is not less than the file permission level, the updated readability file is stored.
[0137] Optionally, the file access module is further used to:
[0138] When the updated readability file does not exist in the file update plan, the data operation object is banned.
[0139] Optionally, the file access module is further used to:
[0140] When detecting that the data operation mode is accessing a readable file, obtaining a file permission level corresponding to the readable file based on a security access mechanism of the file security mechanism;
[0141] If the object operation permission level is not less than the file permission level, obtaining the security behavior index of the data operation object, and performing a security score on the data operation object according to the security behavior index through a pre-established security score mapping table to determine a security score;
[0142] If the security score is less than the preset access score, the data operation object is denied access to the readable file.
[0143] Optionally, the file access module is further used to:
[0144] Obtaining the number of unauthorized access attempts in the behavior history and the frequency of access to sensitive files of the access frequency;
[0145] The pre-established security score mapping table is used to score the number of unauthorized access attempts, the frequency of accessing sensitive files, and the object operation permission level in turn to determine the behavior history score, the access frequency score, and the permission role score;
[0146] Obtain the pre-set behavior history weight, access frequency weight, and permission role weight;
[0147] The product of the behavior history weight and the behavior history score, the product of the access frequency weight and the access frequency score, and the product of the authority role weight and the authority role score are added together to obtain the security score.
[0148] Optionally, the file access module is further used to:
[0149] When detecting that the data operation mode is to read a readable file, obtaining an encrypted file corresponding to the readable file based on a security encryption mechanism of the file security mechanism;
[0150] Obtaining the file permission level corresponding to the encrypted file, and if the object operation permission level is not less than the file permission level, retrieving the decryption algorithm corresponding to the encrypted file;
[0151] The encrypted file is decrypted according to the decryption algorithm to obtain the readable file, and the readable file is sent to the data operation object.
[0152] The readable and writable partition access control device of the power Internet of Things operating system provided in the embodiment of the present invention can execute the readable and writable partition access control method of the power Internet of Things operating system provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0153] Figure 7 A readable and writable partition encryption device for a power Internet of Things operating system is provided in an embodiment of the present invention. Figure 7 As shown, the device includes: a partition detection module 710, a file confidentiality module 720, a file classification module 730, a file encryption module 740, a partition classification module 750 and a partition encryption module 760, wherein:
[0154] A partition detection module 710, used to identify readable and writable partitions and detect a readability file corresponding to each readable and writable partition;
[0155] The file confidentiality module 720 is used to perform security classification on the readable and writable partitions and the readable files of each readable and writable partition according to a preset confidentiality level framework, and determine the partition authority level corresponding to each readable and writable partition and the file authority level corresponding to each readable file;
[0156] A file classification module 730, for classifying the readable files according to the file permission level, and determining the file category corresponding to each readable file;
[0157] A file encryption module 740 is used to obtain a file security mechanism associated with the file category and set the file security mechanism for the readable file; wherein the file security mechanism includes at least one of an access verification mechanism, a secure access mechanism and a secure encryption mechanism;
[0158] A partition classification module 750, configured to classify the readable and writable partitions according to the partition authority level, and determine a partition category corresponding to each readable and writable partition;
[0159] The partition encryption module 760 is used to obtain the partition encryption algorithm associated with the partition category, and perform partition encryption on each of the readable and writable partitions according to the partition encryption algorithm.
[0160] The readable and writable partition encryption device of the power Internet of Things operating system provided in the embodiment of the present invention can execute the readable and writable partition encryption method of the power Internet of Things operating system provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0161] Figure 8A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0162] like Figure 8 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0163] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0164] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as the readable and writable partition encryption method of the power Internet of Things operating system.
[0165] In some embodiments, the readable and writable partition encryption method of the power Internet of Things operating system may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the readable and writable partition encryption method of the power Internet of Things operating system described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the readable and writable partition encryption method of the power Internet of Things operating system in any other appropriate manner (e.g., by means of firmware).
[0166] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0167] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0168] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0169] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0170] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0171] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0172] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0173] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the steps of the readable and writable partition encryption method of the power Internet of Things operating system provided in any embodiment of the present invention are implemented. The method includes:
[0174] Responding to a data operation request of a data operation object; wherein the data operation request includes a readability file, a data operation mode, and an object operation authority level;
[0175] Identify the readable and writable partition and partition category to which the readable file belongs, and query the partition permission level associated with the partition category;
[0176] In the case where the object operation permission level is not less than the partition permission level, partition decryption and file retrieval are performed on the readable and writable partition to determine the readable file, and based on the file category of the readable file, a file security mechanism associated with the file category is queried;
[0177] Access control is performed on the data operation object according to the data operation mode and the object operation permission level through the file security mechanism.
[0178] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0179] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0180] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0181] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0182] It should be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0183] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0184] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A read-write partition access control method for an electric power Internet of Things operating system, applied to an electric power Internet of Things operating system, characterized in that: include: Responding to a data operation request of a data operation object; wherein the data operation request includes a readability file, a data operation mode, and an object operation authority level; Identify the readable and writable partition and partition category to which the readable file belongs, and query the partition permission level associated with the partition category; In the case where the object operation permission level is not less than the partition permission level, partition decryption and file retrieval are performed on the readable and writable partition to determine the readable file, and based on the file category of the readable file, a file security mechanism associated with the file category is queried; Access control is performed on the data operation object according to the data operation mode and the object operation permission level through the file security mechanism.
2. The method according to claim 1, characterized in that The access control of the data operation object according to the data operation mode and the object operation permission level by the file security mechanism includes: When detecting that the data operation mode is to update the readability file, determining the updated readability file based on the access verification mechanism of the file security mechanism, and generating an updated hash value corresponding to the updated readability file; Obtaining an initial hash value of the updated readability file, and if the initial hash value and the updated hash value are different, obtaining a file update plan and a file permission level corresponding to the file update plan; In the case where the updated readability file exists in the file update plan, if the object operation permission level is not less than the file permission level, the updated readability file is stored.
3. The method according to claim 2, characterized in that After acquiring the file update plan and the file permission level corresponding to the file update plan if the initial hash value and the updated hash value are different, the method further includes: When the updated readability file does not exist in the file update plan, the data operation object is banned.
4. The method according to claim 1, characterized in that: The access control of the data operation object according to the data operation mode and the object operation permission level by the file security mechanism includes: When detecting that the data operation mode is accessing a readable file, obtaining a file permission level corresponding to the readable file based on a security access mechanism of the file security mechanism; If the object operation permission level is not less than the file permission level, obtaining the security behavior index of the data operation object, and performing a security score on the data operation object according to the security behavior index through a pre-established security score mapping table to determine a security score; If the security score is less than the preset access score, the data operation object is denied access to the readable file.
5. The method according to claim 4, characterized in that The security behavior indicators include behavior history, object operation authority level, and access frequency; the security scoring of the data operation object according to the security behavior indicators through the pre-established security scoring mapping table to determine the security score includes: Obtaining the number of unauthorized access attempts in the behavior history and the frequency of access to sensitive files of the access frequency; The pre-established security score mapping table is used to score the number of unauthorized access attempts, the frequency of accessing sensitive files, and the object operation permission level in turn to determine the behavior history score, the access frequency score, and the permission role score; Obtain the pre-set behavior history weight, access frequency weight, and permission role weight; The product of the behavior history weight and the behavior history score, the product of the access frequency weight and the access frequency score, and the product of the authority role weight and the authority role score are added together to obtain the security score.
6. The method according to claim 1, characterized in that The access control of the data operation object according to the data operation mode and the object operation permission level by the file security mechanism includes: When detecting that the data operation mode is to read a readable file, obtaining an encrypted file corresponding to the readable file based on a security encryption mechanism of the file security mechanism; Obtaining the file permission level corresponding to the encrypted file, and if the object operation permission level is not less than the file permission level, retrieving the decryption algorithm corresponding to the encrypted file; The encrypted file is decrypted according to the decryption algorithm to obtain the readable file, and the readable file is sent to the data operation object.
7. A method for encrypting a readable and writable partition of an electric power Internet of Things operating system, applied to an electric power Internet of Things operating system, characterized in that: include: Identify readable and writable partitions, and detect readable files corresponding to each readable and writable partition; According to a preset confidentiality level framework, the readable and writable partitions and the readable files of each readable and writable partition are security classified to determine the partition authority level corresponding to each readable and writable partition and the file authority level corresponding to each readable file; Classifying the readable files according to the file permission level, and determining the file category corresponding to each readable file; Acquire a file security mechanism associated with the file category, and set the file security mechanism for the readable file; wherein the file security mechanism includes at least one of an access verification mechanism, a secure access mechanism, and a secure encryption mechanism; Classifying the readable and writable partitions according to the partition authority level, and determining a partition category corresponding to each readable and writable partition; A partition encryption algorithm associated with the partition category is obtained, and each of the readable and writable partitions is encrypted according to the partition encryption algorithm.
8. A readable and writable partition access control device for an electric power Internet of Things operating system, applied to an electric power Internet of Things operating system, characterized in that: include: An access response module, used to respond to a data operation request of a data operation object; wherein the data operation request includes a readability file, a data operation mode and an object operation authority level; A partition identification module, used to identify the readable and writable partition and partition category to which the readable file belongs, and query the partition authority level associated with the partition category; A partition access module, used to perform partition decryption and file retrieval on the readable and writable partition, determine the readable file, and query the file security mechanism associated with the file category based on the file category of the readable file, if the object operation authority level is not less than the partition authority level; The file access module is used to perform access control on the data operation object according to the data operation mode and the object operation permission level through the file security mechanism.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the readable and writable partition access control method of the power Internet of Things operating system described in any one of claims 1-6 and / or the readable and writable partition encryption method of the power Internet of Things operating system described in claim 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, which are used to enable the processor to implement the readable and writable partition access control method of the power Internet of Things operating system described in any one of claims 1-6 and / or the readable and writable partition encryption method of the power Internet of Things operating system described in claim 7 when executed.
