Smart speaker data stream processing method and system

By obtaining the data flow mirroring between the smart speaker and the external network for analysis, abnormal behaviors are identified, which solves the problem of lack of universality and performance impact in the existing technology, achieves efficient and transparent analysis of the smart speaker data flow, and improves security. usage environment.

CN110891047BActive Publication Date: 2024-09-06CHINA ACADEMY OF INFORMATION & COMM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910947948.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-10-08
Publication Date
2024-09-06
Estimated Expiration
2039-10-08

AI Technical Summary

Technical Problem

Existing smart speaker data flow monitoring technology lacks universality, has an impact on the performance of the device under test, cannot adapt to different hardware and software environments, and has resource consumption issues.

Method used

By obtaining the data flow image between the smart speakers and the external network, aggregation, parsing and analysis are performed to identify abnormal behaviors and provide alarms when exceptions occur, using silent, cross-border, covert upload, encryption detection and data privacy review modes. Enable data flow analysis without requiring changes to the device.

Benefits of technology

It realizes the universal analysis of smart speaker data flow, avoids the impact of device performance, is suitable for a variety of smart speaker products, ensures the normal function of the device, and improves security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110891047B
    Figure CN110891047B
Patent Text Reader

Abstract

The present invention proposes a method and system for processing data streams of smart speakers, wherein the system includes: a routing module for obtaining data stream mirrors; a data stream convergence module for convergence of data stream mirrors; a data stream parsing module for parsing and recording data stream information; a data stream analysis module for analyzing and judging abnormal behaviors based on data stream information, and issuing an alarm when abnormal behaviors occur. The method and system are universal and transparent, and do not require any hardware or software changes to the smart speaker device during application, and are applicable to various forms of smart speaker products; and can perform mirror bypass analysis of the smart speaker data stream while ensuring the normal function of the smart speaker, and are transparent to the normal function of the smart speaker, and can fully restore the actual application scenarios of the smart speaker and conduct data stream analysis based on this, and issue abnormal behavior alarms.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart speaker technology, and in particular to a smart speaker data stream processing method and system. Background Art

[0002] With the development of technologies such as the Internet of Things and artificial intelligence, and in the context of the development of voice interaction technology, smart speaker products not only connect people and objects, but also provide people with entertainment content and life services using sound as a carrier. However, at the same time, the privacy protection issues of smart speakers have gradually attracted attention, and many smart speaker devices have been pointed out to secretly collect user data or illegally transfer data across borders.

[0003] At present, in order to solve the above problems, technical solutions for analyzing data streams of mobile devices are usually used. For example, data stream-based behavior analysis on mobile devices, methods for detecting suspicious or degraded mobile device behaviors, identifying key data resources that need to be closely monitored in the processor, identifying intermediate resources associated with key data resources, monitoring API (Application Programming Interface) calls made by software applications, identifying mobile device resources consumed or generated by API calls, identifying patterns of API calls as indicating malicious activities performed by software applications, and finally determining whether the software application is malicious or benign.

[0004] However, this solution has the following two shortcomings:

[0005] 1. Lack of universality: The existing technology needs to monitor the data flow of the device under test by adding or modifying hardware modules and adding additional software. Since the hardware and software systems of the devices under test are different, the existing methods need to adapt to the hardware and software environments of different devices, and therefore are not universal.

[0006] 2. It has a certain impact on the performance of the device under test. Existing technologies all run on the device under test, which consumes additional resources of the device (such as computing resources, storage resources, etc.), and therefore has a certain degree of impact on the performance of the device under test.

[0007] Therefore, there is an urgent need for a smart speaker data analysis solution that is universal and does not affect the performance of the device under test. Summary of the invention

[0008] To solve the above problems, the present invention proposes a smart speaker data stream processing method and system, which can evaluate the use and protection of user data by the smart speaker, and analyze the smart speaker data stream as needed, and prompt abnormal data behavior through alarms; this method does not make any changes to the device under test, and uses all data streams of converged wireless transmission for analysis, making the test technology more universal and not affecting the performance of the device itself.

[0009] In one embodiment of the present invention, a method for processing data stream of a smart speaker is proposed, and the method includes:

[0010] Obtain the data flow mirror between the smart speaker and the external network;

[0011] Aggregating the data stream mirrors to obtain an aggregated data stream;

[0012] Parsing the aggregated data stream and recording data stream information;

[0013] According to the data flow information, abnormal behavior is analyzed and judged, and an alarm is issued when abnormal behavior occurs.

[0014] Furthermore, the method also includes:

[0015] A communication connection is established between the smart speaker and the external network, so that data flow transmission is maintained between the smart speaker and the external network, and the data flow transmitted between the smart speaker and the external network is mirrored to obtain a data flow mirror.

[0016] Furthermore, the data flow information includes: source and destination address information, data protocol information and data content.

[0017] Furthermore, based on the data flow information, abnormal behavior is analyzed and judged, and an alarm is issued when abnormal behavior occurs, including at least one of the following modes:

[0018] Silent data flow behavior analysis mode: put the smart speaker in a silent environment and continuously record the traffic behavior data during the test time. After the test, determine whether there is data flow transmission in the silent state in the traffic behavior data, and analyze the content of the transmission data. If there is data flow transmission in the silent state and the content of the transmission data is abnormal, an abnormal behavior alarm is issued.

[0019] In the cross-border data analysis mode, the smart speaker is turned on, and user data is interacted during the test time, and traffic behavior data is recorded. After the test, the traffic behavior data is used to determine whether there is cross-border data according to the destination address, and the content of the cross-border data is analyzed. If there is cross-border data and the content of the cross-border data is abnormal, an abnormal behavior alarm is issued.

[0020] In the hidden upload detection mode, the smart speaker is turned on, and user data is interacted during the test time, and traffic behavior data is recorded. After the test, the uplink data is analyzed based on the traffic behavior data to determine whether there is any hidden upload behavior using non-declared data streams during the data transmission process; if there is any hidden upload behavior using non-declared data streams, an abnormal behavior alarm is issued;

[0021] Encryption detection mode: turn on the smart speaker, perform user data interaction during the test time, and record traffic behavior data; after the test, identify the encryption method of user data and parse the user data content based on the traffic behavior data; if there is any abnormality in the user data content, issue an abnormal behavior alarm;

[0022] In data privacy review mode, the smart speaker is turned on, user data interaction is performed during the test time, and traffic behavior data is recorded. After the test, the user data content is reviewed based on the above traffic behavior data to determine whether there is data content involving user privacy. If there is data content involving user privacy, an abnormal behavior alarm is issued.

[0023] Further, analyzing and judging abnormal behavior according to the data flow information, and issuing an alarm when abnormal behavior occurs, further comprising:

[0024] The data content is judged for abnormal behavior based on the preset keyword information, and an alarm is issued when abnormal behavior occurs.

[0025] In one embodiment of the present invention, a smart speaker data stream processing system is also proposed, the system comprising:

[0026] The routing module is used to obtain the data flow mirror between the smart speaker and the external network;

[0027] A data flow aggregation module, used to aggregate the data flow mirrors to obtain an aggregated data flow;

[0028] A data stream analysis module, used to analyze the aggregated data stream and record data stream information;

[0029] The data flow analysis module is used to analyze and judge abnormal behavior based on the data flow information, and to issue an alarm when abnormal behavior occurs.

[0030] Furthermore, the routing module is also used to establish a communication connection between the smart speaker and the external network, so that data flow transmission is maintained between the smart speaker and the external network, and the data flow transmitted between the smart speaker and the external network is mirrored to obtain a data flow mirror.

[0031] Furthermore, the data flow information includes: source and destination address information, data protocol information and data content.

[0032] Furthermore, the system includes at least one of the following data flow analysis modes:

[0033] Silent data flow behavior analysis mode: the smart speaker is placed in a silent environment, the data flow mirror is aggregated by the data flow aggregation module, and the flow behavior data is continuously recorded by the data flow analysis module during the test time; after the test, the data flow analysis module is used to determine whether there is data flow transmission in the silent state in the flow behavior data, and analyze the content of the transmission data; if there is data flow transmission in the silent state, and the content of the transmission data is abnormal, an abnormal behavior alarm is issued;

[0034] In the cross-border data analysis mode, the smart speaker is turned on, and user data is interacted within the test time. The data stream image is aggregated through the data stream aggregation module, and the traffic behavior data is recorded through the data stream analysis module. After the test, the data stream analysis module is used to determine whether there is cross-border data according to the traffic behavior data and the destination address, and the cross-border data content is analyzed. If there is cross-border data and the cross-border data content is abnormal, an abnormal behavior alarm is issued;

[0035] In the hidden upload detection mode, the smart speaker is turned on, and user data is interacted within the test time. The data stream image is aggregated by the data stream aggregation module, and the traffic behavior data is recorded by the data stream analysis module. After the test, the uplink data is analyzed according to the traffic behavior data by using the data stream analysis module to determine whether there is any hidden upload behavior using non-declared data streams during the data transmission process; if there is any hidden upload behavior using non-declared data streams, an abnormal behavior alarm is issued;

[0036] In the encryption detection mode, the smart speaker is turned on, and user data interaction is performed within the test time. The data stream image is aggregated by the data stream aggregation module, and the traffic behavior data is recorded by the data stream analysis module. After the test, the encryption method of the user data is identified and the user data content is analyzed based on the traffic behavior data by using the data stream analysis module. If there is an abnormality in the user data content, an abnormal behavior alarm is issued.

[0037] In the data privacy review mode, the smart speaker is turned on, and user data interaction is performed during the test time. The data stream mirror is aggregated by the data stream aggregation module, and the traffic behavior data is recorded by the data stream parsing module. After the test, the user data content is reviewed by the data stream analysis module based on the above traffic behavior data to determine whether there is data content involving user privacy; if there is data content involving user privacy, an abnormal behavior alarm is issued.

[0038] Furthermore, the data flow analysis module is also used to judge abnormal behavior of data content according to preset keyword information, and to issue an alarm when abnormal behavior occurs.

[0039] The smart speaker data stream processing method and system proposed in the present invention are universal and transparent. When applied, there is no need to make any hardware or software changes to the smart speaker device, and it is applicable to various forms of smart speaker products. And under the premise of ensuring the normal function of the smart speaker, the smart speaker data stream can be mirrored and bypassed for analysis. It is transparent to the normal function of the smart speaker, can fully restore the actual application scenario of the smart speaker and perform data stream analysis based on this, issue abnormal behavior alarms, and improve the safe use environment of the smart speaker. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 The application scenarios in which the embodiments of the present invention can be implemented are schematically shown.

[0041] Figure 2 It is a flow chart of a smart speaker data stream processing method according to an embodiment of the present invention.

[0042] Figure 3 It is a schematic diagram of a data flow analysis mode according to an embodiment of the present invention.

[0043] Figure 4 It is a flow chart of a smart speaker data stream processing method according to another embodiment of the present invention.

[0044] Figure 5 It is a schematic diagram of the architecture of a smart speaker data stream processing system according to an embodiment of the present invention.

[0045] Figure 6 It is a schematic diagram of an application scenario of a specific embodiment of the present invention.

[0046] Figure 7 It is a schematic diagram of the structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0047] The principles and spirit of the present invention will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present invention, and are not intended to limit the scope of the present invention in any way. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0048] Those skilled in the art will appreciate that the embodiments of the present invention may be implemented as a system, device, apparatus, method or computer program product. Therefore, the present disclosure may be specifically implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.

[0049] According to an embodiment of the present invention, a method and system for processing data stream of a smart speaker are proposed.

[0050] First reference Figure 1 , which illustrates application scenarios in which embodiments of the present invention may be implemented. Figure 1 The scenario shown in the figure includes a smart speaker 100 and a data stream processing system 200. The smart speaker 100 is a product of speaker upgrade, and is a tool for home consumers to surf the Internet using voice, such as ordering songs, shopping online, or understanding the weather forecast. It can also control smart home devices, such as opening curtains, setting refrigerator temperature, and heating up the water heater in advance, such as Xiaodu smart speaker, Xiaomi Xiaoai speaker, Tmall Genie X1, etc. The data stream processing system 200 is connected to the external network through a router to perform data stream analysis on the smart speaker 100. The smart speaker 100 and the data stream processing system 200 can be connected to each other by network cable or wirelessly.

[0051] When applied, the data stream processing system 200 accesses the data stream of the smart speaker 100 and provides an external network connection without making any changes to the smart speaker 100. At the same time, it bypasses the data stream mirroring and performs aggregation, analysis, and abnormal alarm functions without affecting the normal data transmission of the smart speaker 100.

[0052] The principle and spirit of the present invention are explained in detail below with reference to several representative embodiments of the present invention.

[0053] Combination Figure 1 For application scenarios, refer to Figure 2 A smart speaker data stream processing method according to an exemplary embodiment of the present invention is introduced.

[0054] like Figure 2 As shown, the method includes:

[0055] Step S101, obtain the data flow mirror between the smart speaker and the external network.

[0056] Step S102, aggregating the data stream mirrors to obtain an aggregated data stream.

[0057] Step S103, parse the aggregated data stream and record data stream information, wherein the data stream information includes: source and destination address information, data protocol information and data content.

[0058] Step S104: Analyze and judge abnormal behavior based on the data flow information, and issue an alarm when abnormal behavior occurs.

[0059] Among them, Figure 3 As shown, in step S104, there may be multiple data flow analysis methods, for example:

[0060] Silent data flow behavior analysis mode, which puts the smart speaker in a silent environment and continuously records traffic behavior data during the test time;

[0061] After the test is completed, determine whether there is data flow transmission in the silent state in the traffic behavior data, and analyze the content of the transmitted data; if there is data flow transmission in the silent state and the content of the transmitted data is abnormal, issue an abnormal behavior alarm.

[0062] Cross-border data analysis mode: turn on the smart speaker, interact with user data during the test time, and record traffic behavior data;

[0063] After the test is completed, based on the traffic behavior data and the destination address, it is determined whether there is cross-border data, and the content of the cross-border data is analyzed; if there is cross-border data and the content of the cross-border data is abnormal, an abnormal behavior alarm is issued.

[0064] In the hidden upload detection mode, the smart speaker is turned on, user data is interacted during the test time, and traffic behavior data is recorded;

[0065] After the test is completed, the uplink data is analyzed according to the traffic behavior data to determine whether there is any concealed upload behavior using non-declared data streams during the data transmission process; if there is any concealed upload behavior using non-declared data streams, an abnormal behavior alarm is issued.

[0066] Encrypted detection mode: turn on the smart speaker, perform user data interaction during the test time, and record traffic behavior data;

[0067] After the test is completed, the encryption method of the user data is identified and the user data content is parsed based on the traffic behavior data; if there is any abnormality in the user data content, an abnormal behavior alarm is issued.

[0068] Data privacy review mode: the smart speaker is turned on, user data interaction is performed during the test time, and traffic behavior data is recorded;

[0069] After the test is completed, the user data content is reviewed based on the above traffic behavior data to determine whether there is data content involving user privacy; if there is data content involving user privacy, an abnormal behavior alarm is issued.

[0070] The data flow analysis mode is not limited to this, and this application only cites several typical methods for example.

[0071] like Figure 4 As shown, the step flow of the data stream processing method of the present invention may also include:

[0072] S100, establish a communication connection between the smart speaker and the external network, maintain data flow transmission between the smart speaker and the external network, and mirror the data flow transmitted between the smart speaker and the external network to obtain a data flow mirror. This step can be implemented using a routing module, which can access the data flow of the smart speaker device and provide an external network connection without changing the smart speaker device. At the same time, without affecting the normal data transmission of the smart speaker device, bypass is used to achieve functions such as aggregation, analysis, and abnormal alarm of the data flow mirror.

[0073] It should be noted that, although the operations of the method of the present invention are described in a specific order in the above embodiments and the accompanying drawings, this does not require or imply that the operations must be performed in the specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0074] Based on the same inventive concept, the present invention also proposes a smart speaker data stream processing system, such as Figure 5 As shown, the system includes:

[0075] The routing module 210 is used to obtain the data stream mirror between the smart speaker and the external network. The routing module 210 is also used to establish a communication connection between the smart speaker and the external network, so that the data stream transmission between the smart speaker and the external network is maintained, and the data stream transmitted between the smart speaker and the external network is mirrored to obtain the data stream mirror.

[0076] The data flow aggregation module 220 is used to aggregate the data flow mirrors to obtain an aggregated data flow.

[0077] The data flow analysis module 230 is used to analyze the aggregated data flow and record the data flow information, wherein the data flow information includes: source and destination address information, data protocol information and data content.

[0078] The data flow analysis module 240 is used to analyze and determine abnormal behavior based on the data flow information, and issue an alarm when abnormal behavior occurs.

[0079] In a specific embodiment, the system can include multiple analysis modes when performing data flow analysis, such as: silent data flow behavior analysis mode, cross-border data analysis mode, hidden upload detection mode, encryption detection mode and data privacy review mode. In practical applications, the analysis modes are not limited to these, and the present invention only exemplifies several typical ones.

[0080] Next, the analysis modes are introduced one by one:

[0081] Silent data stream behavior analysis mode;

[0082] In this mode, the smart speaker is placed in a silent environment, the data stream mirror is aggregated by the data stream aggregation module 220, and the traffic behavior data is continuously recorded during the test time by the data stream parsing module 230;

[0083] After the test is completed, the data flow analysis module 240 determines whether there is data flow transmission in a silent state in the traffic behavior data, and analyzes the content of the transmitted data; if there is data flow transmission in a silent state and the content of the transmitted data is abnormal, an abnormal behavior alarm is issued.

[0084] Cross-border data analysis model;

[0085] In this mode, the smart speaker is turned on, user data is interacted within the test time, the data stream mirror is aggregated through the data stream aggregation module 220, and the traffic behavior data is recorded through the data stream parsing module 230;

[0086] After the test is completed, the data flow analysis module 240 is used to determine whether there is cross-border data according to the traffic behavior data and the destination address, and analyze the content of the cross-border data; if there is cross-border data and the content of the cross-border data is abnormal, an abnormal behavior alarm is issued.

[0087] Covert upload detection mode;

[0088] The smart speaker is turned on, and user data is interacted within the test time, the data stream mirror is aggregated by the data stream aggregation module 220, and the traffic behavior data is recorded by the data stream parsing module 230;

[0089] After the test is completed, the data flow analysis module 240 is used to analyze the uplink data according to the traffic behavior data to determine whether there is any concealed upload behavior using non-declared data flow during the data transmission process; if there is any concealed upload behavior using non-declared data flow, an abnormal behavior alarm is issued;

[0090] Encryption detection mode;

[0091] The smart speaker is turned on, and user data interaction is performed within the test time. The data stream mirror is aggregated by the data stream aggregation module 220, and the traffic behavior data is recorded by the data stream parsing module 230;

[0092] After the test is completed, the data flow analysis module 240 is used to identify the encryption method of the user data and parse the user data content according to the traffic behavior data; if there is an abnormality in the user data content, an abnormal behavior alarm is issued.

[0093] Data privacy review mode;

[0094] The smart speaker is turned on, and user data interaction is performed within the test time. The data stream mirror is aggregated by the data stream aggregation module 220, and the traffic behavior data is recorded by the data stream parsing module 230;

[0095] After the test is completed, the data flow analysis module 240 is used to review the user data content based on the above traffic behavior data to determine whether there is data content involving user privacy; if there is data content involving user privacy, an abnormal behavior alarm is issued.

[0096] During the analysis process of the data flow analysis module 240, abnormal behavior of the data content can be judged according to preset keyword information, and an alarm can be issued when abnormal behavior occurs.

[0097] It should be noted that although several modules of the smart speaker data stream processing system are mentioned in the above detailed description, this division is only exemplary and not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more modules described above can be concretized in one module. Conversely, the features and functions of one module described above can be further divided into multiple modules for concretization.

[0098] The aforementioned smart speaker data stream processing method and system have at least the following technical effects:

[0099] 1. Universality: Since smart speaker products come in various forms and have differences in hardware, operating systems, and software interfaces, the method and system of the present invention do not require any hardware or software changes to the smart speaker devices when applied. Therefore, the method and system can be applied to many forms of smart speaker products on the market and have universality.

[0100] 2. Transparency: Since the method and system of the present invention perform mirror bypass analysis on the smart speaker data stream under the premise of ensuring the normal functional use of the smart speaker, it is transparent to the normal functional use of the smart speaker, can fully restore the actual application scenario of the smart speaker and perform data stream analysis based on this, and issue abnormal behavior alarms.

[0101] In order to explain the above-mentioned smart speaker data stream processing system more clearly, a specific embodiment is used for illustration below.

[0102] Figure 6 Schematic diagram of an application scenario of a specific embodiment of the present invention. Figure 6 As shown, the smart speaker data stream processing system 600 includes:

[0103] Router 610, data flow concentrator 620 and data analyzer 630; wherein,

[0104] The router 610 is connected to the smart speaker 500 for communication and access to an external network for data exchange and obtaining a data stream mirror image between the smart speaker 500 and the external network; wherein the router 610 establishes a communication connection between the smart speaker 500 and the external network, maintains data stream transmission between the smart speaker 500 and the external network, and performs mirror processing on the data stream transmitted between the smart speaker 500 and the external network to obtain a data stream mirror image.

[0105] The data flow converger 620 is connected to the router 610 and is used to converge the data flow mirrors to obtain a converged data flow;

[0106] The data analyzer 630 is connected to the data stream aggregator 620 and is used to analyze the aggregated data stream, determine abnormal behavior based on the data stream information and issue an alarm.

[0107] More specifically, the data analyzer 630 may include:

[0108] A data stream analysis module, connected to the data stream aggregator 620, for analyzing the aggregated data stream and recording data stream information;

[0109] The data flow analysis module is connected to the data flow parsing module and is used to judge abnormal behavior based on the data flow information and issue an alarm when abnormal behavior occurs.

[0110] Based on the above invention concept, Figure 7 As shown, the method and system can be implemented by a computer device 700, which includes a memory 710, a processor 720, and a computer program 730 stored in the memory 710 and executable on the processor 720. When the processor 720 executes the computer program 730, the aforementioned smart speaker data stream processing method is implemented.

[0111] In order to explain the above-mentioned smart speaker data stream processing method and system more clearly, a specific embodiment is used for illustration below. However, it should be noted that this embodiment is only for better illustrating the present invention and does not constitute an improper limitation to the present invention.

[0112] Taking a smart speaker M as an example, the tester turns on the smart speaker M and connects the smart speaker to the aforementioned smart speaker data stream processing system, and configures it to access the external network so that it can perform normal functions.

[0113] Testers can choose the following modes for data flow analysis, for example:

[0114] Mode A, silent data flow behavior analysis. During the test time, the smart speaker M is placed in a silent environment and continuous traffic analysis is performed. After the test, observe whether there is data flow transmission in the silent state in the traffic behavior record during the test time, and analyze the content of the transmitted data.

[0115] Mode B, cross-border data analysis. During the test time, the tester can communicate with the smart speaker and interact with user data. After the test, the traffic behavior records during the test time are observed to determine whether there is cross-border data based on the destination address.

[0116] Mode C, covert upload detection. During the test time, the tester can ask some questions to the smart speaker. Correspondingly, the smart speaker will reply through AI to maintain user data interaction. After the test, the traffic behavior records during the test time are observed, and the uplink data is analyzed to determine whether there is any undeclared data flow hidden upload behavior.

[0117] Mode D, encryption detection, conducts user data interaction during the tested time. After the test, the traffic behavior records during the tested time are observed to identify the encryption method of user data and parse the user data content.

[0118] Mode E, data privacy review, conducts user data interaction during the tested time. After the test, observes the traffic behavior records during the tested time, reviews the user data content, and determines whether there is data content involving user privacy.

[0119] Since the smart speaker M is turned on, whether in an activated state or a silent state, as long as it maintains communication with the external network, abnormal behavior may occur. In this regard, the smart speaker data stream processing method and system proposed in the present invention can use a bypass monitoring strategy to solve the above pain points in the smart speaker wireless transmission data stream monitoring test, without making any changes to the device under test, and all wireless transmission data streams are gathered for analysis, making the test technology more universal.

[0120] The smart speaker data stream processing method and system proposed in the present invention are universal and transparent. When applied, there is no need to make any hardware or software changes to the smart speaker device, and it is applicable to various forms of smart speaker products. And under the premise of ensuring the normal function of the smart speaker, the smart speaker data stream can be mirrored and bypassed for analysis. It is transparent to the normal function of the smart speaker, can fully restore the actual application scenario of the smart speaker and perform data stream analysis based on this, issue abnormal behavior alarms, and improve the safe use environment of the smart speaker.

[0121] Although the spirit and principle of the present invention have been described with reference to several specific embodiments, it should be understood that the present invention is not limited to the disclosed specific embodiments, and the division of various aspects does not mean that the features in these aspects cannot be combined to benefit, and such division is only for the convenience of expression. The present invention is intended to cover various modifications and equivalent arrangements included in the spirit and scope of the attached claims.

Claims

1. A method for processing data stream of a smart speaker, characterized in that: The method includes: Obtain the data flow mirror between the smart speaker and the external network; Aggregating the data stream mirrors to obtain an aggregated data stream; Parsing the aggregated data stream and recording data stream information; wherein the data stream information includes: source and destination address information, data protocol information and data content; Analyze and judge abnormal behavior based on the data flow information, and issue an alarm when abnormal behavior occurs; The data flow image between the smart speaker and the external network is obtained, including: Establish a communication connection between the smart speaker and the external network, so that data flow transmission is maintained between the smart speaker and the external network, and mirror the data flow transmitted between the smart speaker and the external network to obtain a data flow mirror; Among them, analyzing and judging abnormal behavior according to the data flow information, and issuing an alarm when abnormal behavior occurs, including: The data content is judged for abnormal behavior based on preset keyword information, and an alarm is issued when abnormal behavior occurs; The modes of analysis and judgment include at least one of the following modes: Silent data flow behavior analysis mode: put the smart speaker in a silent environment and continuously record the traffic behavior data during the test time. After the test, determine whether there is data flow transmission in the silent state in the traffic behavior data, and analyze the content of the transmission data. If there is data flow transmission in the silent state and the content of the transmission data is abnormal, an abnormal behavior alarm is issued. In the cross-border data analysis mode, the smart speaker is turned on, and user data is interacted during the test time, and traffic behavior data is recorded. After the test, the traffic behavior data is used to determine whether there is cross-border data according to the destination address, and the content of the cross-border data is analyzed. If there is cross-border data and the content of the cross-border data is abnormal, an abnormal behavior alarm is issued. In the hidden upload detection mode, the smart speaker is turned on, and user data is interacted during the test time, and traffic behavior data is recorded. After the test, the uplink data is analyzed based on the traffic behavior data to determine whether there is any hidden upload behavior using non-declared data streams during the data transmission process; if there is any hidden upload behavior using non-declared data streams, an abnormal behavior alarm is issued; Encryption detection mode: turn on the smart speaker, perform user data interaction during the test time, and record traffic behavior data; after the test, identify the encryption method of user data and parse the user data content based on the traffic behavior data; if there is any abnormality in the user data content, issue an abnormal behavior alarm; In data privacy review mode, the smart speaker is turned on, user data interaction is performed during the test time, and traffic behavior data is recorded. After the test, the user data content is reviewed based on the above traffic behavior data to determine whether there is data content involving user privacy. If there is data content involving user privacy, an abnormal behavior alarm is issued.

2. A smart speaker data stream processing system, characterized in that: The system includes: The routing module is used to obtain the data flow mirror between the smart speaker and the external network; A data flow aggregation module, used to aggregate the data flow mirrors to obtain an aggregated data flow; A data flow analysis module, used to analyze the aggregated data flow and record data flow information; wherein the data flow information includes: source and destination address information, data protocol information and data content; Among them, the routing module is specifically used for: Establish a communication connection between the smart speaker and the external network, so that data flow transmission is maintained between the smart speaker and the external network, and mirror the data flow transmitted between the smart speaker and the external network to obtain a data flow mirror; A data flow analysis module is used to analyze and judge abnormal behavior based on the data flow information, and issue an alarm when abnormal behavior occurs; The data flow analysis module is specifically used to: judge abnormal behavior of data content according to preset keyword information, and issue an alarm when abnormal behavior occurs; When the data flow analysis module performs analysis and judgment, at least one of the following data flow analysis modes is used: Silent data flow behavior analysis mode: the smart speaker is placed in a silent environment, the data flow mirror is aggregated by the data flow aggregation module, and the flow behavior data is continuously recorded by the data flow analysis module during the test time; after the test, the data flow analysis module is used to determine whether there is data flow transmission in the silent state in the flow behavior data, and analyze the content of the transmission data; if there is data flow transmission in the silent state, and the content of the transmission data is abnormal, an abnormal behavior alarm is issued; In the cross-border data analysis mode, the smart speaker is turned on, and user data is interacted within the test time. The data stream image is aggregated through the data stream aggregation module, and the traffic behavior data is recorded through the data stream analysis module. After the test, the data stream analysis module is used to determine whether there is cross-border data according to the traffic behavior data and the destination address, and the cross-border data content is analyzed. If there is cross-border data and the cross-border data content is abnormal, an abnormal behavior alarm is issued; In the hidden upload detection mode, the smart speaker is turned on, and user data is interacted within the test time. The data stream image is aggregated by the data stream aggregation module, and the traffic behavior data is recorded by the data stream analysis module. After the test, the uplink data is analyzed according to the traffic behavior data by using the data stream analysis module to determine whether there is any hidden upload behavior using non-declared data streams during the data transmission process; if there is any hidden upload behavior using non-declared data streams, an abnormal behavior alarm is issued; In the encryption detection mode, the smart speaker is turned on, and user data interaction is performed within the test time. The data stream image is aggregated by the data stream aggregation module, and the traffic behavior data is recorded by the data stream analysis module. After the test, the encryption method of the user data is identified and the user data content is analyzed based on the traffic behavior data by using the data stream analysis module. If there is an abnormality in the user data content, an abnormal behavior alarm is issued. In the data privacy review mode, the smart speaker is turned on, and user data interaction is performed during the test time. The data stream mirror is aggregated by the data stream aggregation module, and the traffic behavior data is recorded by the data stream parsing module. After the test, the user data content is reviewed by the data stream analysis module based on the above traffic behavior data to determine whether there is data content involving user privacy; if there is data content involving user privacy, an abnormal behavior alarm is issued.