Cloud platform-based login behavior monitoring method, device, equipment and medium

By obtaining and uploading the target login log index from the cloud gaming server, the problem of low efficiency in analyzing abnormal login behavior in the cloud gaming platform is solved, enabling fast querying and efficient analysis.

CN115671745BActive Publication Date: 2026-05-01NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
NETEASE (HANGZHOU) NETWORK CO LTD
Filing Date
2022-09-07
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

Existing technologies are inefficient when analyzing abnormal login behavior in cloud gaming platforms, requiring the traversal of all game accounts and historical files, resulting in low analysis efficiency.

Method used

The initial login logs of the target game are obtained from the cloud gaming server, the cloud platform account and game package name are appended, and the logs are uploaded to the log server to create a login log index. The logs are then queried through the log server to improve analysis efficiency.

Benefits of technology

It enables rapid querying of abnormal login behavior, improves analysis efficiency, reduces the need to traverse all game accounts and historical files, and increases the speed of analyzing abnormal login behavior.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115671745B_ABST
    Figure CN115671745B_ABST
Patent Text Reader

Abstract

The application provides a login behavior monitoring method and device based on a cloud platform, equipment and a medium, and relates to the technical field of games. The method can be applied to a cloud game server, the cloud game server is deployed with at least one operating system container, and a target game is run in the operating system container. The method comprises the following steps: obtaining an initial login log of the target game, wherein the initial login log comprises a target game account; adding a cloud platform account corresponding to the target game account and a game package name of the target game to the initial login log to obtain a target login log; and uploading the target login log to a log server, so that the log server establishes a login log index according to the target login log. According to the application, when analyzing abnormal login behavior, the log server can be used to obtain corresponding log query results, and the analysis efficiency for abnormal login behavior can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of game technology, and in particular to a method, device, equipment and medium for monitoring login behavior based on a cloud platform. Background Technology

[0002] Cloud gaming is a new way of running games based on cloud computing. Currently, there are many ways to implement cloud gaming, with different implementations for PC games and mobile games. Game login implementation on cloud gaming platforms can be divided into two categories: The first is a partnership between the cloud gaming platform and game developers, where the game developers use the login interface provided by the cloud gaming platform for login. The second is a completely independent cloud gaming platform and game developers, where users independently select and play the games they want on the cloud gaming platform.

[0003] In existing technologies, for the second type of login method mentioned above, if a user logs into a game on a cloud platform and encounters abnormal login behavior such as account misuse or theft, it is generally necessary to obtain the files saved by the game on the cloud platform and extract key information such as user identifier and device identifier for analysis.

[0004] However, existing methods often require traversing all game accounts on all cloud gaming platforms and analyzing all user files of those who have played the game, including all historical files. Therefore, existing methods suffer from low analysis efficiency. Summary of the Invention

[0005] The purpose of this application is to address the shortcomings of the prior art by providing a cloud platform-based login behavior monitoring method, device, equipment, and medium, which can improve the efficiency of analyzing abnormal login behavior.

[0006] To achieve the above objectives, the technical solutions adopted in the embodiments of this application are as follows:

[0007] In a first aspect, the present invention provides a login behavior monitoring method based on a cloud platform, applied to a cloud gaming server, wherein the cloud gaming server deploys at least one operating system container, and the operating system container runs a target game, the method comprising:

[0008] Obtain the initial login log of the target game, wherein the initial login log includes the target game account;

[0009] The cloud platform account corresponding to the target game account and the game package name of the target game are appended to the initial login log to obtain the target login log;

[0010] The target login log is uploaded to the log server so that the log server can build a login log index based on the target login log.

[0011] In an optional implementation, the method further includes:

[0012] Send a log data query request to the log server, the log data query request including: the cloud platform account to be queried or the game account to be queried;

[0013] The system receives log query results returned by the log server based on the log data query request through the login log index. The log query results include game accounts associated with the cloud platform account to be queried, or all cloud platform accounts that have logged into the game account to be queried.

[0014] In an optional implementation, obtaining the initial login log of the target game includes:

[0015] Obtain the game account information for logging into the target game;

[0016] The preset identifier is appended to the game account information to obtain the initial login log.

[0017] In an optional implementation, obtaining the game account information for logging into the target game includes:

[0018] The game account information for logging into the target game is obtained through a preset file, and / or the game account information for the target game is obtained based on the Hypertext Transfer Protocol;

[0019] The preset file includes at least one of the following: the operating system's database file, the operating system's settings file, the operating system's account management file, the Extensible Markup Language file based on key-value pair storage, and a file under a specified path.

[0020] In an optional implementation, obtaining the game account information of the target game based on the Hypertext Transfer Protocol includes:

[0021] In response to a login operation in the target game, a Hypertext Transfer Protocol request for logging into the target game is generated;

[0022] If the matching determines that the Hypertext Transfer Protocol request includes the webpage address corresponding to the target game, then the game account information is obtained according to the Hypertext Transfer Protocol request.

[0023] In an optional implementation, obtaining the game account information for logging into the target game through a preset file includes:

[0024] In response to a login operation of the target game, the login file information corresponding to the target game is obtained. The login file information includes at least one of the following: the database file name corresponding to the target game, the game package name corresponding to the target game, the Extensible Markup Language file name corresponding to the target game, and the file under the specified path corresponding to the target game.

[0025] If the matching determines that the preset file includes login file information corresponding to the target game, then the game account information is obtained according to the preset file.

[0026] In an optional implementation, if the preset file includes files under a specified path, and the step of obtaining the game account information based on the preset file if the matching determines that the preset file includes login file information corresponding to the target game includes:

[0027] If the matching determines that the preset file includes a file under the specified path corresponding to the target game, then the file under the specified path is monitored through the monitoring file so that if the file under the specified path is updated, the updated content of the file under the specified path is obtained.

[0028] The game account information is obtained based on the updated content of the files in the specified path.

[0029] In an optional implementation, the method further includes:

[0030] Obtain all game file information of the target game, including all file content related to the target game;

[0031] Based on all the game file information, obtain the login file information corresponding to the target game.

[0032] Secondly, the present invention provides a login behavior monitoring device based on a cloud platform, applied to a cloud gaming server, wherein the cloud gaming server deploys at least one operating system container, and the operating system container runs a target game; the login behavior monitoring device includes:

[0033] The acquisition module is used to acquire the initial login log of the target game, wherein the initial login log includes the target game account;

[0034] The append module is used to append the cloud platform account corresponding to the target game account and the game package name of the target game to the initial login log to obtain the target login log;

[0035] The upload module is used to upload the target login log to the log server, so that the log server can build a login log index based on the target login log.

[0036] In an optional implementation, the login behavior monitoring device further includes: a query module, used to send a log data query request to the log server, the log data query request including: a cloud platform account to be queried or a game account to be queried;

[0037] The system receives log query results returned by the log server based on the log data query request through the login log index. The log query results include game accounts associated with the cloud platform account to be queried, or all cloud platform accounts that have logged into the game account to be queried.

[0038] In an optional implementation, the acquisition module is specifically used to acquire game account information for logging into the target game;

[0039] The preset identifier is appended to the game account information to obtain the initial login log.

[0040] In an optional implementation, the acquisition module is specifically used to acquire game account information for logging into the target game through a preset file, and / or to acquire game account information for the target game based on the Hypertext Transfer Protocol;

[0041] The preset file includes at least one of the following: the operating system's database file, the operating system's settings file, the operating system's account management file, the Extensible Markup Language file based on key-value pair storage, and a file under a specified path.

[0042] In an optional implementation, the acquisition module is specifically used to generate a Hypertext Transfer Protocol request to log in to the target game in response to the login operation of the target game.

[0043] If the matching determines that the Hypertext Transfer Protocol request includes the webpage address corresponding to the target game, then the game account information is obtained according to the Hypertext Transfer Protocol request.

[0044] In an optional implementation, the acquisition module is specifically used to acquire login file information corresponding to the target game in response to the login operation of the target game. The login file information includes at least one of the following: database file name corresponding to the target game, game package name corresponding to the target game, Extensible Markup Language file name corresponding to the target game, and file under a specified path corresponding to the target game.

[0045] If the matching determines that the preset file includes login file information corresponding to the target game, then the game account information is obtained according to the preset file.

[0046] In an optional implementation, if the preset file includes files under a specified path, the acquisition module is specifically used to monitor the files under the specified path through a monitoring file if the preset file is determined to include files under the specified path corresponding to the target game, so that if the files under the specified path are updated, the updated content of the files under the specified path is obtained.

[0047] Based on the updated content of the files in the specified path, obtain the game account information.

[0048] In an optional implementation, the acquisition module is further configured to acquire all game file information of the target game, wherein all game file information includes all file content related to the target game;

[0049] Based on all the game file information, obtain the login file information corresponding to the target game.

[0050] Thirdly, the present invention provides an electronic device, comprising: a processor, a storage medium, and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the cloud-based login behavior monitoring method as described in any of the foregoing embodiments.

[0051] Fourthly, the present invention provides a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, performs the steps of the cloud-based login behavior monitoring method as described in any of the foregoing embodiments.

[0052] The beneficial effects of this application are:

[0053] This application provides a cloud platform-based login behavior monitoring method, apparatus, device, and medium, which can be applied to cloud gaming servers. The cloud gaming server deploys at least one operating system container, in which a target game runs. The method includes: obtaining the initial login log of the target game, the initial login log including the target game account; appending the cloud platform account corresponding to the target game account and the game package name of the target game to the initial login log to obtain the target login log; and uploading the target login log to a log server so that the log server can establish a login log index based on the target login log. By applying this application embodiment, when analyzing abnormal login behavior, the corresponding log query results can be obtained through the log server, which can effectively improve the efficiency of analyzing abnormal login behavior. Attached Figure Description

[0054] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0055] Figure 1 This application provides a cloud platform-based login behavior monitoring system as an embodiment of the present application;

[0056] Figure 2 A flowchart illustrating a cloud platform-based login behavior monitoring method provided in this application embodiment;

[0057] Figure 3 A flowchart illustrating another cloud-based login behavior monitoring method provided in this application embodiment;

[0058] Figure 4 A flowchart illustrating another cloud-based login behavior monitoring method provided in this application embodiment;

[0059] Figure 5 A flowchart illustrating another cloud-based login behavior monitoring method provided in this application embodiment;

[0060] Figure 6 A flowchart illustrating another cloud-based login behavior monitoring method provided in this application embodiment;

[0061] Figure 7 A flowchart illustrating another cloud-based login behavior monitoring method provided in this application embodiment;

[0062] Figure 8 A flowchart illustrating another cloud-based login behavior monitoring method provided in this application embodiment;

[0063] Figure 9 A schematic diagram of the functional modules of a cloud platform-based login behavior monitoring device provided in an embodiment of this application;

[0064] Figure 10 This is a schematic diagram of an electronic device structure provided in an embodiment of this application. Detailed Implementation

[0065] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.

[0066] Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0067] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.

[0068] Cloud gaming is a new way of running games based on cloud computing. In cloud gaming, the rendering of the game screen is done on the server side. The rendered game screen is then encoded and streamed to the player's terminal via the network. On the client side, players no longer need high-end gaming equipment; basic video decoding capabilities are sufficient to play the game.

[0069] Currently, if the cloud gaming platform is completely independent of the game developers, and users independently select and play the games they want by logging into the cloud gaming platform, abnormal login behaviors such as account duplication (due to residual information allowing a cloud gaming user to log into another user's game account) or account theft often require traversing all game accounts on the cloud gaming platform and analyzing all historical game files related to that game. Therefore, existing analysis methods suffer from low efficiency. It's worth noting that when the cloud gaming platform is completely independent of the game developers, and users independently select and play the games they want by logging into the cloud gaming platform, users need to log in not only with their cloud gaming platform account but also with their game account to log in to the selected game in order to play.

[0070] In view of this, this application provides a login behavior monitoring method based on a cloud platform. Applying this method can effectively improve analysis efficiency.

[0071] The login behavior monitoring method based on a cloud platform provided in this application embodiment can run on a cloud gaming server. As the main body running the game program, the cloud gaming server is mainly responsible for storing and running the game character transmission method. The cloud gaming server can connect to the client device through the network. The client device is mainly used for receiving and sending data and presenting the game screen.

[0072] For example, the client device can be a display device with data transmission capabilities located close to the user, such as a mobile terminal, television, computer, or PDA; however, the terminal device for information processing is the cloud gaming server in the cloud. When playing the game, the player operates the client device to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the operation commands, encodes and compresses game data such as the game screen, returns it to the client device via the network, and finally, the client device decodes and outputs the game screen.

[0073] Figure 1 This application provides a cloud-based login behavior monitoring system, such as... Figure 1 As shown, the monitoring system may include multiple cloud gaming servers 101. Each cloud gaming server 101 may deploy at least one operating system container, and each operating system container may run a corresponding game, thereby providing game services to different end users simultaneously. Optionally, the deployment of the operating system container in the cloud gaming server 101 may be based on Docker container technology. In addition, each cloud gaming server 101 may communicate with a log server 103 via a network 102. Optionally, the log server 103 may be based on an open-source log analysis system. For example, the log server 103 may be an ELK log server or a Scribe log server (Scribe is an open-source log collection system from Facebook that can collect logs from various log sources and store them on a central storage system (such as NFS, a distributed file system, etc.) for centralized statistical analysis and processing), without limitation.

[0074] Figure 2 This is a flowchart illustrating a cloud platform-based login behavior monitoring method provided in this application embodiment. This method can be applied to any cloud gaming server in the aforementioned login behavior monitoring system. The cloud gaming server can be deployed with at least one operating system container, in which the target game runs. Optionally, the operating system container can be an Android container, an iOS container, etc., and is not limited thereto. For better understanding of this application, the following description uses an Android container as an example to illustrate the embodiment. Figure 1 As shown, the method includes:

[0075] S101. Obtain the initial login log of the target game, which includes the target game account.

[0076] The target game account is the user's game account used to log in to the target game. Optionally, the target game can be an action game, adventure game, simulation game, role-playing game, casual game, etc., without limitation. The target game account can be the user's mobile phone number, email address, device identifier of the client device used by the user, etc., without limitation, and may vary depending on the actual application scenario.

[0077] In some embodiments, the initial login log may include not only the target game account, but also login time, login frequency, geographical location information when logging into the target game account, etc., which are not limited here.

[0078] S102. Append the cloud platform account corresponding to the target game account and the game package name of the target game to the initial login log to obtain the target login log.

[0079] As explained above, when a user selects a target game to play through a cloud gaming platform, they not only need to log in to the cloud gaming platform using their cloud platform account, but also need to log in to the target game using their target game account to play. Therefore, after obtaining the initial login log, it is necessary to obtain the cloud platform account corresponding to the target game account and the game package name of the target game, and append these to the initial login log to obtain the target login log. This appending operation allows the user's cloud platform account and game account to be recorded simultaneously when logging into the target game, enabling the corresponding storage of the cloud platform account and game account. This facilitates rapid analysis of abnormal login behavior, such as account duplication or account theft, during gameplay.

[0080] In some embodiments, if the operating system container is an Android container, the above appending process can be implemented using the logcat command-line tool in the Android system. This is not limited here, and can be flexibly selected according to the actual application scenario.

[0081] S103. Upload the target login log to the log server so that the log server can build a login log index based on the target login log.

[0082] As mentioned above, the log server can be an ELK log server, a Scribe log server, etc. After obtaining the target login log, in order to improve the efficiency of analyzing abnormal login behavior, the cloud gaming server can upload the obtained target login log to the log server. The log server can then create a login log index based on the target login log and establish an index data structure for the target login log. Subsequently, when analyzing abnormal login behavior, the corresponding log query results can be obtained through the log server, which can effectively improve the efficiency of analyzing abnormal login behavior and provide the cloud gaming server with a method to trace third-party game login behavior, making it easier to investigate abnormal login behaviors such as game account tampering and game account theft.

[0083] In some embodiments, a log collection program can be deployed in the cloud gaming server to upload target login logs to a log server in real time. Furthermore, it's worth noting that if there are multiple cloud gaming servers, each server can upload its acquired target login logs to the log server. The log server can then integrate these multiple target login logs for server-wide querying during subsequent analysis of abnormal login behavior.

[0084] In summary, the cloud platform-based login behavior monitoring method provided in this application can be applied to cloud gaming servers. The cloud gaming server deploys at least one operating system container, in which a target game runs. The method includes: obtaining the initial login log of the target game, the initial login log including the target game account; appending the cloud platform account corresponding to the target game account and the game package name of the target game to the initial login log to obtain the target login log; and uploading the target login log to a log server so that the log server can establish a login log index based on the target login log. By applying this application embodiment, when analyzing abnormal login behavior, the corresponding log query results can be obtained through the log server, which can effectively improve the efficiency of analyzing abnormal login behavior.

[0085] Figure 3 This is a flowchart illustrating another cloud-based login behavior monitoring method provided in an embodiment of this application. Optionally, as... Figure 3 As shown, the above method also includes:

[0086] S201. Send a log data query request to the log server. The log data query request includes: the cloud platform account to be queried or the game account to be queried.

[0087] The cloud gaming server can send a log data query request to the log server. The log data query request may include: the cloud platform account to be queried; or, the log data query request may include: the game account to be queried. The content may vary depending on the actual application scenario and is not limited here.

[0088] S202. Receive the log query results returned by the log server based on the log data query request through the login log index. The log query results include the game account associated with the cloud platform account to be queried, or all cloud platform accounts that have logged into the game account to be queried.

[0089] In actual querying, one can query game accounts associated with the cloud platform account to be queried; or one can query cloud platform accounts that have logged into the game account to be queried. This application does not limit the specific query method; it can be flexibly selected according to the actual application scenario. It can be seen that by applying the embodiments of this application, when a user logs into a game on the cloud platform and experiences abnormal login behavior such as account duplication or theft, a rapid query can be achieved, improving query efficiency.

[0090] In some embodiments, the login behavior monitoring method provided in this application can exist in the form of a configuration file in a cloud gaming server.

[0091] For example, during gameplay, if user A sends a request message to the cloud gaming server via client device A stating that their game account B has been stolen and needs to be deleted, this request message can include game account B. Upon receiving this request message, the cloud gaming server can send a log data query request to the log server, which can also include game account B. Upon receiving this query request, the log server can obtain the corresponding log query results based on the login log index for game account B. These results can include all cloud platform accounts that have logged into game account B. It can be understood that by combining all cloud platform accounts that have logged into game account B with user A's cloud platform account, the illegal cloud platform account that logged into game account B can be quickly identified, and thus, the illegal cloud platform account can be deleted. It can be seen that by applying this embodiment, the cloud gaming server does not need to traverse all game accounts on the cloud gaming platform, nor does it need to analyze all historical game files played in the game, effectively improving analysis efficiency.

[0092] Figure 4 This is a flowchart illustrating another login behavior monitoring method based on a cloud platform provided in an embodiment of this application. Optionally, as... Figure 4 As shown, the above-mentioned acquisition of the target game's initial login logs includes:

[0093] S301. Obtain the game account information for the target game.

[0094] S302. Append the preset identifier to the game account information to obtain the initial login log.

[0095] Optionally, in some embodiments, the initial login log may also include a preset identifier. Considering the large amount of data in the log server when querying, it is necessary to format the obtained game account information of the target game. This formatted initial login log facilitates later queries and improves query efficiency. Optionally, the preset identifier may include letters, numbers, symbols, etc., and is not limited thereto.

[0096] In conjunction with the foregoing description, in some embodiments, the log data query request may include: a preset identifier, a cloud platform account to be queried, or a game account to be queried; and then, when querying subsequently, the game account associated with the cloud platform account to be queried can be quickly queried based on the preset identifier and the cloud platform account to be queried; or the cloud platform account that has logged into the game account to be queried can be quickly queried based on the preset identifier and the game account to be queried.

[0097] Optionally, the above steps for obtaining the game account information for logging into the target game include:

[0098] Obtain the game account information of the target game by means of a preset file, and / or obtain the game account information of the target game based on the Hypertext Transfer Protocol.

[0099] The preset files include at least one of the following: the operating system's database file, the operating system's settings file, the operating system's account management file, the Extensible Markup Language file based on key-value pair storage, and files under the specified path.

[0100] It's understandable that when a user logs into a game account through a cloud gaming server, that account is saved on the server so that automatic login verification is possible the next time the user launches the game, improving login efficiency. Depending on the game application scenario and configuration, the game account can be saved in at least one of the aforementioned preset files. Therefore, by monitoring local data read / write operations, i.e., through these preset files, the game account information for the target game can be obtained. It should be noted that for different operating system containers, the preset file can also be other files with specific meanings; this is not limited here.

[0101] Optionally, when the operating system container is an Android container, the operating system's database file can be an SQLite database file (SQLite is a lightweight database); the operating system's settings file can be a settings file; the extensible markup language file based on key-value pair storage can be a SharedPreference file (SharedPreference can store data in the form of key-value pairs); the operating system's account management file can specifically be the AccountManagerService file in the operating system; files under a specified path, for example, can be files in the SD card with the name "XXX", are not limited here.

[0102] In some embodiments, considering that some games use the network library of the default operating system for login, in order to improve the applicability of the method of this application, the Hypertext Transfer Protocol (HTTP) request for game login can also be monitored, and the game account information of the target game can be obtained through the HTTP request.

[0103] In summary, it can be seen that the embodiments of this application can obtain the game account information of the target game through multiple means, that is, it can cover the login scenarios of most games and has the characteristics of strong applicability.

[0104] Figure 5 This is a flowchart illustrating another cloud-based login behavior monitoring method provided in an embodiment of this application. Optionally, as... Figure 5 As shown, the above-mentioned method of obtaining game account information of the target game based on the Hypertext Transfer Protocol includes:

[0105] S401. In response to the login operation of the target game, generate a Hypertext Transfer Protocol request to log in to the target game.

[0106] S402. If the match determines that the Hypertext Transfer Protocol request includes the webpage address corresponding to the target game, then obtain the game account information according to the Hypertext Transfer Protocol request.

[0107] The web address corresponding to the target game can be obtained through prior querying. In some embodiments, the HTTP engine can be whitelisted based on the web address corresponding to the target game, so that the HTTP engine can include matching instructions for matching the web address corresponding to the target game.

[0108] Based on the above description, optionally, in actual application scenarios, users can generate a login operation for the target game through the client device and forward the login operation to the cloud gaming server. In response to the login operation, the cloud gaming server can generate a Hypertext Transfer Protocol request to log in to the target game. It is understood that the Hypertext Transfer Protocol request will include at least the game account information of the target game.

[0109] Furthermore, based on the above explanation, it can be understood that the cloud gaming server can determine whether the Hypertext Transfer Protocol (HTTP) request includes the web address corresponding to the target game through matching instructions in the HTTP engine. If it does, the server can output the HTTP request through the first preset output instruction. It can also output the response content for that HTTP request. Optionally, the first preset output instruction can be: `cg_game_login http:$request-->$response`, where `cg_game_login` can represent a preset identifier, `$request` represents the HTTP request for the target game, and `$response` represents the response content corresponding to the HTTP request for the target game. This response content can include login status information (which can be used to indicate whether login was successful), login time, etc., and is not limited here. It can be understood that after outputting the HTTP request and its corresponding response content through the first preset output instruction, game account information can be obtained.

[0110] Of course, it should be noted that the content of the preset identifier is not limited to this and may vary depending on the actual application scenario.

[0111] Figure 6 This is a flowchart illustrating another login behavior monitoring method based on a cloud platform provided in an embodiment of this application. Optionally, as... Figure 6 As shown, the above-mentioned method of obtaining game account information for logging into the target game through a preset file includes:

[0112] S501, In response to the login operation of the target game, obtain the login file information corresponding to the target game.

[0113] The login file information includes at least one of the following: the database file name corresponding to the target game, the game package name corresponding to the target game, the Extensible Markup Language file name corresponding to the target game, and the file under the specified path corresponding to the target game.

[0114] S502. If the preset file contains login file information corresponding to the target game, then obtain the game account information based on the preset file.

[0115] The generation method for the login operation of the target game can be found in the relevant explanations above, and will not be repeated here. It is understandable that if a cloud gaming server deploys multiple operating system containers, each running a game, multiple users can log in to multiple games through the cloud gaming server to play. In this case, the preset file will include the game account information corresponding to each game. Therefore, for the target game, in response to the login operation, the cloud gaming server can obtain the login file information from the target game's login process, and check whether the preset file includes the corresponding login file information for the target game. If it does, the game account information for the target game can be obtained from that preset file.

[0116] In some embodiments, when a match is determined, it can be determined by a preset matching instruction. If the preset file is determined to include login file information corresponding to the target game, the game account information can be output by a second preset output instruction. Of course, other information can also be output during the output process, which is not limited here.

[0117] For example, in some embodiments, the preset file can be the operating system's database file, and the database file name corresponding to the target game can be dbfile. Optionally, the preset matching instruction can be $dbfile:$sql_pattern, where $dbfile represents the database file name corresponding to the target game, and $sql_pattern represents the SQL query statement pattern, using regular expression matching. The second preset output instruction can be cg_game_login sqlite$sql, where $sql represents the SQL statement query content corresponding to the target game. The game account information of the target game can be obtained through this SQL statement query content, and cg_game_login can represent a preset identifier, which can vary depending on the actual application scenario.

[0118] In some embodiments, the preset file can be the operating system's account management file, and the package name corresponding to the target game is pkg. Then the preset matching instruction is $pkg, and the second preset output instruction can be cg_game_login account = $account_id, where $account_id represents the game account of the target game.

[0119] In some embodiments, the preset file can be the operating system's settings file. If the package name of the target game is pkg, then the preset matching instruction is $pkg:$name, where $name represents the name of the login configuration item in the settings file of the target game. The second preset output instruction can be cg_game_login settings$name=$value, where $name represents the name of the login configuration item in the settings file of the target game, and $value represents the value of the login configuration item in the settings file of the target game.

[0120] In some embodiments, the preset file can be an Extensible Markup Language (XML) file stored based on key-value pairs, and the XML file name corresponding to the target game can be xmlfile; optionally, the preset matching instruction can be $xmlfile:$key, where $xmlfile represents the SharedPreference file name, and $key represents the key corresponding to the login information of the target game; the second preset output instruction can be cg_game_login shared_pref$xmlfile:$key=$value, where $key and $value are key-value pairs corresponding to the target game, which may include the game account information of the target game.

[0121] In some embodiments, the preset file can also be a file under a specified path corresponding to the target game. If the game package name corresponding to the target game is pkg, then the preset matching instruction is $pkg:$filepath, where $filepath represents the specified path corresponding to the target game. The second preset output instruction can be cg_game_login file:$file_content, where $file_content represents the file content under the specified path.

[0122] In addition, it is worth noting that cg_game_login in the second preset output command represents a preset identifier, which may vary depending on the actual application scenario.

[0123] Figure 7 This is a flowchart illustrating another cloud-based login behavior monitoring method provided in an embodiment of this application. Optionally, as... Figure 7 As shown, if the preset file includes files under the specified path, and the above match determines that the preset file includes login file information corresponding to the target game, then the game account information is obtained based on the preset file, including:

[0124] S601. If the preset file is determined to include a file under the specified path corresponding to the target game, then the file under the specified path is monitored through the monitoring file so that if the file under the specified path is updated, the updated content of the file under the specified path is obtained.

[0125] S602. Obtain game account information based on the update content of files in the specified path.

[0126] The monitoring file can be the inotify monitoring program provided by the Linux file system. The monitoring file can monitor whether the contents of files under a specified path have changed. It can be understood that if a user logs in, the contents of files under the specified path will change and will be updated. If an update is detected under the specified path, the updated contents of the files under the specified path can be obtained. It can be understood that the updated contents of the files under the specified path will include the game account of the target game.

[0127] Figure 8 This is a flowchart illustrating another login behavior monitoring method based on a cloud platform provided in an embodiment of this application. Optionally, as... Figure 8 As shown, the above method also includes:

[0128] S701. Obtain all game file information for the target game, including all file content related to the target game.

[0129] S702. Based on all game file information, obtain the login file information corresponding to the target game.

[0130] Understandably, for any given target game, the cloud gaming server, upon initial login behavior monitoring, cannot determine the default file type corresponding to the target game; that is, it cannot know in what type of default file the user's game account information is stored when logging into the target game. Therefore, optionally, after a user logs into the target game, the cloud gaming server can retrieve all file content related to the target game and, based on this content, obtain the corresponding login file information for the target game. Retrieving all file content related to the target game can be achieved using wildcards (e.g., *:*). Of course, the format of wildcards is not limited to this and can vary depending on the actual application scenario.

[0131] In some embodiments, when obtaining login file information corresponding to a target game, preset keywords such as game identifier and game name can be used for matching and filtering, thereby filtering out non-game login behaviors and improving query efficiency.

[0132] Figure 9This is a functional module diagram of a cloud platform-based login behavior monitoring device provided in this application embodiment. This device can be applied to a cloud gaming server, which deploys at least one operating system container, in which a target game runs. The basic principle and technical effects of this device are the same as those in the aforementioned corresponding method embodiments. For the sake of brevity, parts not mentioned in this embodiment can be referred to the corresponding content in the method embodiments. Figure 9 As shown, the login behavior monitoring device includes:

[0133] The acquisition module 110 is used to acquire the initial login log of the target game, which includes the target game account;

[0134] The append module 120 is used to append the cloud platform account corresponding to the target game account and the game package name of the target game to the initial login log to obtain the target login log;

[0135] Upload module 130 is used to upload the target login log to the log server so that the log server can build a login log index based on the target login log.

[0136] In an optional implementation, the login behavior monitoring device further includes: a query module, used to send a log data query request to the log server, the log data query request including: the cloud platform account to be queried or the game account to be queried;

[0137] Receive log query results returned by the log server based on the log data query request through the login log index. The log query results include the game account associated with the cloud platform account to be queried, or all cloud platform accounts that have logged into the game account to be queried.

[0138] In an optional implementation, the acquisition module 110 is specifically used to acquire game account information for the target game;

[0139] The preset identifier is appended to the game account information to obtain the initial login log.

[0140] In an optional implementation, the acquisition module 110 is specifically used to acquire game account information of the target game through a preset file, and / or to acquire game account information of the target game based on the Hypertext Transfer Protocol.

[0141] The preset files include at least one of the following: the operating system's database file, the operating system's settings file, the operating system's account management file, the Extensible Markup Language file based on key-value pair storage, and files in the specified path.

[0142] In an optional implementation, the acquisition module 110 is specifically used to generate a Hypertext Transfer Protocol request to log in to the target game in response to the login operation of the target game.

[0143] If the match determines that the Hypertext Transfer Protocol (HTTP) request includes the webpage address corresponding to the target game, then the game account information is obtained according to the HTTP request.

[0144] In an optional implementation, the acquisition module 110 is specifically used to acquire login file information corresponding to the target game in response to the login operation of the target game. The login file information includes at least one of the following: database file name corresponding to the target game, game package name corresponding to the target game, Extensible Markup Language file name corresponding to the target game, and file under a specified path corresponding to the target game.

[0145] If the matching determines that the preset file contains the login file information corresponding to the target game, then the game account information is obtained based on the preset file.

[0146] In an optional implementation, if the preset file includes files under a specified path, the acquisition module is specifically used to monitor the files under the specified path through the monitoring file if the preset file is determined to include files under the specified path corresponding to the target game, so that if the files under the specified path are updated, the updated content of the files under the specified path can be obtained.

[0147] Retrieve game account information based on the updated content of files in the specified path.

[0148] In an optional implementation, the acquisition module 110 is further configured to acquire all game file information of the target game, including all file content related to the target game;

[0149] Based on all game file information, obtain the login file information corresponding to the target game.

[0150] The above-described device is used to execute the method provided in the foregoing embodiments, and its implementation principle and technical effect are similar, so they will not be described again here.

[0151] These modules can be one or more integrated circuits configured to implement the above methods, such as one or more Application Specific Integrated Circuits (ASICs), one or more microprocessors, or one or more Field Programmable Gate Arrays (FPGAs). Alternatively, when a module is implemented using processing element scheduler code, the processing element can be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. Furthermore, these modules can be integrated together as a system-on-a-chip (SOC).

[0152] Figure 10 This is a schematic diagram of an electronic device provided in an embodiment of this application. The electronic device can be the aforementioned login behavior monitoring device. Figure 10 As shown, the electronic device may include a processor 210, a storage medium 220, and a bus 230. The storage medium 220 stores machine-readable instructions executable by the processor 210. When the electronic device is running, the processor 210 communicates with the storage medium 220 via the bus 230, and the processor 210 executes the machine-readable instructions to perform the steps of the above method embodiment. The specific implementation and technical effects are similar and will not be described in detail here.

[0153] Optionally, this application also provides a computer-readable storage medium storing a computer program, which, when run by a processor, executes the steps of the above-described method embodiments. The specific implementation and technical effects are similar and will not be repeated here.

[0154] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed between each other may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms. Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, i.e., they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs. Additionally, the functional units in the various embodiments of this application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The integrated units described above can be implemented in hardware or in the form of hardware plus software functional units.

[0155] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0156] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.

[0157] The above are merely preferred embodiments of this application and are not intended to limit this application. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application. It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need further definition and explanation in subsequent figures. The above are merely preferred embodiments of this application and are not intended to limit this application. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for monitoring login behavior based on a cloud platform, characterized in that, Applied to a cloud gaming server, wherein the cloud gaming server deploys at least one operating system container, and the target game runs in the operating system container, the method includes: Obtain the initial login log of the target game. The initial login log includes the target game account and a preset identifier. The target game account is obtained according to a preset file and / or based on the Hypertext Transfer Protocol. The preset file includes at least one of the following: the operating system's database file, the operating system's settings file, the operating system's account management file, the Extensible Markup Language file based on key-value pair storage, and a file under a specified path. The cloud platform account corresponding to the target game account and the game package name of the target game are appended to the initial login log to obtain the target login log; The target login log is uploaded to the log server so that the log server can build a login log index based on the target login log and return log query results through the login log index based on the log data query request. The log data query request includes: a cloud platform account to be queried or a game account to be queried. The log query results include the game account associated with the cloud platform account to be queried, or all cloud platform accounts that have logged into the game account to be queried.

2. The method according to claim 1, characterized in that, The method further includes: Send a log data query request to the log server; Receive the log query results returned by the log server based on the log data query request through the login log index.

3. The method according to claim 1, characterized in that, The process of obtaining the initial login log of the target game includes: Obtain the game account information for logging into the target game; The preset identifier is appended to the game account information to obtain the initial login log.

4. The method according to claim 3, characterized in that, The process of obtaining the game account information for logging into the target game includes: The game account information for logging into the target game is obtained through a preset file, and / or, the game account information for the target game is obtained based on the Hypertext Transfer Protocol.

5. The method according to claim 4, characterized in that, The process of obtaining the game account information of the target game based on the Hypertext Transfer Protocol includes: In response to a login operation in the target game, a Hypertext Transfer Protocol request for logging into the target game is generated; If the matching determines that the Hypertext Transfer Protocol request includes the webpage address corresponding to the target game, then the game account information is obtained according to the Hypertext Transfer Protocol request.

6. The method according to claim 4, characterized in that, The step of obtaining the game account information for logging into the target game through a preset file includes: In response to a login operation of the target game, the login file information corresponding to the target game is obtained. The login file information includes at least one of the following: the database file name corresponding to the target game, the game package name corresponding to the target game, the Extensible Markup Language file name corresponding to the target game, and the file under the specified path corresponding to the target game. If the matching determines that the preset file includes login file information corresponding to the target game, then the game account information is obtained according to the preset file.

7. The method according to claim 6, characterized in that, If the preset file includes files under a specified path, and if the matching determines that the preset file includes login file information corresponding to the target game, then the game account information is obtained according to the preset file, including: If the matching determines that the preset file includes a file under the specified path corresponding to the target game, then the file under the specified path is monitored through the monitoring file so that if the file under the specified path is updated, the updated content of the file under the specified path is obtained. The game account information is obtained based on the updated content of the files in the specified path.

8. The method according to claim 6, characterized in that, The method further includes: Obtain all game file information of the target game, including all file content related to the target game; Based on all the game file information, obtain the login file information corresponding to the target game.

9. A login behavior monitoring device based on a cloud platform, characterized in that, Applied to a cloud gaming server, wherein the cloud gaming server deploys at least one operating system container, and the target game runs in the operating system container, the login behavior monitoring device includes: The acquisition module is used to acquire the initial login log of the target game. The initial login log includes the target game account and a preset identifier. The target game account is acquired according to a preset file and / or based on the Hypertext Transfer Protocol. The preset file includes at least one of the following: the operating system's database file, the operating system's settings file, the operating system's account management file, the Extensible Markup Language file based on key-value pair storage, and a file under a specified path. The append module is used to append the cloud platform account corresponding to the target game account and the game package name of the target game to the initial login log to obtain the target login log; The upload module is used to upload the target login log to the log server, so that the log server can build a login log index based on the target login log, and return log query results through the login log index based on the log data query request. The log data query request includes: a cloud platform account to be queried or a game account to be queried. The log query results include game accounts associated with the cloud platform account to be queried, or all cloud platform accounts that have logged into the game account to be queried.

10. An electronic device, characterized in that, include: The device includes a processor, a storage medium, and a bus. The storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the cloud-based login behavior monitoring method as described in any one of claims 1-8.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which, when executed by a processor, performs the steps of the cloud-based login behavior monitoring method as described in any one of claims 1-8.

Citation Information

Patent Citations

  • Processing method and equipment for acquiring equipment information in cloud game and storage medium

    CN113975794A

  • Illegal traffic monitoring method and device, electronic equipment, system and medium

    CN114422232A