Identification method, device, equipment and storage medium for unsignalable codes
By extracting and querying tags for short messages, combined with behavioral identification of the sender's phone number, the problem of keyword filtering in short message APPs being easily bypassed is solved, the accuracy of identifying sensitive information is improved, and the missed detection rate is reduced. .
Patent Information
- Application Number
- CN202311318542.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-11
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2043-10-11
AI Technical Summary
In the existing technology, when short message apps monitor and filter sensitive information, keyword filtering is easily bypassed, resulting in a high miss detection rate for untrusted numbers and the inability to effectively identify short messages involving sensitive information.
Extract tags by obtaining the untrusted first short message, generate a tag set, query candidate short messages that match the tag set from the short message library, generate a number set based on the sender's phone number, and identify the sending behavior to determine Untrustworthy target numbers, thereby reducing the missed detection rate.
It realizes the use of known untrustworthy short messages to identify suspected untrustworthy candidate short messages, reduces the missed detection rate of untrustworthy numbers, and avoids missing short messages that filter sensitive information.
Smart Images

Figure CN117395616B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to a method, device, equipment and storage medium for identifying an unidentifiable code. Background Art
[0002] At present, short message APP (Application) can monitor and filter short messages involving sensitive information (such as SMS messages, 5G messages, etc.). For example, short messages sent by untrusted phone numbers (referred to as untrusted phone numbers, such as phone numbers used to make illegal profits) can be monitored and filtered to protect the legitimate rights and interests of users and social public order.
[0003] In the related art, a keyword filtering method is adopted to treat short messages that hit the set keywords as short messages involving sensitive information, and the phone number sending the short message as an unreliable signal code, so that the short message APP can filter the short messages sent with the unreliable signal code.
[0004] However, keywords are easily bypassed, resulting in a high rate of missed detection of unsignalable codes. Summary of the invention
[0005] The present disclosure aims to solve one of the technical problems in the related art at least to some extent.
[0006] One aspect of the present disclosure proposes a method, apparatus, device and storage medium for identifying unreliable codes, so as to utilize a known unreliable first short message to identify suspected unreliable candidate short messages, and identify the sending behavior of the phone number of the sender of each candidate short message to determine the unreliable code from the phone number of the sender of each candidate short message, thereby reducing the missed detection rate of the unreliable code to avoid missing the filtering of short messages involving sensitive information.
[0007] The first embodiment of the present disclosure provides a method for identifying an unsignalable code, comprising:
[0008] Acquire a first short message, and extract tags from the first short message to obtain a tag set; wherein the message source and / or message content of the first short message is unreliable;
[0009] Querying a short message database for candidate short messages that match the tag set;
[0010] Generating a number set according to the phone numbers from which each of the candidate short messages is sent;
[0011] The sending behavior of each candidate number in the number set is identified to determine an untrustworthy target number from each candidate number.
[0012] The second aspect of the present disclosure provides a device for identifying an unsignalable code, including:
[0013] An extraction module, configured to obtain a first short message and extract a tag from the first short message to obtain a tag set; wherein the message source and / or message content of the first short message is unreliable;
[0014] A query module, used to query candidate short messages matching the tag set from a short message library;
[0015] A generating module, used for generating a number set according to the telephone number from which each candidate short message is sent;
[0016] The identification module is used to identify the sending behavior of each candidate number in the number set to determine the untrustworthy target number from each candidate number.
[0017] The third aspect embodiment of the present disclosure proposes an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the method for identifying an unsignalable code proposed in the first aspect embodiment of the present disclosure is implemented.
[0018] The fourth aspect embodiment of the present disclosure proposes a non-temporary computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the method for identifying an unsignalable code proposed in the first aspect embodiment of the present disclosure is implemented.
[0019] The fifth aspect embodiment of the present disclosure proposes a computer program product. When the instructions in the computer program product are executed by a processor, the method for identifying an unsignalable code proposed in the first aspect embodiment of the present disclosure is executed.
[0020] The technical solutions provided by the above embodiments of the present disclosure bring at least the following beneficial effects:
[0021] By extracting the label of the untrusted first short message, a label set is obtained, and the candidate short message matching the label set is searched from the short message library; a number set is generated according to the phone number of each candidate short message sent; the sending behavior of each candidate number in the number set is identified to determine the untrusted target number from each candidate number. In this way, it is possible to use the known untrusted first short message to identify the suspected untrusted candidate short message, and to identify the sending behavior of the phone number of the sender of each candidate short message to determine the untrustworthy code from the phone number of the sender of each candidate short message, so as to reduce the missed detection rate of the untrustworthy code, so as to avoid missing the filtering of short messages involving sensitive information.
[0022] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will be obvious from the following description or learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The above and / or additional aspects and advantages of the present disclosure will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0024] Figure 1 A schematic diagram of a flow chart of a method for identifying an unsignalable code provided by an embodiment of the present disclosure;
[0025] Figure 2 A flowchart of another method for identifying an unsignalable code provided by an embodiment of the present disclosure;
[0026] Figure 3 A flowchart of another method for identifying an unsignalable code provided by an embodiment of the present disclosure;
[0027] Figure 4 A flowchart of another method for identifying an unsignalable code provided by an embodiment of the present disclosure;
[0028] Figure 5 A schematic diagram of a method for extracting a third tag provided in an embodiment of the present disclosure;
[0029] Figure 6 A schematic diagram of the structure of an unsignalable code recognition device provided by an embodiment of the present disclosure;
[0030] Figure 7 It is a schematic structural diagram of an electronic device shown in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0031] Embodiments of the present disclosure 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 intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.
[0032] At present, short message apps can monitor and filter short messages involving sensitive information to protect users’ legitimate rights and interests and social public order.
[0033] Among the related technologies, keyword filtering, machine learning, manual review and other technical means are mainly used to monitor and filter short messages involving sensitive information.
[0034] Among them, keyword filtering is a simple and easy-to-use method that identifies short messages involving sensitive information by matching keywords in short messages.
[0035] Machine learning is a more intelligent method that improves the recognition accuracy of short messages involving sensitive information by learning and optimizing large amounts of training data.
[0036] Manual review is a more accurate method that can manually review and process short messages involving sensitive information that cannot be accurately identified.
[0037] However, the above technical means all have certain limitations and shortcomings and cannot completely solve the problem of accurate monitoring and filtering of short messages.
[0038] For example, with the keyword filtering method, keywords can be easily bypassed by illegal users, resulting in the inability to accurately identify short messages involving sensitive information; for another example, with the machine learning method, a large amount of training data and computing resources are required, and the accuracy of recognition is affected by many factors such as the quality of the training data and the choice of training algorithms; for another example, with the manual review method, a large amount of manpower and time costs are required, and due to the limitations of manual experience, the accuracy of the review is difficult to guarantee.
[0039] Therefore, in order to solve at least one of the above problems, one aspect of the present disclosure provides a method, apparatus, device and storage medium for identifying an unsignalable code.
[0040] The following describes the method and device for identifying an unsignalable code according to an embodiment of the present disclosure with reference to the accompanying drawings.
[0041] Figure 1 The present invention is a flowchart of a method for identifying an unidentifiable signal code provided by an embodiment of the present invention.
[0042] The embodiment of the present disclosure takes the unsignalable code recognition method configured in the unsignalable code recognition device as an example for explanation. The unsignalable code recognition device can be applied to any electronic device so that the electronic device can perform the unsignalable code recognition function.
[0043] Among them, the electronic devices may be, for example, personal computers, mobile terminals, servers, etc., and the mobile terminals may be, for example, mobile phones, tablet computers, personal digital assistants, wearable devices, intelligent robots, and other hardware devices with various operating systems, touch screens and / or display screens.
[0044] like Figure 1 As shown, the method for identifying an unsignalable code may include the following steps:
[0045] Step S101: obtain a first short message, and extract tags from the first short message to obtain a tag set.
[0046] The first short message is an untrustworthy short message, for example, the source of the first short message is untrustworthy, and / or the content of the first short message is untrustworthy (such as the content of the first short message involves sensitive information, prohibited information, illegal profit information, etc.).
[0047] In the embodiment of the present disclosure, the first short message may be obtained, for example, an untrusted short message may be obtained from a short message library, wherein the short message library includes short messages that have been sent by at least one phone number.
[0048] In the embodiment of the present disclosure, tags may be extracted from the first short message, and a tag set may be generated according to the extracted tags.
[0049] Step S102: searching the short message database for candidate short messages that match the tag set.
[0050] The number of candidate short messages may be at least one.
[0051] In the embodiments of the present disclosure, a tag set may be used as a query condition to query a short message library for candidate short messages that match the tag set. For example, the candidate short message may semantically match at least one tag in the tag set, or the candidate short message may include at least one tag in the tag set.
[0052] Step S103: Generate a number set according to the phone numbers from which each candidate short message is sent.
[0053] In the disclosed embodiment, the telephone number of the sender of each candidate short message may be acquired, and a number set may be generated according to the telephone number of the sender of each candidate short message.
[0054] Step S104: identifying the sending behavior of each candidate number in the number set to determine an untrustworthy target number from the candidate numbers.
[0055] In the disclosed embodiment, the sending behavior of each candidate number in the number set may be identified to determine whether each candidate number is an unsignalable code, and the candidate number belonging to the unsignalable code is used as the target number.
[0056] The method for identifying an untrustworthy signal code of the disclosed embodiment extracts a label from an untrustworthy first short message to obtain a label set, and queries a candidate short message matching the label set from a short message library; generates a number set according to the phone number from which each candidate short message is sent; and identifies the sending behavior of each candidate number in the number set to determine an untrustworthy target number from each candidate number. Thus, it is possible to use a known untrustworthy first short message to identify a candidate short message that is suspected to be untrustworthy, and to identify the sending behavior of the phone number of the sender of each candidate short message to determine an untrustworthy signal code from the phone number of the sender of each candidate short message, thereby reducing the missed detection rate of the untrustworthy signal code to avoid missing and filtering short messages involving sensitive information.
[0057] It should be noted that the acquisition, storage, use, and processing of data (such as short messages and telephone numbers) in the disclosed technical solution are in compliance with the relevant provisions of national laws and regulations and do not violate public order and good morals.
[0058] In order to clearly explain how the above embodiment extracts labels from the first short message to obtain a label set, the present disclosure further proposes a method for identifying an unsignalable code.
[0059] Figure 2 A flowchart of another method for identifying an unsignalable code provided by an embodiment of the present disclosure.
[0060] like Figure 2 As shown, the method for identifying an unsignalable code may include the following steps:
[0061] Step S201, obtaining a first short message.
[0062] The message source and / or message content of the first short message is not credible.
[0063] For the explanation of step S201, reference may be made to the relevant description in any embodiment of the present disclosure, and no further details will be given here.
[0064] In any embodiment of the present disclosure, the first short message may satisfy at least one of the following conditions:
[0065] The first item is that the message content of the first short message matches at least one untrustworthy keyword in the set keyword set.
[0066] Among them, untrustworthy keywords may include but are not limited to: keywords related to untrustworthy content such as sensitive information, prohibited information, illegal profit information, fraudulent information, deceptive information, etc., among which keywords include but are not limited to names of people, places, and institutions.
[0067] The second item is that the phone number that sends the first short message (ie, the phone number of the sender of the first short message) is in the blacklist.
[0068] The blacklist includes at least one untrusted phone number.
[0069] The third item is that the first short message carries an untrustworthy mark, wherein the untrustworthy mark is used to indicate the untrustworthy type to which the first short message belongs.
[0070] Among them, untrustworthy types may include but are not limited to: pornography, gambling, etc.
[0071] Step S202: extract keywords from the first short message and use the extracted keywords as the first tag.
[0072] In the embodiments of the present disclosure, keywords include but are not limited to names of people, places, and institutions.
[0073] In the disclosed embodiment, keywords may be extracted from the first short message, and the extracted keywords may be used as the first tag.
[0074] Step S203: extract phrases from the first short message and use the extracted phrases as second tags.
[0075] In the embodiment of the present disclosure, phrases may be extracted from the first short message, and the extracted phrases may be used as the second tags.
[0076] Step S204: Generate a tag set according to the first tag and the second tag.
[0077] In the embodiment of the present disclosure, a tag set may be generated according to each first tag and each second tag, wherein the tag set includes all the first tags and the second tags.
[0078] Step S205: searching the short message database for candidate short messages that match the tag set.
[0079] In the embodiment of the present disclosure, a candidate short message matching the tag set can be queried from the short message library. For example, the candidate short message can semantically match at least one first tag and / or second tag in the tag set, or the candidate short message can include at least one first tag and / or second tag in the tag set.
[0080] Step S206: Generate a number set according to the phone numbers from which each candidate short message is sent.
[0081] Step S207: identifying the sending behavior of each candidate number in the number set to determine an untrustworthy target number from the candidate numbers.
[0082] For explanations of steps S205 to S207, reference may be made to the relevant descriptions in any embodiment of the present disclosure and will not be repeated here.
[0083] The method for identifying unreliable codes in the embodiments of the present disclosure can extract labels of multiple dimensions, and identify suspected unreliable candidate short messages based on the labels of multiple dimensions, which can improve the accuracy of identifying candidate short messages and further improve the accuracy of subsequent unreliable code identification.
[0084] In order to clearly explain how any embodiment of the present disclosure generates a number set according to the phone number that sends each candidate short message, the present disclosure also proposes a method for identifying an unsignalable code.
[0085] Figure 3 A flowchart of another method for identifying an unsignalable code provided by an embodiment of the present disclosure.
[0086] like Figure 3 As shown, the method for identifying an unsignalable code may include the following steps:
[0087] Step S301: obtain a first short message, and extract tags from the first short message to obtain a tag set.
[0088] The message source and / or message content of the first short message is not credible.
[0089] Step S302: Search the short message database for candidate short messages that match the tag set.
[0090] For explanations of steps S301 to S302, reference may be made to the relevant descriptions in any embodiment of the present disclosure and will not be repeated here.
[0091] Step S303: extracting an untrustworthy third tag from the first short message.
[0092] In the embodiment of the present disclosure, an untrustworthy third tag may be extracted from the first short message.
[0093] In any embodiment of the present disclosure, the third tag is obtained in, for example:
[0094] 1. When the first short message includes only text content, a social networking number (referred to as the first social networking number in this disclosure) may be extracted from the text content.
[0095] For example, social software accounts (such as QQ numbers, WeChat numbers, etc.), mobile phone numbers, etc. can be extracted from text content.
[0096] 2. Extract a network address (referred to as the first network address in this disclosure) from the text content, such as a payment link.
[0097] 3. Use the first social number and / or the first network address as the third tag.
[0098] In any embodiment of the present disclosure, the third tag is obtained in, for example:
[0099] 1. When the first short message only includes files (such as pictures, videos, audios, etc.), text information can be extracted from the files.
[0100] For example, when the file is a picture, character recognition can be performed on the picture based on OCR (Optical Character Recognition) technology to obtain text information.
[0101] For another example, when the file is a video, the subtitle information of the video may be used as text information, and / or OCR recognition may be performed on each video frame in the video to obtain the text information.
[0102] For another example, when the file is an audio file, speech recognition may be performed on the audio file to obtain text information.
[0103] 2. Extract the second social number and the second network address from the text message.
[0104] 3. Generate a summary value (such as MD5 value) of the file based on a message digest algorithm (such as MD5 (Message Digest Algorithm 5) algorithm).
[0105] 4. Use at least one of the second social number, the second network address and the summary value as a third tag.
[0106] It should be noted that the above only takes the example that the first short message only includes text content or files. In actual application, the first short message may include text content and files at the same time. At this time, the third tag can be determined by combining the above two methods. For example, at least one of the first social number, the first network address, the second social number, the second network address and the summary value can be used as the third tag. The embodiments of the present disclosure are not limited to this.
[0107] Step S304, screening the candidate short messages according to the third tag to obtain at least one second short message; wherein the second short message semantically matches the third tag, or the second short message includes the third tag.
[0108] In the embodiment of the present disclosure, for any candidate short message, the candidate short message can be matched with each third tag. If the message content of the candidate short message matches the semantics of at least one third tag, or the message content of the candidate short message includes at least one third tag, or the summary value of the candidate short message is the same as the third tag, then the candidate short message can be retained and used as the second short message. Otherwise, the candidate short message can be filtered.
[0109] Step S305: The phone number that sends the second short message is used as a candidate number.
[0110] In the embodiment of the present disclosure, the telephone number of the sender of each second short message may be used as a candidate number.
[0111] Step S306: Generate a number set based on the candidate numbers.
[0112] In the disclosed embodiment, a number set may be generated based on each candidate number, that is, the number set includes all candidate numbers.
[0113] Step S307: identifying the sending behavior of each candidate number in the number set to determine an untrustworthy target number from the candidate numbers.
[0114] For explanation of step S307, reference may be made to the relevant description in any embodiment of the present disclosure, and will not be repeated here.
[0115] The method for identifying unreliable signal codes in the embodiments of the present disclosure only uses the phone number of the sender of the candidate short message containing the unreliable third tag as the suspected unreliable candidate number, or uses the phone number of the sender of the candidate short message that semantically matches the unreliable third tag as the suspected unreliable candidate number, which can improve the recognition efficiency of unreliable signal codes.
[0116] In order to clearly illustrate any of the above embodiments, the present disclosure further proposes a method for identifying an unsignalable code.
[0117] Figure 4 A flowchart of another method for identifying an unsignalable code provided by an embodiment of the present disclosure.
[0118] like Figure 4 As shown, the method for identifying an unsignalable code may include the following steps:
[0119] Step S401: obtain a first short message, and extract tags from the first short message to obtain a tag set.
[0120] The message source and / or message content of the first short message is not credible.
[0121] Step S402: Search the short message database for candidate short messages that match the tag set.
[0122] Step S403: Generate a number set according to the phone numbers from which each candidate short message is sent.
[0123] For explanations of steps S401 to S403, reference may be made to the relevant descriptions in any embodiment of the present disclosure, and will not be repeated here.
[0124] Step S404: for any candidate number in the number set, obtain from the short message database a third short message sent by any candidate number.
[0125] In the embodiment of the present disclosure, for any candidate number in the number set, the sent record of the candidate number can be obtained from the short message library, that is, each short message sent by the candidate number (referred to as the third short message in the present disclosure) is obtained.
[0126] Step S405: identifying the sending behavior of each third short message to determine whether any candidate number is an untrustworthy target number.
[0127] In the disclosed embodiment, the sending behavior of each third short message sent by the candidate number may be identified to determine whether the candidate number is an untrustworthy target number.
[0128] It should be noted that since number portability requires data synchronization between operators, there will be a time difference during the number portability period, which makes it difficult to control the phone numbers of the ported numbers. Illegal users can exploit this vulnerability to send a large number of untrusted messages. Therefore, in any embodiment of the present disclosure, the sending behavior of candidate numbers in the number set can be analyzed, and the analysis results can be used as candidate numbers for recent number portability as untrusted target numbers.
[0129] For example, whether a candidate number is an untrusted target number may be determined by:
[0130] 1. Identify the sending behavior of each third short message to determine whether the candidate number is a phone number for number portability within a set period of time.
[0131] The set time period is a pre-set time period, for example, the set time period may be a recent time period.
[0132] 2. If the candidate number is a phone number that has been ported within a set period of time, the candidate number is determined to be an untrustworthy target number.
[0133] 3. If the candidate number is not a phone number for number portability within the set time period, it is determined that the candidate number is not the target number.
[0134] It should be noted that the sender and receiver of untrusted short messages (such as 5G messages) are mostly sent in different locations. Therefore, in any embodiment of the present disclosure, it can be determined whether the sender's location of the third short message and the receiver's location are the same. If not, the candidate number is used as an untrusted target number.
[0135] For example, whether a candidate number is an untrusted target number may be determined by:
[0136] 1. Identify the sending behavior of each third short message to determine the first belonging place of the candidate number.
[0137] 2. Receiving behavior identification is performed on each third short message to determine the second location of the telephone number of the recipient of each third short message.
[0138] 3. Determine whether the candidate number is the target number based on the first location and the second location of the telephone number of the recipient of each third short message.
[0139] For example, the fourth short message can be determined from the third short messages based on the first location, wherein the second location of the telephone number of the recipient of the fourth short message is the same as the first location, and the number of fourth short messages and the total number of third short messages are counted. When the number of fourth short messages is greater than or equal to a first set number threshold, and / or the ratio of the number of fourth short messages to the number of third short messages (i.e., the number of fourth short messages divided by the total number of third short messages) is greater than or equal to a first set ratio threshold, the candidate number is determined to be the target number.
[0140] When the number of the fourth short messages is less than the first set number threshold, and the ratio of the number of the fourth short messages to the number of the third short messages is less than the first set ratio threshold, it is determined that the candidate number is not the target number.
[0141] It should be noted that most untrusted short messages are one-way group messages, and the transmission between the sender and the receiver is basically one-way. Therefore, in any embodiment of the present disclosure, a large number of candidate numbers to which the same third short message is sent can be used as untrusted target numbers.
[0142] For example, whether a candidate number is an untrusted target number may be determined by:
[0143] 1. Performing sending behavior identification on each third short message to determine whether there is a fifth short message in each third short message; wherein the message contents of each fifth short message match or are the same, and the telephone numbers of the recipients of the fifth short messages are different, that is, the fifth short message is a group short message.
[0144] 2. If the fifth short message exists, the candidate number is determined to be the target number.
[0145] 3. If the fifth short message does not exist, it is determined that the candidate number is not the target number.
[0146] Furthermore, in the case where there is a fifth short message, the number of the fifth short messages can be counted, and it can be determined whether the number of the fifth short messages is greater than a threshold. If so, the candidate number is determined to be the target number, and if not, the candidate number is determined not to be the target number.
[0147] In any embodiment of the present disclosure, the sending behavior of each third short message can be identified based on deep learning technology to determine whether the candidate number is an untrustworthy target number, which can improve the accuracy and reliability of the target number identification result.
[0148] For example, whether a candidate number is an untrusted target number may be determined by:
[0149] 1. Input each third short message into the target classification model respectively to obtain the classification probability of each third short message output by the target classification model; wherein the classification probability is used to indicate the probability that the corresponding third short message is an untrustworthy message.
[0150] 2. Determine a sixth short message from each of the third short messages according to the classification probability of each of the third short messages; wherein the classification probability of the sixth short message is greater than a set probability threshold.
[0151] 3. According to the sixth short message, determine whether the candidate number is the target number.
[0152] For example, the number of sixth short messages and the total number of third short messages can be counted. When the number of sixth short messages is greater than or equal to a second set number threshold, and / or the ratio of the number of sixth short messages to the number of third short messages (i.e., the number of sixth short messages divided by the total number of third short messages) is greater than or equal to the second set ratio threshold, the candidate number is determined to be the target number.
[0153] When the number of the sixth short messages is less than the second set number threshold, and the ratio of the number of the sixth short messages to the number of the third short messages is less than the second set ratio threshold, it is determined that the candidate number is not the target number.
[0154] In summary, it is possible to identify whether a candidate number is an unsignalable code based on different methods, which can improve the flexibility and applicability of the method. Moreover, by combining multiple methods to identify whether a candidate number is an unsignalable code, the accuracy and reliability of the recognition result can be improved.
[0155] In any embodiment of the present disclosure, for the content security management of 5G messages, the present disclosure proposes a short message monitoring and filtering method based on label extraction and reverse query technology, which effectively solves the limitations and shortcomings of the existing technology, has higher recognition accuracy and lower recognition cost, and provides a new technical idea and solution for solving the problem of short message monitoring and filtering.
[0156] Among them, the present disclosure is aimed at the data analysis link after the information review of the message content of short messages (SMS messages, 5G messages, etc.). The implementation technical solution is a short message monitoring and filtering method based on label extraction and reverse query technology. The specific implementation steps are as follows:
[0157] Step 1, label extraction: for each untrustworthy short message (referred to as the first short message in this disclosure), keywords and phrases in the first short message are extracted and labeled to form a label set.
[0158] Among them, after the message content is reviewed, the conditions for marking the short message as untrustworthy may include but are not limited to the following two:
[0159] 1. If the message content matches the set untrusted policy (for example, it matches the untrusted keywords in the set keyword set, or the sender's phone number is on the blacklist), it will be sent for manual review;
[0160] 2. Auditors will manually judge the suspected unreliable short messages and mark them accordingly. The marked unreliable types include pornography, gambling, etc.
[0161] Only short messages that meet the two conditions will extract the relevant untrusted third tag.
[0162] Step 2: Reverse Lookup and Matching: Use the tag set as the query condition to perform reverse lookup and matching on the short message database to obtain new candidate short messages that are suspected to be untrustworthy.
[0163] Step 3, filter out untrustworthy signal codes: filter and screen the matched candidate short messages from the new suspected untrustworthy candidate short messages. For example, you can use untrustworthy third tags to trace back the candidate short messages whose message contents contain these third tags, and use them as the retained second short messages. Based on the phone number of the sender of the second short message, generate a set of numbers for key monitoring.
[0164] As an example, the third tag can be extracted as follows: Figure 5 As shown, it mainly includes the following steps:
[0165] 3.1. After the text content in the first short message is segmented using a Chinese word segmentation tool, the social account and network address are identified and extracted using corresponding regular expressions.
[0166] 3.2. For the picture in the first short message, use OCR technology to obtain text information and then execute step 3.1. At the same time, the MD5 value of the picture is also used as the third tag.
[0167] 3.3. For the complex file in the first short message, use the component to parse out the text and the picture, and then execute steps 3.1 and 3.2 respectively.
[0168] 3.4: For the video in the first short message, extract the text content and execute step 3.1. At the same time, use the MD5 value of the video as the third tag.
[0169] In the present disclosure, the message content of historically sent short messages can be matched and filtered according to the third tag, and the second short message including the third tag and the variant content of the third tag can be found, and the sender's phone number of the second short message can be used as a candidate number for key monitoring.
[0170] Furthermore, a monitoring strategy may be deployed based on the set tags to predict suspected untrustworthy phone numbers when subsequent short messages are sent. For example, the set keyword set in the untrustworthy strategy in step 1 may be updated based on the third tag.
[0171] Step 4, confirm the unsignalable code: Use the sent records to analyze the sending behavior of each candidate number in the number set to further confirm whether the candidate number is an unsignalable code to determine whether the owner of the candidate number has any illegal behavior.
[0172] In summary, it is possible to extract untrusted tags from known untrusted short messages, and then analyze untrusted codes based on untrusted tags, so as to narrow the monitoring scope of untrusted codes, improve the recognition efficiency of untrusted codes, and reduce the false interception by only analyzing a certain link in the untrusted business chain (such as sending behavior or content recognition). In addition, by extracting and analyzing untrusted tags, untrusted codes can be accurately located, so that illegal users can be associated with the illegal behavior of the owner of the untrusted code, which can avoid the misjudgment and omission of untrusted codes and effectively improve the accuracy of message content security management. In addition, when identifying untrusted codes, only the phone numbers containing untrusted tags in the sent message content are paid attention to, and all users will not be monitored, thereby protecting the privacy of users; in addition, untrusted tags can be expanded according to actual conditions to deal with new illegal behaviors, which has strong scalability.
[0173] As an example, taking short messages as 5G messages as an example, the identification method of unreliable signal codes provided by the present disclosure can be applied to the 5G message bad information security management and control system. By monitoring and filtering unreliable short messages, it can meet the needs of different users, provide efficient, accurate, practical and scalable services, and provide users with safer and more convenient short message services to improve user satisfaction and loyalty. In addition, a variety of technical means can be used to protect the privacy of users, thereby ensuring the security of their information. In addition, a distributed architecture and cloud computing technology can be used to build a highly available, highly concurrent and highly scalable system. At the same time, an API (Application Programming Interface) interface is provided so that third-party developers can build richer applications and services based on the system.
[0174] With the above Figure 1-Figure 4 Corresponding to the method for identifying an unsignalable code provided in the embodiment, the present disclosure further provides an apparatus for identifying an unsignalable code. Figure 1-Figure 4 The method for identifying an unsignalable code provided in the embodiment corresponds to the method, so the implementation of the method for identifying an unsignalable code is also applicable to the device for identifying an unsignalable code provided in the embodiment of the present disclosure, and will not be described in detail in the embodiment of the present disclosure.
[0175] Figure 6 A schematic diagram of the structure of an unsignalable code recognition device provided by an embodiment of the present disclosure.
[0176] like Figure 6 As shown, the unsignalable code recognition device 600 may include: an extraction module 610 , a query module 620 , a generation module 630 and a recognition module 640 .
[0177] The extraction module 610 is used to obtain a first short message and extract tags from the first short message to obtain a tag set; wherein the message source and / or message content of the first short message is not credible.
[0178] The query module 620 is used to query the short message database for candidate short messages that match the tag set.
[0179] The generating module 630 is used to generate a number set according to the phone number from which each candidate short message is sent.
[0180] The identification module 640 is used to identify the sending behavior of each candidate number in the number set to determine the untrustworthy target number from the candidate numbers.
[0181] In a possible implementation of the embodiment of the present disclosure, the extraction module 610 is specifically used to: extract keywords from the first short message and use the extracted keywords as the first label; extract phrases from the first short message and use the extracted phrases as the second label; generate a label set based on the first label and the second label.
[0182] In a possible implementation of the embodiment of the present disclosure, the generation module 630 is specifically used to: extract an untrustworthy third tag from the first short message; screen each candidate short message according to the third tag to obtain at least one second short message; wherein the second short message semantically matches the third tag, or the second short message includes the third tag; use the phone number that sends the second short message as a candidate number; and generate a number set based on each candidate number.
[0183] In a possible implementation of the embodiment of the present disclosure, the generation module 630 is specifically used to: when the first short message includes text content, extract the first social number from the text content; extract the first network address from the text content; and generate a third tag based on the first social number and / or the first network address.
[0184] In a possible implementation of the embodiment of the present disclosure, the generation module 630 is specifically used to: extract text information from the file when the first short message includes a file; extract the second social number and the second network address from the text information; generate a summary value of the file based on the information summary algorithm; generate a third tag according to at least one of the second social number, the second network address and the summary value.
[0185] In a possible implementation of the embodiment of the present disclosure, the identification module 640 is specifically used to: for any candidate number in the number set, obtain the third short message sent by any candidate number from the short message library; and identify the sending behavior of each third short message to determine whether any candidate number is an untrustworthy target number.
[0186] In a possible implementation of the embodiment of the present disclosure, the identification module 640 is specifically used to: identify the sending behavior of each third short message to determine whether any candidate number is a phone number for number portability within a set time period; if any candidate number is a phone number for number portability, determine that any candidate number is a target number; if any candidate number is not a phone number for number portability, determine that any candidate number is not a target number.
[0187] In a possible implementation of the embodiment of the present disclosure, the identification module 640 is specifically used to: identify the sending behavior of each third short message to determine the first location of any candidate number; identify the receiving behavior of each third short message to determine the second location of the telephone number receiving each third short message; determine whether any candidate number is the target number based on the first location and the second location of the telephone number receiving each third short message.
[0188] In a possible implementation of the embodiment of the present disclosure, the identification module 640 is specifically used to: determine a fourth short message from each third short message; wherein the second place of attribution of the telephone number receiving the fourth short message is the same as the first place of attribution; when the number of fourth short messages is greater than or equal to a first set number threshold, and / or the ratio of the number of fourth short messages to the number of third short messages is greater than or equal to a first set ratio threshold, determine that any candidate number is the target number; when the number of fourth short messages is less than the first set number threshold, and the ratio of the number of fourth short messages to the number of third short messages is less than the first set ratio threshold, determine that any candidate number is not the target number.
[0189] In a possible implementation of the embodiment of the present disclosure, the identification module 640 is specifically used to: identify the sending behavior of each third short message to determine whether there is a fifth short message in each third short message; wherein the message contents of each fifth short message match, and the telephone numbers receiving the fifth short messages are different; if there is a fifth short message, determine that any candidate number is the target number; if there is no fifth short message, determine that any candidate number is not the target number.
[0190] In a possible implementation of the embodiment of the present disclosure, the identification module 640 is specifically used to: input each third short message into the target classification model respectively to obtain the classification probability of each third short message output by the target classification model; wherein the classification probability is used to indicate the probability that the corresponding third short message is an untrustworthy message; according to the classification probability of each third short message, determine a sixth short message from each third short message; wherein the classification probability of the sixth short message is greater than a set probability threshold; and according to the sixth short message, determine whether any candidate number is a target number.
[0191] In a possible implementation of the embodiment of the present disclosure, the identification module 640 is specifically used to: when the number of sixth short messages is greater than or equal to a second set number threshold, and / or the ratio of the number of sixth short messages to the third short messages is greater than or equal to the second set ratio threshold, determine that any candidate number is the target number; when the number of sixth short messages is less than the second set number threshold, and the ratio of the number of sixth short messages to the third short messages is less than the second set ratio threshold, determine that any candidate number is not the target number.
[0192] In a possible implementation of the embodiment of the present disclosure, the identification module 640 is specifically used to: the first short message satisfies at least one of the following conditions: the message content of the first short message hits at least one untrusted keyword in the set keyword set; the phone number sending the first short message is in the blacklist; wherein the blacklist includes at least one untrusted phone number; the first short message carries an untrusted mark, wherein the untrusted mark is used to indicate the untrusted type to which the first short message belongs.
[0193] The device for identifying the untrustworthy code of the embodiment of the present disclosure extracts the label of the untrustworthy first short message to obtain the label set, and queries the candidate short message matching the label set from the short message library; generates a number set according to the phone number that sends each candidate short message; and identifies the sending behavior of each candidate number in the number set to determine the untrustworthy target number from each candidate number. In this way, it is possible to use the known untrustworthy first short message to identify the candidate short message that is suspected to be untrustworthy, and identify the sending behavior of the phone number of the sender of each candidate short message to determine the untrustworthy code from the phone number of the sender of each candidate short message, which can reduce the missed detection rate of the untrustworthy code to avoid missing the filtering of short messages involving sensitive information.
[0194] In order to implement the above embodiments, the present disclosure further proposes an electronic device, wherein the electronic device can be any device with computing capability, and the electronic device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the program, it implements the method for identifying an unsignalable code proposed in any of the aforementioned embodiments of the present disclosure.
[0195] As an example, Figure 7 is a schematic diagram of the structure of an electronic device 700 shown in an exemplary embodiment of the present disclosure, such as Figure 7 As shown, the electronic device 700 may further include:
[0196] The memory 710 and the processor 720, a bus 730 connecting different components (including the memory 710 and the processor 720), the memory 710 stores a computer program, and when the processor 720 executes the program, the method for identifying the non-signalable code described in the embodiment of the present disclosure is implemented.
[0197] Bus 730 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.
[0198] The electronic device 700 typically includes a variety of electronic device readable media. These media can be any available media that can be accessed by the electronic device 700, including volatile and non-volatile media, removable and non-removable media.
[0199] The memory 710 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 740 and / or cache memory 750. The server 700 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 760 may be used to read and write non-removable, non-volatile magnetic media ( Figure 7 not shown, usually called a "hard drive"). Although Figure 7 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 730 via one or more data medium interfaces. The memory 710 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present disclosure.
[0200] A program / utility 780 having a set (at least one) of program modules 770 may be stored, for example, in the memory 710, such program modules 770 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 770 generally perform the functions and / or methods of the embodiments described in the present disclosure.
[0201] The electronic device 700 may also communicate with one or more external devices 790 (e.g., keyboard, pointing device, display 791, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 700, and / or communicate with any device that enables the electronic device 700 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 792. Furthermore, the electronic device 700 may also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN) and / or public network, such as the Internet) through a network adapter 793. As shown, the network adapter 793 communicates with other modules of the electronic device 700 through a bus 730. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0202] The processor 720 executes various functional applications and data processing by running the programs stored in the memory 710 .
[0203] It should be noted that the implementation process and technical principles of the electronic device of this embodiment refer to the aforementioned explanation of the method for identifying the unsignalable code of the embodiment of the present disclosure, and will not be repeated here.
[0204] In order to implement the above embodiments, the present disclosure further proposes a non-temporary computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method for identifying an unsignalable code proposed in any of the above embodiments of the present disclosure is implemented.
[0205] In order to implement the above embodiments, the present disclosure further proposes a computer program product. When the instructions in the computer program product are executed by a processor, the method for identifying an unsignalable code proposed in any of the above embodiments of the present disclosure is executed.
[0206] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0207] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0208] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present disclosure includes additional implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present disclosure belong.
[0209] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0210] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0211] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0212] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0213] The storage medium mentioned above may be a read-only memory, a disk or an optical disk, etc. Although the embodiments of the present disclosure have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations of the present disclosure. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present disclosure.
Claims
1. A method for identifying an unsignalable code, characterized in that: include: Acquire a first short message, and extract tags from the first short message to obtain a tag set; wherein the message source and / or message content of the first short message is unreliable; Querying a short message database for candidate short messages that match the tag set; Generating a number set according to the phone numbers from which each of the candidate short messages is sent; Identifying the sending behavior of each candidate number in the number set to determine an untrustworthy target number from each candidate number; The step of extracting tags from the first short message to obtain a tag set includes: Extracting keywords from the first short message, and using the extracted keywords as first tags; Extracting phrases from the first short message, and using the extracted phrases as second tags; The tag set is generated according to the first tag and the second tag.
2. The method according to claim 1, characterized in that The step of generating a number set according to the telephone number from which each candidate short message is sent comprises: extracting an untrustworthy third tag from the first short message; Screening each of the candidate short messages according to the third tag to obtain at least one second short message; wherein the second short message semantically matches the third tag, or the second short message includes the third tag; Using the phone number that sends the second short message as the candidate number; The number set is generated according to each of the candidate numbers.
3. The method according to claim 2, characterized in that The extracting the untrustworthy third tag from the first short message includes: When the first short message includes text content, extracting the first social networking number from the text content; Extracting a first network address from the text content; The third tag is generated according to the first social number and / or the first network address.
4. The method according to claim 2, characterized in that: The extracting the untrustworthy third tag from the first short message includes: When the first short message includes a file, extracting text information from the file; extracting a second social number and a second network address from the text message; Based on the information digest algorithm, generate a digest value of the file; The third tag is generated according to at least one of the second social number, the second network address, and the summary value.
5. The method according to any one of claims 1 to 4, characterized in that The step of identifying the sending behavior of each candidate number in the number set to determine an untrustworthy target number from each candidate number includes: For any candidate number in the number set, obtaining from the short message database a third short message sent by the any candidate number; The sending behavior of each of the third short messages is identified to determine whether any of the candidate numbers is an untrustworthy target number.
6. The method according to claim 5, characterized in that The step of identifying the sending behavior of each of the third short messages to determine whether any of the candidate numbers is an untrustworthy target number includes: Identify the sending behavior of each of the third short messages to determine whether any of the candidate numbers is a phone number for number portability within a set time period; If any of the candidate numbers is a phone number for number portability, determining the any of the candidate numbers as the target number; If any of the candidate numbers is not a phone number for number portability, it is determined that any of the candidate numbers is not the target number.
7. The method according to claim 5, characterized in that The step of identifying the sending behavior of each of the third short messages to determine whether any of the candidate numbers is an untrustworthy target number includes: Identifying the sending behavior of each of the third short messages to determine the first belonging place of any candidate number; Receiving behavior identification is performed on each of the third short messages to determine the second attribution of the telephone number that receives each of the third short messages; It is determined whether any of the candidate numbers is the target number according to the first location and the second location of the telephone number receiving each of the third short messages.
8. The method according to claim 7, characterized in that The determining whether any candidate number is the target number according to the first location and the second location of the telephone number receiving each of the third short messages includes: Determine a fourth short message from each of the third short messages; wherein the second location of the telephone number receiving the fourth short message is the same as the first location; When the number of the fourth short messages is greater than or equal to a first set number threshold, and / or the ratio of the number of the fourth short messages to the number of the third short messages is greater than or equal to a first set ratio threshold, determining any candidate number as the target number; When the number of the fourth short messages is less than the first set number threshold, and the ratio of the fourth short messages to the third short messages is less than the first set ratio threshold, it is determined that any candidate number is not the target number.
9. The method according to claim 5, characterized in that The step of identifying the sending behavior of each of the third short messages to determine whether any of the candidate numbers is an untrustworthy target number includes: Performing a sending behavior identification on each of the third short messages to determine whether a fifth short message exists in each of the third short messages; wherein the message contents of each of the fifth short messages match, and the telephone numbers receiving the fifth short messages are different; If the fifth short message exists, determining any candidate number as the target number; If the fifth short message does not exist, it is determined that any of the candidate numbers is not the target number.
10. The method according to claim 5, characterized in that The step of identifying the sending behavior of each of the third short messages to determine whether any of the candidate numbers is an untrustworthy target number includes: Input each of the third short messages into a target classification model respectively to obtain a classification probability of each of the third short messages output by the target classification model; wherein the classification probability is used to indicate a probability that the corresponding third short message is an untrustworthy message; Determine a sixth short message from each of the third short messages according to the classification probability of each of the third short messages; wherein the classification probability of the sixth short message is greater than a set probability threshold; According to the sixth short message, it is determined whether any of the candidate numbers is the target number.
11. The method according to claim 10, characterized in that The step of determining, according to the sixth short message, whether any candidate number is the target number comprises: When the number of the sixth short messages is greater than or equal to a second set number threshold, and / or the ratio of the number of the sixth short messages to the number of the third short messages is greater than or equal to a second set ratio threshold, determining any candidate number as the target number; When the number of the sixth short messages is less than the second set number threshold, and the ratio of the number of the sixth short messages to the number of the third short messages is less than the second set ratio threshold, it is determined that any of the candidate numbers is not the target number.
12. The method according to any one of claims 1 to 4, characterized in that The first short message meets at least one of the following conditions: The message content of the first short message matches at least one untrustworthy keyword in a set of keywords; The phone number sending the first short message is in a blacklist; wherein the blacklist includes at least one untrusted phone number; The first short message carries an untrustworthy mark, wherein the untrustworthy mark is used to indicate the untrustworthy type to which the first short message belongs.
13. A device for identifying an unsignalable code, characterized in that: include: An extraction module, configured to obtain a first short message and extract a tag from the first short message to obtain a tag set; wherein the message source and / or message content of the first short message is unreliable; A query module, used to query candidate short messages matching the tag set from a short message library; A generating module, used for generating a number set according to the telephone number from which each candidate short message is sent; an identification module, configured to identify the sending behavior of each candidate number in the number set, so as to determine an untrustworthy target number from each candidate number; The extraction module is specifically used for: Extracting keywords from the first short message, and using the extracted keywords as first tags; Extracting phrases from the first short message, and using the extracted phrases as second tags; The tag set is generated according to the first tag and the second tag.
14. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method for identifying an unsignalable code according to any one of claims 1 to 12.
15. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to enable the computer to execute the method for identifying an unsignalable code according to any one of claims 1-12.
