A method and system for implementing dynamic access control in Android without relying on virtual network adapters.
By sending business data to the local loopback address port in the Android system and connecting it with the dynamic access control gateway, the problem of dynamic access control caused by the virtual network card being disabled is solved. Dynamic access control is realized in customized systems, keeping the user experience and business unchanged, and supporting environmental security awareness and dynamic policy generation.
Patent Information
- Application Number
- CN202211304129.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-24
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2042-10-24
AI Technical Summary
In a customized Android system, the virtual network card is disabled, causing the dynamic access control client to fail to start and making it impossible to send, receive, encapsulate, and decapsulate data packets.
The application client sends business data to a specific port of the local loopback address. The dynamic access control client listens for and obtains the data packets, and establishes a connection with the dynamic access control gateway for forwarding. The dynamic access control gateway decides whether to forward the data packets to the application server based on the configured forwarding rules, and controls the process by combining the environmental security awareness module and the access control policy center to generate policies.
It enables dynamic access control without relying on virtual network cards, requiring only minor modifications to the application client. It supports data interaction between the original application client and server without changing the existing business model, and provides environmental security awareness and dynamic policy generation.
Smart Images

Figure CN117938409B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of computer technology, specifically relating to a method and system for implementing dynamic access control in the Android system without relying on a virtual network card. Background Technology
[0002] In the Android system, existing dynamic access technology is implemented through collaboration between virtual network interface card (NIC) technology and a cloud-based dynamic access control gateway. For example... Figure 1 As shown, the basic idea is to install a client program on the Android device and use this client program to establish a data transmission tunnel with the dynamic access control gateway, performing dynamic access control at the tunnel level. The basic principle is that the client program reads data from the Android system's TUN virtual network interface card, encapsulates the data packets according to the tunnel encapsulation format, thereby establishing a data transmission tunnel with the dynamic access control gateway. This allows application data from the Android system to be sent to the dynamic access control gateway via the transmission tunnel, and then forwarded / proxied by the dynamic access control gateway to the application server.
[0003] The basic process of the existing solution is as follows:
[0004] a) When the system starts, the dynamic access control client starts the TUN network card and binds to the network card. At the same time, it configures routing table entries in the operating system to specify the data packets that need to be routed to the TUN network card.
[0005] b) When the application client initiates a service access, the terminal operating system sends the data packet to the TUN network card according to the routing table information;
[0006] c) The dynamic access control client listens to the TUN network card and reads data packets, and encapsulates the data packets according to the communication protocol format between itself and the dynamic access control gateway;
[0007] d) The dynamic access control client will send the encapsulated data packet out again via the operating system protocol stack;
[0008] e) The terminal operating system forwards the data packets encapsulated by the dynamic access control client to the physical network card based on the routing information;
[0009] f) Data is sent to the dynamic access control gateway via the physical network card;
[0010] g) The dynamic access control gateway decapsulates data packets according to the protocol format and forwards or proxies the business data to the application server.
[0011] Existing dynamic access control (DACL) technologies rely on the virtual network interface card (NIC) in the Android system. The DACL client binds to the virtual NIC to receive data packets sent and received by the application client and encapsulates these packets according to its communication protocol with the DACL gateway. This ensures that all client data packets reach the DACL gateway, where they are proxied or forwarded to the application server. However, in some customized Android systems, the system virtual NIC is disabled, preventing the DACL client from activating it for data packet sending, receiving, encapsulation / decapsulation. Summary of the Invention
[0012] The purpose of this invention is to provide a method and system for dynamic access control that does not rely on Android system virtual network card technology.
[0013] The technical solution adopted in this invention is as follows:
[0014] A method for implementing dynamic access control in an Android system without relying on a virtual network adapter includes the following steps:
[0015] The application client sends its own business data to a specific port on the local loopback address;
[0016] The dynamic access control client listens on the corresponding port of the local loopback address and obtains data packets from the application client;
[0017] The dynamic access control client establishes a connection with the dynamic access control gateway and forwards the acquired data packets to the dynamic access control gateway;
[0018] After receiving a data packet, the dynamic access control gateway forwards the data packet to the application server according to the configured forwarding rules.
[0019] Furthermore, the dynamic access control client includes an environment security awareness module; the environment security awareness module detects the security status of the mobile terminal application's operating environment and reports the awareness results to the access control policy center; the access control policy center dynamically generates access control policies and distributes them to the dynamic access control gateway, deciding whether to block the corresponding request before the dynamic access control gateway forwards the service request data.
[0020] Furthermore, the application server registers with the dynamic access control gateway, informing the dynamic access control gateway of its own address and port for providing services externally, thus forming a forwarding mapping relationship between the address and port of the dynamic access control gateway and the address and port of the application server.
[0021] Furthermore, the dynamic access control gateway receives data packets from the dynamic access control client, and decides whether to forward them based on the forwarding mapping relationship and the access control policy generated by the access control policy center. If forwarding is desired, the request is forwarded to the corresponding application server; if blocking is desired, the forwarding of the service request data is abandoned.
[0022] Furthermore, the forwarding mapping relationship between the dynamic access control client and the dynamic access control gateway is configured by the administrator, forming a complete data forwarding path of application client - dynamic access control client - dynamic access control gateway - application server.
[0023] Furthermore, the environmental security perception module collects device information, user information, security risk information, geographical location information, and network connection information of the Android terminal, and uploads them to the access control policy center. The access control policy center compiles access control policies based on the collected terminal information and distributes the access control policies to the dynamic access control gateway.
[0024] An Android terminal, comprising an application client, a dynamic access control client, and a local loopback address; wherein:
[0025] The application client sends its own business data to a specific port on the local loopback address;
[0026] The dynamic access control client listens on the corresponding port of the local loopback address and obtains data packets from the application client;
[0027] The dynamic access control client establishes a connection with the dynamic access control gateway and forwards the acquired data packets to the dynamic access control gateway.
[0028] A system for implementing dynamic access control without relying on a virtual network interface card (NIC) includes an Android terminal, an access control policy center, a dynamic access control gateway, and an application server; the Android terminal includes an application client, a dynamic access control client, and a local loopback address; wherein:
[0029] The application client sends its own business data to a specific port on the local loopback address;
[0030] The dynamic access control client listens on the corresponding port of the local loopback address and obtains data packets from the application client;
[0031] The dynamic access control client establishes a connection with the dynamic access control gateway and forwards the acquired data packets to the dynamic access control gateway;
[0032] After receiving a data packet, the dynamic access control gateway forwards the data packet to the application server according to the configured forwarding rules;
[0033] The dynamic access control client includes an environment security awareness module; the environment security awareness module detects the security status of the mobile terminal application's operating environment and reports the awareness results to the access control policy center; the access control policy center dynamically generates access control policies and sends them to the dynamic access control gateway, and decides whether to block the corresponding request before the dynamic access control gateway forwards the service request data.
[0034] The beneficial effects of this invention are as follows:
[0035] 1) When the virtual network adapter of the Android device is unusable, dynamic access control can be achieved by modifying only a few pieces of information such as IP address and port configuration of the original application client.
[0036] 2) No modifications are required to the existing application server; the administrator only needs to register the application server information with the dynamic access control gateway.
[0037] 3) This method makes minimal changes to the existing business access methods, does not overturn the existing business integration results, and the way application clients and application system servers call data interaction remains unchanged, so the user experience is unchanged;
[0038] 4) In this method, the dynamic access control gateway can be deployed in either serial or bypass mode. Bypass deployment does not change the existing equipment deployment mode and allows for rapid deployment. Attached Figure Description
[0039] Figure 1 This is the overall architecture diagram of the existing solution.
[0040] Figure 2 This is the overall architecture diagram of the present invention. Detailed Implementation
[0041] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to specific embodiments and accompanying drawings.
[0042] 1. Overall Workflow
[0043] like Figure 2As shown, the virtual network interface card (NIC) is disabled on the Android terminal, and the dynamic access control client runs as a user-mode app. On the server side, the dynamic access control gateway is placed before the application server. The basic idea of this invention, which implements dynamic access control in an Android system without relying on a virtual NIC, is as follows: the application client sends its business data to a specific port on the local loopback address. The dynamic access control client listens on the corresponding port of the local loopback address to obtain the application client's data packets and establishes a connection with the dynamic access control gateway to forward the obtained data packets. After the data arrives at the dynamic access control gateway (hereinafter referred to as the gateway), the gateway forwards the data to different application servers according to the forwarding rules configured by the administrator. In the above process, the environment security awareness module of the dynamic access control client needs to detect the security status of the mobile terminal application's operating environment and report the awareness results to the access control policy center (hereinafter referred to as the policy center). The policy center dynamically generates access control policies and sends them to the gateway, deciding whether to block the corresponding request before the gateway forwards the business request data.
[0044] 2. Business Access Process
[0045] a) The application client modifies the address and port configuration of its own server (the server corresponding to the application client) and sends the business access request to a specific port of the local loopback address; the application server registers with the dynamic access control gateway, informing the dynamic access control gateway of the address and port of the service it provides to the outside world, and then forms a forwarding mapping relationship between the address and port of the dynamic access control gateway and the address and port of the application server.
[0046] b) The dynamic access control client listens to the corresponding port of the local loopback address and obtains the business access request data of the application client. It encapsulates the data according to the communication protocol format between itself and the dynamic access control gateway and forwards the business access request data to the dynamic access control gateway.
[0047] c) The dynamic access control gateway receives data from the dynamic access control client. Based on the forwarding mapping relationship formed in step a), and in conjunction with the access control policy generated by the access control policy center, it decides whether to forward the business request data. If forwarding is required, the request is forwarded to the corresponding application server; if blocking is required, the forwarding of the request is abandoned.
[0048] d) If the business request data reaches the application server, the application server generates the corresponding response data and returns it to the application client via the same path.
[0049] 3. Key points of the invention
[0050] 1) When the virtual network card of the Android device is unavailable, the application client is slightly modified based on the idea of port forwarding so that the application client’s business request data is sent to a specific local loopback address and port listened to by the dynamic access control client. This can be one or more ports negotiated between the application client and the dynamic access control client.
[0051] 2) The forwarding mapping relationship between the dynamic access control gateway and the application server is configured by the administrator. The administrator registers the address and port of the application server in the dynamic access control gateway to form a forwarding mapping relationship between the gateway and the address and port of the application server.
[0052] 3) The communication connection between the dynamic access control client and the dynamic access control gateway can use methods including but not limited to TLS / SSL to achieve confidentiality and integrity protection of business request data.
[0053] 4) The forwarding mapping relationship between the dynamic access control client and the dynamic access control gateway can be configured by the administrator. Combined with key point 1), it forms a complete data forwarding path of application client - dynamic access control client - dynamic access control gateway - application server.
[0054] 5) In addition to forwarding business request data, the dynamic access control client also needs to set up an environmental security awareness module to sense the current environmental security status of the mobile terminal, upload the awareness results to the access control policy center, and the access control policy center dynamically generates access control policies based on the awareness results to decide whether to allow or block user access behavior.
[0055] The dynamic access control client's environment security awareness module perceives the current mobile terminal's environment security status through various methods. These methods include: collecting device information, user information, security risk information, geographic location information, and network connection information from Android terminals via modules such as Mobile Device Management (MDM), Mobile Application Management (MAM), mobile virus scanning, and vulnerability scanning. This information is then uploaded to the access control policy center, which works in conjunction with the dynamic access control gateway. The access control policy center then compiles access control policies based on the collected terminal information and distributes these policies to the dynamic access control gateway. The dynamic access control gateway then determines whether to block certain user behaviors based on these policies. Access control policies can be generated in a personalized manner, tailored to different business needs and application scenarios. For example, a terminal can be specified to be usable only within a fixed geographic area, a user can be specified to be usable only during a specific time period, or if a device is infected with malware, that device should be completely prohibited from accessing the business system.
[0056] In this invention, the dynamic access control gateway supports both in-line and bypass deployment methods. In-line deployment means the dynamic access control gateway is deployed on the path that users must take to access the server, while bypass deployment means the dynamic access control gateway is not deployed on the necessary path. Bypass deployment does not change the existing device deployment mode and allows for rapid deployment.
[0057] Another embodiment of the present invention provides an Android terminal, the Android terminal including an application client, a dynamic access control client, and a local loopback address; wherein:
[0058] The application client sends its own business data to a specific port on the local loopback address;
[0059] The dynamic access control client listens on the corresponding port of the local loopback address and obtains data packets from the application client;
[0060] The dynamic access control client establishes a connection with the dynamic access control gateway and forwards the acquired data packets to the dynamic access control gateway.
[0061] Another embodiment of the present invention provides a system for implementing dynamic access control without relying on a virtual network interface card, comprising an Android terminal, an access control policy center, a dynamic access control gateway, and an application server; the Android terminal includes an application client, a dynamic access control client, and a local loopback address; wherein:
[0062] The application client sends its own business data to a specific port on the local loopback address;
[0063] The dynamic access control client listens on the corresponding port of the local loopback address and obtains data packets from the application client;
[0064] The dynamic access control client establishes a connection with the dynamic access control gateway and forwards the acquired data packets to the dynamic access control gateway;
[0065] After receiving a data packet, the dynamic access control gateway forwards the data packet to the application server according to the configured forwarding rules;
[0066] The dynamic access control client includes an environment security awareness module; the environment security awareness module detects the security status of the mobile terminal application's operating environment and reports the awareness results to the access control policy center; the access control policy center dynamically generates access control policies and sends them to the dynamic access control gateway, and decides whether to block the corresponding request before the dynamic access control gateway forwards the service request data.
[0067] The specific embodiments of the present invention disclosed above are intended to help understand the content of the present invention and to implement it accordingly. Those skilled in the art will understand that various substitutions, changes, and modifications are possible without departing from the spirit and scope of the present invention. The present invention should not be limited to the content disclosed in the embodiments of this specification; the scope of protection of the present invention is defined by the claims.
Claims
1. A method for implementing dynamic access control without relying on virtual network cards in an Android system, characterized in that, Includes the following steps: The application client sends its own business data to a specific port on the local loopback address; The dynamic access control client listens on the corresponding port of the local loopback address and obtains data packets from the application client; The dynamic access control client establishes a connection with the dynamic access control gateway and forwards the acquired data packets to the dynamic access control gateway; After receiving a data packet, the dynamic access control gateway forwards the data packet to the application server according to the configured forwarding rules; The dynamic access control client includes an environmental security awareness module; The environmental security perception module detects the security status of the mobile terminal application's operating environment and reports the perception results to the access control policy center. The access control policy center dynamically generates access control policies based on different business needs and application scenarios and sends them to the dynamic access control gateway. Before the dynamic access control gateway forwards business request data, it decides whether to block the corresponding request. The application server registers with the dynamic access control gateway, informing the dynamic access control gateway of its own address and port for providing services to the outside world, thus forming a forwarding mapping relationship between the address and port of the dynamic access control gateway and the address and port of the application server. The dynamic access control gateway receives data packets from the dynamic access control client. Based on the forwarding mapping relationship and the access control policy generated by the access control policy center, it decides whether to forward the data packet. If forwarding is desired, the request is forwarded to the corresponding application server; if blocking is desired, the forwarding of the service request data is abandoned.
2. The method of claim 1, wherein, The dynamic access control client runs as a user-mode app.
3. The method of claim 1, wherein, The forwarding mapping relationship between the dynamic access control client and the dynamic access control gateway is configured by the administrator, forming a complete data forwarding path of application client - dynamic access control client - dynamic access control gateway - application server.
4. The method of claim 1, wherein, The environmental security awareness module collects device information, user information, security risk information, geographical location information, and network connection information of the Android terminal, and uploads them to the access control policy center. The access control policy center compiles access control policies based on the collected terminal information and distributes the access control policies to the dynamic access control gateway.
5. An Android terminal for performing the method of any one of claims 1 to 4, characterized in that, The Android terminal includes an application client, a dynamic access control client, and a local loopback address; wherein: The application client sends its own business data to a specific port on the local loopback address; The dynamic access control client listens on the corresponding port of the local loopback address and obtains data packets from the application client; The dynamic access control client establishes a connection with the dynamic access control gateway and forwards the acquired data packets to the dynamic access control gateway.
6. A system for implementing dynamic access control without relying on virtual network cards, the system comprising: The method according to any one of claims 1 to 4 includes an Android terminal, an access control policy center, a dynamic access control gateway, and an application server; the Android terminal includes an application client, a dynamic access control client, and a local loopback address; wherein: The application client sends its own business data to a specific port on the local loopback address; The dynamic access control client listens on the corresponding port of the local loopback address and obtains data packets from the application client; The dynamic access control client establishes a connection with the dynamic access control gateway and forwards the acquired data packets to the dynamic access control gateway; After receiving a data packet, the dynamic access control gateway forwards the data packet to the application server according to the configured forwarding rules; The dynamic access control client includes an environment security awareness module; the environment security awareness module detects the security status of the mobile terminal application's operating environment and reports the awareness results to the access control policy center; the access control policy center dynamically generates access control policies and sends them to the dynamic access control gateway, and decides whether to block the corresponding request before the dynamic access control gateway forwards the service request data.
Citation Information
Patent Citations
Method for accessing secure gateway client
CN101662357A
