Method, device, equipment and storage medium for detecting unauthorized access requests
By receiving access requests and detecting API overprivileged access based on the application program interface asset table, the problem of low accuracy of API overprivileged access detection is solved, and effective protection of sensitive data and system stability is achieved.
Patent Information
- Application Number
- CN202410075822.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-18
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-01-18
AI Technical Summary
In the prior art, the accuracy of overprivileged access detection of application programming interfaces (APIs) is low, resulting in the problems of sensitive data leakage and system paralysis.
By receiving access requests, determine the access behavior log data associated with it, and detect these log data based on the pre-built application program interface asset table to determine whether the permissions are overprivileged, and ensure that the account can only access the API with legal permissions.
Improve the accuracy and efficiency of overprivileged access detection, prevent sensitive data leakage and system paralysis, and enhance the accuracy of security risk detection.
Smart Images

Figure CN117978471B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data security technology, and in particular to a method, device, equipment and storage medium for detecting unauthorized access requests. Background Art
[0002] With the rapid development of information technology, application programming interface plays an increasingly important role in all walks of life. Application programming interface provides a standardized interface for data exchange between different systems.
[0003] However, along with this comes the challenge of API security, especially the problem of unauthorized account access. When malicious users or unauthorized users obtain unauthorized information or perform unauthorized operations through API access, it may lead to serious consequences such as sensitive data leakage and system paralysis. Summary of the invention
[0004] The present invention provides a method, device, equipment and storage medium for detecting unauthorized access requests, so as to solve the problem that the accuracy of unauthorized access detection is low, which may lead to leakage of sensitive data and system paralysis.
[0005] According to one aspect of the present invention, a method for detecting unauthorized access requests is provided, the method comprising:
[0006] receiving an access request, and determining access behavior log data associated with the access request;
[0007] Detecting the access behavior log data based on an application program interface asset table to obtain a permission judgment result corresponding to the access request, wherein the application program interface asset table is pre-constructed based on target access attribute data associated with the traffic data;
[0008] The unauthorized access behavior data corresponding to the access request is determined based on the authority determination result and the access behavior log data.
[0009] According to another aspect of the present invention, there is provided a device for detecting unauthorized access requests, the device comprising:
[0010] A request receiving module, configured to receive an access request and determine access behavior log data associated with the access request;
[0011] an authority judgment module, configured to detect the access behavior log data based on an application program interface asset table to obtain an authority judgment result corresponding to the access request, wherein the application program interface asset table is pre-constructed based on target access attribute data associated with the traffic data;
[0012] An unauthorized access analysis module is used to determine the unauthorized access behavior data corresponding to the access request based on the permission judgment result and the access behavior log data.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program executable 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 method for detecting unauthorized access requests described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, wherein the computer instructions are used to enable a processor to implement the method for detecting unauthorized access requests described in any embodiment of the present invention when executed.
[0018] The technical solution of the embodiment of the present invention receives an access request and determines the access behavior log data associated with the access request; establishes a relationship between the access request and the access behavior log data; then, detects the access behavior log data based on the application interface asset table to obtain a permission judgment result corresponding to the access request, wherein the application interface asset table is pre-constructed based on the target access attribute data associated with the traffic data; constructs an application interface asset table for refined management of each application interface asset, and detects the access behavior log data based on the application interface asset table to ensure that the account can only access the application interface for which it has legal authority. Finally, based on the permission judgment result and the access behavior log data, the unauthorized access behavior data corresponding to the access request is determined, which solves the problem of low accuracy in unauthorized access detection, which leads to sensitive data leakage and system paralysis, and achieves the beneficial effect of accurately detecting unauthorized behavior and improving the accuracy and efficiency of security risk detection.
[0019] 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
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. 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.
[0021] Figure 1 is a flow chart of a method for detecting unauthorized access requests provided according to Embodiment 1 of the present invention;
[0022] Figure 2 is a flow chart of a method for detecting unauthorized access requests provided in accordance with Embodiment 2 of the present invention;
[0023] Figure 3 is a schematic diagram of the structure of an unauthorized access request detection device provided according to Embodiment 3 of the present invention;
[0024] Figure 4 It is a structural diagram of an electronic device for implementing the method for detecting unauthorized access requests according to an embodiment of the present invention. DETAILED DESCRIPTION
[0025] 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.
[0026] It should be noted that the terms "target", "initial", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] Embodiment 1
[0028] Figure 1A flowchart of a method for detecting an unauthorized access request is provided for the first embodiment of the present invention. This embodiment is applicable to the detection of access requests. The method can be performed by an unauthorized access request detection device. The unauthorized access request detection device can be implemented in the form of hardware and / or software. The unauthorized access request detection device can be configured in an electronic device. Figure 1 As shown, the method includes:
[0029] S110: Receive an access request, and determine access behavior log data associated with the access request.
[0030] The access request can be understood as an API (Application Program Interface) access request, and the access behavior log data can be understood as the access behavior log data of the application program interface account.
[0031] Specifically, a request for an account to access an application program interface is received, and access behavior log data associated with the access request is determined.
[0032] Optionally, receiving an access request and determining access behavior log data associated with the access request includes: determining an application program interface account associated with the access request; verifying the application program interface account associated with the access request to obtain a target application program interface account; determining initial access attribute data associated with the target application program interface account, and automatically generating access behavior log data associated with the access request based on the initial access attribute data, wherein the initial access attribute data includes at least one of application program interface request endpoint data, access time data, and request method data.
[0033] The application program interface account can be understood as an API account, and the target application program interface account can be understood as an API account that has successfully logged in.
[0034] Specifically, an access request initiated by a user is received, and based on a preset account identification rule, the API account in the access request is identified and verified to obtain a target application interface account that has successfully logged in. The access behavior of the target application interface account is tracked and recorded, and the initial access attribute data associated with the target application interface account is determined. Access behavior log data associated with the access request is automatically generated based on the initial access attribute data. Among them, the account identification rule can be preset based on experience, and this embodiment does not limit it.
[0035] S120. Detect the access behavior log data based on an application program interface asset table to obtain a permission judgment result corresponding to the access request, wherein the application program interface asset table is pre-constructed based on target access attribute data associated with the traffic data.
[0036] The application program interface asset table can be understood as the API asset table. The authority judgment result can be understood as the unauthorized judgment result, and the authority judgment result includes no unauthorized and unauthorized.
[0037] Specifically, the access behavior log data is detected based on the pre-built API asset table to obtain whether the permission judgment result of the access request is unauthorized.
[0038] Optionally, the application interface asset table is pre-constructed based on target access attribute data, including: obtaining a preset number of traffic data, and extracting target traffic data from the traffic data; performing deep parsing on the target traffic data based on a deep message parsing method to obtain target access attribute data associated with the target traffic data, wherein the target access attribute data includes at least one of destination network protocol data, destination port data, host data, application programming interface address data, and request method data; and constructing the application interface asset table based on the target access attribute number.
[0039] The traffic data may be network traffic data. The target traffic data may be HTTP (HyperText Transfer Protocol) traffic data. The target access attribute data may be access attribute data associated with API traffic in HTTP traffic.
[0040] Specifically, by deploying a real-time monitoring system, network traffic data is captured and recorded in real time. A preset amount of traffic data is parsed to extract HTTP traffic from the network traffic. The HTTP traffic is deeply parsed by a deep message parsing method, and in the case of API traffic in the HTTP traffic, the target access attribute data of the API traffic is determined. The API asset table is constructed based on the target network protocol data, destination port data, host data, application programming interface address data, and request method data in the target access attribute data of the API traffic.
[0041] In the embodiment of the present invention, the captured network traffic is parsed to extract the HTTP traffic. Then, the HTTP traffic is deeply parsed to determine the API traffic. An API asset table is constructed based on the five fields of destination network protocol data, destination port data, host data, application programming interface address data, and request method data. Comprehensive identification of API assets existing in the network.
[0042] S130: Determine the unauthorized access behavior data corresponding to the access request based on the authority determination result and the access behavior log data.
[0043] Specifically, when the authority determination result is unauthorized, the specific unauthorized access behavior data corresponding to the access request is determined based on the authority determination result corresponding to the access request and the access behavior log data.
[0044] Optionally, determining the unauthorized access behavior data corresponding to the access request based on the authority judgment result and the access behavior log data includes: analyzing the authority judgment result and the access behavior log data based on an unauthorized access detection algorithm to obtain the unauthorized access behavior data.
[0045] Specifically, the unauthorized access detection algorithm based on context content association analysis analyzes the permission judgment results and access behavior log data, and further analyzes the specific unauthorized access behavior data of the access request.
[0046] In an embodiment of the present invention, when the permission judgment result is unauthorized, the unauthorized detection algorithm based on contextual content association analysis further analyzes the permission judgment result and access behavior log data, which can accurately determine the specific unauthorized access behavior data existing in the access request, thereby improving the accuracy of unauthorized detection.
[0047] Optionally, after determining the unauthorized access behavior data corresponding to the access request based on the authority judgment result, the method further includes:
[0048] A security response method corresponding to the unauthorized access behavior data is determined based on the unauthorized access behavior data, wherein the security response method includes at least one of an alarm prompt, blocking access, and recording an exception.
[0049] Specifically, corresponding security response levels (e.g., low, medium, and high) can be set in advance for different unauthorized access behaviors, and different security response methods can be set for different security response levels, for example: low-level unauthorized access behaviors can alarm and block access; medium-level unauthorized access behaviors can record abnormalities and block access; high-level unauthorized access behaviors can alarm, record abnormalities, and block access, etc. It is also possible to directly preset corresponding security response methods for different unauthorized access behaviors. After determining the security response method corresponding to the unauthorized access behavior data, a security response instruction can be generated and sent to the system end to trigger the corresponding security response mechanism.
[0050] In the embodiment of the present invention, the system uses advanced algorithms, combines account access behavior and API asset permissions, and realizes real-time and accurate detection of unauthorized access behavior. Once unauthorized behavior is detected, the system will quickly issue an alarm to prevent potential security risks.
[0051] The technical solution of the embodiment of the present invention receives an access request and determines the access behavior log data associated with the access request; establishes a relationship between the access request and the access behavior log data; then, detects the access behavior log data based on the application interface asset table to obtain a permission judgment result corresponding to the access request, wherein the application interface asset table is pre-constructed based on the target access attribute data associated with the traffic data; constructs an application interface asset table for refined management of each application interface asset, and detects the access behavior log data based on the application interface asset table to ensure that the account can only access the application interface for which it has legal authority. Finally, based on the permission judgment result and the access behavior log data, the unauthorized access behavior data corresponding to the access request is determined, which solves the problem of low accuracy in unauthorized access detection, which leads to sensitive data leakage and system paralysis, and achieves the beneficial effect of accurately detecting unauthorized behavior and improving the accuracy and efficiency of security risk detection.
[0052] Embodiment 2
[0053] Figure 2 A flowchart of a method for detecting unauthorized access requests provided in Example 2 of the present invention, this embodiment is a further refinement of the relationship between the above embodiments on how to detect the access behavior log data based on a pre-built application interface asset table to obtain a permission judgment result corresponding to the access request. Optionally, the detection of the access behavior log data based on the pre-built application interface asset table to obtain a permission judgment result corresponding to the access request includes: determining permission information data corresponding to the access behavior log data in the application interface asset table, wherein the permission information data includes permission range data and / or executable operation data; comparing the access behavior log data with the permission information data to obtain a permission judgment result corresponding to the access request.
[0054] like Figure 2 As shown, the method includes:
[0055] S210: Receive an access request, and determine access behavior log data associated with the access request.
[0056] S220. Determine, in the application program interface asset table, permission information data corresponding to the access behavior log data, wherein the permission information data includes permission range data and / or executable operation data.
[0057] The permission range data can be understood as permission data for accessing a specific API, and the executable operation data can be understood as accessible API interface data.
[0058] Specifically, the accessible API interface data and / or the permission data for accessing a specific API corresponding to the access behavior log data are determined in the API asset table.
[0059] In the embodiment of the present invention, the access behavior of the API account and the API asset table are combined to determine whether the permissions of each API asset match and whether the account has the right to access a specific API. This achieves refined management of API access and ensures that only accounts with corresponding permissions can access the corresponding API.
[0060] Optionally, determining the permission information data corresponding to the access behavior log data in the application interface asset table includes: searching the target access attribute data corresponding to the initial access attribute data in the application interface asset table based on the initial access attribute data in the access behavior log data; and determining the permission information data corresponding to the access behavior log data based on the target access attribute data.
[0061] The initial access attribute data may be understood as all access attribute data in the access behavior log data.
[0062] Specifically, based on the initial access attribute data, the API asset table is retrieved, and the target access attribute data corresponding to the initial access attribute data is searched in the API asset table; based on the destination network protocol data, destination port data, host data, application programming interface address data and request method data in the target access attribute data, the permission information data corresponding to the access behavior log data is determined.
[0063] S230: Compare the access behavior log data with the permission information data to obtain a permission judgment result corresponding to the access request.
[0064] Specifically, the access behavior log data is compared with the permission information data corresponding to the access behavior log data to determine whether the permission information of the access request matches and whether the application program interface account has the right to access a specific API. Based on the comparison result, the permission judgment result corresponding to the access request is determined.
[0065] In this embodiment, through detailed analysis of the API asset table, the system can accurately determine the permission scope of each API asset, including operations such as reading, writing, and deleting, providing fine-grained permission control for the system.
[0066] S240: Determine the unauthorized access behavior data corresponding to the access request based on the authority determination result and the access behavior log data.
[0067] The technical solution of the embodiment of the present invention is to determine the permission information data corresponding to the access behavior log data in the application interface asset table, wherein the permission information data includes permission range data and / or executable operation data; accurately determine the permission range and / or executable operation corresponding to the access request. Then, the access behavior log data and the permission information data are compared to obtain the permission judgment result corresponding to the access request, thereby realizing the refined management of application interface access and ensuring that only accounts with corresponding permissions can access the corresponding application interface.
[0068] As an optional example of an embodiment of the present invention, the unauthorized detection of access request in this embodiment specifically includes the following steps:
[0069] Step 1. Data access:
[0070] Real-time traffic monitoring: Deploy a real-time monitoring system to capture and record network traffic in real time.
[0071] Step 2. API asset identification
[0072] By parsing the flow network volume, extracting the HTTP traffic from the traffic, and deeply parsing the HTTP traffic, we can determine the API traffic contained therein, and build an API asset table based on the five fields of the API traffic: destination network protocol data, destination port data, host data, application programming interface address data, and request method data.
[0073] Step 3. API account identification:
[0074] Input: Access request.
[0075] Processing: The system identifies and verifies the API account in the request through preset account identification rules. The account identification rules can be customized and are not limited in this embodiment.
[0076] Output: Identified and verified API account information.
[0077] Step 4. Access behavior records:
[0078] Input: at least one API account information after API account identification.
[0079] Processing: Determine the initial access attribute data associated with the target application interface account, and automatically generate access behavior log data associated with the access request based on the initial access attribute data, wherein the initial access attribute data includes at least one of application interface request endpoint data, access time data and request method data.
[0080] Output: Access behavior log data.
[0081] Step 5. API asset table retrieval:
[0082] Input: at least one access behavior log data associated with the access request.
[0083] Processing: The system retrieves the API asset table based on the access behavior log data and obtains the permission information data of each API asset, including permission scope data and / or executable operation data.
[0084] Output: Network protocol data, destination port data, host data, application programming interface address data, and request method data related to access behavior in the API asset table.
[0085] Step 6. Permission determination:
[0086] Input: The access behavior log data of the application programming interface account and the network protocol data, destination port data, host data, application programming interface address data, and request method data related to the access behavior in the API asset table.
[0087] Processing: The system determines whether the permissions of each API asset match based on the access behavior log data and API asset table associated with the access request, and determines whether the application interface account has the right to access the specific application interface.
[0088] Output: the permission determination result corresponding to the access request.
[0089] Step 7. Unauthorized access detection:
[0090] Input: the access behavior log data associated with the access request and the permission judgment result corresponding to the access request.
[0091] Processing: The system analyzes the permission judgment results and access behavior log data based on the unauthorized detection algorithm implemented based on contextual content association analysis.
[0092] Output: Unauthorized access behavior data.
[0093] Step 8. Security Response:
[0094] Input: Unauthorized access to behavioral data.
[0095] Processing: Determine a security response method corresponding to the unauthorized access behavior data based on the unauthorized access behavior data.
[0096] Output: Security response instructions.
[0097] The technical solution of the embodiment of the present invention forms a comprehensive access behavior log by real-time tracking and recording the access behavior of each API account, including the requested API endpoint, access time, request method, etc. Through API asset table retrieval, detailed information of each API asset is obtained, including permission scope, executable operations, etc., to provide sufficient basis for subsequent permission judgment. Combining the access behavior of the API account and the API asset table, the system implements permission judgment for each API asset to ensure that the account can only access the API for which it has legal authority. Using advanced unauthorized access detection algorithms, the account's access behavior and permission judgment results are analyzed in real time to accurately detect whether there is unauthorized access behavior. The accuracy of detecting illegal access behavior is improved, potential security risks are discovered in a timely manner, and the security protection capabilities of the system are improved.
[0098] Embodiment 3
[0099] Figure 3 This is a schematic diagram of the structure of an access request unauthorized detection device provided in Embodiment 3 of the present invention. Figure 3 As shown, the device includes: a request receiving module 310, a permission judging module 320 and an unauthorized analysis module 330.
[0100] Among them, the request receiving module 310 is used to receive an access request and determine the access behavior log data associated with the access request; the authority judgment module 320 is used to detect the access behavior log data based on the application interface asset table to obtain the authority judgment result corresponding to the access request, wherein the application interface asset table is pre-constructed based on the target access attribute data associated with the traffic data; the unauthorized access analysis module 330 is used to determine the unauthorized access behavior data corresponding to the access request based on the authority judgment result and the access behavior log data.
[0101] The technical solution of the embodiment of the present invention receives an access request through a request receiving module, determines the access behavior log data associated with the access request; establishes a relationship between the access request and the access behavior log data; then, through a permission judgment module, detects the access behavior log data based on an application interface asset table to obtain a permission judgment result corresponding to the access request, wherein the application interface asset table is pre-constructed based on target access attribute data associated with traffic data; constructs an application interface asset table for refined management of each application interface asset, detects the access behavior log data based on the application interface asset table, and ensures that the account can only access the application interface for which it has legal authority; finally, through the permission judgment module, determines the unauthorized access behavior data corresponding to the access request based on the permission judgment result and the access behavior log data, solves the problem of low accuracy in unauthorized access detection, which leads to sensitive data leakage and system paralysis, and achieves the beneficial effect of accurately detecting unauthorized behavior and improving the accuracy and efficiency of security risk detection.
[0102] Optionally, the request receiving module includes:
[0103] an account determination unit, configured to determine an application program interface account associated with an access request;
[0104] An account verification unit, configured to verify an application program interface account associated with the access request to obtain a target application program interface account;
[0105] A log generation unit is used to determine initial access attribute data associated with the target application interface account, and automatically generate access behavior log data associated with the access request based on the initial access attribute data, wherein the initial access attribute data includes at least one of application interface request endpoint data, access time data and request method data.
[0106] Optionally, the authority determination module includes:
[0107] A flow acquisition unit, used to acquire a preset amount of flow data and extract target flow data from the flow data;
[0108] an attribute data acquisition unit, configured to perform deep parsing on the target traffic data based on a deep message parsing method to obtain target access attribute data associated with the target traffic data, wherein the target access attribute data includes at least one of destination network protocol data, destination port data, host data, application programming interface address data, and request method data;
[0109] An asset table construction unit is used to construct the application program interface asset table based on the target access attribute number.
[0110] Optionally, the authority determination module includes:
[0111] A permission determination unit, configured to determine permission information data corresponding to the access behavior log data in the application program interface asset table, wherein the permission information data includes permission range data and / or executable operation data;
[0112] The permission judgment unit is used to compare the access behavior log data with the permission information data to obtain a permission judgment result corresponding to the access request.
[0113] Optionally, the authority determination unit includes:
[0114] An attribute data search subunit, configured to search the application program interface asset table for the target access attribute data corresponding to the initial access attribute data based on the initial access attribute data in the access behavior log data;
[0115] The permission information determination subunit is used to determine the permission information data corresponding to the access behavior log data based on the target access attribute data.
[0116] Optionally, the unauthorized analysis module is specifically used for:
[0117] The authority judgment result and access behavior log data are analyzed based on an unauthorized access detection algorithm to obtain unauthorized access behavior data.
[0118] Optionally, the device also includes a security response module.
[0119] The security response module is used to determine the security response method corresponding to the unauthorized access behavior data based on the unauthorized access behavior data after determining the unauthorized access behavior data corresponding to the access request based on the permission judgment result, wherein the security response method includes at least one of an alarm prompt, blocking access and recording an exception.
[0120] The access request unauthorized detection device provided in the embodiment of the present invention can execute the access request unauthorized detection method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0121] Embodiment 4
[0122] Figure 4A 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.
[0123] like Figure 4 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.
[0124] 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.
[0125] 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 special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as unauthorized detection of method access requests.
[0126] In some embodiments, the unauthorized detection of method access request can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the unauthorized detection of method access request described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform unauthorized detection of method access request by any other appropriate means (e.g., by means of firmware).
[0127] 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.
[0128] 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.
[0129] 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.
[0130] 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).
[0131] 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.
[0132] 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.
[0133] 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.
[0134] 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 method for detecting unauthorized access requests, characterized in that: include: receiving an access request, and determining access behavior log data associated with the access request; Detecting the access behavior log data based on an application program interface asset table to obtain a permission judgment result corresponding to the access request, wherein the application program interface asset table is pre-constructed based on target access attribute data associated with the traffic data; Determine the unauthorized access behavior data corresponding to the access request based on the authority judgment result and the access behavior log data; The detecting the access behavior log data based on the application program interface asset table to obtain a permission judgment result corresponding to the access request includes: Determining, in the application program interface asset table, permission information data corresponding to the access behavior log data, wherein the permission information data includes permission range data and / or executable operation data; Comparing the access behavior log data with the permission information data to obtain a permission determination result corresponding to the access request; The permission scope data is permission data for accessing a specific API, and the executable operation data is accessible API interface data.
2. The method according to claim 1, characterized in that: The receiving an access request and determining access behavior log data associated with the access request includes: Determine the API account associated with the access request; Verifying the application program interface account associated with the access request to obtain a target application program interface account; Determine initial access attribute data associated with the target application interface account, and automatically generate access behavior log data associated with the access request based on the initial access attribute data, wherein the initial access attribute data includes at least one of application interface request endpoint data, access time data, and request method data.
3. The method according to claim 1, characterized in that The application program interface asset table is pre-built based on target access attribute data, including: Acquire a preset amount of flow data, and extract target flow data from the flow data; Performing deep parsing on the target traffic data based on a deep message parsing method to obtain target access attribute data associated with the target traffic data, wherein the target access attribute data includes at least one of destination network protocol data, destination port data, host data, application program interface address data, and request method data; The application program interface asset table is constructed based on the target access attribute number.
4. The method according to claim 1, characterized in that: Determining the permission information data corresponding to the access behavior log data in the application program interface asset table includes: Searching the target access attribute data corresponding to the initial access attribute data in the application interface asset table based on the initial access attribute data in the access behavior log data; The authority information data corresponding to the access behavior log data is determined based on the target access attribute data.
5. The method according to claim 1, characterized in that The determining, based on the authority determination result and the access behavior log data, the unauthorized access behavior data corresponding to the access request includes: The authority judgment result and access behavior log data are analyzed based on an unauthorized access detection algorithm to obtain unauthorized access behavior data.
6. The method according to claim 1, characterized in that After determining the unauthorized access behavior data corresponding to the access request based on the authority judgment result and the access behavior log data, the method further includes: A security response method corresponding to the unauthorized access behavior data is determined based on the unauthorized access behavior data, wherein the security response method includes at least one of an alarm prompt, blocking access, and recording an exception.
7. A device for detecting unauthorized access requests, characterized in that: include: A request receiving module, configured to receive an access request and determine access behavior log data associated with the access request; an authority judgment module, configured to detect the access behavior log data based on an application program interface asset table to obtain an authority judgment result corresponding to the access request, wherein the application program interface asset table is pre-constructed based on target access attribute data associated with the traffic data; An unauthorized access analysis module, configured to determine unauthorized access behavior data corresponding to the access request based on the authority determination result and the access behavior log data; The authority judgment module includes: A permission determination unit, configured to determine permission information data corresponding to the access behavior log data in the application program interface asset table, wherein the permission information data includes permission range data and / or executable operation data; A permission judgment unit, used to compare the access behavior log data with the permission information data to obtain a permission judgment result corresponding to the access request; The permission scope data is permission data for accessing a specific API, and the executable operation data is accessible API interface data.
8. 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 executable 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 method for detecting unauthorized access requests according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for detecting unauthorized access requests according to any one of claims 1 to 6 when the instructions are executed.
