SIM card security protection method, device, electronic device and storage medium
By binding the SIM card when it is implanted into the device for the first time, and determining the device changes at each startup, and activating the PIN code verification function, the problem of insufficient security of the SIM card is solved, and effective protection of user information and financial data is achieved.
Patent Information
- Application Number
- CN202411961943.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-04-01
AI Technical Summary
The security of SIM cards is insufficient, especially when the user replaces the device or the SIM card is lost, there are great security risks, which may lead to the leakage of user's personal information and financial data.
By sending a binding request to the operator's data SMS server when the SIM card is implanted for the first time, binding the SIM card, device and user information, and determining whether the device has changed every time the SIM card is powered on. If there is a change, the personal identification code verification function will be activated and the user is required to enter the PIN code to enable the networking function.
It effectively improves the security of SIM cards, prevents criminals from using SIM cards to engage in illegal activities, ensures the security of user information and financial data, and reduces the potential risks caused by the loss of SIM cards.
Smart Images

Figure CN119743761A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of mobile communication technology, and in particular to a SIM card security protection method, device, electronic device and storage medium. Background Art
[0002] With the popularity of smart phones, SIM (Subscriber Identity Module) cards have become a key carrier for user identity authentication and mobile communications. However, the security of SIM cards is often overlooked, especially when users change devices or lose SIM cards, there are great security risks. The PIN (Personal Identification Number) code of a newly purchased SIM card is usually in an invalid state, that is, it can be used without entering a PIN code. Many users lack understanding of this, resulting in potential risks to the user's personal information, mobile payment functions, and financial data related to bank cards and credit cards after the SIM card is lost or stolen. Criminals use SIM cards for illegal activities, which may cause users to suffer huge economic losses.
[0003] In the related art, the security protection of SIM cards is achieved by users reporting the loss or canceling their accounts. However, after a user loses a SIM card and before reporting the loss or canceling their accounts, there is a lack of protection for the SIM card, which may lead to leakage of user information.
[0004] Therefore, how to improve the security of SIM cards and prevent criminals from using SIM cards to conduct illegal activities is a problem that needs to be solved urgently. Summary of the invention
[0005] In order to solve the above technical problem or at least partially solve the above technical problem, the present application provides a SIM card security protection method, device, electronic device and storage medium.
[0006] In a first aspect, the present application provides a SIM card security protection method, the method comprising:
[0007] When a subscriber identity module SIM card is first implanted into the current device, a binding request is sent to the operator's data SMS server to bind the SIM card with the current device and user information;
[0008] When the SIM card is powered on each time, determining whether the implanted device of the SIM card is changed;
[0009] If the implanted device of the SIM card is changed, the personal identification code verification function of the SIM card is activated and a verification prompt message is output; the verification prompt message is used to prompt the user to enter the personal identification code of the SIM card;
[0010] In response to a target personal identification code input by a user, it is determined whether to enable a networking function of the SIM card.
[0011] As an optional implementation of the embodiment of the present invention, after determining whether to restore the normal function of the SIM card in response to the personal identification code input by the user, the method further includes:
[0012] If the personal identification code of the SIM card is successfully verified, the authentication is performed and the device change notification is sent to the operator's data SMS server;
[0013] Receive device change verification SMS messages sent by the operator's data SMS server;
[0014] In response to a verification instruction input by a user for the device change verification SMS, the personal identification code verification function of the SIM card is released.
[0015] As an optional implementation of the embodiment of the present invention, before the subscriber identity module SIM card is first implanted into the current device, the method further includes:
[0016] When the SIM card is powered on, the bound device information of the SIM card is obtained;
[0017] Determine whether the bound device information of the SIM card is empty;
[0018] If the binding device information of the SIM card is empty, it is determined that the SIM card is implanted into the current device for the first time.
[0019] As an optional implementation of the embodiment of the present invention, the sending of a binding request to the operator data SMS server to bind the SIM card with the current device and user information includes:
[0020] Sending a binding request to the operator's data SMS server; the binding request carries the user identity information, the identification information of the SIM card and the current device information;
[0021] Receiving binding status information sent by the operator's data SMS server;
[0022] When the binding status information indicates successful binding, saving the binding status information into the device information list;
[0023] When the binding status information indicates that the binding fails, a prompt message is output; the prompt message is used to prompt the user to re-bind or give up the binding.
[0024] As an optional implementation of the embodiment of the present invention, each time the SIM card is powered on, determining whether the implanted device of the SIM card is changed includes:
[0025] Obtain a list of device information stored in the SIM card;
[0026] When the bound device information of the SIM card is not empty, judging whether the implanted device of the SIM card is changed according to the bound device information of the SIM card and the device information list;
[0027] If the binding information of the SIM card belongs to the device information list, it is determined that the implanted device of the SIM card has not been changed;
[0028] If the binding information of the SIM card does not belong to the device information list, it is determined that the implanted device of the SIM card has been changed.
[0029] As an optional implementation of the embodiment of the present invention, if the implantation device of the SIM card is changed, the method further includes:
[0030] Disable the authority management function of the SIM card; the authority management function of the SIM card includes: modifying the user's personal identification code, accessing the management file of the SIM card, and reading the user area data of the SIM card.
[0031] As an optional implementation of the embodiment of the present invention, the response to the verification instruction input by the user for the device change verification SMS also includes:
[0032] Enable the permission management function of the SIM card.
[0033] In a second aspect, the present application provides a SIM card security protection device, including:
[0034] The device-card binding module is used to send a binding request to the operator's data SMS server when the user identity module SIM card is first implanted into the current device, so as to bind the SIM card with the current device and user information;
[0035] A startup detection module, used to determine whether the implanted device of the SIM card has been changed each time the SIM card is powered on and started;
[0036] A function activation module, used to activate the personal identification code verification function of the SIM card if the implanted device of the SIM card is changed, and output a verification prompt message; the verification prompt message is used to prompt the user to enter the personal identification code of the SIM card;
[0037] The input response module determines whether to enable the networking function of the SIM card in response to a target personal identification code input by a user.
[0038] As an optional implementation of the embodiment of the present invention, the device further includes:
[0039] A change notification module is used to authenticate the network if the personal identification code of the SIM card is successfully verified, and send a device change notification to the operator's data SMS server;
[0040] A change verification module, used to receive device change verification SMS messages sent by the operator's data SMS server;
[0041] The authority recovery module is used to release the personal identification code verification function of the SIM card in response to the verification instruction input by the user for the device change verification SMS.
[0042] As an optional implementation of the embodiment of the present invention, the apparatus further includes a device detection module, which is used to:
[0043] When the SIM card is powered on, the bound device information of the SIM card is obtained;
[0044] Determine whether the bound device information of the SIM card is empty;
[0045] If the binding device information of the SIM card is empty, it is determined that the SIM card is implanted into the current device for the first time.
[0046] As an optional implementation of the embodiment of the present invention, the machine-card binding module is specifically used to:
[0047] Sending a binding request to the operator's data SMS server; the binding request carries the user identity information, the identification information of the SIM card and the current device information;
[0048] Receiving binding status information sent by the operator's data SMS server;
[0049] When the binding status information indicates successful binding, saving the binding status information into the device information list;
[0050] When the binding status information indicates that the binding fails, a prompt message is output; the prompt message is used to prompt the user to re-bind or give up the binding.
[0051] As an optional implementation of the embodiment of the present invention, the startup detection module is specifically used to:
[0052] Obtain a list of device information stored in the SIM card;
[0053] When the bound device information of the SIM card is not empty, judging whether the implanted device of the SIM card is changed according to the bound device information of the SIM card and the device information list;
[0054] If the binding information of the SIM card belongs to the device information list, it is determined that the implanted device of the SIM card has not been changed;
[0055] If the binding information of the SIM card does not belong to the device information list, it is determined that the implanted device of the SIM card has been changed.
[0056] As an optional implementation of the embodiment of the present invention, the device further includes:
[0057] The permission disabling module is used to disable the permission management function of the SIM card; the permission management function of the SIM card includes: modifying the user's personal identification code, accessing the management file of the SIM card, and reading the user area data of the SIM card.
[0058] As an optional implementation of the embodiment of the present invention, the device further includes:
[0059] The permission enabling module is used to enable the permission management function of the SIM card.
[0060] In a third aspect, the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method provided in the first aspect of the present application are implemented.
[0061] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method provided in the first aspect of the present application are implemented.
[0062] Compared with the prior art, the technical solution provided by this application has the following advantages:
[0063] The present application provides a SIM card security protection method. When the SIM card is first implanted into the current device, a binding request is sent to the operator data SMS server to bind the SIM card with the current device and user information. When the SIM card is powered on and started each time, it is determined whether the implanted device of the SIM card has changed. If the implanted device of the SIM card has changed, the personal identification code verification function of the SIM card is activated, and a verification prompt message is output, wherein the verification prompt message is used to prompt the user to enter the personal identification code of the SIM card, and in response to the target personal identification code entered by the user, it is determined whether the networking function of the SIM card is enabled. In the process of firstly implanting the SIM card into the current device and starting it, the device and the SIM card are first bound, and then, in each SIM card startup process, a security check is performed on the device to determine whether the implanted device of the SIM card has changed. If the implanted device of the SIM card has changed, the personal identification code verification function of the SIM card is activated. Only when the user enters the correct personal identification code can the SIM card continue to be used. In this way, even in the case of device replacement or SIM card loss, the user's personal information and financial data can be ensured to be safe, and the SIM card can be effectively prevented from being illegally used, thereby improving the overall security of the SIM card and reducing the potential risks caused by the loss of the SIM card. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0065] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0066] Figure 1 This is an application scenario diagram of a SIM card security protection method in an embodiment;
[0067] Figure 2 A schematic diagram of a flow chart of a SIM card security protection method in one embodiment;
[0068] Figure 3 A schematic diagram of the structure of a SIM card security protection device in one embodiment;
[0069] Figure 4 FIG. 1 is a schematic diagram of the structure of an electronic device in an embodiment. DETAILED DESCRIPTION
[0070] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0071] In the following description, many specific details are set forth to facilitate a full understanding of the present application, but the present application may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only part of the embodiments of the present application, rather than all of the embodiments.
[0072] The present application provides a SIM card security protection method, which can be applied to a SIM card or an ESIM card (Embedded SIM, embedded SIM card). Figure 1 The following is an application scenario diagram of the SIM card security protection method in an embodiment. The user's mobile device 200 interacts with the operator's data SMS server 100 through the SMS channel, and the user's mobile device 200 interacts with the SIM card 300 through the machine-card interface. When the user identification module SIM card 300 is first implanted in the user's mobile device 200, a binding request is sent to the operator's data SMS server 100 to bind the SIM card with the current device and user information; each time the SIM card is powered on, it is determined whether the implanted device of the SIM card has changed; if the implanted device of the SIM card has changed, the personal identification code verification function of the SIM card is activated, and a verification prompt message is output; the verification prompt message is used to prompt the user to enter the personal identification code of the SIM card; in response to the target personal identification code entered by the user, it is determined whether the networking function of the SIM card is enabled.
[0073] In one embodiment, Figure 2 As shown, a SIM card security protection method is provided. This embodiment of the application takes the method applied to a SIM card as an example for explanation, and the method includes the following steps:
[0074] S21. When a subscriber identity module SIM card is first implanted into the current device, a binding request is sent to the operator's data SMS server to bind the SIM card with the current device and user information.
[0075] Among them, the operator data SMS server is the key equipment used by operators to manage and process SMS messages.
[0076] Specifically, when the SIM card is activated on the device for the first time, a binding request is sent to the operator's data SMS server to bind the SIM card with the current device and user information.
[0077] For example, when the SIM card is first activated on the device, a data SMS will be sent to the operator's pre-known number, and the background will bind the device identification number, the SIM card's IMSI (International Mobile Subscriber Identity) or ICCID (Integrated Circuit Card Identification) and the user's identity information to the operator for record. Among them, data SMS (Short Message Service, SMS) is a text message transmission service based on mobile communication networks, which allows users to send and receive short text messages through mobile phones or other mobile devices, and the length of each message is usually limited to 160 characters.
[0078] Optionally, the above step S21 (sending a binding request to the operator data SMS server to bind the SIM card with the current device and user information) can be implemented as follows:
[0079] A. Send a binding request to the operator's data SMS server.
[0080] The binding request carries user identity information, identification information of the SIM card and current device information.
[0081] B. Receive the binding status information sent by the operator's data SMS server.
[0082] C. When the binding status information indicates successful binding, save the binding status information into the device information list.
[0083] D. When the binding status information indicates that the binding fails, output a prompt message.
[0084] The prompt information is used to prompt the user to re-bind or abandon the binding.
[0085] Specifically, a binding request is sent to the operator's data SMS server, which carries the user's identity information, the SIM card's identification information, and the current device information. The operator's data SMS server replies with a text message of the binding result to the SIM card. If the binding is successful, the SIM card saves the current device's bound status information to the device information list. If the binding fails, a prompt message is output to prompt the user to re-bind or give up the binding.
[0086] In some embodiments, before executing the above step S21 (when the subscriber identity module SIM card is first implanted into the current device), the following steps may also be performed:
[0087] When the SIM card is powered on, the bound device information of the SIM card is obtained;
[0088] Determine whether the bound device information of the SIM card is empty;
[0089] If the binding device information of the SIM card is empty, it is determined that the SIM card is implanted into the current device for the first time.
[0090] Specifically, when the SIM card is powered on and initialized, the bound device information in the card is read to determine whether the bound device information of the SIM card is empty. If it is empty, it is determined that the SIM card is implanted in the current device for the first time and has not been bound to the device information of the current device.
[0091] S22. Each time the SIM card is powered on and started, determining whether the implanted device of the SIM card is changed.
[0092] Specifically, when a user starts a device, the SIM card performs a device security check during each startup process to confirm whether the device has been changed.
[0093] Optionally, the above step S22 (determining whether the implanted device of the SIM card is changed each time the SIM card is powered on) can be implemented as follows:
[0094] Obtain a list of device information stored in the SIM card;
[0095] The device information list stores the device information bound to the SIM card.
[0096] When the bound device information of the SIM card is not empty, judging whether the implanted device of the SIM card is changed according to the bound device information of the SIM card and the device information list;
[0097] If the binding information of the SIM card belongs to the device information list, it is determined that the implanted device of the SIM card has not been changed;
[0098] If the binding information of the SIM card does not belong to the device information list, it is determined that the implanted device of the SIM card has been changed.
[0099] Specifically, during each startup process, a device security check is performed to determine whether the current device information is consistent with the device information stored in the device information list of the SIM card. If the binding information of the SIM card belongs to the device information list, it is determined that the implanted device of the SIM card has not changed; otherwise, it indicates that the implanted device of the SIM card has changed.
[0100] S23: If the implanted device of the SIM card is changed, the personal identification code verification function of the SIM card is activated, and verification prompt information is output.
[0101] The verification prompt information is used to prompt the user to input the personal identification code of the SIM card.
[0102] Specifically, if a device change is detected, the SIM card will automatically activate the PIN code. At this time, the user must enter the correct PIN code to continue using the SIM card.
[0103] In some embodiments, if the implanted device of the SIM card is changed, the permission management function of the SIM card is disabled; the permission management function of the SIM card includes: modifying the user's personal identification code, accessing the management file of the SIM card, and reading the user area data of the SIM card.
[0104] Specifically, when the PIN code is activated, the SIM card will enhance the protection of management rights and access, prohibit operations such as file scanning and PIN modification, and lock the user area data.
[0105] S24: In response to the target personal identification code input by the user, determine whether to enable the networking function of the SIM card.
[0106] Specifically, if the PIN code entered by the user is correct, it means that the PIN code verification is successful, and then the SIM card enters the power-on process and performs the network access operation.
[0107] In some embodiments, after executing the above step S24 (determining whether to enable the networking function of the SIM card in response to the target personal identification code input by the user), the following steps may also be executed:
[0108] If the personal identification code of the SIM card is successfully verified, the authentication is performed and the device change notification is sent to the operator's data SMS server;
[0109] Receive device change verification SMS messages sent by the operator's data SMS server;
[0110] In response to a verification instruction input by a user for the device change verification SMS, the personal identification code verification function of the SIM card is released.
[0111] Specifically, after the SIM card is successfully connected to the network, the system will automatically send a device change SMS, asking the user to verify the device change. Only after receiving the user's confirmation reply will the SIM card be unblocked and resume normal function.
[0112] In some embodiments, in response to a verification instruction input by a user for the device change verification SMS, a permission management function of the SIM card is enabled.
[0113] Specifically, once the verification SMS is received, the SIM card PIN code will automatically become invalid, the original SIM card protection restrictions will be restored, and the relevant applications in the SIM card will be allowed to be used normally.
[0114] That is, after the verification is successful, the SIM card connects to the network and sends a device change notification to the operator's data SMS server. After receiving the user's verification SMS, the personal identification code verification function of the SIM card is released and the normal function of the SIM card is restored, further improving the security of the SIM card and preventing criminals from using the SIM card for illegal activities.
[0115] The present application provides a SIM card security protection method. When the SIM card is first implanted into the current device, a binding request is sent to the operator data SMS server to bind the SIM card with the current device and user information. When the SIM card is powered on and started each time, it is determined whether the implanted device of the SIM card has changed. If the implanted device of the SIM card has changed, the personal identification code verification function of the SIM card is activated, and a verification prompt message is output, wherein the verification prompt message is used to prompt the user to enter the personal identification code of the SIM card, and in response to the target personal identification code entered by the user, it is determined whether the networking function of the SIM card is enabled. In the process of firstly implanting the SIM card into the current device and starting it, the device and the SIM card are first bound, and then, in each SIM card startup process, a security check is performed on the device to determine whether the implanted device of the SIM card has changed. If the implanted device of the SIM card has changed, the personal identification code verification function of the SIM card is activated. Only when the user enters the correct personal identification code can the SIM card continue to be used. In this way, even in the case of device replacement or SIM card loss, the user's personal information and financial data can be ensured to be safe, and the SIM card can be effectively prevented from being illegally used, thereby improving the overall security of the SIM card and reducing the potential risks caused by the loss of the SIM card.
[0116] In one embodiment, Figure 3 As shown, a SIM card security protection device 300 is provided, comprising:
[0117] The device-card binding module 310 is used to send a binding request to the operator's data SMS server to bind the SIM card with the current device and user information when the SIM card is first implanted into the current device;
[0118] A startup detection module 320, used to determine whether the implanted device of the SIM card has been changed each time the SIM card is powered on and started;
[0119] The function activation module 330 is used to activate the personal identification code verification function of the SIM card if the implanted device of the SIM card is changed, and output a verification prompt message; the verification prompt message is used to prompt the user to enter the personal identification code of the SIM card;
[0120] The input response module 340 determines whether to enable the networking function of the SIM card in response to the target personal identification code input by the user.
[0121] As an optional implementation of the embodiment of the present invention, the device further includes:
[0122] A change notification module is used to authenticate the network if the personal identification code of the SIM card is successfully verified, and send a device change notification to the operator's data SMS server;
[0123] A change verification module, used to receive device change verification SMS messages sent by the operator's data SMS server;
[0124] The authority recovery module is used to release the personal identification code verification function of the SIM card in response to the verification instruction input by the user for the device change verification SMS.
[0125] As an optional implementation of the embodiment of the present invention, the apparatus further includes a device detection module, which is used to:
[0126] When the SIM card is powered on, the bound device information of the SIM card is obtained;
[0127] Determine whether the bound device information of the SIM card is empty;
[0128] If the binding device information of the SIM card is empty, it is determined that the SIM card is implanted into the current device for the first time.
[0129] As an optional implementation of the embodiment of the present invention, the machine-card binding module is specifically used to:
[0130] Sending a binding request to the operator's data SMS server; the binding request carries the user identity information, the identification information of the SIM card and the current device information;
[0131] Receiving binding status information sent by the operator's data SMS server;
[0132] When the binding status information indicates successful binding, saving the binding status information into the device information list;
[0133] When the binding status information indicates that the binding fails, a prompt message is output; the prompt message is used to prompt the user to re-bind or give up the binding.
[0134] As an optional implementation of the embodiment of the present invention, the startup detection module is specifically used to:
[0135] Obtain a list of device information stored in the SIM card;
[0136] When the bound device information of the SIM card is not empty, judging whether the implanted device of the SIM card is changed according to the bound device information of the SIM card and the device information list;
[0137] If the binding information of the SIM card belongs to the device information list, it is determined that the implanted device of the SIM card has not been changed;
[0138] If the binding information of the SIM card does not belong to the device information list, it is determined that the implanted device of the SIM card has been changed.
[0139] As an optional implementation of the embodiment of the present invention, the device further includes:
[0140] The permission disabling module is used to disable the permission management function of the SIM card; the permission management function of the SIM card includes: modifying the user's personal identification code, accessing the management file of the SIM card, and reading the user area data of the SIM card.
[0141] As an optional implementation of the embodiment of the present invention, the device further includes:
[0142] The permission enabling module is used to enable the permission management function of the SIM card.
[0143] The present application provides a SIM card security protection device. When the SIM card is first implanted into the current device, a binding request is sent to the operator data SMS server to bind the SIM card with the current device and user information. When the SIM card is powered on and started each time, it is determined whether the implanted device of the SIM card has changed. If the implanted device of the SIM card has changed, the personal identification code verification function of the SIM card is activated, and a verification prompt message is output, wherein the verification prompt message is used to prompt the user to enter the personal identification code of the SIM card, and in response to the target personal identification code entered by the user, it is determined whether the networking function of the SIM card is enabled. In the process of firstly binding the device and the SIM card when the SIM card is implanted into the current device and starting it, and then, in each SIM card startup process, a security check is performed on the device to determine whether the implanted device of the SIM card has changed. If the implanted device of the SIM card has changed, the personal identification code verification function of the SIM card is activated. Only when the user enters the correct personal identification code can the SIM card continue to be used. In this way, even in the case of device replacement or SIM card loss, the user's personal information and financial data can be ensured to be safe, and the SIM card can be effectively prevented from being illegally used, thereby improving the overall security of the SIM card and reducing the potential risks caused by the loss of the SIM card.
[0144] For the specific definition of the SIM card security protection device, please refer to the definition of the SIM card security protection method applied to electronic devices in the above text, which will not be repeated here. Each module in the above SIM card security protection device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the electronic device in the form of hardware, or can be stored in the memory in the electronic device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0145] In one embodiment, an electronic device is provided, whose internal structure diagram can be as follows: Figure 4 As shown. The electronic device includes a processor 41 and a memory 42 connected via a system bus. Among them, the processor 41 of the electronic device is used to provide computing and control capabilities. The memory 42 of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. When the computer program is executed by the processor, a SIM card security protection method is implemented. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the housing of the electronic device, or an external keyboard, touchpad or mouse, etc.
[0146] Those skilled in the art will understand that Figure 4 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0147] In one embodiment, the SIM card security protection method provided in the present application can be implemented in the form of a computer program. The computer program can be Figure 4 The memory of the electronic device may store various program modules constituting the mobile terminal of the electronic device, for example, Figure 3 The illustrated machine-card binding module 310, startup detection module 320, function activation module 330 and input response module 340. The computer program composed of various program modules enables the processor to execute the steps of the SIM card security protection method for electronic devices of various embodiments of the present application described in this specification.
[0148] In one embodiment, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0149] When a subscriber identity module SIM card is first implanted into the current device, a binding request is sent to the operator's data SMS server to bind the SIM card with the current device and user information;
[0150] When the SIM card is powered on each time, determining whether the implanted device of the SIM card is changed;
[0151] If the implanted device of the SIM card is changed, the personal identification code verification function of the SIM card is activated and a verification prompt message is output; the verification prompt message is used to prompt the user to enter the personal identification code of the SIM card;
[0152] In response to a target personal identification code input by a user, it is determined whether to enable a networking function of the SIM card.
[0153] As an optional implementation of the embodiment of the present invention, after determining whether to restore the normal function of the SIM card in response to the personal identification code input by the user, the method further includes:
[0154] If the personal identification code of the SIM card is successfully verified, the authentication is performed and the device change notification is sent to the operator's data SMS server;
[0155] Receive device change verification SMS messages sent by the operator's data SMS server;
[0156] In response to a verification instruction input by a user for the device change verification SMS, the personal identification code verification function of the SIM card is released.
[0157] As an optional implementation of the embodiment of the present invention, before the subscriber identity module SIM card is first implanted into the current device, the method further includes:
[0158] When the SIM card is powered on, the bound device information of the SIM card is obtained;
[0159] Determine whether the bound device information of the SIM card is empty;
[0160] If the binding device information of the SIM card is empty, it is determined that the SIM card is implanted into the current device for the first time.
[0161] As an optional implementation of the embodiment of the present invention, the sending of a binding request to the operator data SMS server to bind the SIM card with the current device and user information includes:
[0162] Sending a binding request to the operator's data SMS server; the binding request carries the user identity information, the identification information of the SIM card and the current device information;
[0163] Receiving binding status information sent by the operator's data SMS server;
[0164] When the binding status information indicates successful binding, saving the binding status information into the device information list;
[0165] When the binding status information indicates that the binding fails, a prompt message is output; the prompt message is used to prompt the user to re-bind or give up the binding.
[0166] As an optional implementation of the embodiment of the present invention, each time the SIM card is powered on, determining whether the implanted device of the SIM card is changed includes:
[0167] Obtain a list of device information stored in the SIM card;
[0168] When the bound device information of the SIM card is not empty, judging whether the implanted device of the SIM card is changed according to the bound device information of the SIM card and the device information list;
[0169] If the binding information of the SIM card belongs to the device information list, it is determined that the implanted device of the SIM card has not been changed;
[0170] If the binding information of the SIM card does not belong to the device information list, it is determined that the implanted device of the SIM card has been changed.
[0171] As an optional implementation of the embodiment of the present invention, if the implantation device of the SIM card is changed, the method further includes:
[0172] Disable the authority management function of the SIM card; the authority management function of the SIM card includes: modifying the user's personal identification code, accessing the management file of the SIM card, and reading the user area data of the SIM card.
[0173] As an optional implementation of the embodiment of the present invention, the response to the verification instruction input by the user for the device change verification SMS also includes:
[0174] Enable the permission management function of the SIM card.
[0175] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0176] When a subscriber identity module SIM card is first implanted into the current device, a binding request is sent to the operator's data SMS server to bind the SIM card with the current device and user information;
[0177] When the SIM card is powered on each time, determining whether the implanted device of the SIM card is changed;
[0178] If the implanted device of the SIM card is changed, the personal identification code verification function of the SIM card is activated and a verification prompt message is output; the verification prompt message is used to prompt the user to enter the personal identification code of the SIM card;
[0179] In response to a target personal identification code input by a user, it is determined whether to enable a networking function of the SIM card.
[0180] As an optional implementation of the embodiment of the present invention, after determining whether to restore the normal function of the SIM card in response to the personal identification code input by the user, the method further includes:
[0181] If the personal identification code of the SIM card is successfully verified, the authentication is performed and the device change notification is sent to the operator's data SMS server;
[0182] Receive device change verification SMS messages sent by the operator's data SMS server;
[0183] In response to a verification instruction input by a user for the device change verification SMS, the personal identification code verification function of the SIM card is released.
[0184] As an optional implementation of the embodiment of the present invention, before the subscriber identity module SIM card is first implanted into the current device, the method further includes:
[0185] When the SIM card is powered on, the bound device information of the SIM card is obtained;
[0186] Determine whether the bound device information of the SIM card is empty;
[0187] If the binding device information of the SIM card is empty, it is determined that the SIM card is implanted into the current device for the first time.
[0188] As an optional implementation of the embodiment of the present invention, the sending of a binding request to the operator data SMS server to bind the SIM card with the current device and user information includes:
[0189] Sending a binding request to the operator's data SMS server; the binding request carries the user identity information, the identification information of the SIM card and the current device information;
[0190] Receiving binding status information sent by the operator's data SMS server;
[0191] When the binding status information indicates successful binding, saving the binding status information into the device information list;
[0192] When the binding status information indicates that the binding fails, a prompt message is output; the prompt message is used to prompt the user to re-bind or give up the binding.
[0193] As an optional implementation of the embodiment of the present invention, each time the SIM card is powered on, determining whether the implanted device of the SIM card is changed includes:
[0194] Obtain a list of device information stored in the SIM card;
[0195] When the bound device information of the SIM card is not empty, judging whether the implanted device of the SIM card is changed according to the bound device information of the SIM card and the device information list;
[0196] If the binding information of the SIM card belongs to the device information list, it is determined that the implanted device of the SIM card has not been changed;
[0197] If the binding information of the SIM card does not belong to the device information list, it is determined that the implanted device of the SIM card has been changed.
[0198] As an optional implementation of the embodiment of the present invention, if the implantation device of the SIM card is changed, the method further includes:
[0199] Disable the authority management function of the SIM card; the authority management function of the SIM card includes: modifying the user's personal identification code, accessing the management file of the SIM card, and reading the user area data of the SIM card.
[0200] As an optional implementation of the embodiment of the present invention, the response to the verification instruction input by the user for the device change verification SMS also includes:
[0201] Enable the permission management function of the SIM card.
[0202] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0203] Those of ordinary skill in the art can understand that the implementation of all or part of the process in the example method described above can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the process of the embodiments of the above methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory may include ROM (Read-Only Memory), tape, floppy disk, flash memory or optical storage, etc. Volatile memory may include RAM (Random Access Memory) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as SRAM (Static Random Access Memory) and DRAM (Dynamic Random Access Memory).
[0204] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0205] The above is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features applied for herein.
Claims
1. A SIM card security protection method, characterized in that: The method comprises: When a subscriber identity module SIM card is first implanted into the current device, a binding request is sent to the operator's data SMS server to bind the SIM card with the current device and user information; When the SIM card is powered on each time, determining whether the implanted device of the SIM card is changed; If the implanted device of the SIM card is changed, the personal identification code verification function of the SIM card is activated and a verification prompt message is output; the verification prompt message is used to prompt the user to enter the personal identification code of the SIM card; In response to a target personal identification code input by a user, it is determined whether to enable a networking function of the SIM card.
2. The method according to claim 1, characterized in that After determining whether to restore the normal function of the SIM card in response to the personal identification code input by the user, the method further includes: If the personal identification code of the SIM card is successfully verified, the authentication is performed and the device change notification is sent to the operator's data SMS server; Receive device change verification SMS messages sent by the operator's data SMS server; In response to a verification instruction input by a user for the device change verification SMS, the personal identification code verification function of the SIM card is released.
3. The method according to claim 1, characterized in that Before the subscriber identity module SIM card is first implanted into the current device, the method further includes: When the SIM card is powered on, the bound device information of the SIM card is obtained; Determine whether the bound device information of the SIM card is empty; If the binding device information of the SIM card is empty, it is determined that the SIM card is implanted into the current device for the first time.
4. The method according to claim 1, characterized in that: The sending of a binding request to the operator data SMS server to bind the SIM card with the current device and user information includes: Sending a binding request to the operator's data SMS server; the binding request carries the user identity information, the identification information of the SIM card and the current device information; Receiving binding status information sent by the operator's data SMS server; When the binding status information indicates successful binding, saving the binding status information into the device information list; When the binding status information indicates that the binding fails, a prompt message is output; the prompt message is used to prompt the user to re-bind or give up the binding.
5. The method according to claim 3, characterized in that: The step of determining whether the implanted device of the SIM card is changed each time the SIM card is powered on and started includes: Obtain a list of device information stored in the SIM card; When the bound device information of the SIM card is not empty, judging whether the implanted device of the SIM card is changed according to the bound device information of the SIM card and the device information list; If the binding information of the SIM card belongs to the device information list, it is determined that the implanted device of the SIM card has not been changed; If the binding information of the SIM card does not belong to the device information list, it is determined that the implanted device of the SIM card has been changed.
6. The method according to claim 1, characterized in that If the implantation device of the SIM card is changed, the method further comprises: Disable the authority management function of the SIM card; the authority management function of the SIM card includes: modifying the user's personal identification code, accessing the management file of the SIM card, and reading the user area data of the SIM card.
7. The method according to claim 6, characterized in that The response to the verification instruction input by the user for the device change verification SMS also includes: Enable the permission management function of the SIM card.
8. A SIM card security protection device, characterized in that: include: The device-card binding module is used to send a binding request to the operator's data SMS server when the user identity module SIM card is first implanted into the current device, so as to bind the SIM card with the current device and user information; A startup detection module, used to determine whether the implanted device of the SIM card has been changed each time the SIM card is powered on and started; A function activation module, used to activate the personal identification code verification function of the SIM card and output verification prompt information if the implanted device of the SIM card is changed; The verification prompt information is used to prompt the user to enter the personal identification code of the SIM card; The input response module determines whether to enable the networking function of the SIM card in response to the target personal identification code input by the user.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the SIM card security protection method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the SIM card security protection method according to any one of claims 1 to 7 is implemented.