CN113742773A - Privacy bullet frame detection method, device, equipment and storage medium - Google Patents

Privacy bullet frame detection method, device, equipment and storage medium Download PDF

Info

Publication number
CN113742773A
CN113742773A CN202111014849.0A CN202111014849A CN113742773A CN 113742773 A CN113742773 A CN 113742773A CN 202111014849 A CN202111014849 A CN 202111014849A CN 113742773 A CN113742773 A CN 113742773A
Authority
CN
China
Prior art keywords
privacy
view object
text
text view
word
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111014849.0A
Other languages
Chinese (zh)
Inventor
朱文勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202111014849.0A priority Critical patent/CN113742773A/en
Publication of CN113742773A publication Critical patent/CN113742773A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Abstract

The application provides a privacy elastic frame detection method, device, equipment and storage medium. The method comprises the steps of acquiring each text view object in a dialog box when a first function for displaying the dialog box is called; acquiring text information in each text view object, acquiring one or more privacy words in a privacy word bank, and performing hit matching on the text information in each text view object and the privacy words in the privacy word bank; and when the text view object successfully matched with the privacy word hit exists in the text view objects, determining the dialog box as a privacy bullet box. The accuracy of privacy bullet frame detection can be promoted. The application may relate to blockchain techniques, such as writing reference information for privacy-resilient boxes in a blockchain. The application also relates to the technical field of digital medical treatment, such as text information including information of the technical field of digital medical treatment.

Description

Privacy bullet frame detection method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for detecting a privacy popup box.
Background
With the rapid development of science and technology, more and more application programs enter people's lives. For each application, various regulations and regulations in terms of data privacy and own data protection requirements need to be met at the time of application release, so privacy detection needs to be performed on the application before the application is released. Among them, the privacy box detection is a research focus in privacy detection.
In the market, Optical Character Recognition (OCR) is mainly used to search a page screenshot containing a dialog box, perform regular matching on a text analyzed by the page screenshot, and find a corresponding privacy box page according to a regular matching result. Although the OCR image recognition precision is high at present, the situation of recognition error still exists, so that the detection of the privacy bullet box is not accurate enough. Therefore, how to improve the accuracy of detecting the privacy popup box is an urgent problem to be solved.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a storage medium for detecting a privacy bullet frame, which can carry out privacy bullet frame detection according to an original text field of text information in a text view object, and can improve the accuracy of privacy bullet frame detection.
In a first aspect, an embodiment of the present application provides a privacy popup frame detection method, where the privacy popup frame detection method includes:
when a first function for displaying the dialog box is called, acquiring each text view object in the dialog box; the text view object is used for displaying text information in the dialog box;
acquiring text information in each text view object, acquiring one or more privacy words in a privacy word bank, and performing hit matching on the text information in each text view object and the privacy words in the privacy word bank;
and when the text view object successfully matched with the privacy word hit exists in the text view objects, determining the dialog box as a privacy bullet box.
In a second aspect, an embodiment of the present application provides a privacy elastic frame detection apparatus, including:
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring each text view object in a dialog box when a first function for displaying the dialog box is called; the text view object is used for displaying text information in the dialog box;
the hit matching unit is used for acquiring text information in each text view object, acquiring one or more privacy words in the privacy word bank, and performing hit matching on the text information in each text view object and the privacy words in the privacy word bank;
and the determining unit is used for determining the dialog box as the privacy popup box when the text view object which is successfully matched with the hit privacy word exists in the text view objects.
In a third aspect, the present application provides a privacy box detection apparatus, where the privacy box detection apparatus includes a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is used to store a computer program, and the computer program includes a program, and the processor is configured to call the program and execute the privacy box detection method of the first aspect.
In a fourth aspect, this application implementation provides a computer-readable storage medium storing a computer program comprising program instructions that, when executed by a processor, cause the processor to perform the privacy box detection method of the first aspect.
In the embodiment of the application, when a first function for displaying the dialog box is called, text view objects in the dialog box can be obtained, text information in each text view object and one or more privacy words in a privacy word bank are obtained, and the text information in each text view object and the privacy words in the privacy word bank are subjected to hit matching; and when the text view object successfully matched with the privacy word hit exists in the text view objects, determining the dialog box as a privacy bullet box. The obtained text information of the text view object is an original text field, the privacy bullet box determined based on the hit matching result of the text information of the text view object and the privacy words in the privacy word bank is more accurate, and the problem of low detection accuracy of the privacy bullet box caused by inaccurate OCR recognition in an OCR recognition scheme can be solved. In addition, the method of introducing the first quantity threshold value to determine the text view object successfully matched with the privacy word hit and/or introducing the second quantity threshold value to determine the dialog box as the privacy box can further improve the accuracy of the detection of the privacy box.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a privacy elastic frame detection system provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for detecting a privacy bullet box according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another privacy bullet box detection method provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a privacy elastic frame detection apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a privacy elastic frame detection device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
At present, with the rapid development of science and technology, various industries develop application programs, such as the financial industry, the digital medical industry and the like. Since applications that do not meet various regulatory regulations on data privacy are penalized and the cost of late-fix of applications is high, privacy checks need to be performed on applications before they are released. Among them, the privacy box detection is a research focus in privacy detection.
At present, OCR is mainly used in the market to search all page screenshots containing dialog boxes, and the texts analyzed by the page screenshots are subjected to regular matching, and the corresponding privacy popup box pages are found according to the regular matching result. Although the OCR image recognition precision is high at present, the situation of recognition error still exists, so that the detection of the privacy bullet box is not accurate enough.
Based on this, the embodiment of the application provides a method, a device, equipment and a storage medium for detecting a privacy popup. In the method for detecting the privacy bullet box, when a first function used for displaying the dialog box is called, a text view object in the dialog box is obtained, hit matching is conducted on text information in the text view object and privacy words in a privacy word bank, and whether the dialog box is the privacy bullet box or not is judged according to a hit matching result. According to the scheme of the embodiment of the application, the privacy popup box detection can be carried out according to the original text field of the text information of the text view object, and the accuracy of the privacy popup box detection can be improved.
In one embodiment, the privacy box detection method may be applied in a privacy box detection system as shown in fig. 1, and as shown in fig. 1, the privacy box detection system may at least include: a privacy box detection device 11 and a data storage device 12. The privacy pop frame detection device 11 may be any device with privacy pop frame detection capability, and the privacy pop frame detection device 11 may be a terminal device as shown in fig. 1, which may include but is not limited to: smart phones, tablets, laptops, wearable devices, desktop computers, and the like. The data storage device 12 may be a device having a data storage function, the data storage device 12 may be a server as shown in fig. 1, the server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, cloud database, cloud computing, cloud function, cloud storage, Network service, cloud communication, Content Delivery Network (CDN), middleware service, domain name service, security service, big data, and artificial intelligence platform, and the like.
Based on the above description, an embodiment of the present application provides a privacy popup frame detection method, which may be applied to a privacy popup frame detection device. The privacy elastic frame detection method of the embodiment of the application is described in detail below. Referring to fig. 2, fig. 2 illustrates a privacy popup detection method. As shown in fig. 2, the method includes S201-S203:
s201: when a first function for displaying the dialog box is called, acquiring each text view object in the dialog box; the text view object is used to display text information within a dialog box.
In one implementation, the privacy detection device may open a launch page for an application and display a dialog box in the launch page in response to a launch operation for the application. Optionally, the opening operation may be detecting that the user has an opening operation on the application program in the user interface. In specific implementation, the privacy detection device may display a user interface, and when a start operation is detected on an icon corresponding to an application program, a start page of the application program may be opened, and a dialog box may be displayed. Optionally, the start operation may be a start operation triggered by a preset timing trigger instruction. In a specific implementation, the privacy detection device may open a start page of the application program in response to the timing trigger instruction, and display a dialog box. The timing trigger instruction may carry identification information of the application program. For example, the timed task may be deployed through tools such as the blue shield, Soda, and the like, the application is started, a start page of the application is opened, and a dialog box is displayed.
Wherein the dialog box is a small window supporting human-computer interaction, and the dialog box can be generated through a dialog box object created by a third function. Wherein the third function may be a Dialog function. For example, as is known, a Dialog box commonly found in the art is mainly implemented by a Dialog function, and the Dialog box can be generated by a Dialog object created by the Dialog function. Further, the Dialog function may include a display function and a text view function, and optionally, the display function may be represented as a show function, and the text view function may be represented as a TextView function. When the application program is started, the privacy box detection device can call a display function in the Dialog function to pop up the Dialog box, and the text view function is used for displaying text information in the Dialog box. Based on this, the privacy box detection device may take the display function or the text view function as a dotted point, that is, take the display function or the text view function as a first function, and when the privacy box detection device calls the first function (the display function or the text view function) for displaying the dialog box, each text view object in the dialog box may be acquired. The text view object is an object constructed by a text view function and used for showing text information in a dialog box, and can be represented as a TextView object.
In one embodiment, the step of the privacy box detection device acquiring each text view object in the dialog box comprises: acquiring a first view object in a dialog box; comparing the type of the first view object with the type of the text view object through a first execution instruction; and when the type of the first view object is the type of the text view object, determining that the first view object is the text view object. Alternatively, the first View object may be represented as a View object. Optionally, the text view object may be stored in a list, so as to facilitate a subsequent call to the text view object for analysis processing.
One or more view objects may be included in the dialog box. For example, a View object, a Keys object, etc., the View object in the dialog may be obtained by:
Figure BDA0003239577290000051
wherein the View object may comprise a plurality of types. For example, a surfaceView object or a TextView object, etc. Optionally, the first execution instruction may include code that may compare the type of the View object with the type of the TextView object using the first execution instruction.
If(viewChild instanceof TextView){
//
}
In one embodiment, the original execution logic of the first function is only used for displaying the dialog box, so that the execution logic of the first function needs to be changed, so that the detection of the privacy popup box can be triggered when the first function is called. Specifically, the privacy elastic frame detection device can start a root authority, configure a first frame based on the root authority, and change the execution logic of a first function through the first frame to obtain a changed execution logic; the modified execution logic is to instruct that, when a first function for displaying a dialog box is invoked, the respective textview object in the dialog box is retrieved to perform the detection of the privacy box.
Alternatively, the first frame may be an Xposed frame. The Xpos frame is a hook frame running in an Android operating system (Android). The method can replace key files of an Android system, can intercept the calling of almost all Java functions, and can change the Java functions through custom codes in an Xposed framework. Such as a call to change a Java function. Based on this, the privacy pop box detection device may change the execution logic of a first function (the first function is a Java function) for displaying the dialog box through the custom code in the Xposed framework, so as to obtain the changed execution logic.
The first function of the dialog box is accurately positioned in a dot-drawing mode, and privacy popup detection is triggered when the first function for displaying the dialog box is called. And only one line of code is added in the original code, so that light weight detection can be realized. In addition, according to the scheme, when the first function is called, the detection of the privacy elastic frame is directly triggered, additional operation is not needed, the privacy elastic frame detection can be carried out without perception, and the user experience is improved.
S202: and acquiring text information in each text view object, acquiring one or more privacy words in a privacy word bank, and performing hit matching on the text information in each text view object and the privacy words in the privacy word bank.
In one embodiment, the text information in the text view object can be obtained through the second function, and the word segmentation processing is performed on the text information of the text view object to obtain a word segmentation set; the participle set comprises one or more participles; and performing hit matching on each participle in the participle set and the privacy words in the privacy word bank, and determining whether the text view object is a text view object which is successfully hit matched with the privacy words based on a hit matching result. The second function may be a getText function, and text information in the text view object may be acquired through the getText function. Wherein the textual information in the textual view object may relate to various domains. For example, the text information relates to the technical field of artificial intelligence, including prompt information and the like in the technical field of artificial intelligence. As another example, the textual information relates to the field of digital medical technology, including medical data in the field of digital medical technology, and the like.
Optionally, when the participle successfully matched with the hit of the privacy word exists in the participle set, the text view object may be directly determined to be the text view object successfully matched with the hit of the privacy word. For example, let there be three privacy words, "identity information", "contact information" and "transaction information" in the privacy thesaurus. When the text information of the text view object is 'lovely user' and real-name management is performed according to the requirements of relevant laws and regulations, the identity information of the user needs to be collected legally. "the word segmentation set obtained by performing word segmentation processing on the text information of the text view object includes the following words: lovely, user, in-compliance, related, regulation, on-demand, on-going, real-name, administrative, your, identity information, need, quilt, legal, and collectible. The participles 'identity information' successfully matched with the private words hit exist in the participle set, and the text view object and the private words can be determined to be successfully matched with each other.
Optionally, further, since misjudgment may occur in hit matching, the text information of the text view object without the privacy word is misjudged as the text view object with the privacy word, that is, no word segmentation successfully matched with the privacy word is misjudged as the word segmentation successfully matched with the privacy word. Therefore, in order to improve the accuracy of the privacy bullet box detection, a first number of the participles in the participle set, which are successfully matched with the privacy words in a hit mode, may be further obtained, the first number is compared with a first number threshold, and when the first number is greater than the first number threshold, the text view object is determined to be the text view object successfully matched with the privacy words in a hit mode. Wherein the first number threshold may be set based on experience or traffic demand. Still taking the above example, assuming that the first number threshold is 1, when the text information of the text view object is "lovely user, and real-name management is performed according to the related legal requirements, your identity information needs to be collected legally. "the word segmentation set obtained by performing word segmentation processing on the text information of the text view object includes the following words: lovely, user, in-compliance, related, regulation, on-demand, on-going, real-name, administrative, your, identity information, need, quilt, legal, and collectible. Only the participles 'identity information' successfully matched with the private words hit exist in the participle set, the first number is equal to a first number threshold value, and it can be determined that the text view object and the private words hit and match unsuccessfully. When the text information of the text view object is 'lovely users' and real-name management is performed according to the requirements of relevant laws and regulations, the identity information and the transaction information of the users need to be collected legally. "the word segmentation set obtained by performing word segmentation processing on the text information of the text view object includes the following words: lovely, user, in-compliance, related, regulation, on-demand, on-going, real-name, administrative, your, identity information, and, transaction information, need, quilt, law and collection. The participles of 'identity information' and 'transaction information' successfully matched with the private words are present in the participle set, the first number is larger than a first number threshold value, it can be determined that the text view object is successfully matched with the private words, and the text view object is successfully matched with the private words.
S203: and when the text view object successfully matched with the privacy word hit exists in the text view objects, determining the dialog box as a privacy bullet box.
Wherein, the dialog box can comprise one text view object or a plurality of text view objects. Optionally, when a text view object successfully matched with the hit of the privacy word exists in the text view objects, the dialog box may be directly determined to be a privacy box.
Optionally, further, since misjudgment may occur in hit matching, in order to improve accuracy of detection of the privacy pop-up box, a second number of text view objects that are successfully hit-matched with the privacy word in the dialog box may be further obtained, and when the second number is greater than a second number threshold, the dialog box is determined to be the privacy pop-up box. Wherein the second number threshold may be set based on experience or traffic demand.
In the embodiment of the application, when a first function for displaying the dialog box is called, text view objects in the dialog box can be obtained, text information in each text view object and one or more privacy words in a privacy word bank are obtained, and the text information in each text view object and the privacy words in the privacy word bank are subjected to hit matching; and when the text view object successfully matched with the privacy word hit exists in the text view objects, determining the dialog box as a privacy bullet box. The obtained text information of the text view object is an original text field, the privacy bullet box determined based on the hit matching result of the text information of the text view object and the privacy words in the privacy word bank is more accurate, and the problem of low detection accuracy of the privacy bullet box caused by inaccurate OCR recognition in an OCR recognition scheme can be solved. In addition, the method of introducing the first quantity threshold value to determine the text view object successfully matched with the privacy word hit and/or introducing the second quantity threshold value to determine the dialog box as the privacy box can further improve the accuracy of the detection of the privacy box.
As can be seen from the above description of the embodiment of the method shown in fig. 2, the method for detecting a privacy pop-up box shown in fig. 2 may determine whether the text view object is a text view object that is hit-matched with the privacy word successfully according to the hit-matching result of the segmentation word and the privacy word in the segmentation word set. In another embodiment, whether the text view object is a text view object successfully matched with the privacy word hit may also be determined according to the number of privacy word words in the text view object and the total number of words of the text information in the text view object. Based on this, referring to fig. 3, an embodiment of the present application further proposes another privacy bullet box detection method, where the privacy bullet box detection method includes S301 to S305:
s301: when a first function for displaying the dialog box is called, acquiring each text view object in the dialog box; the text view object is used to display text information within a dialog box.
S302: and acquiring text information in the text view object through a second function.
The specific implementation of S301-S302 can refer to the specific description of the related embodiment in fig. 2, which is not described herein again.
S303: and acquiring the total word number of the text information in the text view object and the privacy word number in the text view object, and determining the first probability according to the total word number of the text information in the text view object and the privacy word number in the text view object.
S304: and when the first probability is larger than a first probability threshold, determining the text view object as a text view object successfully matched with the hit of the privacy word.
Specifically, when the first probability is greater than a first probability threshold, the text view object is determined to be a text view object successfully matched with the privacy word hit, and when the first probability is less than or equal to the first probability threshold, the text view object and the privacy word hit are determined to be unsuccessfully matched. Wherein the first probability threshold may be set based on experience or traffic demand.
For example, assuming that the first probability threshold is 0.15, when the text information of the text view object is "lovely users, and real name system management is performed according to the related legal requirements, and your identity information needs to be collected legally", the total word number of the text information in the text view object is 33, the privacy word in the text view object is "identity information", and the privacy word number in the text view object is 4, the first probability is determined to be 0.12 according to the total word number of the text information in the text view object and the privacy word number in the text view object, and 0.12 is smaller than the first probability threshold 0.15, so that it may be determined that the text view object and the privacy word are not matched. When the text information of the text view object is 'lovely user, real name system management is performed according to the requirements of relevant regulations, and the identity information and the transaction information need to be collected legally', the total word number of the text information in the text view object is 37, the privacy word number of the text view object is 8, a first probability is determined to be 0.21 according to the total word number of the text information in the text view object and the privacy word number of the text view object, wherein 0.21 is greater than a first probability threshold value of 0.15, so that the text view object can be determined to be successfully matched with the privacy word hit at the moment, and the text view object is the text view object successfully matched with the privacy word hit.
S305: and when the text view object successfully matched with the privacy word hit exists in the text view objects, determining the dialog box as a privacy bullet box.
In one embodiment, for further analysis of the privacy box, after determining that the dialog box is a privacy box, reference information for the privacy box may also be generated. The reference information is used to indicate that the dialog box is a privacy box. Optionally, the reference information of the privacy pop box may be a screenshot of a page containing the privacy pop box. Optionally, the reference information of the privacy bullet box may also be text information of a text view object of the privacy bullet box.
In one embodiment, the reference information of the privacy bullet box may be saved at the privacy bullet box detection device. In another embodiment, the reference information of the privacy box can be uploaded to a data storage device so that the data storage device can analyze data. In another embodiment, for data security, reference information of the privacy box may also be written into a Block Chain (Block Chain) to facilitate data analysis on the reference information of the privacy box. Specifically, the privacy elastic frame detection device can verify the reference information of the privacy elastic frame, and if the verification is passed, the consensus node in the block chain network verifies the reference information of the privacy elastic frame; and if the consensus verification is passed, packaging the reference information of the privacy elastic frame into a block, and writing the block into a block chain.
The block chain is a chain data structure formed by combining data blocks in a sequential connection mode according to a time sequence, and a distributed account book which can not be tampered and forged of data is guaranteed in a cryptographic mode. Multiple independent distributed nodes maintain the same record. The blockchain technology realizes decentralization and becomes a foundation for credible digital asset storage, transfer and transaction.
In the embodiment of the application, whether the text view object is the text view object successfully matched with the privacy word hit can be judged according to the first probability determined by the total word number of the text information in the text view object and the privacy word number in the text view object. The accuracy of privacy bullet frame detection can be further improved. In addition, the privacy elastic frame detection operation of the embodiment of the application is executed on the privacy elastic frame detection device, interaction with a data storage device (such as a server) is not needed, and the pressure of the data storage device can be reduced. In addition, the privacy bullet frame equipment only needs to keep reference information of the privacy bullet frame, each page screenshot of the application program is prevented from being acquired in an OCR (optical character recognition) scheme, OCR recognition is carried out on the uploaded page screenshot by using a server, whether the page screenshot is the page screenshot of the privacy bullet frame or not is judged, and the pressure of data storage equipment can be further relieved.
Based on the description of the foregoing embodiment of the method for detecting a privacy bullet frame, an embodiment of the present application further discloses a device for detecting a privacy bullet frame, where the device for detecting a privacy bullet frame may be a computer program (including program code) running in the foregoing device for detecting a privacy bullet frame. The privacy bezel detection apparatus may perform the method shown in fig. 2 or fig. 3. Referring to fig. 4, the privacy elastic frame detection apparatus may operate as follows:
an obtaining unit 401, configured to obtain each text view object in a dialog box when a first function for displaying the dialog box is called; the text view object is used for displaying text information in the dialog box;
a hit matching unit 402, configured to obtain text information in each text view object, obtain one or more privacy words in a privacy word bank, and perform hit matching on the text information in each text view object and the privacy words in the privacy word bank;
the determining unit 403 is configured to determine that the dialog box is a privacy popup box when a text view object successfully matched with a hit of the privacy word exists in the text view objects.
In some possible embodiments, the obtaining unit 401 is further configured to open a root right, and configure the first frame based on the root right;
changing the execution logic of the first function through the first frame to obtain a changed execution logic; the modified execution logic is to instruct that each of the textview objects in the dialog box is to be retrieved when the first function for displaying the dialog box is invoked.
In some possible embodiments, the obtaining unit 401 is configured to obtain each text view object in the dialog box, and includes:
acquiring a first view object in a dialog box;
comparing the type of the first view object with the type of the text view object through a first execution instruction;
and when the type of the first view object is the type of the text view object, determining that the first view object is the text view object.
In some possible embodiments, the hit matching unit 402 is configured to obtain text information in each text view object, obtain one or more privacy words in the privacy word bank, and perform hit matching on the text information in each text view object and the privacy words in the privacy word bank, and includes:
acquiring text information in the text view object through a second function;
performing word segmentation processing on the text information of the text view object to obtain a word segmentation set; the participle set comprises one or more participles;
performing hit matching on each participle in the participle set and the privacy words in the privacy word bank;
and when the participles successfully matched with the private word hits exist in the participle set, determining the text view object as the text view object successfully matched with the private word hits.
In some possible embodiments, the hit matching unit 402 is configured to determine that the text view object is a text view object successfully matched with the privacy word hit, and includes:
acquiring a first number of the participles successfully matched with the hit privacy words in the participle set;
and when the first number is larger than a first number threshold value, determining that the text view object is a text view object successfully matched with the hit of the privacy word.
In some possible embodiments, the hit matching unit 402 is configured to obtain text information in each text view object, obtain one or more privacy words in the privacy word bank, and perform hit matching on the text information in each text view object and the privacy words in the privacy word bank, and includes:
acquiring text information in the text view object through a second function;
acquiring the total word number of the text information in the text view object and acquiring the privacy word number in the text view object;
determining a first probability according to the total word number of the text information in the text view object and the privacy word number in the text view object;
and when the first probability is larger than a first probability threshold, determining the text view object as a text view object successfully matched with the hit of the privacy word.
In some possible embodiments, the determining unit 403 is configured to determine that the dialog box is a privacy box when there is a text view object successfully matched with the privacy word hit in each text view object, and includes:
acquiring a second number of text view objects successfully matched with the hit privacy words in the dialog box;
when the second number is greater than the second number threshold, the dialog box is determined to be a privacy box.
According to an embodiment of the present application, each step involved in the method shown in fig. 2 or fig. 3 may be performed by each unit in the privacy elastic frame detection apparatus shown in fig. 4. For example, step S201 shown in fig. 2 is performed by the acquisition unit 401 shown in fig. 4, step S202 is performed by the hit matching unit 402 shown in fig. 4, and step S203 is performed by the determination unit 403 shown in fig. 4. As another example, step S301 shown in fig. 3 is performed by the acquisition unit 401 shown in fig. 4, steps S302 to S304 are performed by the hit matching unit 402 shown in fig. 4, and step S305 is performed by the determination unit 403 shown in fig. 4.
According to another embodiment of the present application, the units in the privacy elastic frame detection apparatus shown in fig. 4 may be respectively or entirely combined into one or several other units to form the privacy elastic frame detection apparatus, or some unit(s) may be further split into multiple units that are smaller in function to form the privacy elastic frame detection apparatus, which may achieve the same operation without affecting implementation of technical effects of embodiments of the present application. The units are divided based on logic functions, and in practical applications, the functions of one unit may be implemented by a plurality of units, or the functions of a plurality of units may be implemented by one unit. In other embodiments of the present application, the privacy-based elastic frame detection apparatus may also include other units, and in practical applications, these functions may also be implemented by assistance of other units, and may be implemented by cooperation of multiple units.
According to another embodiment of the present application, the Processing element and the memory element may include a Central Processing Unit (CPU), a random access memory medium (RAM), a read only memory medium (ROM), and the like. A general purpose computing device, such as a computer, runs a computer program (including program code) capable of executing the steps involved in the corresponding method as shown in fig. 2 or fig. 3, to construct the privacy bullet frame detection apparatus as shown in fig. 4, and to implement the privacy bullet frame detection method of the embodiments of the present application. The computer program may be recorded on a computer-readable recording medium, for example, and loaded and executed in the privacy elastic frame detection apparatus through the computer-readable recording medium.
In the embodiment of the application, when a first function for displaying the dialog box is called, text view objects in the dialog box can be obtained, text information in each text view object and one or more privacy words in a privacy word bank are obtained, and the text information in each text view object and the privacy words in the privacy word bank are subjected to hit matching; and when the text view object successfully matched with the privacy word hit exists in the text view objects, determining the dialog box as a privacy bullet box. The obtained text information of the text view object is an original text field, the privacy bullet box determined based on the hit matching result of the text information of the text view object and the privacy words in the privacy word bank is more accurate, and the problem of low detection accuracy of the privacy bullet box caused by inaccurate OCR recognition in an OCR recognition scheme can be solved. In addition, the method of introducing the first quantity threshold value to determine the text view object successfully matched with the privacy word hit and/or introducing the second quantity threshold value to determine the dialog box as the privacy box can further improve the accuracy of the detection of the privacy box.
Based on the description of the embodiment of the privacy bullet frame detection method, the embodiment of the application further discloses privacy bullet frame detection equipment. Referring to fig. 5, the privacy bezel detecting apparatus at least includes a processor 501, an input device 502, an output device 503, and a memory 504, which may be connected by a bus or other means.
The memory 504 is a memory device in the privacy elastic frame detection device, and is used for storing programs and data. It is understood that the memory 504 herein may include a built-in storage medium of the privacy box detection device, and may also include an extended storage medium supported by the privacy box detection device. The memory 504 provides storage space that stores the operating system of the privacy box detection device. Also stored in this memory space are one or more instructions, which may be one or more computer programs (including program code), suitable for loading and execution by processor 501. It should be noted that the memory here may be a high-speed RAM memory; optionally, the at least one memory remote from the processor may be referred to as a Central Processing Unit (CPU), which is a core and a control center of the privacy elastic frame detection device and is adapted to implement one or more instructions, specifically load and execute the one or more instructions, so as to implement the corresponding method flow or function.
In one embodiment, one or more instructions stored in the memory 504 may be loaded and executed by the processor 501 to implement the steps involved in performing the corresponding method as shown in fig. 2 or fig. 3, and in particular, one or more instructions in the memory 504 may be loaded by the processor 501 and perform the following steps:
when a first function for displaying the dialog box is called, acquiring each text view object in the dialog box; the text view object is used for displaying text information in the dialog box;
acquiring text information in each text view object, acquiring one or more privacy words in a privacy word bank, and performing hit matching on the text information in each text view object and the privacy words in the privacy word bank;
and when the text view object successfully matched with the privacy word hit exists in the text view objects, determining the dialog box as a privacy bullet box.
In some possible embodiments, the processor 501 is further configured to open root rights and configure the first frame based on the root rights;
changing the execution logic of the first function through the first frame to obtain a changed execution logic; the modified execution logic is to instruct that each of the textview objects in the dialog box is to be retrieved when the first function for displaying the dialog box is invoked.
In some possible embodiments, the processor 501 is configured to obtain each text view object in the dialog box, including:
acquiring a first view object in a dialog box;
comparing the type of the first view object with the type of the text view object through a first execution instruction;
and when the type of the first view object is the type of the text view object, determining that the first view object is the text view object.
In some possible embodiments, the processor 501 is configured to obtain text information in each text view object, obtain one or more privacy words in the privacy thesaurus, and perform hit matching on the text information in each text view object and the privacy words in the privacy thesaurus, and includes:
acquiring text information in the text view object through a second function;
performing word segmentation processing on the text information of the text view object to obtain a word segmentation set; the participle set comprises one or more participles;
performing hit matching on each participle in the participle set and the privacy words in the privacy word bank;
and when the participles successfully matched with the private word hits exist in the participle set, determining the text view object as the text view object successfully matched with the private word hits.
In some possible embodiments, the processor 501 is configured to determine that the text view object is a text view object successfully matched with the private word hit, including:
acquiring a first number of the participles successfully matched with the hit privacy words in the participle set;
and when the first number is larger than a first number threshold value, determining that the text view object is a text view object successfully matched with the hit of the privacy word.
In some possible embodiments, the processor 501 is configured to obtain text information in each text view object, obtain one or more privacy words in the privacy thesaurus, and perform hit matching on the text information in each text view object and the privacy words in the privacy thesaurus, and includes:
acquiring text information in the text view object through a second function;
acquiring the total word number of the text information in the text view object and acquiring the privacy word number in the text view object;
determining a first probability according to the total word number of the text information in the text view object and the privacy word number in the text view object;
and when the first probability is larger than a first probability threshold, determining the text view object as a text view object successfully matched with the hit of the privacy word.
In some possible embodiments, the processor 501 is configured to determine that the dialog box is a privacy box when there is a text view object successfully matched with the privacy word hit in each text view object, and includes:
acquiring a second number of text view objects successfully matched with the hit privacy words in the dialog box;
when the second number is greater than the second number threshold, the dialog box is determined to be a privacy box.
In the embodiment of the application, when a first function for displaying the dialog box is called, text view objects in the dialog box can be obtained, text information in each text view object and one or more privacy words in a privacy word bank are obtained, and the text information in each text view object and the privacy words in the privacy word bank are subjected to hit matching; and when the text view object successfully matched with the privacy word hit exists in the text view objects, determining the dialog box as a privacy bullet box. The obtained text information of the text view object is an original text field, the privacy bullet box determined based on the hit matching result of the text information of the text view object and the privacy words in the privacy word bank is more accurate, and the problem of low detection accuracy of the privacy bullet box caused by inaccurate OCR recognition in an OCR recognition scheme can be solved. In addition, the method of introducing the first quantity threshold value to determine the text view object successfully matched with the privacy word hit and/or introducing the second quantity threshold value to determine the dialog box as the privacy box can further improve the accuracy of the detection of the privacy box.
It should be noted that the present application also provides a computer program product or a computer program, where the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the privacy box detection apparatus reads the computer instructions from the computer-readable storage medium, and executes the computer instructions, so that the privacy box detection apparatus performs the steps performed in fig. 2 or fig. 3 of the above privacy box detection method embodiment.
While the foregoing is directed to embodiments of the present invention, other and further embodiments of the invention may be devised without departing from the basic scope thereof, and the scope thereof is determined by the claims that follow.

Claims (10)

1. A privacy popup detection method, the method comprising:
when a first function for displaying a dialog box is called, acquiring each text view object in the dialog box; the text view object is used for displaying text information in the dialog box;
acquiring text information in each text view object, acquiring one or more privacy words in a privacy word bank, and performing hit matching on the text information in each text view object and the privacy words in the privacy word bank;
and when the text view object successfully matched with the privacy word hit exists in the text view objects, determining that the dialog box is a privacy bullet box.
2. The method of claim 1, wherein the method further comprises:
starting root authority, and configuring a first frame based on the root authority;
changing the execution logic of the first function through the first framework to obtain changed execution logic; the modified execution logic is to instruct that each textview object in the dialog box is obtained when a first function for displaying the dialog box is invoked.
3. The method of claim 1, wherein said obtaining each text view object in the dialog box comprises:
acquiring a first view object in the dialog box;
comparing the type of the first view object with the type of a text view object through a first execution instruction;
when the type of the first view object is the type of the text view object, determining that the first view object is the text view object.
4. The method of claim 1, wherein the obtaining text information in each text view object and one or more privacy words in a privacy thesaurus and hit matching the text information in each text view object with the privacy words in the privacy thesaurus comprises:
acquiring text information in the text view object through a second function;
performing word segmentation processing on the text information of the text view object to obtain a word segmentation set; the word segmentation set comprises one or more word segmentations;
performing hit matching on each participle in the participle set and the privacy words in the privacy word bank;
and when the participles successfully matched with the private word hits exist in the participle set, determining the text view object as the text view object successfully matched with the private word hits.
5. The method of claim 4, wherein the determining that the text view object is a text view object that successfully matches the privacy word hit comprises:
acquiring a first number of the participles successfully matched with the private word hit in the participle set;
and when the first number is larger than a first number threshold value, determining that the text view object is a text view object successfully matched with the hit of the privacy word.
6. The method according to any one of claims 1 to 5, wherein the obtaining the text information in each text view object and obtaining one or more privacy words in a privacy thesaurus and performing hit matching on the text information in each text view object and the privacy words in the privacy thesaurus comprises:
acquiring text information in the text view object through a second function;
acquiring the total word number of the text information in the text view object and acquiring the privacy word number in the text view object;
determining a first probability based on a total word count of text information in the text view object and a privacy word count in the text view object;
when the first probability is greater than a first probability threshold, determining the text view object as a text view object successfully matched with the privacy word hit.
7. The method of any one of claims 1-5, wherein the determining that the dialog box is a privacy box when there is a text view object that is successfully matched with the privacy word hit in the respective text view objects comprises:
acquiring a second number of text view objects which are successfully matched with the privacy words in the dialog box;
when the second number is larger than a second number threshold, determining that the dialog box is a privacy box.
8. A privacy elastic frame detection device, the device comprising:
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring each text view object in a dialog box when a first function for displaying the dialog box is called; the text view object is used for displaying text information in the dialog box;
the hit matching unit is used for acquiring text information in each text view object, acquiring one or more privacy words in a privacy word bank, and performing hit matching on the text information in each text view object and the privacy words in the privacy word bank;
and the determining unit is used for determining the dialog box as a privacy bullet box when the text view object which is successfully matched with the privacy word hit exists in the text view objects.
9. A privacy box detection device comprising a processor and a memory, wherein the memory is configured to store a computer program comprising a program, and wherein the processor is configured to invoke the program to perform the privacy box detection method of any one of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to perform the privacy box detection method of any one of claims 1-7.
CN202111014849.0A 2021-08-31 2021-08-31 Privacy bullet frame detection method, device, equipment and storage medium Pending CN113742773A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111014849.0A CN113742773A (en) 2021-08-31 2021-08-31 Privacy bullet frame detection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111014849.0A CN113742773A (en) 2021-08-31 2021-08-31 Privacy bullet frame detection method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113742773A true CN113742773A (en) 2021-12-03

Family

ID=78734411

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111014849.0A Pending CN113742773A (en) 2021-08-31 2021-08-31 Privacy bullet frame detection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113742773A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104966031A (en) * 2015-07-01 2015-10-07 复旦大学 Method for identifying permission-irrelevant private data in Android application program
US20180248914A1 (en) * 2013-01-23 2018-08-30 The Privacy Factor, LLC Monitoring a privacy rating for an application or website
US20200065512A1 (en) * 2018-08-24 2020-02-27 International Business Machines Corporation Personal privacy protocols for sharing media on social media platforms
CN112313653A (en) * 2018-06-25 2021-02-02 微软技术许可有限责任公司 Hiding sensitive information in text
US20210150289A1 (en) * 2019-11-14 2021-05-20 Citrix Systems, Inc. Text classification for input method editor
CN113076538A (en) * 2021-04-02 2021-07-06 北京邮电大学 Method for extracting embedded privacy policy of mobile application APK file
CN113282955A (en) * 2021-06-01 2021-08-20 上海交通大学 Method, system, terminal and medium for extracting privacy information in privacy policy
CN113283232A (en) * 2021-05-31 2021-08-20 支付宝(杭州)信息技术有限公司 Method and device for automatically analyzing private information in text

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180248914A1 (en) * 2013-01-23 2018-08-30 The Privacy Factor, LLC Monitoring a privacy rating for an application or website
CN104966031A (en) * 2015-07-01 2015-10-07 复旦大学 Method for identifying permission-irrelevant private data in Android application program
CN112313653A (en) * 2018-06-25 2021-02-02 微软技术许可有限责任公司 Hiding sensitive information in text
US20200065512A1 (en) * 2018-08-24 2020-02-27 International Business Machines Corporation Personal privacy protocols for sharing media on social media platforms
US20210150289A1 (en) * 2019-11-14 2021-05-20 Citrix Systems, Inc. Text classification for input method editor
CN113076538A (en) * 2021-04-02 2021-07-06 北京邮电大学 Method for extracting embedded privacy policy of mobile application APK file
CN113283232A (en) * 2021-05-31 2021-08-20 支付宝(杭州)信息技术有限公司 Method and device for automatically analyzing private information in text
CN113282955A (en) * 2021-06-01 2021-08-20 上海交通大学 Method, system, terminal and medium for extracting privacy information in privacy policy

Similar Documents

Publication Publication Date Title
CN108427731B (en) Page code processing method and device, terminal equipment and medium
US11093774B2 (en) Optical character recognition error correction model
CN111737692B (en) Application program risk detection method and device, equipment and storage medium
US11238027B2 (en) Dynamic document reliability formulation
US20180018392A1 (en) Topic identification based on functional summarization
CN112132238A (en) Method, device, equipment and readable medium for identifying private data
US20190279228A1 (en) Suspicious activity report smart validation
CN114428705A (en) Network data monitoring method, device, equipment and storage medium
CN113869789A (en) Risk monitoring method and device, computer equipment and storage medium
CN109660621A (en) A kind of content delivery method and service equipment
CN111598122B (en) Data verification method and device, electronic equipment and storage medium
CN111259207A (en) Short message identification method, device and equipment
CN115659340B (en) Counterfeit applet identification method and device, storage medium and electronic equipment
CN105354506B (en) The method and apparatus of hidden file
CN111161044A (en) Automatic screen capture method and device, computer equipment and readable storage medium
CN113742773A (en) Privacy bullet frame detection method, device, equipment and storage medium
RU2762241C2 (en) System and method for detecting fraudulent activities during user interaction with banking services
CN110276001B (en) Checking page identification method and device, computing equipment and medium
US11586973B2 (en) Dynamic source reliability formulation
CN112733523A (en) Document sending method, device, equipment and storage medium
CN112883375A (en) Malicious file identification method, device, equipment and storage medium
CN111563276A (en) Webpage tampering detection method, detection system and related equipment
US11762667B2 (en) Adjusting system settings based on displayed content
US20240146744A1 (en) System and method to identify cyber threat intelligence from a group of information
US9311392B2 (en) Document analysis apparatus, document analysis method, and computer-readable recording medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination