# US 2023/0056432 A1 · Service communication method, system, apparatus, electronic device, and storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0056432 A1
- Document ID: US20230056432A1
- Status: Published application
- Kind: A1
- Application number: 17/974,067
- Filed: 2022-10-26
- Published: 2023-02-23
- Earliest claimed: 2020-11-05
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Yueting WU; Yuebo LIU; Dongyun CAI; Qilin ZHU
- Web page: https://patentgrep.com/patent/US20230056432A1

## CPC

- H04L 9/3247: {involving digital signatures}
- H04L 9/0822: {using key encryption key}
- H04L 9/0825: {using asymmetric-key encryption or public key infrastructure [PKI], e.g. key signature or public key certificates}
- H04L 9/088: {Usage controlling of secret information, e.g. techniques for restricting cryptographic keys to pre-authorized uses, different access levels, validity of crypto-period, different key- or password length, or different strong and weak cryptographic algorithms (network architectures or network communication protocols for using time-dependent keys in a packet data network H04L63/068)}
- H04L 9/14: using a plurality of keys or algorithms
- H04L 9/3236: {using cryptographic hash functions}
- H04L 9/3268: {using certificate validation, registration, distribution or revocation, e.g. certificate revocation list [CRL]}
- H04L 9/40: Network security protocols
- H04L 63/045: {wherein the sending and receiving network entities apply hybrid encryption, i.e. combination of symmetric and asymmetric encryption (cryptographic mechanisms or cryptographic arrangements using a plurality of keys or algorithms H04L9/14)}
- H04L 63/0823: {using certificates (cryptographic mechanisms or cryptographic arrangements for entity authentication involving certificates H04L9/3263)}
- H04L 63/12: {Applying verification of the received information (cryptographic mechanisms or cryptographic arrangements for data integrity or data verification H04L9/32)}
- H04W 12/0431: Key distribution or pre-distribution; Key agreement
- H04W 12/069: using certificates or pre-shared keys
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)

## Abstract

A service communication method, system, apparatus, electronic device, computer-readable storage medium, and computer program product; the method includes: receiving an authentication request sent by a service access process, performing synchronous verification processing on the service access process, and performing asynchronous verification processing on the service access process; determining service key information allocated for the service access process according to a synchronous verification processing result of the service access process, sending the service key information to the service access process to perform encrypted service communication with the service access process based on the service key information, and controlling a communication connection used for bearing the encrypted service communication with the service access process according to an asynchronous verification processing result of the service access process.

## Claims

### Claim 1

A service communication method, executed by an electronic device, the method including:
receiving an authentication request sent by a service access process;
performing synchronous verification processing on the service access process, and performing asynchronous verification processing on the service access process;
determining service key information allocated for the service access process according to a synchronous verification processing result of the service access process;
sending the service key information to the service access process for encrypted service communication with the service access process based on the service key information; and
controlling a communication connection used for bearing the encrypted service communication with the service access process according to an asynchronous verification processing result of the service access process.

### Claim 2 (depends on 1)

The service communication method according to claim 1, wherein the performing synchronous verification processing comprises:
taking a matching result between a process path of the service access process and a set security directory as a first verification processing result;
verifying signature information about the service access process to obtain a second verification processing result; and
determining the synchronous verification processing result of the service access process according to the first verification processing result and the second verification processing result.

### Claim 3 (depends on 2)

The service communication method according to claim 2, wherein the verifying signature information comprises:
determining the second verification processing result according to at least one of a result of whether the signature information comprises a digital signature, a validity verification processing result of the digital signature, a matching result between a signer and a signer blacklist of the digital signature, and a matching result between certificate information in the signature information and a certificate information blacklist.

### Claim 4 (depends on 3)

The service communication method according to claim 3, wherein the method further comprises:
determining a digital signature in the signature information, and a decryption key corresponding to the digital signature;
decrypting the digital signature according to the decryption key to obtain a first hash result of a process file of the service access process;
performing hash processing on the process file of the service access process to obtain a second hash result; and
taking a matching result between the first hash result and the second hash result as the validity verification processing result of the digital signature.

### Claim 5 (depends on 1)

The service communication method according to claim 1, wherein the authentication request comprises a public key of an asymmetric key pair generated by the service access process; wherein the asymmetric key pair comprises the public key and a private key corresponding to the public key;
the sending the service key information to the service access process comprises:
encrypting the service key information according to the public key; and
sending the encrypted service key information to the service access process, so that the service access process decrypts the encrypted service key information according to the private key.

### Claim 6 (depends on 5)

The service communication method according to claim 5, wherein the service key information comprises a key identifier and a symmetric key; and
upon sending the encrypted service key information to the service access process, the method further comprises:
receiving a service request sent by the service access process; wherein the service request comprises the key identifier and request data encrypted using the symmetric key;
querying a symmetric key corresponding to the key identifier in the service request in the distributed symmetric key;
decrypting the encrypted request data in the service request according to the queried symmetric key;
performing response processing on the request data obtained by the decryption to obtain response data; and
encrypting the response data according to the public key, and sending the encrypted response data to the service access process, so that the service access process decrypts the encrypted response data according to the private key.

### Claim 7 (depends on 6)

The service communication method according to claim 6, wherein the service request further comprises a time stamp and first checking information; wherein the first checking information is obtained by the service access process performing hash processing on the key identifier, the symmetric key, the time stamp, and request data encrypted using the symmetric key; and
the performing response processing comprises:
performing hash processing on the key identifier, the queried symmetric key, the time stamp, and the encrypted request data to obtain second checking information; and
performing response processing on the request data obtained by the decryption in a case that a matching result between the first checking information and the second checking information is matching success.

### Claim 8 (depends on 6)

The service communication method according to claim 6, wherein upon the querying a symmetric key, the method further comprises:
sending expired information to the service access process in a case that a usage parameter of the queried symmetric key satisfies an expired parameter condition, so that the service access process resends an authentication request in response to receiving the expired information;
wherein the usage parameter comprises at least one of a usage number and a usage duration.

### Claim 9 (depends on 1)

The service communication method according to claim 1, wherein the authentication request comprises an authentication request address; and
the determining service key information allocated for the service access process comprises:
executing any of the following processing:
allocating different service key information with respect to authentication request addresses sent by the different service access processes, and allocating different service key information with respect to different authentication request addresses sent by the same service access process;
allocating different service key information with respect to authentication request addresses sent by the different service access processes, and allocating same service key information with respect to different authentication request addresses sent by the same service access process; and
allocating same service key information with respect to authentication request addresses sent by the different service access processes, and allocating same service key information with respect to different authentication request addresses sent by the same service access process.

### Claim 10 (depends on 1)

The service communication method according to claim 1, wherein the determining service key information comprises:
determining service key information allocated for the service access process in a case that a synchronous verification processing result of the service access process is verification success; and
the method further comprises:
executing any of the following processing in a case that the synchronous verification processing result of the service access process is verification failure:
notifying the service access process to resend an authentication request;
disconnecting a communication connection used for transmitting the authentication request with the service access process; and
interrupting the asynchronous verification processing on the service access process.

### Claim 11 (depends on 1)

The service communication method according to claim 1, wherein the controlling a communication connection comprises:
maintaining the communication connection for bearing the encrypted service communication with the service access process in a case that the asynchronous verification processing result of the service access process is verification success; and
disconnecting the communication connection for bearing the encrypted service communication with the service access process in a case that the asynchronous verification processing result of the service access process is verification failure.

### Claim 12 (depends on 1)

The service communication method of according to claim 1, wherein the method further comprises:
executing the following processing in the process of the encrypted service communication:
receiving a credential request sent by the service access process; wherein the credential request is sent by the service access process in response to intercepting a service request of an application process, and a destination address of the service request is an address of a service server;
performing synchronous verification processing on the application process;
determining a service credential and a gateway address allocated for the application process, and sending the service credential and the gateway address to the service access process according to a synchronous verification processing result of the application process, so that the service access process sends the service credential and the service request to a service gateway corresponding to the gateway address;
wherein the service gateway is configured to perform verification processing on the received service credential, and send the received service request to the service server in a case that a verification processing result of the service credential is verification success; and the service server is configured to perform response processing on request data in the received service request.

### Claim 13 (depends on 12)

The service communication method according to claim 12, wherein the performing synchronous verification processing on the application process comprises:
determining a user account in a login state in a device where the application process is located, and acquiring process information about a trusted application process corresponding to the user account and an address of an accessible service server corresponding to the user account;
taking a matching result between process information about the application process and the process information about the trusted application process as a third verification processing result;
taking a matching result between the address of the service server requested by the service request and the address of the accessible service server as a fourth verification processing result;
acquiring device information about the device where the application process is located, and taking a matching result between the device information and device security conditions as a fifth verification processing result; and
determining a synchronous verification processing result of the application process according to the third verification processing result, the fourth verification processing result and the fifth verification processing result.

### Claim 14 (depends on 12)

The service communication method according to claim 12, wherein upon receiving a credential request sent by the service access process, the method further comprises:
periodically matching process information about the application process with a process information blacklist, and taking the obtained matching result as an asynchronous verification processing result of the application process; and
controlling a communication connection used for bearing the encrypted service communication with the service access process according to the asynchronous verification processing result of the application process.

### Claim 15 (depends on 1)

The service communication method according to claim 1, wherein the performing asynchronous verification processing comprises:
periodically matching process information about the service access process with a process information blacklist, and taking the obtained matching result as an asynchronous verification processing result of the service access process.

### Claim 16

A service communication apparatus comprising:
at least one memory configured to store program code; and
at least one processor configured to read the program code and operate as instructed by the program code, the program code comprising:
receiving code configured to cause the at least one processor to receive an authentication request sent by a service access process;
verification code configured to cause the at least one processor to perform synchronous verification processing on the service access process, and perform asynchronous verification processing on the service access process;
determination code configured to cause the at least one processor to determine service key information allocated for the service access process according to a synchronous verification processing result of the service access process;
sending code configured to cause the at least one processor to send the service key information to the service access process for encrypted service communication with the service access process based on the service key information; and
connection control code configured to cause the at least one processor to control a communication connection used for bearing the encrypted service communication with the service access process according to an asynchronous verification processing result of the service access process.

### Claim 17 (depends on 16)

The service communication apparatus according to claim 16, wherein the verification code is further configured to cause the at least one processor to:
take a matching result between a process path of the service access process and a set security directory as a first verification processing result;
verify signature information about the service access process to obtain a second verification processing result; and
determine the synchronous verification processing result of the service access process according to the first verification processing result and the second verification processing result.

### Claim 18 (depends on 17)

The service communication apparatus according to claim 17, wherein the verification code is further configured to cause the at least one processor to:
determine the second verification processing result according to at least one of a result of whether the signature information comprises a digital signature, a validity verification processing result of the digital signature, a matching result between a signer and a signer blacklist of the digital signature, and a matching result between certificate information in the signature information and a certificate information blacklist.

### Claim 19 (depends on 18)

The service communication apparatus according to claim 18, wherein the verification code is further configured to cause the at least one processor to:
determine a digital signature in the signature information, and a decryption key corresponding to the digital signature;
decrypt the digital signature according to the decryption key to obtain a first hash result of a process file of the service access process;
perform hash processing on the process file of the service access process to obtain a second hash result; and
take a matching result between the first hash result and the second hash result as the validity verification processing result of the digital signature.

### Claim 20

A non-transitory computer-readable storage medium, storing computer code that when executed by at least one processor causes the at least one processor to:
receive an authentication request sent by a service access process;
perform synchronous verification processing on the service access process, and perform asynchronous verification processing on the service access process;
determine service key information allocated for the service access process according to a synchronous verification processing result of the service access process;
send the service key information to the service access process for encrypted service communication with the service access process based on the service key information; and
control a communication connection used for bearing the encrypted service communication with the service access process according to an asynchronous verification processing result of the service access process.
