Device security management method, device, storage medium and terminal
By obtaining and dynamically adjusting the whitelist information of the device in real time, it solves the problem that the device cannot be monitored in real time and the whitelist cannot be updated in device security management, thereby improving device security and communication services.
Patent Information
- Application Number
- CN202410012288.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-02
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-01-02
AI Technical Summary
Existing equipment security management solutions cannot monitor the status of equipment in real time, resulting in the equipment being unable to be moved or retrieved in time after leaving the preset community, and the whitelist cannot be dynamically updated to adapt to the application scope of the equipment.
By obtaining the flag bit and whitelist information of the target device in real time, the application scope of the device is dynamically adjusted to ensure that the device is only used normally in cells within the whitelist, and the whitelist is updated when necessary to adapt to communication needs.
It realizes real-time security management of equipment, ensures that equipment can only be used in authorized communities, provides better communication services and user experience, and allows network administrators and equipment holders to monitor and manage equipment status in real time.
Smart Images

Figure CN117714197B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of equipment management, and in particular to an equipment security management method, device, storage medium and terminal. Background Art
[0002] With the widespread application of network technology, users pay more and more attention to network security, so some restrictive measures need to be taken to achieve device security management.
[0003] At present, most of the equipment security management solutions are to lock the equipment in a certain community by pre-setting the configuration before leaving the factory or manually setting the configuration after leaving the factory. After the equipment leaves the community, it cannot access the Internet, and the operator, network management, etc. cannot know the status of the equipment. However, through the above solution, the device can be locked in a certain community, and the community where the device is located needs to be manually determined in advance; in addition, after the device leaves the locked community, the device itself cannot access the Internet directly, and there is no feedback to the network management or the device owner, so it is impossible to move to the pre-locked community in time or to retrieve the lost device in time. Summary of the invention
[0004] The embodiments of the present invention provide a device security management method, apparatus, storage medium and terminal, which ensure that the target device can only be used normally when passing through a cell in a whitelist during the movement of the target device, thereby improving the security of the device, dynamically updating the whitelist and adaptively adjusting the application scope of the target device.
[0005] In order to solve the above technical problems, an embodiment of the present invention provides a device security management method, including:
[0006] Get the target device's flag in real time;
[0007] When the flag bit is an unlock flag bit, unlocking the target device and clearing the flag bit;
[0008] When the flag is not an unlock flag and the cell lock function of the target device is in an on state, during the movement of the target device, the total number of cells in the whitelist of the target device and the threshold of the number of cells in the whitelist of the target device are obtained in real time, and it is determined whether the current cell is in the whitelist;
[0009] If yes, setting the flag of the target device to an unlock flag;
[0010] If not, when the total number of cells is equal to the cell number threshold, the target device is locked according to the locking strategy corresponding to the target device, and when the total number of cells is less than the cell number threshold, the whitelist is updated according to the communication data of the target device.
[0011] By implementing the embodiment of the present invention, the target device's flag is obtained in real time, so that the subsequent operation can be determined and executed in time based on the target device's flag. When the target device's flag is not an unlock flag and the target device's cell lock function is in an on state, the total number of cells in the target device's whitelist and the target device's whitelist cell number threshold are obtained in real time during the movement of the target device. If the current cell is in the whitelist, the target device's flag is set to an unlock flag. When the target device's flag is an unlock flag, the target device is unlocked and the flag is cleared, so that the target device can be used normally when passing through the cell in the whitelist. If the current cell is not in the whitelist and the total number of cells is equal to the cell number threshold, the target device is locked according to the target device's locking strategy, ensuring that the target device can only be used normally when passing through the cell in the whitelist to protect the safety of the device. In addition, if the previous cell is not in the whitelist and the total number of cells is less than the cell number threshold, the whitelist is updated according to the communication data of the target device to adjust the application scope of the target device in a targeted manner.
[0012] As a preferred solution, the communication data of the target device includes the number of outgoing calls made by the target device in the current cell and the residence time of the target device in the current cell; when the total number of cells is less than the cell number threshold, the whitelist is updated according to the communication data of the target device, specifically:
[0013] If the total number of cells is less than the cell number threshold, it is determined that the current whitelist is not full, and the number of outgoing calls made by the target device in the current cell is obtained;
[0014] When the number of outgoing calls is greater than or equal to a first threshold, adding the current routed cell to the whitelist;
[0015] When the number of outgoing calls is less than a first threshold, the residence time of the target device in the current route cell is obtained, and if the residence time is greater than a second threshold, the current route cell is added to the whitelist.
[0016] According to the preferred scheme of the embodiment of the present invention, if the number of outgoing calls reaches or exceeds the first threshold, it indicates that the target device has a large communication demand in the cell, and therefore it is added to the whitelist; conversely, if the number of outgoing calls is less than the first threshold, the residence time can be further considered to determine whether the cell should be added to the whitelist, thereby achieving dynamic optimization of the whitelist, thereby ensuring that the target device can connect to the appropriate cell during the communication process, and providing better communication services and user experience.
[0017] As a preferred solution, after adding the current routed cell to the whitelist, the method further includes:
[0018] Generate first reporting information; wherein the first reporting information includes the name of the current route cell added to the whitelist, and the number of outgoing calls or the dwell time of the current route cell added to the whitelist;
[0019] The first reporting information is reported to the background management system in the form of a text message.
[0020] According to a preferred solution of the embodiment of the present invention, after the current route cell is added to the white list of the target device, first reporting information including the name of the current route cell added to the white list and the number of outgoing calls or the dwell time of the current route cell added to the white list is generated, and the first reporting information is reported to the background management system in the form of a text message, so that the network administrator or the device holder can monitor and manage the white list of the target device in real time through the background management system.
[0021] As a preferred solution, when the total number of cells is equal to the cell number threshold, the target device is locked according to the locking strategy corresponding to the target device, specifically:
[0022] If the total number of cells is equal to the cell number threshold, determining that the current whitelist is full, and obtaining the configuration information of the target device;
[0023] Parsing the configuration information to obtain a locking policy corresponding to the target device, and locking the target device according to the locking policy;
[0024] Generate second reporting information, and then report the second reporting information to the background management system in the form of SMS;
[0025] The second reported information includes the name of the cell currently passed through and the information that the current whitelist is full.
[0026] According to a preferred solution of the embodiment of the present invention, when the whitelist is full, a second report message is generated including the name of the cell currently being passed through and information that the current whitelist is full. The second report message is then reported to the background management system in the form of a text message, so that the network administrator or device holder can understand the current situation in a timely manner and take corresponding measures to deal with it.
[0027] As a preferred solution, the device safety management method further includes:
[0028] When the flag bit is not an unlock flag bit and the cell lock function of the target device is not in an on state, unlock the target device and generate third reporting information; wherein the third reporting information includes the flag bit of the target device and the state of the cell lock function of the target device;
[0029] The third reporting information is reported to the background management system in the form of text messages.
[0030] According to the preferred scheme of the embodiment of the present invention, when the flag of the target device is not the unlock flag and the cell lock function is not turned on, the device can be released by automatically unlocking, thereby improving the operability and convenience of the device. After unlocking, the flag of the target device and the status of the cell lock function of the target device are reported to the background management system in the form of text messages, so that the background management system can understand the status of the device in time and take corresponding measures to deal with it, thereby improving the efficiency of security management.
[0031] As a preferred solution, the real-time acquisition of the target device's flag bit is specifically as follows:
[0032] According to a preset reading cycle, the target device is read for a file, and if a flag file is found in the target device, it is determined that the flag of the target device is an unlock flag;
[0033] Alternatively, according to a preset reading cycle, the flag file of the target device is read to obtain a key-value pair, and if the value of the key-value pair is 1, it is determined that the flag of the target device is an unlock flag.
[0034] A preferred solution for implementing the embodiment of the present invention is to read files from the target device according to a preset reading cycle, and determine whether the flag bit of the target device is an unlock flag bit based on the reading result, thereby automatically triggering security management of the device.
[0035] In order to solve the same technical problem, an embodiment of the present invention further provides a device security management apparatus, including:
[0036] The acquisition module is used to obtain the flag bit of the target device in real time;
[0037] An unlocking module, used for unlocking the target device and clearing the flag bit when the flag bit is an unlocking flag bit;
[0038] A judgment module, configured to, when the flag bit is not an unlock flag bit and the cell lock function of the target device is in an on state, obtain in real time during the movement of the target device the total number of cells in the white list of the target device and the threshold value of the number of cells in the white list of the target device, and judge whether the current passing cell is in the white list;
[0039] A setting module, used for setting the flag of the target device to an unlock flag if the current cell is in the white list;
[0040] The locking update module is used to lock the target device according to the locking strategy corresponding to the target device if the current traversed cell is not in the white list and when the total number of cells is equal to the cell number threshold, and to update the white list according to the communication data of the target device when the total number of cells is less than the cell number threshold.
[0041] As a preferred solution, the communication data of the target device includes the number of outgoing calls made by the target device in the current cell and the residence time of the target device in the current cell; the lock update module specifically includes:
[0042] The device locking unit is used to determine that the current whitelist is full if the cell currently passed is not in the whitelist and the total number of cells is equal to the cell number threshold, and obtain the configuration information of the target device; parse the configuration information to obtain the locking strategy corresponding to the target device, and lock the target device according to the locking strategy; generate second reporting information, and then report the second reporting information to the background management system in the form of a text message; wherein the second reporting information includes the name of the cell currently passed and the information that the current whitelist is full;
[0043] The whitelist updating unit is used to determine that the current whitelist is not full if the current routed cell is not in the whitelist and the total number of cells is less than the cell number threshold, and obtain the number of outgoing calls of the target device in the current routed cell; when the number of outgoing calls is greater than or equal to a first threshold, add the current routed cell to the whitelist; when the number of outgoing calls is less than the first threshold, obtain the residence time of the target device in the current routed cell, and if the residence time is greater than a second threshold, add the current routed cell to the whitelist.
[0044] In order to solve the same technical problem, the present invention also provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the device security management method.
[0045] In order to solve the same technical problem, the present invention also provides a terminal, including a processor, a memory and a computer program stored in the memory; wherein the computer program can be executed by the processor to implement the device security management method. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 : A schematic diagram of a process flow of a device security management method provided in Embodiment 1 of the present invention;
[0047] Figure 2 : A structural diagram of a device security management device provided in Example 1 of the present invention. DETAILED DESCRIPTION
[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 are within the scope of protection of the present invention.
[0049] Embodiment one:
[0050] Please refer to Figure 1 , is a device security management method provided by an embodiment of the present invention, the method includes steps S1 to S5, each step is specifically as follows:
[0051] Step S1, obtaining the flag bit of the target device in real time.
[0052] In this embodiment, the flag bit can be in two forms. Form one is a key-value pair stored in a certain file; form two is a certain file in the target device. Both forms must not be lost when the power is off.
[0053] As a preferred solution, step S1 is specifically step S11 or step S12, and each step is specifically as follows:
[0054] Step S11, reading files from the target device according to a preset reading cycle, if it is found that there is a flag file in the target device, it is determined that the flag of the target device is an unlock flag.
[0055] Step S12, according to a preset reading cycle, read the flag file of the target device to obtain a key-value pair. If the value of the key-value pair is 1, it is determined that the flag of the target device is an unlock flag.
[0056] In this embodiment, for the flag bit of form one, if the value of a key-value pair in the flag bit file in the target device is 1, it is determined that the flag bit of the target device is an unlock flag bit, indicating that the current target device needs to be unlocked; for the flag bit of form two, if there is a flag bit file in the target device, it is determined that the flag bit of the target device is an unlock flag bit, indicating that the current target device needs to be unlocked.
[0057] Step S2: when the flag is an unlock flag, unlock the target device and clear the flag.
[0058] In this embodiment, after unlocking the target device, a text message report is required, specifically: the corresponding report information is reported to the background management system in the form of a text message. The corresponding report information here includes but is not limited to the flag of the target device.
[0059] Step S3, when the flag is not the unlock flag and the cell lock function of the target device is in the on state, during the movement of the target device, the total number of cells in the whitelist of the target device and the threshold number of cells in the whitelist of the target device are obtained in real time, and it is determined whether the current cell is in the whitelist; if so, execute step S4; if not, execute step S5.
[0060] In this embodiment, step S3 includes step S31 to step S33, and each step is specifically as follows:
[0061] Step S31, during the movement of the target device, according to the current network mode (4G / 5G), the current 4G cell information or the current 5G cell information of the target device is obtained in real time.
[0062] Among them, 4G cell information includes PCI, ECI, and 4G cell whitelist; 5G cell information includes PCI, NCI, and 5G cell whitelist.
[0063] It should be noted that the cell ID includes PCI, ECI, ECGI, NCI, and NCGI. The specific types of IDs are as follows:
[0064] PCI (Physical Cell Identifier), which can be used for 4G and 5G;
[0065] ECI (E-UTRAN Cell Identifier) is a combination of hexadecimal enodebID and decimal cellID, which is converted to decimal, that is, ECI = eNODEB*256 + CELL ID;
[0066] ECGI (E-UTRAN Cell Global Identifier) is used to globally identify a cell in the PLMN. ECGI (not more than 52 bits) = MCC (Mobile Country Code) + MNC (Mobile Network Code) + ECI;
[0067] NCI (NR Cell Identity) The total size of NCI is 36 bits. These 36 bits consist of the gNB identifier (gNBID) and the Cell identifier (CI), NCI = gNB_ID*2^(36-gNB_ID_length)+CI;
[0068] NCGI (NR Cell Global Identifier) is used to globally identify NR cells. NCGI = MCC (Mobile Country Code) + MNC (Mobile Network Code) + NCI.
[0069] Step S32: According to the 4G whitelist, obtain the total number of cells in the 4G whitelist of the target device and the threshold number of cells in the 4G whitelist of the target device; or, according to the 5G whitelist, obtain the total number of cells in the 5G whitelist of the target device and the threshold number of cells in the 5G whitelist of the target device.
[0070] Step S33, determine whether the current cell is in the 4G whitelist; or determine whether the current cell is in the 5G whitelist.
[0071] As an example, the cell number threshold of the 4G / 5G whitelist of the target device may be set to 10.
[0072] Step S4, setting the flag of the target device to an unlock flag.
[0073] In this embodiment, the setting and acquisition of the flag bit are performed by the same subject or the same process. It should be noted that the setting of the flag bit can also be performed by other processes or threads in the device, such as web pages, APPs, TR069, etc., which can interact with the outside world to manage the device.
[0074] Step S5, when the total number of cells is equal to the cell number threshold, the target device is locked according to the locking strategy corresponding to the target device, and when the total number of cells is less than the cell number threshold, the whitelist is updated according to the communication data of the target device.
[0075] As a preferred solution, step S5 includes step S51 to step S56, and each step is specifically as follows:
[0076] Step S51: If the total number of cells is equal to the cell number threshold, it is determined that the current whitelist is full, and the configuration information of the target device is obtained.
[0077] In this embodiment, according to the current network mode (4G / 5G), the whitelist can be a 4G whitelist or a 5G whitelist. If the current network mode is 4G, the whitelist is a 4G whitelist; if the current network mode is 5G, the whitelist is a 5G whitelist.
[0078] Step S52: parse the configuration information to obtain the lock policy corresponding to the target device, and lock the target device according to the lock policy. The configuration information of the target device may be a key-value pair stored in a file, which is not lost when the power is off.
[0079] In this embodiment, the pre-set locking strategies specifically include the following five types:
[0080] ① Send a deactivation command, and the device itself and the connected devices will not be able to access the Internet, but the phone function will still be retained;
[0081] ② Turn off the protocol stack command, the device itself and the connected devices cannot access the Internet, and the phone and SMS functions are disabled;
[0082] ③ Only add firewall rules to prohibit all or part of the connected devices from accessing the Internet, without affecting the phone and SMS functions;
[0083] ④Disable the phone and text messaging functions, but do not affect the Internet access function;
[0084] ⑤ Disable the phone and SMS functions, and add firewall rules to prohibit all downstream devices from accessing the Internet. Only the terminal itself can access the Internet.
[0085] It should be noted that one of the locking strategies can be selected according to customer needs before compiling the firmware version. During the normal operation of the device, the configuration information can be modified through the web page, APP, TR069, etc., and the corresponding process in the device will notify the update of the locking strategy. Use corresponding strategies for different devices. For example, MIFI generally does not have a telephone function. At this time, strategy ③ is adopted, and the customer cannot access the Internet through the USB, network port or WIFI connected to MIFI, which achieves the purpose of locking the device, and at the same time will not hinder the network management of the terminal device (such as upgrading and updating configuration); for example, CPE can adopt strategy ⑤, which can also achieve the above effect.
[0086] Step S53, generating second reporting information, and then reporting the second reporting information to the background management system in the form of a text message.
[0087] The second reported information includes but is not limited to the name of the cell currently being passed through and the information that the current whitelist is full.
[0088] Step S54: If the total number of cells is less than the cell number threshold, it is determined that the current whitelist is not full, and the number of outgoing calls made by the target device in the current cell is obtained.
[0089] Step S55, when the number of outgoing calls is greater than or equal to the first threshold, the current routed cell is added to the whitelist.
[0090] Step S56, when the number of outgoing calls is less than the first threshold, obtain the residence time of the target device in the current cell. If the residence time is greater than the second threshold, add the current cell to the whitelist. If the residence time is less than the second threshold, step S1 is performed to continue to implement security management of the target device.
[0091] For example, the second threshold value may be 30 minutes. Setting a threshold for the dwell time can be used to avoid recording cells as soon as the device is turned on and used normally. For example, when a customer gets the device at a business hall and turns it on and uses it normally, some cells may be added to the whitelist when the customer uses the device on the way home from the business hall because the business hall is far away from home, resulting in the problem that the whitelist is occupied or even full.
[0092] As an embodiment, the whitelist of a device is empty at the beginning, and then the whitelist is full. Then the device can be used in the area where the cells recorded in the whitelist are located, and will be restricted from use when leaving these areas.
[0093] As a preferred solution, after the "adding the current cell to the whitelist" operation of step S55 or step S56 is performed, a text message reporting process is also included, and the process includes steps S01 to S02, and each step is specifically as follows:
[0094] Step S01: Generate first reporting information.
[0095] The first reported information includes but is not limited to the name of the current routed cell added to the whitelist, and the number of outgoing calls or the dwelling time of the current routed cell added to the whitelist.
[0096] Step S02: reporting the first reporting information to the background management system in the form of a text message.
[0097] As a preferred solution, when an embodiment of the present invention provides a device security management method, it also includes an unlocking reporting process, which includes steps S6 to S7, and each step is specifically as follows:
[0098] Step S6: when the flag bit is not the unlock flag bit and the cell lock function of the target device is not in the on state, unlock the target device and generate third reporting information.
[0099] The third reporting information includes, but is not limited to, a flag bit of the target device and a status of a cell lock function of the target device.
[0100] Step S7: Report the third reporting information to the background management system in the form of a text message.
[0101] In this embodiment, after reporting the reporting information to the background management system, the process returns to step S1 to continue to implement security management of the target device. The reporting information mentioned here includes the aforementioned corresponding reporting information, the first reporting information, the second reporting information and the third reporting information.
[0102] Please refer to Figure 2 , is a schematic diagram of the structure of a device security management device provided by an embodiment of the present invention, the system includes an acquisition module M1, an unlocking module M2, a judgment module M3, a setting module M4 and a locking and updating module M5, and the specific details of each module are as follows:
[0103] The acquisition module M1 is used to obtain the flag bit of the target device in real time;
[0104] The unlocking module M2 is used to unlock the target device and clear the flag bit when the flag bit is the unlocking flag bit;
[0105] The judgment module M3 is used to obtain the total number of cells in the whitelist of the target device and the threshold of the number of cells in the whitelist of the target device in real time during the movement of the target device when the flag bit is not the unlock flag bit and the cell lock function of the target device is in the on state, and to judge whether the current passing cell is in the whitelist;
[0106] A setting module M4 is used to set the target device's flag bit to an unlock flag bit if the current cell is in the white list;
[0107] The lock update module M5 is used to lock the target device according to the lock strategy corresponding to the target device if the current cell is not in the white list and the total number of cells is equal to the cell number threshold. When the total number of cells is less than the cell number threshold, the white list is updated according to the communication data of the target device.
[0108] As a preferred solution, the communication data of the target device includes the number of outgoing calls made by the target device in the current cell and the residence time of the target device in the current cell; the lock update module M5 specifically includes a device lock unit 51 and a whitelist update unit 52, and the specific units are as follows:
[0109] The device locking unit 51 is used to determine that the current whitelist is full if the current cell is not in the whitelist and the total number of cells is equal to the cell number threshold, and obtain the configuration information of the target device; parse the configuration information to obtain the locking strategy corresponding to the target device, and lock the target device according to the locking strategy; generate second reporting information, and then report the second reporting information to the background management system in the form of SMS; wherein the second reporting information includes the name of the current cell and the information that the current whitelist is full;
[0110] The whitelist updating unit 52 is used to determine that the current whitelist is not full if the current routed cell is not in the whitelist and the total number of cells is less than the cell number threshold, and obtain the number of outgoing calls made by the target device in the current routed cell; when the number of outgoing calls is greater than or equal to the first threshold, add the current routed cell to the whitelist; when the number of outgoing calls is less than the first threshold, obtain the residence time of the target device in the current routed cell, and if the residence time is greater than the second threshold, add the current routed cell to the whitelist.
[0111] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0112] An embodiment of the present invention further provides a computer-readable storage medium, the computer-readable storage medium including a stored computer program; wherein, when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a device security management method described in embodiment 1.
[0113] An embodiment of the present invention further provides a terminal, comprising a processor, a memory, and a computer program stored in the memory; wherein the computer program can be executed by the processor to implement a device security management method described in Embodiment 1.
[0114] Preferably, the computer program can be divided into one or more modules / units (such as computer program, computer program), one or more modules / units are stored in the memory and executed by the processor to complete the present invention. One or more modules / units can be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal.
[0115] The processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor, or the processor can also be any conventional processor. The processor is the control center of the terminal, and various parts of the terminal are connected using various interfaces and lines.
[0116] The memory mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function, etc., and the data storage area can store related data, etc. In addition, the memory can be a high-speed random access memory, or a non-volatile memory, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, and a flash card (Flash Card), etc., or the memory can also be other volatile solid-state storage devices.
[0117] It should be noted that the above-mentioned terminal may include, but is not limited to, a processor and a memory. Those skilled in the art will understand that the above-mentioned terminal is merely an example and does not constitute a limitation on the terminal. It may include more or fewer components, or a combination of certain components, or different components.
[0118] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0119] The present invention provides a device security management method, device, storage medium and terminal, which can obtain the flag of the target device in real time, so as to timely determine and execute subsequent operations based on the flag of the target device. When the flag of the target device is not the unlock flag and the cell lock function of the target device is in the on state, the total number of cells in the white list of the target device and the cell number threshold of the white list of the target device are obtained in real time during the movement of the target device. If the current cell is in the white list, the flag of the target device is set to the unlock flag, and when the flag of the target device is the unlock flag, the target device is unlocked and the flag is cleared, so as to ensure that the target device can be used normally when passing through the cell in the white list. If the current cell is not in the white list and the total number of cells is equal to the cell number threshold, the target device is locked according to the locking strategy of the target device, ensuring that the target device can only be used normally when passing through the cell in the white list, so as to protect the safety of the device. In addition, if the previous cell is not in the white list and the total number of cells is less than the cell number threshold, the white list is updated according to the communication data of the target device to adjust the application scope of the target device in a targeted manner.
[0120] Furthermore, if the number of outgoing calls reaches or exceeds the first threshold, it means that the target device has a large communication demand in the cell, so it is added to the whitelist; conversely, if the number of outgoing calls is less than the first threshold, the residence time can be further considered to determine whether the cell should be added to the whitelist, thereby achieving dynamic optimization of the whitelist, thereby ensuring that the target device can connect to the appropriate cell during the communication process, providing better communication services and user experience.
[0121] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.
Claims
1. A device safety management method, characterized in that: include: Get the target device's flag in real time; When the flag bit is an unlock flag bit, unlocking the target device and clearing the flag bit; When the flag is not an unlock flag and the cell lock function of the target device is in an on state, during the movement of the target device, the total number of cells in the whitelist of the target device and the threshold of the number of cells in the whitelist of the target device are obtained in real time, and it is determined whether the current cell is in the whitelist; If yes, setting the flag of the target device to an unlock flag; If not, when the total number of cells is equal to the cell number threshold, the target device is locked according to the locking strategy corresponding to the target device, and when the total number of cells is less than the cell number threshold, the whitelist is updated according to the communication data of the target device; The communication data of the target device includes the number of outgoing calls made by the target device in the current cell and the residence time of the target device in the current cell; when the total number of cells is less than the cell number threshold, the whitelist is updated according to the communication data of the target device, specifically: If the total number of cells is less than the cell number threshold, it is determined that the current whitelist is not full, and the number of outgoing calls made by the target device in the current cell is obtained; When the number of outgoing calls is greater than or equal to a first threshold, adding the current routed cell to the whitelist; When the number of outgoing calls is less than a first threshold, the residence time of the target device in the current route cell is obtained, and if the residence time is greater than a second threshold, the current route cell is added to the whitelist.
2. A device safety management method according to claim 1, characterized in that: After adding the current routed cell to the whitelist, the method further includes: Generate first reporting information; wherein the first reporting information includes the name of the current route cell added to the whitelist, and the number of outgoing calls or the dwell time of the current route cell added to the whitelist; The first reporting information is reported to the background management system in the form of a text message.
3. A device safety management method according to claim 1, characterized in that: When the total number of cells is equal to the cell number threshold, locking the target device according to the locking strategy corresponding to the target device is specifically: If the total number of cells is equal to the cell number threshold, determining that the current whitelist is full, and obtaining the configuration information of the target device; Parsing the configuration information to obtain a locking policy corresponding to the target device, and locking the target device according to the locking policy; Generate second reporting information, and then report the second reporting information to the background management system in the form of SMS; The second reported information includes the name of the cell currently passed through and the information that the current whitelist is full.
4. A device safety management method according to claim 1, characterized in that: Also includes: When the flag bit is not an unlock flag bit and the cell lock function of the target device is not in an on state, unlock the target device and generate third reporting information; wherein the third reporting information includes the flag bit of the target device and the state of the cell lock function of the target device; The third reporting information is reported to the background management system in the form of text messages.
5. A device safety management method according to claim 1, characterized in that: The real-time acquisition of the target device's flag bit is specifically as follows: Reading a file from the target device, and if a flag file is found in the target device, determining that the flag of the target device is an unlock flag; Alternatively, the flag file of the target device is read to obtain a key-value pair, and if the value of the key-value pair is 1, it is determined that the flag of the target device is an unlock flag.
6. A device safety management device, characterized in that: include: The acquisition module is used to obtain the flag bit of the target device in real time; An unlocking module, used for unlocking the target device and clearing the flag bit when the flag bit is an unlocking flag bit; A judgment module, configured to, when the flag bit is not an unlock flag bit and the cell lock function of the target device is in an on state, obtain in real time during the movement of the target device the total number of cells in the white list of the target device and the threshold value of the number of cells in the white list of the target device, and judge whether the current passing cell is in the white list; A setting module, used for setting the flag of the target device to an unlock flag if the current cell is in the white list; A locking update module, configured to lock the target device according to the locking strategy corresponding to the target device if the current passed cell is not in the white list and to update the white list according to the communication data of the target device when the total number of cells is equal to the cell number threshold; The communication data of the target device includes the number of outgoing calls made by the target device in the current cell and the residence time of the target device in the current cell. The lock update module specifically includes: The device locking unit is used to determine that the current whitelist is full if the cell currently passed is not in the whitelist and the total number of cells is equal to the cell number threshold, and obtain the configuration information of the target device; parse the configuration information to obtain the locking strategy corresponding to the target device, and lock the target device according to the locking strategy; generate second reporting information, and then report the second reporting information to the background management system in the form of a text message; wherein the second reporting information includes the name of the cell currently passed and the information that the current whitelist is full; The whitelist updating unit is used to determine that the current whitelist is not full if the current routed cell is not in the whitelist and the total number of cells is less than the cell number threshold, and obtain the number of outgoing calls of the target device in the current routed cell; when the number of outgoing calls is greater than or equal to a first threshold, add the current routed cell to the whitelist; when the number of outgoing calls is less than the first threshold, obtain the residence time of the target device in the current routed cell, and if the residence time is greater than a second threshold, add the current routed cell to the whitelist.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program; wherein, when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a device security management method as described in any one of claims 1 to 5.
8. A terminal, characterized in that: It comprises a processor, a memory and a computer program stored in the memory; wherein the computer program can be executed by the processor to implement a device security management method as described in any one of claims 1 to 5.
