Industrial control programming platform access control rate optimization method, device, equipment and medium

By using a dynamic trust-based access control model and policy rule optimization algorithm, the problems of coarse granularity, low flexibility, and high latency in access control on industrial control programming platforms are solved, improving the flexibility and timeliness of access control and enhancing network security.

CN118900191APending Publication Date: 2024-11-05HUAZHONG UNIV OF SCI & TECH RES INST SHENZHEN
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410806179.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

Existing access control technologies on industrial control programming platforms suffer from coarse granularity, low flexibility, and high latency, making them ineffective in responding to cyberattacks in the Industrial Internet and impacting production progress and infrastructure security.

Method used

A dynamic trust-based access control model combined with the exponential moving average method is adopted. Access control policy rules are filtered through a recursive function, and the storage of policy rules is optimized using first-in-first-out and least recently used page replacement algorithms, thereby optimizing the access control rate.

Benefits of technology

It improves the flexibility and timeliness of access control in industrial control programming platforms, reduces latency, enhances network security, and better adapts to the access control requirements of industrial control programming.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118900191A_ABST
    Figure CN118900191A_ABST
Patent Text Reader

Abstract

The invention relates to an industrial control programming platform access control rate optimization method and device, equipment and a medium. The method comprises the following steps: receiving an access request of a client to an industrial control programming platform; adopting a preset dynamic credibility access control model to calculate and determine a current credibility value of the client according to the initial credibility of the client and the access request rejection times of the client; responding to the access control strategy rule search optimization instruction, traversing all access control strategy rules based on a preset access control strategy rule search optimization algorithm, and adopting a recursive function to perform multiple times of screening on subject attributes for access and accessed object attributes so as to screen out specific access control strategy rules; and when it is judged that the client is allowed to access the industrial control programming platform based on a specific access control strategy rule, it is determined that access of the client succeeds and the access action attribute is triggered, so that optimization of the access control rate of the industrial control programming platform is completed. According to the invention, the time delay on an industrial control programming platform can be obviously reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network security, and in particular to an access control rate optimization method for an industrial control programming platform, a corresponding device, an electronic device, and a computer-readable storage medium. Background Art

[0002] In the context of rapid industrial development, the new generation of digital technology has developed rapidly, and information technology has gradually been applied to the field of industrial Internet, which has accelerated the digital transformation of industrial enterprises. Digital transformation has improved the production efficiency of industrial manufacturing, but it has also broken the original closed nature of industrial control equipment, making the manufacturing equipment in the industrial Internet gradually upgraded to interconnected intelligent equipment, causing a series of network security issues.

[0003] In the era of traditional Internet, attacks may cause equipment paralysis, privacy leakage or property loss, while network attacks in the industrial Internet often endanger industrial control equipment, affect production progress, and even damage infrastructure.

[0004] At present, the existing access control technology directly deployed on the industrial control programming platform may have problems such as coarse granularity, low flexibility and high latency, which are manifested as follows:

[0005] (1) The problem of coarse granularity: Currently commonly used access control technologies such as role-based access control usually rely on the user's role to determine access rights, require a predefined permission set, lack consideration of contextual factors and other attributes, and thus have the problem of coarse access control granularity.

[0006] (2) Low flexibility: The policy description language of existing attribute access control methods usually requires static files for configuration. The configuration files of access control policies are relatively fixed and cannot be dynamically adjusted in a timely manner according to access control needs.

[0007] (3) High latency problem: If the existing attribute access control technology is directly applied to the industrial control programming platform, there is a lack of targeted adaptation and optimization for the industrial control access control requirements, and there may be a problem of high latency in access request authentication.

[0008] In summary, cyber attacks in the industrial Internet in the existing technology often endanger industrial control equipment, affect production progress, and even damage infrastructure. The applicant has made corresponding explorations to solve this problem. Summary of the invention

[0009] The purpose of the present application is to solve the above-mentioned problems and to provide an industrial control programming platform access control rate optimization method, corresponding device, electronic device and computer-readable storage medium.

[0010] In order to meet the various objectives of this application, this application adopts the following technical solutions:

[0011] A method for optimizing access control rate of an industrial control programming platform proposed to meet one of the purposes of this application includes:

[0012] Receiving an access request from a client to the industrial control programming platform, wherein the access request includes an initial trust level of the client, attributes of a subject making an access, attributes of an object being accessed, and attributes of an access action;

[0013] A preset dynamic trust access control model is used to calculate and determine the current trust value of the client according to the initial trust of the client and the number of access request rejections of the client, wherein the dynamic trust access control model introduces an exponential moving average method;

[0014] Detecting that the current trust value of the client exceeds a preset trust threshold and responding to the access control policy rule search optimization instruction, traversing all access control policy rules based on a preset access control policy rule search optimization algorithm, and using a recursive function to perform multiple screening on the attributes of the subject performing the access and the attributes of the object being accessed, so as to screen out specific access control policy rules;

[0015] When it is determined based on the specific access control policy rule that the client is allowed to access the industrial control programming platform, determining that the client access is successful and triggering the access action attribute;

[0016] When it is detected that the access control policy rule exceeds the preset access frequency threshold and responds to the access control policy rule storage optimization instruction, the access control policy rule with the longest residence time in the memory is eliminated based on the preset access control policy rule storage optimization algorithm to complete the optimization of the access control rate of the industrial control programming platform.

[0017] Optionally, the step of using a preset dynamic trust access control model to calculate and determine the current trust value of the client according to the initial trust of the client and the number of access request rejections of the client includes:

[0018] The calculation formula of the dynamic trust access control model includes:

[0019]

[0020] The trust value of each client ranges from 0 to 1. The larger the trust value, the higher the trust level of the client. init_trust indicates the initial trust value of each client. deny_point indicates the decrease in the trust value of the client when the client access request is denied. allow_point indicates the increase in the trust value of the client when the client access request is approved. k indicates the kth operation of the client. p k Indicates the current trust value of the client after the kth operation, trust k is the average credit of the client after the kth operation, deny means access prohibition instruction, allow means access permission instruction, and result PML Indicates the access request result.

[0021] Optionally, the step of using a preset dynamic trust access control model to calculate and determine the current trust value of the client according to the initial trust of the client and the number of access request rejections of the client includes:

[0022] Trust is obtained based on the exponential moving average method k The recursive formula is:

[0023]

[0024] Among them, α is the attenuation weight, and the value range of α is between 0 and 1.

[0025] Optionally, the attributes of the subject performing the access include one or more of access rights, IP address, access time, registration duration, credit and account status;

[0026] The accessed object attributes include device categories;

[0027] The access action attributes include one or more of administrator authority operation, modification operation, execution operation, general operation and information query operation.

[0028] Optionally, the step of traversing all access control policy rules based on a preset access control policy rule search optimization algorithm and using a recursive function to perform multiple screening on the attributes of the subject performing the access and the attributes of the object being accessed to screen out specific access control policy rules includes:

[0029] The access control policy rule search optimization algorithm includes:

[0030] Traversing all access control policy rules, using a recursive function to screen the subject attributes of the access and the object attributes of the access for multiple times, if the object attributes of the access are equal to the object attributes in the access control policy rules, then continue to check whether the access action attributes are included in the action attributes in the access control policy rules, if the object attributes of the access are equal to the object attributes in the access control policy rules and the access action attributes are included in the action attributes in the access control policy rules, then the access control policy rules are screened out to screen out specific access control policy rules;

[0031] The selected specific policy rules are stored separately using a key value sequence, and the subject attributes of the access in the access request are substituted into the subject attributes in the specific access control policy rules stored in the key value sequence for Boolean operation to determine the Boolean operation result;

[0032] If the Boolean operation result is True, the decision result is passed, and the decision results corresponding to the multiple access control policy rules whose decision results are passed are returned as a final decision result.

[0033] Optionally, the step of eliminating the access control policy rule with the longest residence time in the memory based on the preset access control policy rule storage optimization algorithm includes:

[0034] Step 11, the access control policy rule storage optimization algorithm is a first-in-first-out page replacement algorithm, and it is determined whether the list rules for storing access policy rules in the Redis cache is empty. If it is empty, proceed to step 12, and if it is not empty, proceed to step 14;

[0035] Step 12: using the policy rules in the list rules for storing access policy rules to make a decision result res1 for the access request, the access control policy rule used for the decision result is rule1, if the decision result res1 is pass, proceed to step 13, if the decision result res1 is reject, proceed to step 14;

[0036] Step 13: Use the access control policy rules stored in MySQL to make a decision result res2 for the access request, and the access control policy rule used for the decision result is rule2. If the decision result res2 is approved, proceed to step 14; if the decision result res2 is rejected, proceed to step 15;

[0037] Step 14: insert rule 2 at the end index of the list rules for storing access policy rules in the Redis cache. If the total number of the rules exceeds the total limit, delete the access control policy rule at the rule index 0.

[0038] Step 15: Return the final decision result res1||res2 to eliminate the access control policy rule with the longest residence time in the memory.

[0039] Optionally, after detecting that the access control policy rule exceeds a preset access frequency threshold and responding to the access control policy rule storage optimization instruction, the method includes:

[0040] The access control policy rule storage optimization algorithm also includes a least recently used page replacement algorithm; calling a preset least recently used page replacement algorithm, and using the least recently used page replacement algorithm to replace the least recently used access control policy rules, so as to save frequently used access control policy rules in the cache.

[0041] An industrial control programming platform access control rate optimization device provided to meet another purpose of the present application includes:

[0042] An access request receiving module, configured to receive an access request from a client to the industrial control programming platform, wherein the access request includes an initial trust level of the client, attributes of a subject making an access, attributes of an object being accessed, and attributes of an access action;

[0043] A trust value determination module is configured to use a preset dynamic trust access control model to calculate and determine the current trust value of the client according to the initial trust of the client and the number of access request rejections of the client, wherein the dynamic trust access control model introduces an exponential moving average method;

[0044] A policy rule screening module is configured to respond to an access control policy rule search optimization instruction upon detecting that the current trust value of the client exceeds a preset trust threshold, traverse all access control policy rules based on a preset access control policy rule search optimization algorithm, and use a recursive function to perform multiple screening on the attributes of the subject performing the access and the attributes of the object being accessed, so as to screen out specific access control policy rules;

[0045] An access request judgment module, configured to determine that the client access is successful and trigger the access action attribute when it is judged based on the specific access control policy rule that the client is allowed to access the industrial control programming platform;

[0046] The policy storage optimization module is configured to respond to the access control policy rule storage optimization instruction when it detects that the access control policy rule exceeds the preset access frequency threshold. Based on the preset access control policy rule storage optimization algorithm, the access control policy rule with the longest residence time in the memory is eliminated to complete the optimization of the access control rate of the industrial control programming platform.

[0047] An electronic device provided to meet another purpose of the present application includes a central processing unit and a memory, wherein the central processing unit is used to call and run a computer program stored in the memory to execute the steps of the industrial control programming platform access control rate optimization method described in the present application.

[0048] A computer-readable storage medium is provided to meet another purpose of the present application, which stores a computer program implemented according to the access control rate optimization method of the industrial control programming platform in the form of computer-readable instructions. When the computer program is called and executed by a computer, the steps included in the corresponding method are executed.

[0049] Compared with the existing technology, this application is aimed at adapting to the existing technology that network attacks in the industrial Internet often endanger industrial control equipment, affect production progress, and even damage infrastructure. This application includes but is not limited to the following beneficial effects:

[0050] First, the access control rate optimization method of the industrial control programming platform of the present application will improve the dynamicity of the access control implementation process by combining the dynamic credit control method based on the attribute-based permission control implemented by PML, and optimize the timeliness of access control by compressing the number of policy rules through the description method of policy rules, optimizing the access control policy rule search algorithm, and optimizing the access control policy rule storage algorithm, so that the improved dynamic attribute access control can better meet the access control requirements of industrial control programming;

[0051] Secondly, the generation and reuse of policy user behavior samples. Due to the lack of real data on user access requests and policy rules related to attribute-based authority control (ABAC) implemented by PML, it is necessary to simulate the access request operations of different types of users in reality, design the data structure of user behavior, generate multiple groups of policy rule samples, and user access samples generated based on policy rules. This application can ensure the reusability of sample data, so that variables can be controlled to conduct comparative experiments on access control with different optimization methods to verify the feasibility of different optimization methods.

[0052] Furthermore, the present application can greatly improve the network security in the industrial Internet, can significantly improve the flexibility on the industrial control programming platform, greatly reduce the latency on the industrial control programming platform, and fully consider contextual factors and other attributes to ensure fine granularity. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0054] Figure 1 This is a flow chart of the method for optimizing the access control rate of the industrial control programming platform in the embodiment of the present application;

[0055] Figure 2 This is an exemplary network architecture of the method for optimizing the access control rate of the industrial control programming platform in the embodiment of the present application;

[0056] Figure 3 A schematic diagram of performing search optimization based on an access control policy rule search optimization algorithm in an embodiment of the present application;

[0057] Figure 4 A flowchart of a cache update mechanism based on a first-in-first-out page replacement algorithm in an embodiment of the present application;

[0058] Figure 5 A flowchart of a cache update mechanism based on a least recently used page replacement algorithm in an embodiment of the present application;

[0059] Figure 6 This is a principle block diagram of the access control rate optimization device for the industrial control programming platform in the embodiment of the present application;

[0060] Figure 7 It is a schematic diagram of the structure of the computer device in the embodiment of the present application. DETAILED DESCRIPTION

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

[0062] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0063] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with those in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.

[0064] It will be understood by those skilled in the art that the "client", "terminal" and "terminal device" used herein include both devices with wireless signal receivers, which are devices with only wireless signal receivers without transmission capabilities, and devices with receiving and transmitting hardware, which are devices with receiving and transmitting hardware capable of two-way communication on a two-way communication link. Such devices may include: cellular or other communication devices such as personal computers, tablet computers, which have single-line displays or multi-line displays or cellular or other communication devices without multi-line displays; PCS (Personal Communications Service, personal communication system), which can combine voice, data processing, fax and / or data communication capabilities; PDA (Personal Digital Assistant, personal digital assistant), which may include a radio frequency receiver, pager, Internet / intranet access, web browser, notepad, calendar and / or GPS (Global Positioning System, global positioning system) receiver; conventional laptop and / or palmtop computers or other devices, which have and / or include a conventional laptop and / or palmtop computer or other device with and / or including a radio frequency receiver. The "client", "terminal" and "terminal device" used herein may be portable, transportable, installed in a vehicle (air, sea and / or land), or suitable for and / or configured to run locally, and / or in a distributed form, at any other location on the earth and / or in space. The "client", "terminal" and "terminal device" used herein may also be a communication terminal, an Internet terminal, a music / video playing terminal, for example, a PDA, a MID (Mobile Internet Device) and / or a mobile phone with a music / video playing function, or a smart TV, a set-top box and other devices.

[0065] The hardware referred to by the names such as "server", "client", and "service node" in this application is essentially an electronic device with the equivalent capabilities of a personal computer. It is a hardware device with the necessary components revealed by the von Neumann principle, such as a central processing unit (including an arithmetic unit and a controller), a memory, an input device, and an output device. The computer program is stored in its memory, and the central processing unit calls the program stored in the external memory into the internal memory for execution, executes the instructions in the program, and interacts with the input and output devices to complete specific functions.

[0066] It should be pointed out that the concept of "server" referred to in this application can also be extended to the case of server clusters. According to the network deployment principle understood by those skilled in the art, the servers should be logically divided. In physical space, these servers can be independent of each other but can be called through interfaces, or integrated into a physical computer or a set of computer clusters. Those skilled in the art should understand this flexibility, and should not use it to restrict the implementation of the network deployment method of this application.

[0067] Unless expressly specified, one or more technical features of the present application can be deployed on a server for implementation and accessed by a client through a remote call to obtain an online service interface provided by the server, or can be directly deployed and run on a client for access.

[0068] The neural network models referenced or may be referenced in this application, unless expressly specified, can be deployed on a remote server and remotely called on the client, or can be deployed and directly called on a client with sufficient device capabilities. In some embodiments, when it runs on the client, its corresponding intelligence can be obtained through transfer learning to reduce the requirements for the client's hardware operating resources and avoid excessive occupation of the client's hardware operating resources.

[0069] Unless explicitly specified, the various data involved in this application can be stored remotely on a server or on a local terminal device, as long as it is suitable for being called by the technical solution of this application.

[0070] Those skilled in the art should be aware that, although the various methods of the present application are described based on the same concept and thus present commonality to each other, unless otherwise specified, these methods can be independently executed. Similarly, for each embodiment disclosed in the present application, they are all proposed based on the same inventive concept, therefore, concepts with the same expression, and concepts that are appropriately changed for convenience despite different expressions, should be understood as equivalent.

[0071] Unless the mutually exclusive relationship between the embodiments to be disclosed in this application is explicitly stated, the relevant technical features involved in each embodiment can be cross-combined to flexibly construct a new embodiment, as long as such combination does not deviate from the creative spirit of this application and can meet the needs of the prior art or solve certain deficiencies in the prior art. Those skilled in the art should be aware of this flexibility.

[0072] The access control rate optimization method of the industrial control programming platform of the present application is an attribute access control implemented by a meta-model-based policy description language (PML language). As an access control policy description language, PML language is different from the most commonly used XACML. PML language mainly includes PERM modeling language and PML-EM implementation mechanism, and has the characteristics of being independent of access control models, policy rules, and programming languages.

[0073] The original attribute-based permission control (ABAC mode) implemented in the PML language lacks a dynamic regulation mechanism during the use of the industrial control programming platform, and the access control delay is relatively high.

[0074] Based on the above exemplary scenarios, please refer to Figure 1 In one embodiment, the industrial control programming platform access control rate optimization method of the present application includes:

[0075] Step S10, receiving an access request from a client to the industrial control programming platform, wherein the access request includes an initial trust level of the client, attributes of a subject making an access, attributes of an object being accessed, and attributes of an access action;

[0076] The industrial control programming platform can receive an access request from a client to the industrial control programming platform, wherein the access request includes the initial trust of the client, the attributes of the subject performing the access, the attributes of the object being accessed, and the attributes of the access action, wherein the attributes of the subject performing the access include one or more of access rights (id), IP address (ip), access time (time), registration duration (day), credit (trust), and account status (state); the attributes of the object being accessed include device categories; and the access action attributes include one or more of administrator authority operations, modification operations, execution operations, general operations, and information query operations.

[0077] In some embodiments, the access right (id), whose value type is an integer type, is used to represent the rights possessed by the user client, mainly including temporary rights, business support rights, platform operation rights, platform maintenance rights, instruction design rights, data management rights, and system management rights; these rights plus a reserved right, together form a binary number of length 8 from low to high, and a binary bit of 1 indicates that the right of the bit is possessed, and if it is 0, it indicates that the right is not possessed. For example, if the permission value is 40, it is converted into binary 00101000, indicating that the right of data management and platform maintenance is possessed. Therefore, if the permission attribute of a user client is a, and the access control policy requires that the attribute possessed by the user client is b, the value of "a\&b==b" can be calculated by AND operation. If the result is True, then it indicates that the permission attribute of the user client meets the requirements, and if it is False, then vice versa.

[0078] Described IP address (ip), its numerical type is string, represents the IP address of user client when currently accessing, is used to verify whether the environment that user client accesses is in the company's intranet area, to prevent extranet access activities. Because the check whether IP address is an intranet address is more complicated to express in the policy rule, therefore adopt pile function to carry out calculation and then substitute into the policy rule. Assuming that the value of ip is abcd, calculate the value of "a==10||(a==172&&16<=b&&b<=32)||(a==192&&b==168)" and assign it to ip, if function returns True, it means to be in the intranet environment. Through this function, ip is converted from string type to Boolean type, thereby simplifying the expression of policy rule.

[0079] The access time (time), whose numerical type is a string, represents the time when the user client makes a request, and is used to verify whether the time of the user client's access is within the working time period to prevent access activities during non-working hours; similar to the IP address, the verification of whether the time is within the working time is relatively complicated, and it is also necessary to use a stub function to simplify the access control policy rules; assuming that the value of time is composed of "year-month-day-hour-minute-second", the function can be used to check whether the time represented by time is from 9 am to 5 pm from Monday to Friday; if the function returns True, it indicates that it is within working hours, and it is also necessary to convert time from a string type to a Boolean type.

[0080] The registration duration (day) is an integer, which represents the number of days the user client is registered. Different registration day intervals can be set to prevent user clients that do not meet the registration time from making access requests. There are 5 types of monitoring intervals for setting registration days, representing short, relatively short, medium, relatively long, and long registration times.

[0081] The trust, whose value type is a floating point number, represents the trust of the user client. Access activities below the trust threshold will be blocked.

[0082] The account status (state) is of Boolean type and indicates the user client account status. When the user client credit is too low, its status will be set to False, indicating that the user client is banned and can only be unbanned after confirmation by the administrator.

[0083] In some embodiments, the core object of the industrial control programming platform is a programmable logic controller PLC, which realizes automated digital logic control by loading, storing and executing control instructions. The programming mode of the programmable logic controller PLC is based on the international standard IEC61131-3, including instruction list (Instruction List, IL), structured text programming language (Structured Text, ST), ladder diagram (Ladder Programming, LAD), sequential function chart (Sequential Function Chart, SFC), function block diagram (FBD). In the industrial control programming platform, in order to visualize programming, the LAD graphical programming language is mainly used for programming control.

[0084] In order to make the programmable logic controller PLC run normally, the entire industrial control programming platform should include: system resources, software programs, PLC controllers, external devices, etc., where the system resources include the underlying operating system, file system, database system, server, etc., the software programs include industrial control system control programs and other applications, the PLC controller includes power modules, central processing units, memory, input and output units, communication units, etc., and the external devices include programming devices, monitoring devices, storage devices, and input and output devices. Therefore, the objects accessed in the industrial control programming platform can be divided into 5 categories, with security levels from high to low, including:

[0085] Category A: The highest security level, core system equipment, including the underlying operating system, file system, database system, server, etc.

[0086] Category B: The second highest security level, PLC hardware equipment, including the power module, storage unit, input and output unit, communication bus, etc. of the PLC controller.

[0087] Class C: Medium security level, PLC external devices, including sensors, monitors, storage devices, input and output devices, etc.

[0088] Category D: The second lowest security level, software program equipment, including industrial control system control programs, modules, other applications, etc.

[0089] Category E: The lowest security level, peripheral devices, including external interfaces, disks, serial interfaces and other ordinary firmware.

[0090] After determining the attributes of the subject who is accessing and the object being accessed, it is necessary to determine the type of operation to be performed, that is, the access action attribute. Based on the user client permission classification in the industrial control system protection technology framework and according to business needs, the access control strategy of the industrial control programming platform can divide the access action attributes into six categories:

[0091] Type 1 operations: operations with administrator privileges, such as modifying the configuration of industrial control systems and equipment;

[0092] Type 2 operations: modification operations, such as deleting and modifying industrial control programs;

[0093] Three types of operations: execution operations, such as starting a processing control program and stopping a processing control program;

[0094] Four types of operations: general operations, such as reading processing control programs, reading file data, and downloading industrial control files;

[0095] Five types of operations: general information query operations, such as PLC status query or external device data query;

[0096] Sixth type of operation: other operation permissions. This type of operation can be regarded as reserved operations for subsequent maintenance use.

[0097] The numerical type of the access action attribute is a string type. Since there are fewer types of permissions in the industrial control programming platform, the characters "{'1', '2', '3', '4', '5', '6'}" can be used to number them in sequence to represent these six permissions, which can save the time-consuming matching of the longer string represented by the operation. In addition, the smaller the numerical number represented by the permission, the greater the sensitivity of the operation, which is also convenient for the implementation of the subsequent permission authorization mechanism. The specific operation in the access request can determine the number represented by the permission through a dictionary; if there are new permissions, a new key-value pair can be added to the dictionary.

[0098] Step S20: using a preset dynamic trust access control model to calculate and determine the current trust value of the client according to the initial trust of the client and the number of access request rejections of the client, wherein the dynamic trust access control model introduces an exponential moving average method;

[0099] After receiving the initial trust of the client, the attributes of the subject making the access, the attributes of the object being accessed, and the attributes of the access action in the access request, a preset dynamic trust access control model is used to calculate and determine the current trust value of the client according to the initial trust of the client and the number of access request rejections of the client, wherein the dynamic trust access control model introduces an exponential moving average method;

[0100] Specifically, at present, XACML is often used in industrial control programming platforms to implement access control. After the configuration is completed, the permissions are determined and cannot be adjusted dynamically, resulting in a rigid access control mechanism. The PML language used in this application implements attribute-based permission control (ABAC mode), which can dynamically add, delete, modify and check stored policy rules. However, there is still a problem of insufficient dynamism during use. Since most of the illegal operations of malicious user clients cannot match the policy rules stored in the database, the Effect in the applied PML language model is set to allow priority mode, and the matching process will only be stopped when the access request matches a policy rule. Therefore, most illegal operations will traverse and retrieve the entire database, causing the PML decision-making speed to be greatly reduced.

[0101] Therefore, the dynamic access control model of the industrial control programming platform adds a trust test to evaluate the user client on the basis of attribute-based permission control (ABAC mode). When the trust of the user client drops below the threshold, the user client will be blocked, thereby effectively preventing illegal access and improving retrieval efficiency. Although trust is an attribute of the subject, it should be noted that the attributes of the user client do not participate in the verification of policy rules. Whenever the user client makes an access request, it will first check whether the trust is lower than the threshold. If so, the access request will be directly intercepted to prevent a large number of malicious requests from causing the PML model to traverse the entire database.

[0102] In order to better describe the dynamic change process of the user client's trust, it is necessary to consider the impact of the user client's current operation on the trust, and also consider the user client's past trust. Therefore, the dynamic trust control model of this application introduces the exponential moving average (EMA). The exponential moving average (EMA) is a common moving average method for smoothing time series data and capturing trends. The exponentially weighted moving average pays more attention to the most recent data points and gives them higher weights to quickly respond to the latest trends; when calculating the exponentially weighted moving average, the weight of each data point is determined by the decay factor α; the decay factor controls the weight decay rate of each data point, usually calculated using an exponential function. Newer data points receive higher weights, while older data points receive lower weights.

[0103] In some embodiments, the step of calculating and determining the current trust value of the client using a preset dynamic trust access control model according to the initial trust of the client and the number of access request rejections of the client includes:

[0104] The calculation formula of the dynamic trust access control model includes:

[0105]

[0106] The trust value of each client ranges from 0 to 1. The larger the trust value, the higher the trust level of the client. init_trust indicates the initial trust value of each client. deny_point indicates the decrease in the trust value of the client when the client access request is denied. allow_point indicates the increase in the trust value of the client when the client access request is approved. k indicates the kth operation of the client. p k Indicates the current trust value of the client after the kth operation, trust k is the average credit of the client after the kth operation, deny means access prohibition instruction, allow means access permission instruction, and result PML Indicates the access request result.

[0107] Trust is obtained based on the exponential moving average method k The recursive formula is:

[0108]

[0109] Among them, α is the attenuation weight, and the value range of α is between 0 and 1.

[0110] Specifically, the entire dynamic credit control model will be introduced below. In this model, the trust of each user client ranges from 0 to 1. The larger the trust value, the higher the trustworthiness of the user client.

[0111] First, the initial credit of each user client is set to init_trust. If the user client access request is rejected, the user client's credit will be reduced by deny_point. If it is passed, the credit will be increased by allow_point. Let k be the kth operation of the user client, p k is the current trust value of the user client after the kth operation, trust k is the average credit of the user client after the kth operation; thus, we can get p k The expression is:

[0112]

[0113] According to the definition of exponential moving average (EMA), the decay weight is α (0<α<1), and we can get trust k The recursive formula is:

[0114]

[0115] Then trust k-1 Recursively substituting into the above formula we can get trust k The expansion calculation formula is:

[0116] trust k =α×(α×trust k-2 +(1-α)×p k-1 )+(1-α)×p k =...

[0117] =α n ×trust k-n +(1-α)×(p k +α×p k-1 +...+α n-1 ×p k-n+1 ),

[0118] In the above formula, for trust k-n The coefficient α n , if n=1 / (1-\alpha) and n≤k, then This means that the weight decay speed of EMA depends on α. ​​When α is closer to 1, the weight decay will be slower, and n will be larger accordingly. If 1 / e is used as the dividing point, that is, when the weight α<1 / e, it can be considered that the items with weights less than 1 / e can be ignored; this is because 1 / e is about 0.37, and the items with coefficients less than 0.37 have little effect on the results and can be considered as noise rather than signals.

[0119] From this we can get the coefficient α n When the decay is no greater than 1 / e, the weighted average impact of the last n operations on the user client's trust is:

[0120]

[0121] For example, if α = 0.9, then f(0.9) = 0.9 10 ≈1 / e, n=10 represents the weighted average of the trust of the current user client taking into account the impact of the previous 10 operations.

[0122] It can be seen that the EMA calculation method is very suitable for the dynamic regulation of user client trust in attribute-based permission control (ABAC mode), because each access request carries only a single value of the weighted average trust of the user client in the past, and there are no other redundant variables. This assignment method is very consistent with the expression of attributes. Although it may not be possible to take into account the impact of all past operations on the user client's trust, it comprehensively considers the impact of multiple recent operations of the user client on the trust, and especially focuses on the impact of the user client's current operation on the trust. This is also in line with the situation where malicious operations surge after the user client account is stolen, so that the attribute of trust can be applied to attribute-based permission control (ABAC mode) to dynamically control the access to the user client's operation behavior in real time.

[0123] Step S30, detecting that the current trust value of the client exceeds a preset trust threshold and responding to the access control policy rule search optimization instruction, traversing all access control policy rules based on a preset access control policy rule search optimization algorithm, and using a recursive function to perform multiple screening on the attributes of the subject performing the access and the attributes of the object being accessed, so as to screen out specific access control policy rules;

[0124] Step S40: when it is determined based on the specific access control policy rule that the client is allowed to access the industrial control programming platform, determining that the client access is successful and triggering the access action attribute;

[0125] After calculating and determining the current trust value of the client, it is detected that the current trust value of the client exceeds a preset trust threshold and responds to an access control policy rule search optimization instruction, traverses all access control policy rules based on a preset access control policy rule search optimization algorithm, and uses a recursive function to screen the attributes of the subject performing the access and the attributes of the object being accessed multiple times to screen out specific access control policy rules, and when it is determined based on the specific access control policy rules that the client is allowed to access the industrial control programming platform, it is determined that the client access is successful and the access action attribute is triggered;

[0126] Specifically, the access request Request of the client includes the accessing subject attribute SUB, the accessed object attribute OBJ and the access action attribute ACT; the access control policy rule Policy includes the subject attribute sub, the object attribute obj and the action attribute act.

[0127] The access control policy rule search optimization algorithm includes:

[0128] Traverse all access control policy rules, and use a recursive function to screen the subject attribute SUB of the access and the object attribute OBJ of the access for multiple times. If the object attribute OBJ of the access is equal to the object attribute obj in the access control policy rule, then continue to check whether the access action attribute is included in the action attribute act in the access control policy rule. If the object attribute OBJ of the access is equal to the object attribute obj in the access control policy rule and the access action attribute ACT is included in the action attribute act in the access control policy rule, then the access control policy rule is screened out to screen out specific access control policy rules;

[0129] The selected specific policy rules are stored separately using a key value sequence, and the subject attribute sub of the access in the access request is substituted into the subject attribute sub in the specific access control policy rule stored in the key value sequence for Boolean operation to determine the Boolean operation result;

[0130] If the Boolean operation result is True, the decision result is passed, and the decision results corresponding to the multiple access control policy rules with the decision results of passed are returned as a final decision result, determining that the client access is successful and triggering the access action attribute.

[0131] More specifically, when making a decision on the access request Request based on the policy rules stored in the database, the default reading method is to traverse in sequence and substitute the access request Request into each read policy rule for decision-making; when the decision result is passed, the traversal is stopped, otherwise it will continue to traverse all policy rules and return a result of decision failure; however, there is a problem with this default reading method, that is, when the number of access control policy rules is too large, each policy rule reading needs to substitute the access request Request into the access control policy rule for decision calculation, resulting in a longer total decision time, affecting the timeliness of access control.

[0132] For the attribute-based permission control (ABAC mode) of the PML language, the delay problem caused by the surge in the above-mentioned policy rules is more obvious, because the verification of an access request Request (the subject attribute SUB of the access, the object attribute OBJ of the access, and the access action attribute ACT) into the policy rule Policy (subject attribute sub, object attribute obj, action attribute act) involves Boolean operations, comparison judgments, and inclusion judgments; therefore, the reading and calculation of each policy rule takes more time than the general access control model.

[0133] In the overall calculation time of a single policy rule for an access request, it takes more time to substitute the access subject attribute SUB into the Boolean expression subject attribute sub than to determine whether the access action attribute ACT is equal to the action attribute act and whether the accessed object attribute OBJ is included in the object attribute obj. This is because the subject attribute sub contains a variety of additional stub functions and Boolean operations. Therefore, in view of this feature, the search algorithm of the policy rule can be optimized by filtering first and then calculating. Please refer to Figure 3 , the specific optimization situation is as follows Figure 3 As shown, the access control policy rule search optimization algorithm specifically includes:

[0134] First, all access control policy rules are still traversed, but during the traversal process, only the accessed object attribute OBJ and the access action attribute ACT are screened twice. A recursive function is used in the screening process. If the accessed object attribute OBJ in the access control policy rule is equal to the object attribute obj, then continue to check whether the access action attribute ACT is included in the action attribute act. If both of the above two conditions are met, then the access control policy rule will be screened out, thereby saving most of the Boolean calculations on the subject attribute sub.

[0135] These specific filtered policy rules can be stored separately using a key-value sequence, and then the subject attribute SUB in the access request is substituted into the subject attribute sub in the filtered policy rules stored in the key-value sequence for Boolean operation; if the Boolean operation result is True, it indicates that the decision can be passed, otherwise, the decision result is rejected; finally, according to the permission priority mode configured in the Effect in the PML language model, the decision results of multiple potential policy rules are returned as a final decision result.

[0136] It should be noted that the filtered access control policy rules cannot use the subject attribute sub alone to refer to the whole. First, there may be multiple access control policy rules corresponding to the same subject attribute sub and action attribute act, which will result in duplicate access control policy rules. Second, this access control policy rule search optimization algorithm will also be applied in the Redis cache update mechanism, so the filtered access control policy rules also need to be used to update the policy rules stored in Redis. Therefore, there cannot be only one decision result returned.

[0137] Step S50, detecting that the access control policy rule exceeds the preset access frequency threshold and responding to the access control policy rule storage optimization instruction, based on the preset access control policy rule storage optimization algorithm, the access control policy rule with the longest residence time in the memory is eliminated to complete the optimization of the access control rate of the industrial control programming platform.

[0138] When it is determined based on the specific access control policy rule that the client is allowed to access the industrial control programming platform, after determining that the client access is successful and triggering the access action attribute, the access control policy rule is detected whether it exceeds the preset access frequency threshold. If the access control policy rule exceeds the preset access frequency threshold, the industrial control programming platform responds to the access control policy rule storage optimization instruction, and based on the preset access control policy rule storage optimization algorithm, the access control policy rule with the longest residence time in the memory is eliminated to complete the optimization of the access control rate of the industrial control programming platform. The access control policy rule storage optimization algorithm includes a first-in-first-out page replacement (FIFO) algorithm, a least recently used (LRU) algorithm, and the like.

[0139] In some embodiments, when the PML model is used to implement attribute-based permission control (ABAC mode), MySQL is used as a database for storing policy rules. However, in actual use, it is found that when the number of policy rules stored in MySQL reaches 1k or more, the latency of access control decision-making increases significantly.

[0140] In the use scenario of the industrial control programming platform, there may be frequent access to subjects or specific object devices corresponding to specific attributes. Therefore, there will be a certain number of policy rules frequently used in the database. These frequently used policy rules can be considered as the cache of the database. Therefore, you can consider using the Redis cache list as a cache technology for MySQL to optimize the storage method of access control decisions; using the Redis cache list as a MySQL cache can be regarded as a page replacement process. When the access control policy rules in the Redis cache list cannot make a decision on the request, it can be regarded as a page fault exception. At this time, it is necessary to find the corresponding access control policy rules from MySQL to supplement or modify the Redis cache.

[0141] For page replacement algorithms, common ones include the optimal replacement (OPT) algorithm, the first-in-first-out (FIFO) algorithm, the least recently used (LRU) algorithm, the least recently used (LFU) algorithm, etc. The FIFO algorithm eliminates the page that first enters the memory, that is, the page that has been in the memory the longest is eliminated; the LRU algorithm can replace the least recently used data items, so that frequently used data items will remain in the cache, while infrequently used data items will be gradually replaced.

[0142] When using Redis as a MySQL cache, the FIFO algorithm and the LRU algorithm do not need to maintain additional queues, so there is no additional overhead and they are suitable for this scenario. At the same time, these two algorithms can also search for algorithm optimization to retrieve strategies in MySQL, and since there are fewer strategies in Redis, they can be directly retrieved by traversal. The two algorithms have their own advantages and disadvantages in different situations such as the number of strategies and user operations, so specific experimental data is needed to support comparison before selection. In Redis, the list rules is used to store strategy rules. The following will explain their algorithm steps.

[0143] See also Figure 4 ,For FIFO algorithm, the cache update mechanism is as follows Figure 4 As shown, the steps of eliminating the access control policy rule with the longest residence time in the memory based on the preset access control policy rule storage optimization algorithm include:

[0144] Step 11: Determine whether the list rules for storing access policy rules in the Redis cache is empty. If it is empty, proceed to step 12; if it is not empty, proceed to step 14.

[0145] Step 12: using the policy rules in the list rules for storing access policy rules to make a decision result res1 for the access request, the access control policy rule used for the decision result is rule1, if the decision result res1 is pass, proceed to step 13, if the decision result res1 is reject, proceed to step 14;

[0146] Step 13: Use the access control policy rules stored in MySQL to make a decision result res2 for the access request, and the access control policy rule used for the decision result is rule2. If the decision result res2 is approved, proceed to step 14; if the decision result res2 is rejected, proceed to step 15;

[0147] Step 14: insert rule 2 at the end index of the list rules for storing access policy rules in the Redis cache. If the total number of the rules exceeds the total limit, delete the access control policy rule at the rule index 0.

[0148] Step 15: Return the final decision result res1||res2 to eliminate the access control policy rule with the longest residence time in the memory.

[0149] After detecting that the access control policy rule exceeds the preset access frequency threshold and responding to the access control policy rule storage optimization instruction, the method includes:

[0150] A preset least recently used page replacement algorithm (LRU algorithm) is called, and the least recently used access control policy rule is replaced with the least recently used access control policy rule to store the frequently used access control policy rule in the cache.

[0151] Specifically, see Figure 5 For the LRU algorithm, compared with the FIFO algorithm, more operations are required to update the position of the policy rules in rules, such as Figure 5 As shown, the specific algorithm steps are as follows:

[0152] Step (1), determine whether the list rules used to store policy rules in Redis is empty, if it is empty, go to step (2), if not empty, go to step (4);

[0153] Step (2): Use the policy rules in the list rules used to store access policy rules to make a decision result res1 for Request, and the policy rule used to make the decision is rule1. If res1 is a decision of approval, go to step (3); if it is a decision of rejection, go to step (4);

[0154] Step (3), move rule 1 stored in the original position in rules to index 0, and go to step (6);

[0155] Step (4), use the policy rules stored in MySQL to make a decision result res2 for the request, and the policy rule used to make the decision is rule2. If res2 is a decision passed, go to step (5), if it is a decision rejected, go to step (6);

[0156] Step (5), insert rule2 at index 0 of the list rules used to store access policy rules in Redis. If the total number of the list rules used to store access policy rules exceeds the total limit, delete the last policy rule of rules;

[0157] Step (6), return the final decision result res1||res2.

[0158] In the LRU algorithm, it should be noted that the default reading method for the list in Redis is to start reading from the position with the smallest index (the smallest is 0) to the position with the largest index. Therefore, the update position of the most recently used policy rule should be at index 0 of the list rules; when the total number of rules exceeds the set value, the policy rule that has not been used for the longest time should be deleted at the position with the largest index number. When the most recently used policy rule is at index 0 and the decision on the access request is passed, subsequent retrieval operations will not be required, and the decision result will be returned directly, thereby speeding up the decision rate for the most recently used policy rules.

[0159] For both algorithms, the final decision result is res1||res2. It can be seen that Redis has the highest decision priority. If the decision result based on Redis is passed, the decision result can be returned immediately; if it is rejected, it needs to be decided based on the MySQL policy rules to return the final result. If the decision based on MySQL is passed, the policy rules in Redis need to be updated.

[0160] As can be seen from the above embodiments, compared with the prior art, this application is aimed at adapting to the network attacks in the industrial Internet in the prior art, which often endanger industrial control equipment, affect production progress, and even destroy infrastructure. This application includes but is not limited to the following

[0161] Beneficial effects:

[0162] First, the access control rate optimization method of the industrial control programming platform of the present application will improve the dynamicity of the access control implementation process by combining the dynamic credit control method based on the attribute-based permission control implemented by PML, and optimize the timeliness of access control by compressing the number of policy rules through the description method of policy rules, optimizing the access control policy rule search algorithm, and optimizing the access control policy rule storage algorithm, so that the improved dynamic attribute access control can better meet the access control requirements of industrial control programming;

[0163] Secondly, the generation and reuse of policy user behavior samples. Due to the lack of real data on user access requests and policy rules related to attribute-based authority control (ABAC) implemented by PML, it is necessary to simulate the access request operations of different types of users in reality, design the data structure of user behavior, generate multiple groups of policy rule samples, and user access samples generated based on policy rules. This application can ensure the reusability of sample data, so that variables can be controlled to conduct comparative experiments on access control with different optimization methods to verify the feasibility of different optimization methods.

[0164] Furthermore, the present application can greatly improve the network security in the industrial Internet, can significantly improve the flexibility on the industrial control programming platform, greatly reduce the latency on the industrial control programming platform, and fully consider contextual factors and other attributes to ensure fine granularity.

[0165] See also Figure 6 , an industrial control programming platform access control rate optimization device provided to meet one of the purposes of the present application, includes an access request receiving module 1100, a trust value determination module 1200, a policy rule screening module 1300, an access request judgment module 1400 and a policy storage optimization module 1500. Among them, the access request receiving module 1100 is configured to receive an access request from a client to an industrial control programming platform, wherein the access request includes the initial trust of the client, the subject attributes of the access, the object attributes of the access, and the access action attributes; the trust value determination module 1200 is configured to use a preset dynamic trust access control model to calculate and determine the current trust value of the client according to the initial trust of the client and the number of access request rejections of the client, wherein the dynamic trust access control model introduces an exponential moving average method; the policy rule screening module 1300 is configured to respond to the access control policy rule search optimization instruction when detecting that the current trust value of the client exceeds a preset trust threshold, based on the preset access control policy rules The search optimization algorithm traverses all access control policy rules, and uses a recursive function to screen the attributes of the subject performing the access and the attributes of the object being accessed multiple times to screen out specific access control policy rules; the access request judgment module 1400 is configured to determine that the client access is successful and trigger the access action attribute when it is determined based on the specific access control policy rule that the client is allowed to access the industrial control programming platform; the policy storage optimization module 1500 is configured to respond to the access control policy rule storage optimization instruction when it detects that the access control policy rule exceeds the preset access frequency threshold, and the access control policy rule with the longest residence time in the memory is eliminated based on the preset access control policy rule storage optimization algorithm to complete the optimization of the access control rate of the industrial control programming platform.

[0166] Based on any embodiment of this application, please refer to Figure 7 Another embodiment of the present application further provides an electronic device, which can be implemented by a computer device, such as Figure 7As shown, a schematic diagram of the internal structure of a computer device. The computer device includes a processor, a computer-readable storage medium, a memory, and a network interface connected via a system bus. Among them, the computer-readable storage medium of the computer device stores an operating system, a database, and computer-readable instructions. The database may store a control information sequence. When the computer-readable instructions are executed by the processor, the processor may implement a method for optimizing the access control rate of an industrial control programming platform. The processor of the computer device is used to provide computing and control capabilities to support the operation of the entire computer device. The memory of the computer device may store computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor may execute the method for optimizing the access control rate of an industrial control programming platform of the present application. The network interface of the computer device is used to connect and communicate with a terminal. Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0167] In this embodiment, the processor is used to execute Figure 6 The memory stores the program code and various data required to execute the above modules or submodules. The network interface is used to transmit data between the user client terminal or the server. The memory in this embodiment stores the program code and data required to execute all modules / submodules in the access control rate optimization device of the industrial control programming platform of this application, and the server can call the program code and data of the server to execute the functions of all submodules.

[0168] The present application also provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the industrial control programming platform access control rate optimization method described in any embodiment of the present application.

[0169] The present application also provides a computer program product, including a computer program / instruction, which, when executed by one or more processors, implements the steps of the industrial control programming platform access control rate optimization method described in any embodiment of the present application.

[0170] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments of the present application can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a computer-readable storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0171] The above description is only a partial implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

[0172] In summary, this application can greatly improve the network security in the industrial Internet, can significantly improve the flexibility and latency on the industrial control programming platform, and fully consider contextual factors and other attributes to ensure fine-grainedness.

Claims

1. A method for optimizing access control rate of an industrial control programming platform, characterized in that: include: Receiving an access request from a client to the industrial control programming platform, wherein the access request includes an initial trust level of the client, attributes of a subject making an access, attributes of an object being accessed, and attributes of an access action; A preset dynamic trust access control model is used to calculate and determine the current trust value of the client according to the initial trust of the client and the number of access request rejections of the client, wherein the dynamic trust access control model introduces an exponential moving average method; Detecting that the current trust value of the client exceeds a preset trust threshold and responding to the access control policy rule search optimization instruction, traversing all access control policy rules based on a preset access control policy rule search optimization algorithm, and using a recursive function to perform multiple screening on the attributes of the subject performing the access and the attributes of the object being accessed, so as to screen out specific access control policy rules; When it is determined based on the specific access control policy rule that the client is allowed to access the industrial control programming platform, determining that the client access is successful and triggering the access action attribute; When it is detected that the access control policy rule exceeds the preset access frequency threshold and responds to the access control policy rule storage optimization instruction, the access control policy rule with the longest residence time in the memory is eliminated based on the preset access control policy rule storage optimization algorithm to complete the optimization of the access control rate of the industrial control programming platform.

2. The method for optimizing access control rate of an industrial control programming platform according to claim 1, characterized in that: The step of using a preset dynamic trust access control model to calculate and determine the current trust value of the client according to the initial trust of the client and the number of access request rejections of the client includes: The calculation formula of the dynamic trust access control model includes: The trust value of each client ranges from 0 to 1. The larger the trust value, the higher the trust level of the client. init_trust indicates the initial trust value of each client. deny_point indicates the decrease in the trust value of the client when the client access request is denied. allow_point indicates the increase in the trust value of the client when the client access request is approved. k indicates the kth operation of the client. p k Indicates the current trust value of the client after the kth operation, trust k is the average credit of the client after the kth operation, deny means access prohibition instruction, allow means access permission instruction, and result PML Indicates the access request result.

3. The method for optimizing access control rate of an industrial control programming platform according to claim 2, characterized in that: The step of using a preset dynamic trust access control model to calculate and determine the current trust value of the client according to the initial trust of the client and the number of access request rejections of the client includes: Trust is obtained based on the exponential moving average method k The recursive formula is: Among them, α is the attenuation weight, and the value range of α is between 0 and 1.

4. The method for optimizing access control rate of an industrial control programming platform according to claim 1, characterized in that: The attributes of the subject of access include one or more of access rights, IP address, access time, registration duration, credit and account status; The accessed object attributes include device categories; The access action attributes include one or more of administrator authority operation, modification operation, execution operation, general operation and information query operation.

5. The method for optimizing access control rate of an industrial control programming platform according to claim 4, characterized in that: The steps of traversing all access control policy rules based on a preset access control policy rule search optimization algorithm and using a recursive function to perform multiple screening on the subject attributes of the access and the object attributes of the access to screen out specific access control policy rules include: The access control policy rule search optimization algorithm includes: Traversing all access control policy rules, using a recursive function to screen the subject attributes of the access and the object attributes of the access for multiple times, if the object attributes of the access are equal to the object attributes in the access control policy rules, then continue to check whether the access action attributes are included in the action attributes in the access control policy rules, if the object attributes of the access are equal to the object attributes in the access control policy rules and the access action attributes are included in the action attributes in the access control policy rules, then the access control policy rules are screened out to screen out specific access control policy rules; The selected specific policy rules are stored separately using a key value sequence, and the subject attributes of the access in the access request are substituted into the subject attributes in the specific access control policy rules stored in the key value sequence for Boolean operation to determine the Boolean operation result; If the Boolean operation result is True, the decision result is passed, and the decision results corresponding to the multiple access control policy rules whose decision results are passed are returned as a final decision result.

6. The method for optimizing access control rate of an industrial control programming platform according to claim 1, characterized in that: The steps of eliminating the access control policy rule with the longest residence time in the memory based on the preset access control policy rule storage optimization algorithm include: Step 11, the access control policy rule storage optimization algorithm is a first-in-first-out page replacement algorithm, and it is determined whether the list rules for storing access policy rules in the Redis cache is empty. If it is empty, proceed to step 12, and if it is not empty, proceed to step 14; Step 12: using the policy rules in the list rules for storing access policy rules to make a decision result res1 for the access request, the access control policy rule used for the decision result is rule1, if the decision result res1 is pass, proceed to step 13, if the decision result res1 is reject, proceed to step 14; Step 13: Use the access control policy rules stored in MySQL to make a decision result res2 for the access request, and the access control policy rule used for the decision result is rule2. If the decision result res2 is approved, proceed to step 14; if the decision result res2 is rejected, proceed to step 15; Step 14: insert rule 2 at the end index of the list rules for storing access policy rules in the Redis cache. If the total number of the rules exceeds the total limit, delete the access control policy rule at the rule index 0. Step 15: Return the final decision result res1||res2 to eliminate the access control policy rule with the longest residence time in the memory.

7. The method for optimizing the access control rate of an industrial control programming platform according to any one of claims 1 to 6, characterized in that: After detecting that the access control policy rule exceeds the preset access frequency threshold and responding to the access control policy rule storage optimization instruction, the method includes: The access control policy rule storage optimization algorithm also includes a least recently used page replacement algorithm; A preset least recently used page replacement algorithm is called, and the least recently used access control policy rule is replaced with the least recently used page replacement algorithm, so as to store the frequently used access control policy rule in the cache.

8. An industrial control programming platform access control rate optimization device, characterized in that: include: An access request receiving module, configured to receive an access request from a client to the industrial control programming platform, wherein the access request includes an initial trust level of the client, attributes of a subject making an access, attributes of an object being accessed, and attributes of an access action; A trust value determination module is configured to use a preset dynamic trust access control model to calculate and determine the current trust value of the client according to the initial trust of the client and the number of access request rejections of the client, wherein the dynamic trust access control model introduces an exponential moving average method; A policy rule screening module is configured to respond to an access control policy rule search optimization instruction upon detecting that the current trust value of the client exceeds a preset trust threshold, traverse all access control policy rules based on a preset access control policy rule search optimization algorithm, and use a recursive function to perform multiple screening on the attributes of the subject performing the access and the attributes of the object being accessed, so as to screen out specific access control policy rules; An access request judgment module, configured to determine that the client access is successful and trigger the access action attribute when it is judged based on the specific access control policy rule that the client is allowed to access the industrial control programming platform; The policy storage optimization module is configured to respond to the access control policy rule storage optimization instruction when it detects that the access control policy rule exceeds the preset access frequency threshold. Based on the preset access control policy rule storage optimization algorithm, the access control policy rule with the longest residence time in the memory is eliminated to complete the optimization of the access control rate of the industrial control programming platform.

9. An electronic device, comprising a central processing unit and a memory, characterized in that: The central processing unit is used to call and run the computer program stored in the memory to execute the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: It stores a computer program implemented according to the method described in any one of claims 1 to 7 in the form of computer-readable instructions, and when the computer program is called and executed by a computer, the steps included in the corresponding method are executed.