SIM authorized access method and system

By using the authorization component and SIM card to generate an access application in the terminal device, obtain and verify the authorization token, and activate the SIM card application, the problem of limited ACRF and ACCF file space is solved, and SIM card access to the newly developed mobile app is realized. Improved the number of supported mobile apps and the manageability and controllability of SIM card resources.

CN118803757APending Publication Date: 2024-10-18CHINA MOBILE FINANCIAL TECHNOLOGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311378065.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-23
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The ACRF and ACCF file space in the existing technology is limited, making it difficult for newly developed mobile apps to access SIM card applications and unable to effectively access card applications.

Method used

By using the authorization component and SIM card in the terminal device, the access application is generated and sent to the server, the authorization token is obtained, its validity is verified, and the SIM card application is activated based on the authorization information, so that the business APP can access the SIM card application.

Benefits of technology

Without changing the existing AC access control technology framework and resource consumption of the SIM card, we can maximize the number of supported mobile apps, ensure the manageability and controllability of SIM card resources, and solve the problem of ACRF and ACCF file space bottlenecks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118803757A_ABST
    Figure CN118803757A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of communication, and discloses an SIM authorized access method and system. The method comprises the following steps: in response to an access request signal sent by a service APP, generating an access application according to APP information, and sending the access application to a server; verifying the validity of the authorization token according to the dynamic authorization card application; when the validity verification of the authorization token is successful, obtaining an accessible card application AID according to the authorization token, and activating a corresponding SIM card application in the SIM card according to the accessible card application AID; in response to a service demand signal input by the service APP according to the authorization information, sending the service demand signal to the SIM card; according to the method and the system, the machine card channel is opened and the accessible SIM card application is activated through the authorization component based on the accessible SIM card application AID in the authorization token, so that the supporting quantity of mobile phone apps is increased to the maximum extent, the management and the control of SIM card resources are ensured, and the requirement of the mobile phone apps for reading the content of the SIM card is met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a SIM authorization access method and system. Background Art

[0002] With the development of new technologies and the increase in people's needs for multiple scenarios, there are more and more mobile app products, enriching people's lives. When using mobile apps, sometimes they need to use the data and capabilities of the SIM card. This requirement requires that the mobile app be allowed to access the card application in the SIM card first. The current general solution is to write the hash value of the mobile app into the ACRF (Access Control Rule File is used to store access control rules when making a SIM card. ACRF will save a series of rules. Each rule is for an application on a security evaluation (SE, Security Evaluation) and is identified by the application AID. At the same time, the corresponding ACCF file index path is given) and ACCF (Access Control Conditions File, used to store the access conditions of SE applications, and realize the corresponding relationship with SE applications through ACRF) files to complete the configuration of the access relationship between this app and the SIM card application. In this way, the machine-card communication between the mobile app and the card application can be realized.

[0003] However, due to the inherent process of the mobile terminal reading the SIM card AC rules and the limited space of the operator's card-making AC rules file, the number of configurable mobile app authorizations is also limited, which will make it difficult for newly developed mobile apps to access card applications. In view of this, the prior art is designed that when a mobile app intends to access a SIM card application through the machine-card channel, it applies to the operator for AC access rules, and the operator can remotely update the SIM card AC access-related ACRF and ACCF files through the TSM system to complete the mobile app's authorized access. Summary of the invention

[0004] The main purpose of the present invention is to provide a SIM authorization access method and system, aiming to solve the technical problem in the prior art that the limited ACRF and ACCF file space leads to the inability of newly developed business APPs to effectively access SIM card applications.

[0005] To achieve the above object, the present invention provides a SIM authorization access method, characterized in that the SIM authorization access method is applied to a terminal device, the terminal device includes an authorization component and a SIM card, and the SIM authorization access includes:

[0006] In response to an access request signal sent by the business APP, an access application is generated according to the APP information of the business APP, and the access application is sent to the server, so that the server feeds back an authorization token according to the access application;

[0007] receiving the authorization token, and verifying the validity of the authorization token according to a dynamic authorization card application;

[0008] When the validity verification of the authorization token succeeds, obtaining an accessible card application AID according to the authorization token, and activating a corresponding SIM card application in the SIM card according to the accessible card application AID;

[0009] In response to the service demand signal input by the service APP according to the authorization information, the service demand signal is sent to the SIM card, and the SIM card feeds back the corresponding SIM card application data to the service APP according to the service demand signal.

[0010] Optionally, generating an access application according to the APP information of the business APP includes:

[0011] Fill the APP information to obtain the information to be encrypted, wherein the APP information includes the APP package name, hash value, public key certificate, SIM card unique identification number, and timestamp;

[0012] The information to be encrypted is encoded according to the authorization key to obtain an access application.

[0013] Optionally, the receiving the authorization token and verifying the validity of the authorization token according to a dynamic authorization card application includes:

[0014] Receive the authorization token, the authorization token including authorization information, the authorization information including: authorization type, random number, application timestamp, remaining authorized access times, AID list, SIM identification number and signature;

[0015] Based on the dynamic authorization card application, a key index is obtained according to the authorization type, and an authentication key is obtained according to the key index;

[0016] Dispersing the authentication key according to the authorization type, the timestamp of the application, and the random number to obtain a dispersed key;

[0017] Decrypting the authorization token according to the dispersed key to obtain decrypted data;

[0018] The decrypted data is verified according to the dedicated signature verification public key, and the validity of the authorization token is obtained according to the signature verification result.

[0019] Optionally, before receiving the authorization token and verifying the validity of the authorization token according to the dynamic authorization card application, the method further includes:

[0020] Comparing the application time in the authorization token with the time when the access application was sent;

[0021] If the application time in the authorization token is inconsistent with the time when the access application is sent, the validity of the authorization token is not verified according to the dynamic authorization card application;

[0022] If the application time in the authorization token is consistent with the time when the access application is sent, the dynamic authorization card application is activated, and the validity of the authorization token is verified according to the dynamic authorization card application.

[0023] Optionally, after receiving the authorization token and verifying the validity of the authorization token according to the dynamic authorization card application, the method further includes:

[0024] Compare the remaining authorized access times in the authorization information with the local access records to obtain a comparison result;

[0025] When the comparison result meets the preset requirements, the validity verification of the authorization token is successful;

[0026] If the comparison result does not meet the preset requirements, the validity verification of the authorization token fails.

[0027] Optionally, in response to the service demand signal input by the service APP according to the authorization information, after sending the service demand signal to the SIM card, the method further includes:

[0028] Obtain the control parameters of the business APP and the authorized access AID list, wherein the control parameters include the authorization effective timestamp and the number of accesses;

[0029] Determine whether the service APP has ended the access process according to the authorization validity timestamp and the access count;

[0030] Determine whether the service APP illegally accesses the SIM card application according to the number of accesses;

[0031] When the service APP ends the access process and / or the service APP illegally accesses the SIM card application, the SIM card application access channel is closed.

[0032] In addition, to achieve the above object, the present invention also proposes a SIM authorization access method, which is applied to a server, and the SIM authorization access includes:

[0033] Obtain the access request sent by the authorization component, decrypt the access request, and obtain the APP information;

[0034] Perform validity verification according to the APP information to obtain a verification result;

[0035] When the verification result is qualified, the master key is dispersed according to the APP information to obtain a dispersed master key;

[0036] An initial token is generated according to the dispersed master key and token reference information, the initial token is encrypted to obtain an authorization token, and the authorization token is fed back to the authorization component so that the business APP can access the corresponding SIM card application according to the authorization token based on the authorization component.

[0037] Optionally, performing validity verification according to the APP information to obtain a verification result includes:

[0038] Verify the public key certificate in the APP information to obtain the validity of the authorization component;

[0039] Match the hash value of the business APP in the APP information with the preset hash value whitelist to obtain the validity of the business APP;

[0040] Determine whether the remaining authorized access times in the APP information is zero, and obtain the validity of the access permission;

[0041] The verification result is obtained according to the validity of the authorization component, the validity of the business APP and the validity of the access authority.

[0042] Optionally, when the verification result is qualified, dispersing the master key according to the APP information to obtain the dispersed master key includes:

[0043] When the verification result is qualified, the master key is preliminarily dispersed according to the SIM card identification number in the APP information to obtain an initial master key;

[0044] The master key is secondary dispersed according to the timestamp and random number in the APP information to obtain a dispersed master key;

[0045] The generating of the authorization token according to the dispersed master key and the token reference information comprises:

[0046] Encrypting the token reference information to obtain an initial token;

[0047] The initial token is signed according to the public key to obtain an authorization token.

[0048] In addition, to achieve the above-mentioned purpose, the present invention also proposes a SIM authorization access system, which includes: a terminal device and a server.

[0049] The present invention uses an authorization component to open a machine-card channel based on an authorized SIM card application AID in the authorization, activates the authorized SIM card application, and maximizes the number of mobile phone apps supported and ensures that SIM card resources are manageable and controllable without changing the existing AC access control technical framework and resource consumption of the SIM card, thereby meeting the needs of mobile phone apps for reading SIM card content and solving the problem of ACRF and ACCF file space bottlenecks. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 A schematic diagram of a flow chart of a first embodiment of a SIM authorization access method applied to a terminal device according to the present invention;

[0051] Figure 2 A complete flow chart of an embodiment of a SIM authorization access method applied to a terminal device according to the present invention;

[0052] Figure 3 A schematic flow chart of a second embodiment of a SIM authorization access method applied to a terminal device according to the present invention;

[0053] Figure 4 It is a flow chart of a first embodiment of a SIM authorization access method applied to a server according to the present invention;

[0054] Figure 5 The present invention is a schematic diagram of an APP access application process according to an embodiment of a SIM authorization access method applied to a terminal device.

[0055] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0056] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0057] The embodiment of the present invention provides a SIM authorization access method, referring to Figure 1 , Figure 1 The figure is a flow chart of a first embodiment of a SIM access authorization method of the present invention.

[0058] In this embodiment, the SIM authorization access method is applied to a terminal device, the terminal device includes an authorization component and a SIM card, and the SIM authorization access includes the following steps:

[0059] Step S10: In response to the access request signal sent by the business APP, an access application is generated according to the APP information of the business APP, and the access application is sent to the server, so that the server feeds back an authorization token according to the access application.

[0060] It should be noted that the SIM authorization access method is applied to the terminal device, which includes an authorization component and a SIM card, wherein the authorization component is called the SIM card-specific authorization security service component (SDK for short), wherein the SDK is used to provide the SDK code integrated into the mobile app (needs to be security-hardened and provided in *.jar format). To improve access security, this part is specially designed for security authorization functions, SDK and TSM secure transmission packaging data structure, necessary security algorithms, authorization public key certificates and data transfer keys, and function codes for starting the SIM-specific authorization security service component (SDK) (using ComponentName co=new ComponentName("package name of the application", "Activity path of the application to be redirected') is used to pull up the SIM-specific authorization security service component. It is also used to provide the ability for the machine-card channel to access the SIM card. This security service component has the access rights to read all resources on the SIM card through the machine-card channel. Different from the previous solutions, which use complex ACRF and ACCF association and server update files, this part uses innovative special permission configuration methods to complete the security service component association with all applications in the card (configure the hash value of the security service component to the ACCF file, and access the application as a full SIM card application. Method: ACRF (4300 file) 8200300404024301+ACCF (4301 file) 30160414+hash value). This security authorization component needs to be installed in the mobile terminal.

[0061] It should be further explained that, based on the existing AC access technical solution of the mobile super SIM card, this embodiment can satisfy the needs of various mobile phone apps to access SIM card resources via the machine-card channel.

[0062] In a specific implementation, the complete system architecture for applying the SIM authorization access method may include: a "service app" in a user terminal, a "SIM card-specific authorization security service component (SDK)" installed in the user terminal, an operator TSM server, a dedicated dynamic authorization card application, and a SIM card.

[0063] It is understandable that the business APP can be various application software stored in the terminal device and used by the user. When the "business app" needs to access the SIM card, the business app can send an access request signal to the SDK.

[0064] It should be understood that the business APP can carry its own information in the access request signal it sends, or the SDK can actively obtain relevant information from the business APP when the SDK receives the access information, where the business APP information may include: business app package name, hash value, authorization public key certificate, SIM card unique identification number, timestamp and other information.

[0065] It should be understood that the dedicated authorization SDK adds a timestamp to the authorization application to verify the validity of the authorization token (also known as the authorization token) returned by the operator's TSM server, thereby improving the security of the data transmission link. The security policy between the professional authorization SDK and the operator's server here can refer to the commonly used https (full name: Hypertext Transfer Protocol Secure), which is a HTTP channel with security as its goal. It ensures the security of the transmission process through transmission encryption and identity authentication based on HTTP), and this solution does not impose any restrictions.

[0066] It should be noted that the generating of the access application according to the APP information of the business APP includes:

[0067] Fill the APP information to obtain the information to be encrypted, wherein the APP information includes the APP package name, hash value (also known as hash value), public key certificate, SIM card unique identification number, and timestamp;

[0068] The information to be encrypted is encoded according to the authorization key to obtain an access application.

[0069] Among them, it should be noted that the APP information is filled in according to the security algorithm, format and filling rules; the information to be encrypted is encoded according to the authorization key, and the access application can be obtained by using the packaging key authorized by the operator to package the authorization token application data and send it to the operator's TSM server. There is no special requirement for the unique identification number of the SIM card here, which is only for the operator's TSM server to realize one card and one password management.

[0070] Step S20: receiving the authorization token, and verifying the validity of the authorization token according to the dynamic authorization card application.

[0071] It is understandable that the authorization token can be one-time or long-term, which can be determined according to the authorization type.

[0072] It should be noted that the dynamic authorization card installation can be used to verify the user authorization authentication authorization token.

[0073] It should be noted that verifying the validity of the authorization token includes verifying the validity of the SDK and the business side app; at the same time, when the dedicated dynamic authorization card application verifies the authorization token, the random number will be cached at the same time, and the authorization token will be compared each time it is verified. When it meets the minus 1 each time, it is determined to be valid data. The above uses the most convenient and efficient strategy to ensure that each authorization is one card, one password, and the system side replay attacks are eliminated, improving and strengthening security.

[0074] Step S30: when the validity verification of the authorization token succeeds, obtaining an accessible card application AID according to the authorization token, and activating a corresponding SIM card application in the SIM card according to the accessible card application AID.

[0075] It is understandable that when the validity verification of the authorization token is successful, the "dedicated authorization SDK" can use the authorized accessible SIM card application AID to open the machine-card channel through openLogicalChannel(byte[]aid) to activate this authorized accessible SIM card application.

[0076] It should be noted that the dedicated authorization SDK is responsible for activating SIM card applications, ensuring that business apps can only access authorized SIM AID applications through authorization, thereby preventing business apps from illegally accessing other applications in the SIM card and further improving the security of SIM card assets.

[0077] It should be emphasized that when the business-side app starts business data, it must pass the AID parameter to the dedicated authorization SDK. If the authorization SDK determines that the AID is in the authorization list, it will perform the SIM card access operation, otherwise the process will be terminated and the channel will be closed for exception handling.

[0078] Step S40: In response to the service demand signal input by the service APP according to the authorization information, the service demand signal is sent to the SIM card, and the SIM card feeds back the corresponding SIM card application data to the service APP according to the service demand signal.

[0079] It is understandable that after the access application of the business APP is verified, the "business app" sends the business instruction to the SIM card, and the SIM card returns the data corresponding to the business instruction to the "business app".

[0080] It should be understood that the service demand signal may be a signal sent by the user based on the service APP to access the SIM card application, and the service demand signal may include data of the SIM card application required by the user.

[0081] It should be noted that according to the customized requirements of the service terminal service app, application service instructions such as digital identity are packaged and sent to the dedicated authorization SDK, and then sent to the SIM card through the secure channel opened in step 4, so as to complete the reading of SIM card application data and other related operations. If the currently authorized SIM AID that can be accessed is the operator's own application, then the service instructions will be organized and sent to the SIM card by the "dedicated authorization SDK" without the need for organization by the service app, which is more convenient for the service side to connect.

[0082] It should be noted that, in response to the service demand signal input by the service APP according to the authorization information, after sending the service demand signal to the SIM card, the method further includes:

[0083] Obtain control parameters and authorized access AID list of the business APP, wherein the control parameters include an authorization valid timestamp and an access count; determine whether the business APP has ended the access process based on the authorization valid timestamp and the access count; determine whether the business APP has illegally accessed the SIM card application based on the access count; close the SIM card application access channel when the business APP has ended the access process and / or the business APP has illegally accessed the SIM card application.

[0084] It should be noted that by adding control parameters such as the authorization valid timestamp, the number of accesses, and the authorized access AID list parameters, the security control on the SDK side is improved. If the authorization time is reached or the number of accesses is reached or an illegal AID is transmitted on the business side, any of the conditions is met, the "dedicated authorization SDK" closes the channel through closeChannels and ends the SIM card access process.

[0085] To ensure the access efficiency of both the phone and the SIM card, both the mobile phone and the SIM card have upper limits on the size of the ACRF and ACCF files related to the AC rules. Test results show that even if the SIM card AC file space is increased to expand the capacity of the authorized mobile phone app, many existing mobile phones still control the AC file size and will not read the content of the SIM card capacity increase. This embodiment maximizes the number of mobile phone apps supported, ensures the manageability and controllability of SIM card resources, and is compatible with existing network SIM cards without changing the existing AC access control technology framework and resource consumption of the SIM card.

[0086] In a specific implementation, based on the complete system architecture of the SIM authorization access method, the complete communication flow chart of the SIM authorization access can be referred to Figure 2 .

[0087] This embodiment uses an authorization component to open the machine-card channel based on the authorized accessible SIM card application AID in the authorization, activates this authorized accessible SIM card application, and maximizes the number of mobile phone apps supported and ensures that SIM card resources are manageable and controllable without changing the existing AC access control technical framework and resource consumption of the SIM card. It meets the needs of mobile phone apps for reading SIM card content and solves the problem of ACRF and ACCF file space bottlenecks.

[0088] refer to Figure 3 , Figure 3 It is a flow chart of a second embodiment of a SIM access authorization method of the present invention.

[0089] Based on the first embodiment, the SIM access authorization method of this embodiment includes, in step S20:

[0090] Step S21: receiving the authorization token, wherein the authorization token includes authorization information, and the authorization information includes: authorization type, random number, application timestamp, remaining authorized access times, AID list, SIM identification number and signature.

[0091] It is understandable that the application timestamp can be the time recorded by the business APP when applying for access, the remaining authorized access times can be understood as the number of times the business APP can access the SIM application, and the AID list can be understood as an information list of accessible SIM card applications.

[0092] It should be noted that SIM card applications are managed by AID, and relevant AID information is sent to the SIM card through the SELECT instruction to complete the activation operation of relevant applications on the SIM card. Application deactivation is completed through general methods such as card resetting and closing the current logical channel.

[0093] It is understandable that the authorization token will be presented as a string of ciphertext data, and the contents involved in the calculation include the business app authorized AID list, authorization timestamp, random number, padding data, etc.

[0094] It should be noted that, before receiving the authorization token and verifying the validity of the authorization token according to the dynamic authorization card application, it also includes: comparing the application time in the authorization token with the time when the access application is sent; if the application time in the authorization token is inconsistent with the time when the access application is sent, the validity of the authorization token is not verified according to the dynamic authorization card application; if the application time in the authorization token is consistent with the time when the access application is sent, the dynamic authorization card application is activated, and the validity of the authorization token is verified according to the dynamic authorization card application.

[0095] In the specific implementation, after the dedicated authorization SDK receives the authorization token returned by the operator's TSM server, it adds a security judgment to determine whether the timestamp at the time of application is consistent with the data when the application was sent. If they are consistent, the dedicated authorization card application is activated to complete the authorization token authentication, otherwise an exception is handled.

[0096] It is worth mentioning that it provides authorization token format data objects, multiple security controls to improve security, supports authorized AID list function, and only requires offline application when business authorization is required. It can be used dynamically online, which is convenient and efficient, and can solve the complex and frequent file operations that commonly used solutions achieve the same operations.

[0097] Step S22: obtaining a key index according to the authorization type based on the dynamic authorization card application, and obtaining an authentication key according to the key index.

[0098] It is understandable that the authorization type can be understood as the time that the business APP applies to access the SIM card application, which can be temporary, short-term (one day), long-term (one week), etc.

[0099] It is understandable that different authorization requirements correspond to different keys, and the key corresponding to the authorization type can be found according to different key indexes to encrypt the information. Thus, the validity period of the authorization token can be known during the decryption process.

[0100] It is further explained that during token authentication, the corresponding industry authentication key can be selected according to the authorization type parameter.

[0101] It should be noted that the operator pre-installs the authentication key (symmetric key related to authorization token calculation and public key for authorization token verification, etc.) according to the unique identification code of the SIM card. To improve security, this solution designs a key hierarchical management method. By pre-fabricating multiple groups of industry keys, it can realize the customization of dedicated authentication keys according to different industries.

[0102] Step S23: Disperse the authentication key according to the authorization type, application timestamp and random number to obtain a dispersed key.

[0103] It is understandable that dispersing the secret key can be understood as the secret key being a string of characters or a string of data. At the same time, the authorization type, application timestamp and random number can also be a string of data. The data corresponding to the authorization type, application timestamp and random number are interspersed in the authentication key according to certain rules to disperse the authentication key.

[0104] Step S24: decrypt the authorization token according to the dispersed key to obtain decrypted data.

[0105] It should be noted that when the operator's TSM server generates an authorization token, it can be encrypted through SM4, and then the operator's dedicated authorization token is used to issue a public key for SM2 signature.

[0106] It is understandable that the authorization token is decrypted according to the decryption method of SM4 and SM2 to obtain the decrypted data.

[0107] Step S25: verify the decrypted data according to the dedicated signature verification public key, and obtain the validity of the authorization token according to the signature verification result.

[0108] It is understandable that the dedicated signature verification public key can be a verification public key pre-set with the signature, through which the signature can be verified whether it is correct and valid; after the signature verification is successful, it proves that the authorization token is safe and valid, and the decrypted data can be used.

[0109] It should be further explained that, after receiving the authorization token and verifying the validity of the authorization token according to the dynamic authorization card application, the method further includes:

[0110] The remaining authorized access times in the authorization information are compared with the local access records to obtain a comparison result; when the comparison result meets the preset requirements, the validity verification of the authorization token is successful; if the comparison result does not meet the preset requirements, the validity verification of the authorization token fails.

[0111] In the specific implementation, during the verification of the authorization token, in addition to the general data verification, the remaining authorized access times in the current authorization token are compared with the local cache data. When the minus 1 operation is met, it is considered to be valid data, thereby safely preventing and controlling replay attacks.

[0112] Among them, when the business app is first connected, the business side can adopt an offline or online mode to submit a connection application to the operator's TSM server. The operator's TSM server will review the application materials submitted by the business side (including app package name + hash + access list AID + enterprise information, etc.), and return the authorization public key certificate and security reinforcement SDK connection code (including the encryption (signature) data format of the operator's TSM server's secure communication, padding algorithm, related security rules, TSM server packaging key and other information) to the business side. The business side app completes code integration and releases the app on the shelf. At the same time, the operator's TSM server completes the whitelist entry of the relevant parameters submitted when the app was applied. Its authorized access times and AID list parameters are the key parameters of this proposal.

[0113] In the specific implementation, the number of authorized accesses is responsible for controlling the number of times the TSM server authorizes the authorization token. Each time the server calculates the authorization token, it subtracts 1. When it reaches 0, the service is no longer provided. At this time, the user is prompted to reapply offline. This innovation can effectively and securely control the authorized business apps that are launched by third parties and access the SIM card without the authorization of the operator, thereby strengthening and improving the technical loopholes in the SIM card AC access rules.

[0114] In the specific implementation, the authorized AID list function is supported. At present, the commonly used solution is that only one business-side app can access one application AID. If multiple AIDs are accessed, the responsible AC rule configuration is required, which requires complex file update operations. This solution only requires offline application when the business is authorized, and can be dynamically updated online, which is convenient and efficient. The flowchart of the business APP access application can be referred to Figure 5 .

[0115] This embodiment is implemented through the ACRF and ACCF resources of the existing SIM card. On the one hand, it can ensure support for all existing mobile phone terminals and SIM card support for all existing communication operators. On the other hand, it can expand the authorization level of the service app without increasing the consumption of SIM card resources, and at the same time improve the security of SIM digital assets. After the mobile service app is first connected to the dedicated authorization SDK designed by this proposal, each time the SIM card application is accessed, the SIM card application is activated through a one-time authorization token. Therefore, it is technically compatible with mobile service apps. At the same time, in the technical implementation of this proposal, there are few changes on the business side, and no changes are required on the terminal side. Through the service provided by the operator, it is guaranteed that the service app accesses the SIM card resources through dynamic authorization. More importantly, this proposal proposes a dedicated dynamic authorization card application through innovation, which can not only complete dynamic authorization, but also perform security management and control on the security of authorized service apps, effectively solving the problem that the authorized service app is pulled up by a third party and the SIM card machine card access capability is released without the authorization of the operator, and the technical loopholes in the SIM card AC access rules are strengthened and improved.

[0116] The embodiment of the present invention provides a SIM authorization access method, the SIM authorization access method is applied to a server, referring to Figure 4 , Figure 4 This is a flow chart of a first embodiment of a SIM authorization access method of the present invention, wherein the SIM authorization access comprises the following steps:

[0117] Step S10': obtain the access application sent by the authorization component, decrypt the access application, and obtain APP information.

[0118] It is understandable that the encryption algorithm of the access application is to encrypt and package the access application with a packaging key authorized by the operator, and the access application can be decrypted according to the decryption method corresponding to the encryption packaging algorithm.

[0119] It should be noted that the server can be called "operator TSM server", which is responsible for business app docking applications: receiving application applications from application app owners for SIM card dedicated authorization security service component (SDK) docking applications offline or online, and sending parameters such as app package name + hash value + AID list to be accessed (1 or more AIDs) to the operator TSM server.

[0120] It should be further explained that the operator's TSM server issues a public key certificate for docking security authentication, provides the SDK code for integration with the business party's app (the format and security requirements are as described above), and enters the relevant application parameters app package name + hash value + list of AIDs to be accessed (1 or more AIDs) and other information into the whitelist. It can also be used to calculate the authorization authentication authorization token when the business app is running. To improve authorization security, the key used for authorization token calculation is one card at a time, which effectively solves attacks such as data replay. The encryption algorithm selects a combination of SM4 and SM2.

[0121] Step S20': Perform validity verification according to the APP information to obtain a verification result.

[0122] It should be noted that the validity verification based on the APP information may include the validity verification of the authorization component, the validity verification of the business APP, and the validity verification of the access rights.

[0123] It should be noted that the validity verification of the authorization component can be to verify the public key certificate in the APP information; the validity of the business APP can be obtained by matching the hash value of the business APP in the APP information with the preset hash value whitelist. If the match is successful, it is valid; determine whether the remaining authorized access times in the APP information is zero, and obtain the validity of the access right. If it is not zero, the access right is valid;

[0124] The verification result is based on the validity of the authorization component, the validity of the business APP and the validity of the access authority. In simple terms, it can be understood that the authorization component is valid, the business APP is valid and the access authority is valid.

[0125] In the specific implementation, double-layer identity authentication and multiple security controls are implemented. After the operator's TSM server completes the decryption of the packaged data, it first verifies the public key certificate and completes the SDK validity verification. Secondly, it completes the validity verification of the business side app by comparing the app and hash whitelist. Finally, it determines whether the authorized usage counter is valid.

[0126] Step S30': when the verification result is qualified, the master key is dispersed according to the APP information to obtain a dispersed master key.

[0127] It should be noted that the verification result is comprehensively based on the validity of the authorization component, the validity of the business APP and the validity of the access authority. In simple terms, it can be understood that when the authorization component is valid, the business APP is valid and the access authority is valid, the verification result is qualified. If any one of them is invalid, the verification result is unqualified.

[0128] It should be noted that when the verification result is qualified, the master key is dispersed according to the APP information to obtain the dispersed master key. It can be that when the verification result is qualified, the master key is preliminarily dispersed according to the SIM card identification number in the APP information to obtain the initial master key; the master key is secondary dispersed according to the timestamp and random number in the APP information to obtain the dispersed master key.

[0129] It is understandable that when the dedicated dynamic authorization card application verifies the authorization token, it will cache the random number in the APP information at the same time, and compare the random number each time the authorization token is verified. When it meets the condition of minus 1 each time, it is determined to be valid data.

[0130] The token reference information includes: authorization type, remaining authorized access times, application timestamp, authorization timestamp, list of AIDs of authorized SIM card applications, number of access instructions, and other information.

[0131] Step S40': Generate an initial token according to the dispersed master key and token reference information, encrypt the initial token to obtain an authorization token, and feed the authorization token back to the authorization component so that the service APP can access the corresponding SIM card application based on the authorization token.

[0132] It should be noted that the generation of the authorization token according to the dispersed master key and token reference information includes: encrypting the token reference information to obtain an initial token; and signing the initial token according to the public key to obtain an authorization token.

[0133] The operator's TSM server encrypts the generated one-time authorization token with SM4, then uses the operator's dedicated authorization token issuance public key to perform SM2 signature, and returns all data as an authorization token to the dedicated authorization SDK. The authorization token data format is shown in the following table:

[0134]

[0135] It should be noted that in order to improve the security of SIM card assets, each time a business app accesses SIM resources through the machine-card channel, it is necessary to apply for an access authorization token. The operator's TSM server will sign the authorization type, application timestamp, authorization validity timestamp, random number, etc., and then encrypt the signature data to obtain an access authorization token.

[0136] In the specific implementation summary, the one-time authorization token adds a valid timestamp to ensure that the business app accesses the SIM card within the valid time, preventing illegal long-term occupation of the SIM card logical channel and affecting the execution of other applications. This proposal can be dynamically configured according to the terminal model through the valid timestamp to achieve personalized processing and improve compatibility. The traditional method solves the SIM card logical channel occupation problem by statically configuring the timeout time parameter at the software layer. The static parameter is only an empirical value, which is not conducive to terminal compatibility. This embodiment does not limit the operator TSM server and SDK security interaction format.

[0137] It is worth noting that the operator TSM server in this embodiment processes the business side app application, whitelist entry, and generates a one-time authorization token and sends it to the "dedicated authorization SDK" so that the "dedicated authorization SDK" activates the authorization.

[0138] It should be further explained that the authorization token format data object is designed, and data items such as authorization type, random number and authorized access AID list are included.

[0139] This embodiment uses double-layer identity authentication to effectively and securely control the number of times the business app accesses the SIM card, solves the technical loopholes in the SIM card AC access rules, ensures that each authorization is one card and one password, eliminates system-focused attacks, and improves and strengthens security. At the same time, a dedicated dynamic authorization card application is responsible for authorization token verification, with multi-level key management and key distribution security to ensure the customizability, security, scalability and versatility of authorization token verification. This embodiment uses the authorization token format data object, multiple security controls to improve security, and supports the authorization AID list function. It only requires offline application for business authorization, and can be used dynamically online, which is convenient and efficient.

[0140] In addition, an embodiment of the present invention further provides a SIM authorization access system, which includes: a terminal device and a server.

[0141] It should be understood that the above is only an example and does not constitute any limitation on the technical solution of the present invention. In specific applications, technicians in this field can make settings as needed, and the present invention does not limit this.

[0142] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of them according to actual needs to achieve the purpose of the present embodiment, and no limitation is made here.

[0143] In addition, 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 system 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 system. 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 system including the element.

[0144] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0145] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0146] It should be understood that, although the various steps in the flowchart in the embodiment of the present application are displayed in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and it can be performed in other orders. Moreover, at least a portion of the steps in the figure may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and their execution order is not necessarily performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0147] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A SIM authorization access method, characterized in that: The SIM authorization access method is applied to a terminal device, the terminal device includes an authorization component and a SIM card, and the SIM authorization access includes: In response to an access request signal sent by the business APP, an access application is generated according to the APP information of the business APP, and the access application is sent to the server, so that the server feeds back an authorization token according to the access application; receiving the authorization token, and verifying the validity of the authorization token according to a dynamic authorization card application; When the validity verification of the authorization token succeeds, obtaining an accessible card application AID according to the authorization token, and activating a corresponding SIM card application in the SIM card according to the accessible card application AID; In response to the service demand signal input by the service APP according to the authorization information, the service demand signal is sent to the SIM card, and the SIM card feeds back the corresponding SIM card application data to the service APP according to the service demand signal.

2. The SIM authorization access method according to claim 1, characterized in that: The generating an access application according to the APP information of the business APP includes: Fill the APP information to obtain the information to be encrypted, wherein the APP information includes the APP package name, hash value, public key certificate, SIM card unique identification number, and timestamp; The information to be encrypted is encoded according to the authorization key to obtain an access application.

3. The SIM authorization access method according to claim 1, characterized in that: The receiving the authorization token and verifying the validity of the authorization token according to the dynamic authorization card application includes: Receive the authorization token, the authorization token including authorization information, the authorization information including: authorization type, random number, application timestamp, remaining authorized access times, AID list, SIM identification number and signature; Based on the dynamic authorization card application, a key index is obtained according to the authorization type, and an authentication key is obtained according to the key index; Dispersing the authentication key according to the authorization type, the timestamp of the application, and the random number to obtain a dispersed key; Decrypting the authorization token according to the dispersed key to obtain decrypted data; The decrypted data is verified according to the dedicated signature verification public key, and the validity of the authorization token is obtained according to the signature verification result.

4. The SIM authorization access method according to claim 3, characterized in that: Before receiving the authorization token and verifying the validity of the authorization token according to the dynamic authorization card application, the method further includes: Comparing the application time in the authorization token with the time when the access application was sent; If the application time in the authorization token is inconsistent with the time when the access application is sent, the validity of the authorization token is not verified according to the dynamic authorization card application; If the application time in the authorization token is consistent with the time when the access application is sent, the dynamic authorization card application is activated, and the validity of the authorization token is verified according to the dynamic authorization card application.

5. The SIM authorization access method according to claim 3, characterized in that: After receiving the authorization token and verifying the validity of the authorization token according to the dynamic authorization card application, the method further includes: Compare the remaining authorized access times in the authorization information with the local access records to obtain a comparison result; When the comparison result meets the preset requirements, the validity verification of the authorization token is successful; If the comparison result does not meet the preset requirements, the validity verification of the authorization token fails.

6. The SIM authorization access method according to claim 1, characterized in that: After the service demand signal is sent to the SIM card in response to the service demand signal input by the service APP according to the authorization information, the method further includes: Obtain the control parameters of the business APP and the authorized access AID list, wherein the control parameters include the authorization effective timestamp and the number of accesses; Determine whether the service APP has ended the access process according to the authorization validity timestamp and the access count; Determine whether the service APP illegally accesses the SIM card application according to the number of accesses; When the service APP ends the access process and / or the service APP illegally accesses the SIM card application, the SIM card application access channel is closed.

7. A SIM authorization access method, characterized in that: The SIM authorization access method is applied to a server, and the SIM authorization access includes: Obtain the access request sent by the authorization component, decrypt the access request, and obtain the APP information; Perform validity verification according to the APP information to obtain a verification result; When the verification result is qualified, the master key is dispersed according to the APP information to obtain a dispersed master key; An initial token is generated according to the dispersed master key and token reference information, the initial token is encrypted to obtain an authorization token, and the authorization token is fed back to the authorization component so that the business APP can access the corresponding SIM card application according to the authorization token based on the authorization component.

8. The SIM authorization access method according to claim 7, characterized in that: The validity verification is performed according to the APP information to obtain a verification result, including: Verify the public key certificate in the APP information to obtain the validity of the authorization component; Match the hash value of the business APP in the APP information with the preset hash value whitelist to obtain the validity of the business APP; Determine whether the remaining authorized access times in the APP information is zero, and obtain the validity of the access permission; The verification result is obtained according to the validity of the authorization component, the validity of the business APP and the validity of the access authority.

9. The SIM authorization access method according to claim 7, characterized in that: When the verification result is qualified, the master key is dispersed according to the APP information to obtain the dispersed master key, including: When the verification result is qualified, the master key is preliminarily dispersed according to the SIM card identification number in the APP information to obtain an initial master key; The master key is secondary dispersed according to the timestamp and random number in the APP information to obtain a dispersed master key; The generating of the authorization token according to the dispersed master key and the token reference information comprises: Encrypting the token reference information to obtain an initial token; The initial token is signed according to the public key to obtain an authorization token.

10. A SIM authorization access system, characterized in that: The SIM authorization access system comprises: a terminal device and a server, the terminal device applies the SIM authorization access method according to any one of claims 1 to 6, and the server applies the SIM authorization access method according to any one of claims 7 to 9.