A control method and device based on privacy data call
By pre-configuring the calling permissions and behavior sequences of the mini program, the platform application can fine-tune the private data access of the mini program, solving the problems of insufficient privacy data security and business processing obstacles in the existing technology, and achieving high security. , Flexible privacy data access management.
Patent Information
- Application Number
- CN202211414288.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-07
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-01-07
AI Technical Summary
The existing technology lacks methods with high security, strong flexibility, and fine-grained control when small programs call users' private data, resulting in hidden data security risks and business processing obstacles.
By pre-configuring the calling permissions of the mini program, including legal and illegal behavior sequences, the platform application determines whether to allow the call of private data based on the actual behavior sequence and permissions of the mini program, thereby achieving detailed control over access to the private data of the mini program.
It ensures the security of private data, while allowing normal business processing of mini programs, providing flexible and fine-grained access control of private data, and avoiding private data leakage and business interruption.
Smart Images

Figure CN115842656B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information security technology, and in particular to a management and control method and device based on privacy data call. Background Art
[0002] Mini program technology allows users to use the services of other applications directly on platform applications without having to download other applications. Other applications rely on the platform application in the form of mini programs and can enjoy the users of the platform application.
[0003] During operation, mini programs need to call user data for business processing, which includes both regular data and data of great value to users, such as user privacy data. Since each mini program obtains the user's privacy data on the platform application, if the platform application does not control the mini program's behavior of obtaining privacy data, it will undoubtedly cause serious security risks. Summary of the invention
[0004] In response to the above technical problems, this specification provides a method and device for controlling the calling of privacy data. The technical solution is as follows:
[0005] According to a first aspect of the present specification, a method for controlling the calling of private data is provided, which pre-configures the calling permissions of each mini program, and the calling permissions are used to describe the legal behavior sequence and / or illegal behavior sequence corresponding to the mini program calling various private data; the method is applied to a platform application server, and includes:
[0006] Obtaining the actual behavior sequence executed by the target mini program before calling the private data, including: receiving the actual behavior sequence, the type of the private data, and the identifier of the target mini program uploaded by the platform application client;
[0007] By using the acquired behavior sequence, the type of the private data, and the pre-configured calling authority of the target applet, it is determined whether to prohibit the target applet from calling the private data.
[0008] According to a second aspect of the present specification, a control device for calling private data is provided, which pre-configures the calling permissions of each mini-program, and the calling permissions are used to describe the legal behavior sequence and / or illegal behavior sequence corresponding to the mini-program calling various private data; the device is applied to a platform application server, and includes:
[0009] A behavior sequence acquisition module, used to acquire the behavior sequence executed by the target applet before calling the private data, specifically used to receive the behavior sequence, the type of the private data and the identifier of the target applet uploaded by the platform application client;
[0010] The calling behavior control module is used to determine whether to prohibit the target applet from calling the privacy data by using the acquired behavior sequence, the type of the privacy data, and the pre-configured calling authority of the target applet.
[0011] In this specification, platform applications can control the behavior of mini-programs calling privacy data based on the sequence of behaviors run before the mini-programs call user privacy data, thereby controlling the behavior of mini-programs calling privacy data in a more detailed and flexible manner. That is, it does not completely prohibit mini-programs from obtaining certain privacy data, or completely allow mini-programs to obtain certain privacy data. Instead, it determines whether each mini-program really needs to obtain privacy data based on the actual situation based on the basic functions of the mini-programs, and then controls it. This ensures the security of privacy data while also ensuring that the mini-programs can carry out normal business processing.
[0012] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present specification. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of this specification. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0014] Figure 1 It is a schematic diagram of the network architecture of a platform application and a mini-program according to an embodiment of this specification;
[0015] Figure 2 It is a flowchart of a method for controlling the calling of privacy data in an embodiment of this specification;
[0016] Figure 3 It is a flowchart of another method for controlling the calling of privacy data according to an embodiment of this specification;
[0017] Figure 4 This is a schematic diagram of the structure of a control device for calling privacy data in an embodiment of this specification;
[0018] Figure 5 It is a structural diagram of another privacy data call control device according to an embodiment of this specification;
[0019] Figure 6 It is a structural diagram of a device used to configure the embodiment of the present specification. DETAILED DESCRIPTION
[0020] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of this specification, the technical solutions in the embodiments of this specification will be described in detail below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field should fall within the scope of protection.
[0021] The terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit this specification. The singular forms "a", "the" and "the" used in this specification and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0022] It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0023] Platform applications usually refer to platforms with a large number of users. In order to expand their business or increase their user base, other applications usually cooperate with platform applications, rely on the platform applications in the form of mini-programs, and enjoy the user base of the platform applications.
[0024] Mini programs can be regarded as applications with lightweight running data. In order to reduce the amount of data development and data maintenance for mini programs, platform applications usually provide some of their own complex functions to each mini program. That is, each mini program does not need to configure complex functions locally, and can call the complex functions provided by the platform application through the interface provided by the platform application. At the same time, during the operation of the mini program, it is necessary to call the user's data for business processing. Since the user is a user of the platform application, the mini program also needs to obtain the user's data through the interface provided by the platform application. The user's data includes both some regular data and some data that is of great value to the user, such as the user's privacy data. Therefore, as the management party, if the platform application does not control the behavior of each mini program calling the user's privacy data, it will undoubtedly cause serious security risks.
[0025] The architecture diagram of platform application client and applet is as follows: Figure 1As shown in the figure, platform applications usually rely on multiple mini-programs, and platform application clients are usually responsible for managing users' private data, including user location information, contact information, device information, account information, transaction information, etc. Mini-programs call users' private data through the interface provided by platform applications, and need to send data through the outbound export provided by platform applications.
[0026] At present, the platform-based application controls the mini-programs’ access to user privacy data by allowing users to set the mini-programs’ permissions by themselves. For example, when a user uses a mini-program for the first time, a prompt message will pop up in the form of a dialog box, prompting the user to set the mini-program’s permissions to obtain privacy data. For example, prompt messages such as “Do you allow the XX mini-program to access the address book?” and “Do you allow the XX mini-program to access the geographic location?” will pop up, and the mini-program’s permissions will be generated based on the user’s operation. For example, if the user selects “Yes” for the prompt message “Do you allow the XX mini-program to access the address book?”, a permission message will be generated for the mini-program to access the address book.
[0027] After the permissions of the mini program are generated, the mini program's privacy data calling behavior can be controlled based on the mini program's permissions.
[0028] Since the mini program needs to obtain private data through the interface provided by the platform application, when it is detected at the interface that the mini program needs to obtain private data, it can be determined whether the mini program has the authority to call the private data based on the pre-generated permissions of the mini program and the type of private data that the mini program needs to obtain. If so, it is allowed to obtain the private data through the interface; if not, the mini program is prohibited from obtaining the private data through the interface.
[0029] It can be seen that the current control method is to set control permissions from the mini-program dimension, and control the mini-program's behavior of calling privacy data based on the control permissions. The control granularity is coarse and not detailed enough.
[0030] Moreover, the security of management and control in the above manner is also low. For example, for a small program with a phone recharge function, the user needs to set the small program to obtain the address book data. After the setting is completed, the small program can access the address book data at will, that is, when the user does not need to recharge, the small program can still access the address book at any time to obtain the data in it. This is undoubtedly a security risk for users. At the same time, for the management party, that is, the platform application, it does not protect the privacy data of its users well.
[0031] In addition, the mini program cannot be directly prohibited from obtaining user privacy data due to security issues, as this will cause the mini program to be unable to carry out normal business processing. Taking the above-mentioned mini program with the phone recharge function as an example, if the mini program is directly prohibited from obtaining the user's contact data due to security issues, the mini program will not be able to complete the normal phone recharge service.
[0032] Therefore, for platform-based applications, there is currently a lack of a highly secure, flexible, and fine-grained method for controlling the behavior of mini-programs in calling user privacy data.
[0033] In response to the above problems, this manual proposes:
[0034] The calling permissions of each mini-program are pre-configured. The calling permissions include the provisions on the behavior sequence through which the mini-program can obtain various privacy data. When managing the behavior of the target mini-program calling privacy data, the behavior sequence run by the target mini-program before calling the privacy data can be obtained, and then based on the obtained behavior sequence and the pre-configured calling permissions of the target mini-program, it is determined whether to prohibit the target mini-program from calling the privacy data.
[0035] like Figure 2 As shown, this specification proposes a management and control method based on privacy data call, which is applied to platform applications.
[0036] Pre-configure the calling permissions of each mini program, where the calling permissions are used to describe the legal behavior sequence and / or illegal behavior sequence corresponding to the mini program calling various private data;
[0037] When a mini program is installed in a platform application, you can determine which users' privacy data the mini program needs to obtain and when to perform which functions the privacy data needs to be obtained based on the basic functions of the mini program.
[0038] Based on the determined information, the calling authority of the mini program is automatically generated, and the calling authority may include a legal behavior sequence and / or an illegal behavior sequence for the mini program to obtain various private data.
[0039] Taking the taxi app as an example, the app needs to obtain the user's location information when executing the call function; at the end of the trip, it needs to obtain the user's account information for settlement. The app does not need to obtain other user privacy data except location information and account information.
[0040] The calling permissions of the taxi-hailing mini program can be generated according to the determined information, and the generated calling permissions can be shown in Table 1:
[0041]
[0042] Table 1
[0043] In the above example, the calling permissions of the mini program including the legal behavior sequence are automatically generated. Of course, illegal behavior sequences can also be automatically generated. Taking the above taxi mini program as an example, the illegal behavior sequence can be opening the mini program - viewing historical orders - obtaining location information; opening the mini program - evaluating the order - obtaining location information, and so on.
[0044] It can be understood that the legal behavior sequences and illegal behavior sequences in the above examples are merely illustrative. In actual applications, multiple legal behavior sequences and / or illegal behavior sequences can be automatically generated based on the basic functions of each mini-program, where there may be multiple legal behavior sequences and / or illegal behavior sequences for each type of privacy data.
[0045] At the same time, after the basic functions of the mini-program are updated, the platform application can synchronously update the legal behavior sequence and / or illegal behavior sequence in the mini-program's calling permissions according to the basic function update content.
[0046] Taking the taxi-hailing mini program as an example, if the taxi-hailing mini program has added a basic function of "adding emergency contacts", then a legal behavior sequence of opening the mini program - adding emergency contacts - obtaining address book information can be added to the calling permissions of the taxi-hailing mini program.
[0047] Alternatively, after the mini program has disabled certain basic functions, the legal behavior sequence and / or illegal behavior sequence in the calling permissions of the taxi-hailing mini program may be updated accordingly.
[0048] Using the above method, platform applications can update content based on the basic functions of the mini-program, dynamically update the calling permissions of the mini-program, and promptly meet the normal calling needs of the mini-program's privacy data.
[0049] After pre-configuring the calling permissions for each mini-program, the platform application client can use the calling permissions to control the behavior of the target mini-program in obtaining user privacy data. Basically, the following steps can be performed each time the control is performed:
[0050] S201, obtaining the actual behavior sequence executed by the target applet before calling the private data;
[0051] Since the target mini program needs to obtain private data through the interface provided by the platform application, the platform application client can detect at the interface when the mini program sends a request to obtain private data and obtain the actual behavior sequence;
[0052] S202: Determine whether to prohibit the target applet from calling the private data by using the acquired actual behavior sequence, the type of the private data, and the pre-configured calling authority of the target applet.
[0053] In one embodiment, if the calling permission only includes the legal behavior sequence of the target applet calling various private data, then in this step, it can be determined whether the actual behavior sequence of the applet obtained is one of the legal behavior sequences in the calling permission. If so, it is determined that the target applet specifically obtains the permission of the private data through the behavior sequence, and the target applet is allowed to call the private data. If not, the target applet is prohibited from calling the private data.
[0054] Taking the above-mentioned taxi-hailing mini program and Table 1 as an example, it can be that the behavior sequence performed by the taxi-hailing mini program before obtaining the private data is obtained. For example, the actual behavior sequence of the mini program obtained is "open the mini program-start calling a taxi", and the type of private data to be obtained is location information. Then, it can be determined that the implementation behavior sequence of the mini program obtained is one of the legal behavior sequences of the taxi-hailing mini program, and it is determined that the taxi-hailing mini program has the authority to call the location information through the behavior sequence, and the taxi-hailing mini program is further allowed to obtain the location information.
[0055] In one embodiment, if the calling authority only includes illegal behavior sequences of the target applet calling various private data, then in this step, it can be determined whether the obtained implementation behavior sequence of the applet is one of the illegal behavior sequences in the calling authority. If so, it is determined that the target applet does not have the authority to obtain the private data through the behavior sequence, and the target applet is prohibited from calling the private data. If not, the target applet is allowed to call the private data.
[0056] In one embodiment, if the calling permission includes both legal behavior sequences and illegal behavior sequences for the target applet to call various private data, in order to ensure security, it can be determined whether the obtained implementation behavior sequence of the applet is one of the legal behavior sequences in the calling permission. If so, it is determined that the target applet specifically obtains the permission of the private data through the behavior sequence, and the target applet is allowed to call the private data. If not, the target applet is directly prohibited from calling the private data. That is, only the legal behavior sequences in the calling permission are used.
[0057] Of course, you can also execute Figure 3The method described above utilizes both legal behavior sequences and illegal behavior sequences. Considering that most behaviors of calling private data are legal, in order to improve efficiency, S301 can be executed first, that is, determining whether the actual behavior sequence of the mini program obtained is one of the legal behavior sequences in the calling permission. If so, S304 is executed, that is, the target mini program is allowed to call the private data. Since most behaviors of calling private data are legal, most behaviors of calling private data will only execute S304. If not, S302 is executed, that is, determining whether the realized behavior sequence of the mini program obtained is one of the illegal behavior sequences in the calling permission. If so, S305 is executed, that is, the target mini program is directly prohibited from calling the private data. If not, S303 is executed, and the result can be reported to the user, and the user determines whether the mini program can currently obtain the private data. For example, a dialog box pops up "Whether to allow the target mini program to obtain your XX data through XX behavior sequence", and provides the user with a corresponding operation interface so that the user can input according to the operation interface. After the user inputs, it can be determined whether the target mini program is prohibited from calling the private data according to the user's input.
[0058] After execution, the calling permissions of the target mini-program are dynamically updated according to the user's input, wherein the updating method can be to configure the obtained behavior sequence as an illegal behavior sequence in the calling permissions of the mini-program after the user chooses not to allow, or to configure the obtained behavior sequence as a legal behavior sequence in the calling permissions of the mini-program after the user chooses to allow.
[0059] This method allows users to determine whether to allow the mini program to call private data based on their actual needs in uncertain situations, and dynamically configure the calling permissions of the target mini program.
[0060] In this specification, the behavior of the mini program calling privacy data can be controlled based on the sequence of behaviors run before the mini program calls the user's privacy data, thereby achieving a more detailed and flexible control over the mini program's acquisition of privacy data. That is, it does not completely prohibit the mini program from obtaining certain privacy data, or completely allow the mini program to obtain certain privacy data. Instead, it determines whether each mini program really needs to obtain privacy data based on the actual situation according to the basic functions of the mini program, and then controls it. This ensures the security of privacy data while also ensuring that the mini program can carry out normal business processing.
[0061] Taking into account that the mini program relies on platform applications, the mini program needs to call the network exit of the platform application to send data. If the mini program only obtains the private data through the interface but does not send it out, it is not a privacy leak for the user. Therefore, the above S201 can also be executed at the network exit, that is, after the target mini program obtains the private data and sends the private data out through the network exit, the behavior sequence is obtained, that is, the actual behavior sequence run by the target mini program before calling the private data is obtained.
[0062] If it is determined that the target applet does not have the authority to call the privacy data through the actual behavior sequence, the target applet is prohibited from sending the privacy data.
[0063] In this method, when it is detected that the mini program needs to call the network exit to send out data, its outbound behavior is intercepted, and it is detected whether the mini program sends out private data. Other data sent out by the mini program is not perceived, that is, the specific data content of other data sent out by the mini program is not known. The specific detection method can refer to the relevant technology, and this manual will not elaborate on this. When it is determined that the target mini program sends out private data, the type of the private data can be further obtained, and it can be determined whether the target mini program is prohibited from sending this type of private data.
[0064] In addition, considering that the local processing performance of the platform application client may be poor, S201 and S202 may also be executed by the platform application server, that is, the platform application server may receive the actual behavior sequence, the type of the private data, and the identifier of the target mini-program uploaded by the platform application client;
[0065] Among them, the platform application client can obtain the actual behavior sequence of the target applet running before calling the privacy data at the interface or network exit.
[0066] If the platform application server determines that the target applet does not have the authority to call the privacy data through the actual behavior sequence, it generates an instruction to prohibit the target applet from calling the privacy data; among them, the determination of whether it has the authority can be referred to above and will not be described in detail here.
[0067] The instruction is sent to the platform application client so that the platform application client executes the instruction.
[0068] If the platform application client obtains the actual behavior sequence of the target applet before calling the private data at the interface, the platform application server may issue an instruction to allow or prohibit the target applet from obtaining the private data;
[0069] If the platform application client obtains at the exit the actual behavior sequence of the target applet executed before calling the private data, the platform application server may issue an instruction to allow or prohibit the target applet from sending the private data.
[0070] Of course, the platform application server does not need to know where the client obtains the behavior sequence, and can directly issue instructions to allow or prohibit the target applet from obtaining and sending the private data.
[0071] After receiving the instruction, the platform application client can allow or prohibit the target applet from obtaining and sending the private data according to the instruction.
[0072] With this approach, there is no need to deploy call permissions and major call behavior control functions on the client side, but on the server side, which reduces the pressure on platform application clients.
[0073] like Figure 4 As shown, corresponding to the aforementioned control method based on privacy data call, this specification also provides a control device based on privacy data call, which pre-configures the call permissions of each mini program according to the basic functions of each mini program, and the call permissions are used to describe the legal behavior sequence and / or illegal behavior sequence corresponding to the mini program calling various privacy data; the device includes:
[0074] The behavior sequence acquisition module 410 is used to acquire the behavior sequence executed by the target applet before calling the private data;
[0075] The calling behavior control module 420 is used to determine whether to prohibit the target applet from calling the privacy data by using the acquired behavior sequence, the type of the privacy data, and the pre-configured calling authority of the target applet.
[0076] In one embodiment, the device is deployed on a platform application client.
[0077] The behavior sequence acquisition module 410 is specifically used to acquire the behavior sequence when detecting that the mini program sends a request for obtaining private data;
[0078] The calling behavior control module 420 is specifically used to prohibit the target applet from obtaining the privacy data when it is determined that the target applet does not have the authority to call the privacy data through the behavior sequence.
[0079] In one embodiment, the device is deployed on a platform application client.
[0080] The behavior sequence acquisition module 410 is specifically used to acquire the behavior sequence when the target applet acquires the private data and sends the private data out through a network exit;
[0081] The calling behavior control module 420 is specifically used to prohibit the target applet from sending the private data when it is determined that the target applet does not have the authority to call the private data through the behavior sequence.
[0082] In one embodiment, the calling authority of the target applet includes a legal behavior sequence corresponding to the calling of various private data by the target applet;
[0083] The calling behavior control module 420 is specifically used to determine that the target applet does not have the authority to call the privacy data through the behavior sequence when the acquired behavior sequence is not any legal behavior sequence for the target applet to call the privacy data included in the calling authority.
[0084] like Figure 5 As shown, in one embodiment, the device also includes a calling permission update module 430, which is used to synchronously update the legal behavior sequence and / or illegal behavior sequence in the calling permissions of the target applet according to the basic function update content of the target applet after the basic functions of the target applet are updated.
[0085] In one embodiment, the device is deployed on a platform application server.
[0086] The behavior sequence acquisition module 410 is specifically used to receive the behavior sequence, the type of the private data and the identifier of the target applet uploaded by the platform application client;
[0087] The calling behavior control module 420 is specifically used to generate an instruction to prohibit the target applet from calling the privacy data when it is determined that the target applet does not have the authority to call the privacy data through the behavior sequence; and send the instruction to the platform application client so that the platform application client executes the instruction.
[0088] In one embodiment, the calling behavior control module 420 is specifically used to send the generated instructions to the platform application client, so that the platform application client prohibits the target applet from obtaining and / or sending the private data.
[0089] In one embodiment, the calling authority of the target applet includes the legal behavior sequence and illegal behavior sequence corresponding to the calling of various privacy data by the target applet;
[0090] The calling behavior control module 420 is further used to determine whether the actual behavior sequence obtained is any legal behavior sequence for the target applet to call the privacy data included in the calling permission;
[0091] In the case that it is not any legal behavior sequence, determining whether the actual behavior sequence is any illegal behavior sequence for the target applet to call the privacy data included in the calling authority;
[0092] Provide an operation interface to the user without any illegal behavior sequence;
[0093] According to the input result of the user through the operation interface, it is determined whether to prohibit the target applet from calling the privacy data.
[0094] The calling behavior control module 420 is also used to update the calling authority of the target applet according to the input result of the user through the operation interface.
[0095] The implementation process of the functions and effects of each component in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.
[0096] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts refer to the partial description of the method embodiment. The device embodiment described above is only illustrative. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this specification. Ordinary technicians in this field can understand and implement it without paying creative work.
[0097] The embodiment of this specification also provides a computer device, which at least includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the aforementioned method when executing the program. The method at least includes:
[0098] Obtain the actual behavior sequence that the target applet runs before calling the private data;
[0099] By using the acquired behavior sequence, the type of the private data, and the pre-configured calling authority of the target applet, it is determined whether to prohibit the target applet from calling the private data.
[0100] Figure 6A more specific hardware structure diagram of a computing device provided in an embodiment of this specification is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0101] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0102] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0103] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0104] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0105] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0106] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0107] The present specification also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the aforementioned method is implemented. The method at least includes:
[0108] Obtain the actual behavior sequence that the target applet runs before calling the private data;
[0109] By using the acquired behavior sequence, the type of the private data, and the pre-configured calling authority of the target applet, it is determined whether to prohibit the target applet from calling the private data.
[0110] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0111] It can be known from the above description of the implementation mode that the technicians in this field can clearly understand that the embodiments of this specification can be implemented by means of software plus the necessary general hardware platform. Based on such an understanding, the technical solution of the embodiments of this specification can be essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments of this specification.
[0112] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.
[0113] Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device embodiment described above is merely schematic, wherein the modules described as separate components may or may not be physically separated, and the functions of each module can be implemented in the same one or more software and / or hardware when implementing the embodiment scheme of this specification. It is also possible to select some or all of the modules according to actual needs to achieve the purpose of the embodiment scheme. A person of ordinary skill in the art can understand and implement it without paying creative labor.
[0114] The above is only a specific implementation of the embodiments of this specification. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the embodiments of this specification. These improvements and modifications should also be regarded as the protection scope of the embodiments of this specification.
Claims
1. A management and control method based on private data calling, pre-configuring the calling permissions of each mini program, wherein the calling permissions are used to describe the legal behavior sequence and / or illegal behavior sequence corresponding to the mini program calling various private data; the method is applied to a platform application server, and includes: Obtaining an actual behavior sequence that the target mini-program runs before calling the private data, including: receiving an actual behavior sequence that the target mini-program runs before calling the private data, a type of the private data, and an identifier of the target mini-program uploaded by the platform application client; By using the acquired actual behavior sequence, the type of the private data, and the pre-configured calling authority of the target applet, it is determined whether to prohibit the target applet from calling the private data.
2. According to the method of claim 1, the pre-configuring the calling permissions of each mini-program comprises: The calling permissions of each mini program are pre-configured according to the basic functions of each mini program.
3. The method according to claim 1, further comprising: Determine whether the target applet has the calling permission for the private data.
4. The method according to claim 1, wherein the actual behavior sequence comprises: The platform application client obtains the actual behavior sequence of the target applet before calling the private data at the interface or network exit.
5. According to the method of claim 1, the step of obtaining the actual behavior sequence executed by the target applet before obtaining the private data comprises: Receiving the actual behavior sequence, the type of the private data, and the identifier of the target mini-program uploaded by the platform application client; wherein the actual behavior sequence is obtained by the platform application client when detecting that the mini-program sends a request for obtaining private data; The determining whether to prohibit the target applet from calling the private data by utilizing the acquired actual behavior sequence, the type of the private data, and the pre-configured calling authority of the target applet includes: If it is determined that the target applet does not have the authority to call the privacy data through the actual behavior sequence, the target applet is prohibited from obtaining the privacy data.
6. According to the method of claim 1, the step of obtaining the actual behavior sequence executed by the target applet before obtaining the private data comprises: Receiving the actual behavior sequence, the type of the private data, and the identifier of the target applet uploaded by the platform application client; wherein the actual behavior sequence is obtained by the platform application client after the target applet obtains the private data and sends the private data out through a network exit; The determining whether to prohibit the target applet from calling the private data by utilizing the acquired actual behavior sequence, the type of the private data, and the pre-configured calling authority of the target applet includes: If it is determined that the target applet does not have the authority to call the private data through the actual behavior sequence, the target applet is prohibited from sending the private data.
7. According to the method of claim 5 or 6, the calling authority of the target applet includes a legal behavior sequence corresponding to the calling of various privacy data by the target applet; The determining that the target applet does not have the authority to call the privacy data through the actual behavior sequence includes: If the actual behavior sequence obtained is not any legal behavior sequence for the target applet to call the privacy data included in the calling permission, it is determined that the target applet does not have the permission to call the privacy data through the actual behavior sequence.
8. The method according to claim 1, further comprising: After the basic functions of the target mini-program are updated, the legal behavior sequences and / or illegal behavior sequences in the calling permissions of the target mini-program are synchronously updated according to the updated content of the basic functions of the target mini-program.
9. The method according to claim 1, wherein the step of determining whether to prohibit the target applet from calling the private data by using the acquired actual behavior sequence, the type of the private data, and the pre-configured calling authority of the target applet comprises: If it is determined that the target applet does not have the authority to call the private data through the actual behavior sequence, an instruction to prohibit the target applet from calling the private data is generated; The instruction is sent to the platform application client so that the platform application client executes the instruction.
10. The method according to claim 9, wherein sending the instruction to the platform application client so that the platform application client executes the instruction comprises: The generated instruction is sent to the platform application client, so that the platform application client prohibits the target applet from obtaining and / or sending the private data.
11. The method according to claim 1, wherein the calling authority of the target applet includes legal behavior sequences and illegal behavior sequences corresponding to the calling of various privacy data by the target applet; the method further comprises: Determine whether the actual behavior sequence obtained is any legal behavior sequence for the target applet to call the privacy data included in the calling permission; In the case that it is not any legal behavior sequence, determining whether the actual behavior sequence is any illegal behavior sequence for the target applet to call the privacy data included in the calling authority; Provide an operation interface to the user without any illegal behavior sequence; According to the input result of the user through the operation interface, it is determined whether to prohibit the target applet from calling the privacy data.
12. The method according to claim 11, further comprising: According to the input result of the user through the operation interface, the calling permission of the target applet is updated.
13. A control device based on private data call, pre-configuring the call permissions of each mini program, wherein the call permissions are used to describe the legal behavior sequence and / or illegal behavior sequence corresponding to the mini program calling various private data; the device is applied to a platform application server, comprising: A behavior sequence acquisition module, used to acquire the behavior sequence that the target applet runs before calling the private data, specifically used to receive the behavior sequence that the target applet runs before calling the private data, the type of the private data, and the identifier of the target applet uploaded by the platform application client; The calling behavior control module is used to determine whether to prohibit the target applet from calling the privacy data by using the acquired behavior sequence, the type of the privacy data, and the pre-configured calling authority of the target applet.
14. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, at least the method according to any one of claims 1 to 12 is implemented.
