Sensitive information filtering method, device, computer equipment and storage medium
By identifying sensitive information in communication information and dynamically adjusting filtering rules according to website information and account permissions, the problems of singleness and insufficient security of sensitive information filtering rules in the existing technology are solved, and more efficient sensitive information protection is achieved.
Patent Information
- Application Number
- CN201811123047.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-09-26
- Publication Date
- 2024-09-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology lacks flexibility in filtering sensitive information and cannot dynamically adjust filtering rules according to different websites and user permissions, resulting in insufficient security.
By receiving the URL information in the communication information, the preset detection list and rule database are used to identify sensitive information, and the filtering rules are dynamically adjusted according to the URL information and account permissions, including blocking the character segment at the specified position or comparing it with the common word database to determine whether Display sensitive information and ensure information security through account verification.
It realizes the filtering of sensitive information based on different contents and types, improves the security of information transmission, and further enhances the protection of sensitive information through account verification, providing higher security.
Smart Images

Figure CN109492423B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of software systems, and in particular to a method, device, computer equipment and storage medium for filtering sensitive information. Background Art
[0002] With the development of the Internet, a lot of information, including personal privacy information, is managed through the network and its systems. By obtaining permissions to query these systems, some private information will also be viewed during account inquiries and transfers, which can easily lead to the leakage of personal privacy information.
[0003] The existing technology for filtering sensitive information such as personal privacy information is generally to receive communication messages, detect whether there is sensitive information in the communication messages, and if sensitive information is detected in the communication messages, display the communication messages in the form of sensitive information being blocked, and only display the sensitive information when the sensitive information meets the display conditions. In this way, the blocking rules are usually the same, and filtering cannot be performed according to different contents. The filtering and blocking rules are single and the security is not high. Summary of the invention
[0004] The purpose of the present invention is to solve at least one of the above-mentioned technical deficiencies, in particular to provide a method for filtering sensitive information according to filtering rules based on different websites and user permissions.
[0005] The present invention discloses a method for filtering sensitive information, comprising:
[0006] Receiving communication information to be processed, wherein the communication information includes website information representing an access address of the communication information;
[0007] Identify whether there is sensitive information in the communication information according to a preset detection list, wherein the detection list is a list of sensitive information;
[0008] If it is detected that the sensitive information exists in the communication information, a sensitive information filtering rule having a mapping relationship with the website information is obtained from a preset rule database, so as to filter the sensitive information according to the sensitive information filtering rule.
[0009] Furthermore, the method of identifying whether sensitive information exists in the communication information according to a preset detection list includes:
[0010] Obtaining the character segment contained in the communication information;
[0011] The character segment is compared with the character segment representing sensitive information in the detection list to determine whether the sensitive information exists in the communication information.
[0012] Further, the sensitive information filtering rule includes: blocking a character segment at a specified position in the sensitive information; or the sensitive information filtering rule includes:
[0013] Comparing the character segment in the sensitive information with a common character database to determine whether the character segment is included in the common character database;
[0014] Display the character segment contained in the common character database;
[0015] When all character segments in the sensitive information are not in the common character database, arbitrarily displaying one of the character segments in the sensitive information;
[0016] Alternatively, the sensitive information filtering rule further includes: obtaining the type of the sensitive information, and masking a character segment at a specified position in the sensitive information according to the sensitive information filtering rule mapped to the type.
[0017] Furthermore, it also includes:
[0018] Obtaining a request instruction for viewing the sensitive information, wherein the request instruction includes account information for executing the request instruction;
[0019] Verify whether the account information has viewing authority;
[0020] When the account information has viewing authority, the sensitive information is displayed according to the rules mapped by the authority of the account information.
[0021] Furthermore, the rules mapped to the permissions of the account information include:
[0022] Sending first verification information to the account information and waiting for second verification information fed back by the account information;
[0023] Determining whether the first verification information and the second verification information meet a preset condition;
[0024] When the preset conditions are met, the sensitive information is fully displayed.
[0025] Furthermore, before identifying whether there is sensitive information in the communication information according to the preset detection list, the method further includes:
[0026] Determine whether the communication information has sensitive information filtering authority, where the sensitive information filtering authority includes executing sensitive information filtering and not executing sensitive information filtering.
[0027] The present invention also discloses a device for filtering sensitive information, comprising:
[0028] Acquisition module: used for receiving communication information to be processed, wherein the communication information includes website information representing the access address of the communication information;
[0029] Processing module: used to identify whether there is sensitive information in the communication information according to a preset detection list, wherein the detection list is a list of sensitive information;
[0030] Execution module: for obtaining a sensitive information filtering rule having a mapping relationship with the website information from a preset rule database if the sensitive information is detected to exist in the communication information, so as to filter the sensitive information according to the sensitive information filtering rule.
[0031] Furthermore, it also includes:
[0032] The first acquisition submodule is used to acquire the character segment contained in the communication information;
[0033] The first judgment submodule is used to compare the character segment with the character segment representing sensitive information in the detection list to determine whether the sensitive information exists in the communication information.
[0034] Further, the sensitive information filtering rule includes: blocking a character segment at a specified position in the sensitive information; or the sensitive information filtering rule includes:
[0035] Comparing the character segment in the sensitive information with a common character database to determine whether the character segment is included in the common character database;
[0036] Display the character segment contained in the common character database;
[0037] When all the character segments in the sensitive information are not in the common character database, one of the character segments in the sensitive information is displayed arbitrarily.
[0038] Alternatively, the sensitive information filtering rule further includes: obtaining the type of the sensitive information, and masking a character segment at a specified position in the sensitive information according to the sensitive information filtering rule mapped to the type.
[0039] Furthermore, it also includes:
[0040] A first acquisition submodule: used to acquire a request instruction for viewing the sensitive information, wherein the request instruction includes account information for executing the request instruction;
[0041] The first verification submodule is used to verify whether the account information has the viewing permission;
[0042] The first execution submodule is used to display the sensitive information according to the rules mapped by the permissions of the account information when the account information has the viewing permission.
[0043] Furthermore, it also includes:
[0044] The second acquisition submodule is used to send the first verification information to the account information and wait for the second verification information fed back by the account information;
[0045] Second verification submodule: determining whether the first verification information and the second verification information meet preset conditions;
[0046] The second execution submodule is used to fully display the sensitive information when the preset conditions are met.
[0047] Furthermore, it also includes:
[0048] The second judgment submodule is used to judge whether the communication information has sensitive information filtering authority, and the sensitive information filtering authority includes executing sensitive information filtering and not executing sensitive information filtering.
[0049] The present invention also discloses a computer device, including a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of any of the above-mentioned sensitive information filtering methods.
[0050] The present invention also discloses a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of any of the above-mentioned sensitive information filtering methods.
[0051] The beneficial effects of the present invention are:
[0052] 1) The sensitive information filtering method of the present invention can match different sensitive information filtering rules according to the URL information of the received communication information, and filter the sensitive information according to the content and type of the web page, which is safer than the prior art that only filters according to unified rules;
[0053] 2) Dynamic filtering rules are set to improve the security of information transmission;
[0054] 3) When reproducing the filtered information, it is also necessary to provide verification information that meets the preset conditions based on the account information before it can be viewed, which improves the security of sensitive information.
[0055] Additional aspects and advantages of the present invention will be given in part in the following description, which will become obvious from the following description, or may be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0057] Figure 1 A flow chart of the method for filtering sensitive information of the present invention;
[0058] Figure 2 A schematic diagram showing that the communication information of the present invention is instant information;
[0059] Figure 3 A schematic diagram showing that the communication information of the present invention is request information;
[0060] Figure 4 A flow chart of the method for identifying sensitive information of the present invention;
[0061] Figure 5 The case of filtering sensitive information when the communication information of the present invention is request information;
[0062] Figure 6 A flow chart showing sensitive information for the present invention;
[0063] Figure 7 Flowchart for information verification of the present invention to display sensitive information;
[0064] Figure 8 A schematic diagram of a module of a device for filtering sensitive information of the present invention;
[0065] Fig. 9 It is a basic structural block diagram of the computer device of the present invention. DETAILED DESCRIPTION
[0066] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be interpreted as limiting the present invention.
[0067] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be intermediate elements. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.
[0068] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as herein.
[0069] It will be understood by those skilled in the art that the "terminal" and "terminal device" used herein include both devices with wireless signal receivers, which are devices with only wireless signal receivers without transmission capabilities, and devices with receiving and transmitting hardware, which are devices with receiving and transmitting hardware capable of performing two-way communications on a two-way communication link. Such devices may include: cellular or other communication devices, which have a single-line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service), which may combine voice, data processing, fax and / or data communication capabilities; PDA (Personal Digital Assistant), which may include a radio frequency receiver, a pager, Internet / intranet access, a web browser, a notepad, a calendar and / or a GPS (Global Positioning System) receiver; conventional laptop and / or palmtop computers or other devices, which have and / or include a conventional laptop and / or palmtop computer or other device with a radio frequency receiver. The "terminal" or "terminal device" used herein may be portable, transportable, installed in a vehicle (air, sea and / or land), or adapted and / or configured to operate locally, and / or in a distributed form, at any other location on the earth and / or in space. The "terminal" or "terminal device" used herein may also be a communication terminal, an Internet terminal, a music / video playing terminal, such as a PDA, a MID (Mobile Internet Device) and / or a mobile phone with a music / video playing function, or a smart TV, a set-top box and other devices.
[0070] In order to allow anyone to remotely control the device for traveling and perform the shooting function to achieve the purpose of viewing the captured images in real time, the present invention provides a method for filtering sensitive information, wherein, when the method is used in the application scenario of remote house viewing, the method for filtering sensitive information includes at least two terminals, one is a remote terminal for users to view images and control status, and a remote terminal for sending control instructions, the remote terminal can be a computer, notebook, mobile phone or other terminal, and the unmanned device can be a robot or drone, remote control car and other unmanned driving equipment. The other is an unmanned device that is controlled to move and can perform related shooting actions. The two communicate remotely, and the unmanned device analyzes and judges the related instructions sent according to its own motion state, executes or prohibits the first state instruction, thereby achieving the purpose of remote control house viewing. At the same time, the unmanned device has an automatic obstacle avoidance function, a high degree of intelligence, and a simple control method.
[0071] The following is a method for filtering sensitive information provided by this application. Figure 1 ,include:
[0072] S100, receiving communication information to be processed, wherein the communication information includes website information representing an access address of the communication information;
[0073] Communication information is information used for communication between devices, including instant communication information, such as WeChat and QQ chat information, and request information, such as request information for opening website pages. The sensitive information filtering method in this application is applicable to both instant communication information and request information.
[0074] However, no matter what the situation is, the communication information mentioned in this application includes the website information representing the access address of the communication information. For example:
[0075] When the communication information is instant messaging information, the content of the communication information includes: the account information for sending the communication, the website information to be accessed by the communication information, and the communication body representing the specific content of the communication. The website information here is the designated account information to be delivered and the website to which the account information belongs. For example, the communication information is sent to a designated account logged in on a web page, an account logged in on WeChat, or a designated account logged in on QQ, Weibo, or Alipay.
[0076] When the communication information is request information, the content of the communication information includes: account information for sending the communication information, website information to be accessed by the communication information, and a communication body representing the specific content of the communication. The website information here is the address information of the website page requested to be opened and displayed.
[0077] S200, identifying whether there is sensitive information in the communication information according to a preset detection list, wherein the detection list is a list of sensitive information;
[0078] The process of identifying whether there is sensitive information in the communication information according to the preset detection list is a comparison process. In this application, sensitive information actually refers to some specific character strings, such as words representing names, ID numbers, phone numbers, bank card numbers, express numbers, etc. Please refer to Figure 2For names that appear in instant messaging, we generally identify the words as names by checking whether there are keywords such as "name", "name", and "name" in the sentence, and by removing the words with specific meanings in the strings before and after the sentence after semantic recognition. There are specific rules for ID card numbers, telephone numbers, bank card numbers, and express numbers. For example, a telephone number is 11 digits, and the first three digits are different depending on the operator. The encoding rules for bank card numbers and express numbers also have specific digits and sorting rules based on the operator. By presetting the rules for relevant telephone numbers, bank card numbers, express numbers, and ID card numbers in the server, we can identify whether the corresponding numbers are sensitive information.
[0079] The process of identifying sensitive information for web pages that request information mapping is the same, but since web page content is usually edited, please refer to Figure 3 The content is generally displayed in the specified position, so it is only necessary to detect the appearance of keywords such as "name", "name", and "title", and the subsequent content is the name. If keywords such as "bank card number" appear, the subsequent content is the bank account number. If the keyword "ID number" appears, the subsequent content is the specific content of the ID number.
[0080] From the above description, it can be seen that in the detection list, the list of sensitive information not only includes keywords that represent the specific content of sensitive information, such as "name, bank account number, ID number", etc., but also includes the rules that constitute sensitive information, such as an 18-digit ID number starting with 110100 plus a date, an 11-digit telephone number starting with 139 plus an area code, etc.
[0081] Based on the above, please refer to Figure 4 The method of identifying whether sensitive information exists in the communication information according to a preset detection list includes:
[0082] S210, obtaining a character segment contained in the communication information;
[0083] The sensitive information in the above two application scenarios is identified by keywords or character segments representing sensitive information. Therefore, in the identification process, all character segments in the communication information need to be extracted first.
[0084] S220, comparing the character segment with the character segment representing sensitive information in the detection list to determine whether the sensitive information exists in the communication information;
[0085] After the character segment is extracted, it is necessary to match the character segment with all the character segments representing sensitive information in the detection list one by one, and those that match are considered sensitive information.
[0086] S300: If it is detected that the sensitive information exists in the communication information, a sensitive information filtering rule having a mapping relationship with the website information is obtained from a preset rule database, so as to filter the sensitive information according to the sensitive information filtering rule.
[0087] The preset rule database is a rule formulated for filtering sensitive information from different website information. Different website information means that the displayed content may be different. In the above step S100, it is mentioned that the communication information includes the account information for sending the communication, the website information to be accessed by the communication information, and the communication entity representing the specific content of the communication, depending on the application scenario. In this application, the specific content of the web page corresponding to the website information and the level of the account will be mapped to different filtering rules, including the following:
[0088] In one embodiment, the sensitive information filtering rule includes: blocking character segments at designated positions in the sensitive information. The sensitive information is protected by blocking part of the character segments. The blocking position is determined by a preset rule. For example:
[0089] The URL information in the communication information is: / web / policy / getPolicyList.do
[0090] The content that needs to be displayed corresponding to the URL information includes:
[0091]
[0092] In this embodiment, the configured rules for filtering sensitive information are:
[0093]
[0094]
[0095] Note: field represents the data level, and type represents the filtering rules to be used.
[0096] After processing, the sensitive information appears as follows:
[0097]
[0098] Similarly, in the present application, the sensitive information filtering rule also includes: obtaining the type of the sensitive information, and masking the character segment at a specified position in the sensitive information according to the sensitive information filtering rule mapped by the type.
[0099] By configuring different filtering rules, different types of sensitive information can be filtered according to different rules. For example, see Figure 5When the sensitive information is a name, block the first name and only display the last name. When the sensitive information is an ID card number, block the middle 8 digits. When the sensitive information is a phone number, block the middle 6 digits. When the sensitive information is a bank card number, block the middle 8 digits, and so on.
[0100] The above blocking rules are only one of them. In this application, different blocking rules are matched according to different URL information. For example, URL information A, URL information B and URL information C. The same type of information is displayed in the web pages corresponding to the three URL information. By configuring different blocking rules, different blocking situations may appear when requesting access to these three URL information. For example, in the web page corresponding to URL information A, the rule for displaying the ID card number is to block the middle 8 digits, while in the web page corresponding to URL information B, the rule for displaying the ID card number is to block the last 8 digits, and in the web page corresponding to URL information C, the rule for displaying the ID card number is to block the middle 6 digits.
[0101] Furthermore, since the communication information also includes the account information requested for access, a permission can be set for the account information. When filtering sensitive information, the step of detecting the permission of the account information is added, and the web page information is blocked according to the permissions of different account information. For example, the account information includes user A, user B and user C. When three users access the same web page at the same time, user A has administrator authority. The web page logged in by the user with this authority will not be filtered when sensitive information is detected. User B is an authenticated member user. After the user with this authority logs in to the web page, when sensitive information is detected in the web page, a small part of the sensitive information in the web page is blocked, such as blocking the middle 4 digits of the identity card information. User C is an unauthenticated ordinary user. After the user with this authority logs in to the web page, the sensitive information is completely blocked in the web page displayed.
[0102] Furthermore, for some information, dynamic filtering can be performed based on the content. One of the dynamic filtering rules is: comparing the character segment in the sensitive information with the common character database to determine whether the character segment is included in the character segment in the common character database;
[0103] Display the character segment contained in the common character database;
[0104] When all the character segments in the sensitive information are not in the common character database, one of the character segments in the sensitive information is displayed arbitrarily.
[0105] Taking the filtering of names as an example, in one of the embodiments, a common surname database and a common given name database are set. When it is detected that the sensitive information is a given name, the given name and surname in the name are identified and matched in the corresponding databases respectively. The filtering rules for sensitive information are as follows: when it is detected that the user's surname is a common surname, a certain character is hidden from the name, otherwise the surname is disclosed and the given name is hidden. In the case of hiding the name, when the user's name is three or more characters, each character is searched to see if it is in the common name database. When the character is in the common name database, it is not hidden, and the characters that are not in the common name database are hidden. When the name is an overlapping character, the surname and one of the given names are hidden. When both the surname and the given name are uncommon characters, the given name is disclosed first. According to the above filtering rules, the following display table for the name can be obtained, for example:
[0106] Serial number Name Filtered display 1 Chen Qiang List* 2 Pu Lin *Forest 3 Monday *one* 4 Bente *
[0107] Among them, "Chen" as a surname is a relatively common surname. When it is composed of a two-character name, "Chen" is disclosed, and the given name is displayed. "Pu" is an uncommon surname. When it is composed of a two-character name, the surname is hidden and the given name is disclosed. In the third illustration, since there are overlapping characters in the given name, the surname and one of the given names are hidden. In the fourth illustration, since the characters corresponding to both the surname and the given name are uncommon, the given name is disclosed first.
[0108] In this application, after sensitive information filtering is completed, when it is necessary to view it, it also includes a method for displaying the hidden sensitive information, please refer to Figure 6 , specifically including:
[0109] S400, obtaining a request instruction for viewing the sensitive information, wherein the request instruction for viewing includes account information for executing the request instruction;
[0110] The request instruction comes from the customer's operation on the client, such as double-clicking the obscured sensitive information, or clicking the display button on the page to trigger the view request instruction. It should be noted that in this application, the triggered view request instruction needs to include the account information for executing the request instruction, that is, identity authentication is required.
[0111] One situation is that the user is not logged in on the currently displayed page. When the display button is clicked or the obscured sensitive information is double-clicked, the viewing request instruction cannot be triggered due to the lack of account information. The viewing request instruction can only be triggered after logging in or entering identity information through a specific interface to facilitate viewing of the filtered sensitive information.
[0112] S500, verifying whether the account information has viewing authority;
[0113] Since the above-mentioned viewing request instruction carries account information, different account information may match different permissions, such as backend administrators, competent department personnel, authenticated member users, and unauthenticated ordinary users. In order to facilitate security management, permission management can be performed for different account information. For example, only users with specified permissions can open and view certain pages, or only authorized users can view certain data on the page.
[0114] S600: When the account information has viewing authority, display the sensitive information according to the rules mapped by the authority of the account information.
[0115] Since different users are configured with different permissions, the sensitive information viewing rules configured for different permissions, taking the backend administrator, competent department personnel, authenticated member users and unauthenticated ordinary users introduced above as examples, the corresponding configured rules are: the backend administrator user can directly view all information on the web page; the user of the competent department needs to enter the verification code displayed on the page before displaying sensitive information; the authenticated member user needs to enter the verification code sent to the mobile phone bound to the account information before displaying sensitive information; and the unauthenticated ordinary user cannot view the sensitive information and needs to complete the identity authentication and execute the member user's viewing rules before viewing the sensitive information.
[0116] For further information, see Figure 7 , the above verification methods include:
[0117] S610, sending first verification information to the account information and waiting for second verification information fed back by the account information;
[0118] The account information here includes the phone number registered by the user. In this embodiment, after the first verification information is sent to the phone number, the user waits to enter the first verification information at a designated location on the web page after receiving the first verification information. The first verification information entered by the user is called the second verification information.
[0119] S620, determining whether the first verification information and the second verification information meet a preset condition;
[0120] In the present application, the preset condition is a judgment standard. The preset condition in this embodiment is whether the first verification information sent is the same as the second verification information actually input by the user. When they are the same, it means that the preset condition is met. When they are different, it means that the preset condition is not met.
[0121] S630: When the preset conditions are met, the sensitive information is fully displayed.
[0122] When the second verification information input by the user meets the preset conditions, the sensitive information can be fully displayed.
[0123] Furthermore, before identifying whether there is sensitive information in the communication information according to the preset detection list, the method further includes:
[0124] Determine whether the communication information has sensitive information filtering authority, the sensitive information filtering authority includes executing sensitive information filtering and not executing sensitive information filtering. When it is detected that the communication information has sensitive information filtering authority, identify whether there is sensitive information in the communication information according to a preset detection list.
[0125] When the communication information does not have permission to filter sensitive information, it is directly displayed. The reason for not needing to filter sensitive information may be that the communication information is not important, or there is no security risk to be concerned about, or due to business needs, the sensitive information filtering permission of the corresponding communication information has changed from the original need to filter sensitive information to no need to filter, or the permission has been reduced, resulting in changes in the adapted sensitive information filtering rules. When the permission changes, the sensitive information filtering rules in the preset rule database in step S300 also change accordingly to match the filtering of sensitive information.
[0126] This application also discloses a device for filtering sensitive information, see Figure 8 ,include:
[0127] Acquisition module 100: used to receive communication information to be processed, wherein the communication information includes website information representing an access address of the communication information;
[0128] Communication information is information used for communication between devices, including instant communication information, such as WeChat and QQ chat information, and request information, such as request information for opening website pages. The sensitive information filtering method in this application is applicable to both instant communication information and request information.
[0129] However, no matter what the situation is, the communication information mentioned in this application includes the website information representing the access address of the communication information. For example:
[0130] When the communication information is instant messaging information, the content of the communication information includes: the account information for sending the communication, the website information to be accessed by the communication information, and the communication body representing the specific content of the communication. The website information here is the designated account information to be delivered and the website to which the account information belongs. For example, the communication information is sent to a designated account logged in on a web page, an account logged in on WeChat, or a designated account logged in on QQ, Weibo, or Alipay.
[0131] When it is a request information, the content of the communication information includes: the account information for sending the communication information, the website information to be accessed by the communication information, and the communication body representing the specific content of the communication. The website information here is the address information of the website page requested to be opened and displayed.
[0132] Processing module 200: used to identify whether there is sensitive information in the communication information according to a preset detection list, wherein the detection list is a list of sensitive information;
[0133] The process of identifying whether there is sensitive information in the communication information according to the preset detection list is a comparative process. In this application, sensitive information actually refers to some specific character strings, such as words representing names, ID numbers, telephone numbers, bank card numbers, express numbers, etc. For names appearing in instant messaging, it is generally determined by whether there are keywords such as "name", "name", and "name" in the sentence, and after semantic recognition in the sentence, the words containing specific meanings in the strings before and after the sentence are eliminated to identify the words as names. There are specific rules for ID numbers, telephone numbers, bank card numbers, express numbers, etc. For example, the telephone number is 11 digits, and the first three digits are different according to the operator. The encoding rules of bank card numbers and express numbers also have specific digits and sorting rules according to the operator. By presetting the rules of relevant telephone numbers, bank card numbers, express numbers, and ID numbers in the server, it is possible to identify whether the corresponding numbers are sensitive information.
[0134] For the content of the web page mapped to the requested information, the process of identifying sensitive information is the same. However, since the content of the web page is usually edited and displayed in the designated location, it is only necessary to detect the appearance of keywords such as "name", "name", and "title", and the subsequent content is the name. If keywords such as "bank card number" appear, the subsequent content is the bank account number. If the keyword "ID number" appears, the subsequent content is the specific content of the ID number.
[0135] From the above description, it can be seen that in the detection list, the list of sensitive information not only includes keywords that represent the specific content of sensitive information, such as "name, bank account number, ID number", etc., but also includes the rules that constitute sensitive information, such as an 18-digit ID number starting with 110100 plus a date, an 11-digit telephone number starting with 139 plus an area code, etc.
[0136] Execution module 300: is used to obtain a sensitive information filtering rule having a mapping relationship with the website information from a preset rule database if the sensitive information is detected to exist in the communication information, so as to filter the sensitive information according to the sensitive information filtering rule.
[0137] The preset rule database is a specific rule formulated for filtering sensitive information from different website information. Different website information means that the displayed content may be different. In the above step S100, it is mentioned that the communication information includes the account information for sending the communication, the website information to be accessed by the communication information, and the communication entity representing the specific content of the communication, depending on the application scenario. In this application, the specific content of the web page corresponding to the website information and the level of the account will be mapped to different filtering rules.
[0138] In one embodiment, the sensitive information filtering rule includes: shielding a character segment at a specified position in the sensitive information. The sensitive information is protected by shielding part of the character segment. The shielding position is determined according to a preset rule.
[0139] Similarly, in the present application, the sensitive information filtering rule also includes: obtaining the type of the sensitive information, and masking the character segment at a specified position in the sensitive information according to the sensitive information filtering rule mapped by the type.
[0140] Furthermore, for some information, dynamic filtering can be performed based on the content. One of the dynamic filtering rules is:
[0141] Comparing the character segment in the sensitive information with a common character database to determine whether the character segment is included in the common character database;
[0142] Display the character segment contained in the common character database;
[0143] When all the character segments in the sensitive information are not in the common character database, one of the character segments in the sensitive information is displayed arbitrarily.
[0144] Taking the filtering of names as an example, in one of the embodiments, a common surname database and a common given name database are set. When it is detected that the sensitive information is a given name, the given name and surname in the name are identified and matched in the corresponding databases respectively. The filtering rules of sensitive information are as follows: when it is detected that the user's surname is a common surname, a certain character is hidden from the name, otherwise the surname is disclosed and the given name is hidden. In the case of hiding the name, when the user's name is three or more characters, each character is searched to see if it is in the common name database. If the character is in the common name database, it is not hidden, and the characters that are not in the common name database are hidden. When the name is an overlapping character, the surname and one of the given names are hidden. When both the surname and the given name are uncommon characters, the given name is disclosed first.
[0145] Furthermore, the present application also includes:
[0146] The first acquisition submodule is used to acquire the character segment contained in the communication information;
[0147] The first judgment submodule is used to compare the character segment with the character segment representing the sensitive information in the detection list to determine whether the sensitive information exists in the communication information.
[0148] The sensitive information in the above application scenarios is identified by keywords or character segments representing sensitive information. Therefore, the first thing to extract in the identification process is all the character segments in the communication information. After the character segments are extracted, they need to be matched one by one with all the character segments representing sensitive information in the detection list. Those that match are identified as sensitive information.
[0149] Furthermore, it also includes:
[0150] A first acquisition submodule: used to acquire a request instruction for viewing the sensitive information, wherein the request instruction includes account information for executing the request instruction;
[0151] The request instruction comes from the customer's operation on the client, such as double-clicking the obscured sensitive information, or clicking the display button on the page to trigger the view request instruction. It should be noted that in this application, the triggered view request instruction needs to include the account information for executing the request instruction, that is, identity authentication is required.
[0152] One situation is that the user is not logged in on the currently displayed page. In this case, when the display button is clicked or the obscured sensitive information is double-clicked, the viewing request instruction cannot be triggered because there is no account information. The viewing request instruction can only be triggered after logging in or entering identity information through a specific interface, so that the filtered sensitive information can be viewed.
[0153] The first verification submodule is used to verify whether the account information has the viewing permission;
[0154] Since the above-mentioned viewing request instructions carry account information, different account information may match different permissions, such as backend administrators, competent department personnel, authenticated member users, and unauthenticated ordinary users. In order to facilitate security management, permission management can be performed for different account information. For example, only users with specified permissions can open and view certain pages, or only authorized users can view certain data on the page.
[0155] The first execution submodule is used to display the sensitive information according to the rules mapped by the permissions of the account information when the account information has the viewing permission.
[0156] Since different users are configured with different permissions, the sensitive information viewing rules configured for different permissions, taking the backend administrator, competent department personnel, authenticated member users and unauthenticated ordinary users introduced above as examples, the corresponding configured rules are that the backend administrator user can directly view all information on the web page, the user of the competent department needs to enter the verification code displayed on the page before displaying sensitive information, and the authenticated member user needs to enter the verification code sent to the mobile phone bound to the account information before displaying sensitive information, while unauthenticated ordinary users cannot view the sensitive information and need to complete the identity authentication and execute the member user's viewing rules before viewing the sensitive information.
[0157] Furthermore, it also includes:
[0158] The second acquisition submodule is used to send the first verification information to the account information and wait for the second verification information fed back by the account information;
[0159] The account information here includes the phone number registered by the user. In this embodiment, the first verification information is sent to the phone number, and the user enters the first verification information at a designated location on the web page after receiving the first verification information. The first verification information entered by the user is called the second verification information.
[0160] Second verification submodule: determining whether the first verification information and the second verification information meet preset conditions;
[0161] In the present application, the preset condition is a judgment standard. The preset condition in this embodiment is whether the first verification information sent is the same as the second verification information actually input by the user. When they are the same, it means that the preset condition is met. When they are different, it means that the preset condition is not met.
[0162] The second execution submodule is used to fully display the sensitive information when the preset conditions are met.
[0163] When the second verification information input by the user meets the preset conditions, the sensitive information can be fully displayed.
[0164] Furthermore, before identifying whether there is sensitive information in the communication information according to the preset detection list, the following modules are also included:
[0165] The second judgment submodule is used to judge whether the communication information has sensitive information filtering authority, and the sensitive information filtering authority includes executing sensitive information filtering and not executing sensitive information filtering. When it is detected that the communication information has sensitive information filtering authority, it is identified whether there is sensitive information in the communication information according to a preset detection list.
[0166] When the communication information does not have permission to filter sensitive information, it is directly displayed. The reason for not needing to filter sensitive information may be that the communication information is not important, or there is no security risk to be concerned about, or due to business needs, the sensitive information filtering permission of the corresponding communication information has changed from the original need to filter sensitive information to no need to filter, or the permission has been reduced, resulting in changes in the adapted sensitive information filtering rules. When the permission changes, the sensitive information filtering rules in the preset rule database in step S300 also change accordingly to match the filtering of sensitive information.
[0167] The basic structure diagram of the computer device provided by the embodiment of the present invention can be found in Fig. 9 .
[0168] The computer device includes a processor, a non-volatile storage medium, a memory, and a network interface connected via a system bus. The non-volatile storage medium of the computer device stores an operating system, a database, and computer-readable instructions. The database may store a control information sequence. When the computer-readable instructions are executed by the processor, the processor may implement a method for filtering sensitive information. The processor of the computer device is used to provide computing and control capabilities to support the operation of the entire computer device. The memory of the computer device may store computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor may execute a method for filtering sensitive information. The network interface of the computer device is used to connect and communicate with a terminal. Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0169] The computer device receives the status information of the prompt behavior sent by the associated client, that is, whether the associated terminal turns on the prompt and whether the user turns off the prompt task. By verifying whether the above task conditions are met, the corresponding preset instructions are sent to the associated terminal so that the associated terminal can perform the corresponding operation according to the preset instructions, thereby achieving effective supervision of the associated terminal. At the same time, when the prompt information status is different from the preset status instruction, the server controls the associated terminal to continue to ring to prevent the prompt task of the associated terminal from automatically terminating after a period of execution.
[0170] The present invention also provides a storage medium storing computer-readable instructions, which, when executed by one or more processors, enables the one or more processors to execute the method for filtering sensitive information described in any of the above embodiments.
[0171] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0172] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0173] The above descriptions are only partial embodiments of the present invention. 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 present invention. These improvements and modifications should also be regarded as within the scope of protection of the present invention.
Claims
1. A method for filtering sensitive information, characterized in that: include: Receiving communication information to be processed, wherein the communication information includes website information representing an access address of the communication information; Determine whether the communication information has sensitive information filtering authority, where the sensitive information filtering authority includes executing sensitive information filtering and not executing sensitive information filtering; When it is detected that the communication information has sensitive information filtering authority, identifying whether the communication information contains sensitive information according to a preset detection list, wherein the detection list is a list of sensitive information; If it is detected that the communication information contains the sensitive information, a sensitive information filtering rule having a mapping relationship with the website information is obtained from a preset rule database, so as to filter the sensitive information according to the sensitive information filtering rule; The sensitive information filtering rules include: Comparing the character segment in the sensitive information with a common character database to determine whether the character segment is included in the common character database; displaying character segments contained in a common character database and hiding character segments not in the common character database; When all the character segments in the sensitive information are not in the common character database, one of the character segments in the sensitive information is displayed arbitrarily.
2. The method for filtering sensitive information according to claim 1, characterized in that: The method for identifying whether sensitive information exists in the communication information according to a preset detection list includes: Obtaining the character segment contained in the communication information; The character segment is compared with the character segment representing sensitive information in the detection list to determine whether the sensitive information exists in the communication information.
3. The method for filtering sensitive information according to any one of claims 1 to 2, characterized in that: Also includes: Obtaining a request instruction for viewing the sensitive information, wherein the request instruction includes account information for executing the request instruction; Verify whether the account information has viewing authority; When the account information has viewing authority, the sensitive information is displayed according to the rules mapped by the authority of the account information.
4. The method for filtering sensitive information according to claim 3, characterized in that: The rules mapped to the permissions of the account information include: Sending first verification information to the account information and waiting for second verification information fed back by the account information; Determining whether the first verification information and the second verification information meet a preset condition; When the preset conditions are met, the sensitive information is fully displayed.
5. A device for filtering sensitive information, characterized in that: include: Acquisition module: used to receive communication information to be processed, wherein the communication information includes website information representing the access address of the communication information; determine whether the communication information has sensitive information filtering authority, and the sensitive information filtering authority includes executing sensitive information filtering and not executing sensitive information filtering; processing module: when it is detected that the communication information has sensitive information filtering authority, identify whether there is sensitive information in the communication information according to a preset detection list, wherein the detection list is a list of sensitive information; Execution module: used for obtaining a sensitive information filtering rule having a mapping relationship with the URL information from a preset rule database if the sensitive information is detected to exist in the communication information, so as to filter the sensitive information according to the sensitive information filtering rule; the sensitive information filtering rule includes: comparing the character segment in the sensitive information with a commonly used character database to determine whether the character segment is included in the character segment in the commonly used character database; displaying the character segment included in the commonly used character database, and hiding the character segment not in the commonly used character database; when all the character segments in the sensitive information are not in the commonly used character database, arbitrarily displaying one of the character segments in the sensitive information.
6. The sensitive information filtering device according to claim 5, characterized in that: Also includes: The first acquisition submodule is used to acquire the character segment contained in the communication information; The first judgment submodule is used to compare the character segment with the character segment representing sensitive information in the detection list to determine whether the sensitive information exists in the communication information.
7. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the method for filtering sensitive information as claimed in any one of claims 1 to 4.
8. A storage medium storing computer-readable instructions, characterized in that: When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the method for filtering sensitive information as described in any one of claims 1 to 4.
