IP Library Granted Patent US 12,445,299
Granted Patent B2
US 12,445,299 · App. 17/974,067 · Granted Oct 14, 2025

Service communication method, system, apparatus, electronic device, and storage medium

Inventors: Yueting Wu (Shenzhen, CN); Yuebo Liu (Shenzhen, CN); Dongyun Cai (Shenzhen, CN); Qilin Zhu (Shenzhen, CN)
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
H04L9/3247H04L9/3268
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,445,299
App. No.
17/974,067
Granted
Oct 14, 2025
Kind
B2
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 (94)

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.

2. 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.

3. 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.

4. 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.

5. 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.

6. 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 distributed symmetric keys;

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.

7. 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.

8. 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.

9. 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 different service access processes, and allocating different service key information with respect to different authentication request addresses sent by a 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.

10. 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.

11. 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.

12. 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.

13. 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.

14. 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.

15. 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.

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.

17. 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.

18. 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.

19. 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.

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.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 26, 2022
From: WU, YUETING; LIU, YUEBO; CAI, DONGYUN; ZHU, QILIN
To: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Reel/Frame 061547/0722 →
Priority Claims (1)
CN 202011222173.X · Nov 5, 2020 · national
Continuity (2)
Continuation PCTCN2021125653 · Oct 22, 2021
Related Publication 20230056432A1 · Feb 23, 2023
References Cited (31)
US 20050005101A1 · Yenduri · 2005 [cited by examiner]
US 20100188975A1 · Raleigh · 2010 [cited by examiner]
US 20100229241A1 · Liu · 2010 [cited by examiner]
US 20110010539A1 · Salomone · 2011 [cited by examiner]
US 20160188317A1 · Hilliar · 2016 [cited by examiner]
US 20170006009A1 · Hessler · 2017 [cited by examiner]
US 20170171240A1 · Arzi · 2017 [cited by examiner]
US 20170180412A1 · Mikulski · 2017 [cited by examiner]
US 20190089524A1 · Lv · 2019 [cited by examiner]
US 20190236284A1 · Hersans · 2019 [cited by examiner]
US 20190342095A1 · Simons · 2019 [cited by examiner]
US 20200145397A1 · Wu · 2020 [cited by examiner]
US 20200186363A1 · Shockley · 2020 [cited by examiner]
US 20200259827A1 · Shaffer et al. · 2020 [cited by applicant]
US 20200336481A1 · Fan · 2020 [cited by examiner]
US 20210037000A1 · Attard · 2021 [cited by examiner]
CN 106790080A · 2017 [cited by applicant]
CN 110535648A · 2019 [cited by applicant]
CN 110535807A · 2019 [cited by applicant]
CN 111212075A · 2020 [cited by applicant]
CN 112422532A · 2021 [cited by applicant]
JP 2011523481A · 2011 [cited by applicant]
JP 2018029241A · 2018 [cited by applicant]
KR 1020060128885A · 2006 [cited by applicant]
KR 1020080088004A · 2008 [cited by applicant]
KR 101946527B1 · 2019 [cited by applicant]
Japanese Office Action issued Apr. 1, 2024 in Application No. 2023-515835. [cited by applicant]
Translation of Written Opinion dated Jan. 19, 2022, issued in International Application No. PCT/CN2021/125653. [cited by applicant]
Written Opinion of PCT/CN2021/125653 dated Jan. 19, 2022. [cited by applicant]
International Search Report for PCT/CN2021/125653 dated Jan. 19, 2022. [cited by applicant]
Office Action issued Aug. 25, 2025 in Korean Application No. 10-2023-7008870. [cited by applicant]