Audio file cleaning method and device, equipment and storage medium
Through the combination method of preset format conversion tool, target audio specification format whitelist and file reconstruction rules, the identification and removal of information hidden in audio files is solved, and efficient cleaning and safe exchange of audio files is achieved.
Patent Information
- Application Number
- CN202411697563.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-02-28
AI Technical Summary
The prior art cannot effectively identify and clear data structure-based information hiding in audio files, and traditional steganography analysis solutions cannot fully clean steganography information in audio files.
The audio file is converted through the preset format conversion tool, and the format and embedded domain hidden information in the file are cleaned using the preset format whitelist and the preset corrective action library. Finally, business data extraction, waveform processing and file reconstruction are performed based on the preset file reconstruction rules to completely clear the hidden information in the audio file.
It improves the efficiency of audio file cleaning, avoids the risk of data leakage caused by steganography and hidden data, and ensures the security of audio files during cross-network exchange.
Smart Images

Figure CN119538310A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data security technology, and in particular to an audio file cleaning method, device, equipment and storage medium. Background Art
[0002] At present, when exchanging data across networks, manual or data leakage prevention systems are usually used to audit the exchanged files to prevent sensitive data leakage. However, this method can only determine the hidden sensitive information in the visible content of the file, and cannot detect information hiding based on the data structure. In addition, when audio files are exported, sensitive data may be hidden in the audio file data block for transmission, which cannot be discovered and effectively blocked by the existing data leakage protection mechanism. In addition, in traditional steganalysis schemes, dedicated steganalysis algorithms are only effective for certain specific steganographic situations, with a limited scope of use, and cannot effectively clean other steganographic information in audio files; general steganalysis algorithms can only determine whether there is secret information hidden in the file, but cannot further remove the secret information.
[0003] As can be seen from the above, how to effectively identify and remove hidden information in audio files is a problem that needs to be solved urgently. Summary of the invention
[0004] In view of this, the purpose of the present invention is to provide an audio file cleaning method, device, equipment and storage medium, which can improve the cleaning efficiency and avoid the data leakage risk caused by hiding data by steganography in most application scenarios, thereby ensuring the security of audio files during cross-network exchange. The specific scheme is as follows:
[0005] In a first aspect, the present application provides an audio file cleaning method, comprising:
[0006] In the current cross-network file exchange scenario, a target audio file that meets a preset audio file format is converted into a corresponding format based on a preset format conversion tool to clean the first hidden information in the target audio file and obtain a corresponding converted audio file;
[0007] Checking the format of the converted audio file based on a pre-built target audio specification format whitelist, triggering a corresponding corrective action execution operation on the converted audio file based on the obtained check result and a preset corrective action library, so as to clean the second hidden information in the converted audio file and obtain a corresponding checked audio file;
[0008] Based on preset file reconstruction rules, corresponding business data extraction, waveform processing, and file reconstruction are performed on the checked audio file to clean the third hidden information in the checked audio file and obtain a cleaned audio file corresponding to the target audio file.
[0009] Optionally, the performing corresponding format conversion on the target audio file that meets the preset audio file format based on the preset format conversion tool to clean the first hidden information in the target audio file includes:
[0010] In the process of format conversion of a target audio file that meets a preset audio file format based on a preset format conversion tool, first format hidden information and embedded domain hidden information in the target audio file are identified and cleaned to obtain a corresponding converted audio file.
[0011] Optionally, before checking the format of the converted audio file based on the pre-built target audio specification format whitelist, the method further includes:
[0012] When the preset audio file format is a WAVE file format, a corresponding analysis result is obtained by analyzing an information hiding strategy corresponding to the WAVE file format; wherein the information hiding strategy includes a hiding strategy based on an erroneous file format, a hiding strategy based on a non-standard block type and a non-standard data structure, and a hiding strategy based on embedding atypical data or modifying existing data;
[0013] A corresponding whitelist construction operation is performed based on the analysis result to obtain a target audio standard format whitelist.
[0014] Optionally, checking the format of the converted audio file based on a pre-built target audio specification format whitelist includes:
[0015] Based on the pre-built target audio specification format whitelist, the audio structure, file header, description data, business data located in the mandatory block and the file tail located in the non-mandatory block in the converted audio file are format checked to obtain corresponding inspection results.
[0016] Optionally, the extracting corresponding business data, processing waveforms, and reconstructing files on the checked audio file based on preset file reconstruction rules to clean the third hidden information in the checked audio file includes:
[0017] Extracting the business data in the checked audio file to obtain a waveform file in the required block in the checked audio file;
[0018] After deleting the encoding context information in the waveform file, the waveform file is processed and reconstructed based on preset waveform processing rules to identify and clean the time domain hidden information and transform domain hidden information in the waveform file to obtain a cleaned audio file corresponding to the target audio file.
[0019] Optionally, triggering a corresponding corrective measure execution operation on the converted audio file according to the obtained inspection result and based on a preset corrective measure library to clean the second hidden information in the converted audio file includes:
[0020] When the inspection result indicates that there is target file data in the converted audio file that does not comply with the corresponding target audio specification format whitelist, a corrective measure determination and corrective measure execution operation corresponding to the target file data is triggered based on a preset corrective measure library to identify and clean the second format hidden information in the converted audio file to obtain a corresponding inspected audio file.
[0021] Optionally, after checking the format of the converted audio file based on the pre-built target audio standard format whitelist, the method further includes:
[0022] When the inspection result indicates that the format information corresponding to the converted audio file conforms to the corresponding target audio specification format whitelist, the corresponding corrective action execution operation is not triggered, the converted audio file is used as the inspected audio file, and the process jumps to the step of performing corresponding business data extraction, waveform processing, and file reconstruction on the inspected audio file based on the preset file reconstruction rule;
[0023] Or terminate subsequent operations and use the converted audio file as a cleaned audio file corresponding to the target audio file.
[0024] In a second aspect, the present application provides an audio file cleaning device, comprising:
[0025] A format conversion module is used to perform corresponding format conversion on a target audio file that meets a preset audio file format based on a preset format conversion tool in the current cross-network file exchange scenario, so as to clean the first hidden information in the target audio file and obtain a corresponding converted audio file;
[0026] A format checking module is used to check the format of the converted audio file based on a pre-built target audio specification format white list, and trigger a corresponding corrective action execution operation on the converted audio file based on the obtained check result and a preset corrective action library, so as to clean the second hidden information in the converted audio file and obtain a corresponding checked audio file;
[0027] The waveform processing module is used to perform corresponding business data extraction, waveform processing, and file reconstruction on the checked audio file based on preset file reconstruction rules to clean the third hidden information in the checked audio file and obtain a cleaned audio file corresponding to the target audio file.
[0028] In a third aspect, the present application provides an electronic device, including:
[0029] Memory, used to store computer programs;
[0030] The processor is used to execute the computer program to implement the aforementioned audio file cleaning method.
[0031] In a fourth aspect, the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program implements the aforementioned audio file cleaning method when executed by a processor.
[0032] In the current cross-network file exchange scenario, the present application performs corresponding format conversion on the target audio file that meets the preset audio file format based on the preset format conversion tool to clean the first hidden information in the target audio file and obtain the corresponding converted audio file; based on the pre-constructed target audio specification format whitelist, the format of the converted audio file is checked, and the corresponding corrective measures are triggered on the converted audio file according to the obtained inspection results and based on the preset corrective measures library to clean the second hidden information in the converted audio file and obtain the corresponding checked audio file; based on the preset file reconstruction rules, the checked audio file is subjected to corresponding business data extraction, waveform processing, and file reconstruction to clean the third hidden information in the checked audio file and obtain the cleaned audio file corresponding to the target audio file. As can be seen from the above, the present application first cleans the first hidden information in the target audio file that meets the preset audio file format through the preset format conversion tool, and then uses the pre-constructed target audio specification format whitelist and the preset file reconstruction rules to clean the second hidden information and the third hidden information in the file respectively to obtain the cleaned audio file corresponding to the target audio file. In this way, on the one hand, the cleaning efficiency can be improved, and on the other hand, the risk of data leakage caused by hiding data through steganography in most application scenarios can be avoided, thereby ensuring the security of audio files during cross-network exchange. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0034] Figure 1 A flow chart of an audio file cleaning method disclosed in this application;
[0035] Figure 2A schematic diagram of WAVE file cleaning provided for this application;
[0036] Figure 3 A schematic diagram of a whitelist format check provided for this application;
[0037] Figure 4 A waveform processing schematic diagram provided for this application;
[0038] Figure 5 This is a structural schematic diagram of an audio file cleaning device disclosed in this application;
[0039] Figure 6 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] In the current cross-network file exchange scenario, manual or data leakage prevention systems are usually used to audit the exchanged files to prevent sensitive data leakage, but this method cannot detect information hiding based on data structure. And because sensitive data may be hidden in the audio file data block for transmission when the audio file is exported, it cannot be discovered and effectively blocked by the existing data leakage protection mechanism. In addition, in traditional steganalysis schemes, dedicated steganalysis algorithms are only effective for certain specific steganographic situations, and cannot effectively clean other steganographic information in audio files; general steganalysis algorithms can only determine whether secret information is hidden in the file, but cannot clear it. To this end, the present application provides an audio file cleaning method that can effectively identify and clear hidden information in audio files, thereby ensuring the security of audio files during cross-network exchange.
[0042] See also Figure 1 As shown, an embodiment of the present invention discloses an audio file cleaning method, comprising:
[0043] Step S11: In the current cross-network file exchange scenario, a target audio file that meets a preset audio file format is converted into a corresponding format based on a preset format conversion tool to obtain a corresponding converted audio file, and complete a corresponding first hidden information processing operation.
[0044] In this embodiment, in the current cross-network file exchange scenario, when the target audio file is converted based on the preset format conversion tool, the first hidden information in the target audio file is identified and cleaned through conversion of different formats to obtain a converted audio file. Specifically, the target audio file that meets the preset audio file format is converted based on the preset format conversion tool to clean the first hidden information in the target audio file, including: in the process of converting the target audio file that meets the preset audio file format based on the preset format conversion tool, the first format hidden information and the embedded domain hidden information in the target audio file are identified and cleaned to obtain the corresponding converted audio file.
[0045] In a specific implementation, if the preset audio file format is a WAVE (Waveform Audio FileFormat, i.e., a waveform audio file format) format, the preset format conversion tool can be used to convert the WAVE format to an MP3 (Moving Picture Experts Group Audio Layer III, i.e., a moving picture expert compression standard audio layer 3) format, and then convert the MP3 format to a WAVE format. Since the WAVE file is an uncompressed audio file, when it is converted to the MP3 format, a portion of the high-frequency information in the file that is difficult for the human ear to hear will be eliminated, and when it is converted to the WAVE format, the eliminated portion will be resampled, but the original information is no longer there. In this way, the information hiding based on the embedded domain is cleared to a certain extent, and the effect of steganographic destruction can be achieved.
[0046] It is understandable that the preset format conversion tool can be MediaCoder (i.e., audio and video conversion express), which supports conversion between multiple audio formats; or it can be HandBrake (a cross-platform multi-threaded audio and video conversion tool), which supports multiple audio formats and encoders, has flexible parameter adjustment and numerous preset format templates. It should be pointed out that audio format conversion can be performed in a variety of ways, and the appropriate format conversion tool can be selected according to actual needs, which is not specifically limited here.
[0047] Step S12: Check the format of the converted audio file based on a pre-constructed target audio standard format whitelist, and determine whether to trigger a corresponding corrective action execution operation on the converted audio file based on a preset corrective action library according to the inspection result, so as to obtain a corresponding checked audio file and complete the corresponding second hidden information processing operation.
[0048] In this embodiment, before checking the format of the converted audio file based on the pre-constructed target audio standard format whitelist, a target audio standard format whitelist is first constructed based on the information hiding strategy of the file format. Specifically, before checking the format of the converted audio file based on the pre-constructed target audio standard format whitelist, it also includes: when the preset audio file format is a WAVE file format, by analyzing the information hiding strategy corresponding to the WAVE file format, a corresponding analysis result is obtained; wherein the information hiding strategy includes a hiding strategy based on the use of an erroneous file format, a hiding strategy based on the use of a non-standard block type and a non-standard data structure, and a hiding strategy based on the embedding of atypical data or the modification of existing data; based on the analysis result, a corresponding whitelist construction operation is performed to obtain a target audio standard format whitelist.
[0049] In a specific implementation, if the preset audio format is a WAVE file format, a WAVE file usually includes three mandatory blocks and other optional blocks, the mandatory blocks include a RIFF (Resources Interchange FileFormat) block, a Format (i.e. formatting) block and a Data (i.e. describing data) block, the Format block describes the structure of the waveform file, and the Data block contains the sampled data of the target audio file. There are three main information hiding strategies corresponding to the WAVE file format: a hiding strategy based on the use of an incorrect file format, that is, the incorrect use of the WAVE file format may cause a buffer overflow or a Dos (Denial of service) attack in a WAVE application; a hiding strategy based on the use of non-standard block types and non-standard data structures, which may cause specific data to be skipped during playback; a hiding strategy based on embedding atypical data or modifying existing data, that is, embedding atypical data into a WAVE block of the correct format or modifying existing data, which is easy to hide sensitive information.
[0050] It is understandable that the target audio standard format whitelist determined by analyzing the above-mentioned information hiding strategy can be used to check the format of the converted audio file. Specifically, the checking of the format of the converted audio file based on the pre-constructed target audio standard format whitelist includes: performing format checks on the audio structure, file header, description data, business data and file tail located in the mandatory blocks of the converted audio file based on the pre-constructed target audio standard format whitelist to obtain corresponding inspection results. It should be pointed out that if at least one of the audio structure, file header, description data, business data and file tail located in the non-mandatory blocks of the converted audio file does not meet the standard format, the step of triggering the corresponding corrective measures to execute operations on the converted audio file based on the obtained inspection results and based on the preset corrective measures library is triggered.
[0051] Further, based on the above inspection results, the converted audio file is scanned based on the standard format, and the part that does not conform to the standard format description is corrected according to the standard format to form a corresponding checked audio file. Specifically, the corresponding corrective measures are triggered to perform operations on the converted audio file based on the obtained inspection results and based on the preset corrective measures library to clean the second hidden information in the converted audio file, including: when the inspection result indicates that there is target file data in the converted audio file that does not conform to the corresponding target audio standard format whitelist, then the corrective measures corresponding to the target file data are triggered based on the preset corrective measures library to determine and perform corrective measures to identify and clean the second format hidden information in the converted audio file to obtain the corresponding checked audio file. It should be pointed out that the corrective measures in the preset corrective measures library include verification, deletion, replacement, review, external filtering, etc., and there are different corrective measures for different data blocks. When different types of information hiding are identified, corresponding corrective measures are selected from the preset corrective measures library to be corrected.
[0052] In this embodiment, after checking the format of the converted audio file based on a pre-constructed target audio standard format whitelist, if the format information corresponding to the converted audio file conforms to the target audio standard format whitelist, then based on the inspection result, the corresponding corrective action execution operation is not triggered or the subsequent operation is terminated. Specifically, after checking the format of the converted audio file based on a pre-constructed target audio standard format whitelist, it also includes: when the inspection result indicates that the format information corresponding to the converted audio file conforms to the corresponding target audio standard format whitelist, then the corresponding corrective action execution operation is not triggered, the converted audio file is used as the checked audio file, and the process jumps to the step of performing corresponding business data extraction, waveform processing, and file reconstruction on the checked audio file based on preset file reconstruction rules; or the subsequent operation is terminated, and the converted audio file is used as the cleaned audio file corresponding to the target audio file.
[0053] Step S13: Based on preset file reconstruction rules, the checked audio file is subjected to corresponding business data extraction, waveform processing, and file reconstruction to complete the corresponding third hidden information processing operation and obtain a cleaned audio file corresponding to the target audio file.
[0054] In this embodiment, since the format of the audio file after steganography is different from that of the original audio file, the data blocks are different, and these differences are unevenly distributed in the data blocks. In order to completely remove these hidden information, positive selection can be used for removal. Specifically, the corresponding business data extraction, waveform processing, and file reconstruction of the checked audio file based on the preset file reconstruction rules are performed to clean the third hidden information in the checked audio file, including: extracting the business data in the checked audio file to obtain the waveform file in the required block in the checked audio file; after deleting the encoding context information in the waveform file, the waveform processing and file reconstruction of the waveform file are performed based on the preset waveform processing rules to identify and clean the time domain hidden information and transform domain hidden information in the waveform file to obtain a cleaned audio file corresponding to the target audio file.
[0055] It can be understood that the waveform file is processed and reconstructed based on preset waveform processing rules. Specifically, under the premise of ensuring a certain audio quality, the waveform file is processed by resampling, requantization, low-pass filtering, compression, amplitude scaling / noise addition, smoothing, flipping and other methods. The resampling is to change the sampling rate of the audio signal by interpolation or extraction to adapt to different playback devices or application scenarios; the requantization is to adjust the bit depth of the audio signal, that is, the number of bits occupied by each sampling value, to change the dynamic range and sound quality of the audio; the low-pass filtering is to block or reduce high-frequency signals by allowing low-frequency signals to pass, which can be used to remove high-frequency noise or adjust the sound quality of the audio. This processing method will not change the basic structure and content of the audio, but selectively adjust the frequency components of the audio signal; the compression is to reduce the file size by reducing the dynamic range of the audio data while maintaining the audibility of the audio. Compression can change the loudness level of audio, but will not change the basic waveform or structure of the audio; the amplitude scaling / noise addition is to change the loudness of audio or simulate different environmental noises by increasing or decreasing the amplitude of the audio signal, or adding external noise. This processing will not change the basic structure and content of the audio, but will fine-tune the amplitude or characteristics of the audio signal; the smoothing processing is to filter or smooth the audio signal to reduce noise or other unnecessary frequency components and improve the sound quality; the flipping processing is to change the playback direction of the audio signal, such as forward playback and reverse playback, to add special effects to the audio.
[0056] As can be seen from the above, the present application first cleans the first hidden information in the target audio file that meets the preset audio file format through a preset format conversion tool, and then uses the pre-constructed target audio specification format whitelist and preset file reconstruction rules to clean the second hidden information and the third hidden information in the file respectively, so as to obtain the cleaned audio file corresponding to the target audio file. In this way, on the one hand, the cleaning efficiency can be improved, and on the other hand, the data leakage risk brought by steganographically hidden data in most application scenarios can be avoided, thereby ensuring the security of audio files during cross-network exchange.
[0057] Combine the following Figures 2 to 4 The disclosed schematic diagram specifically illustrates the technical solution of the embodiment of the present application.
[0058] like Figure 2 As shown, in this embodiment, after obtaining a target audio file that meets the preset audio file format, the target audio file is converted to clean the first hidden information in the target audio file during the format conversion process to obtain a converted audio file. Then, a whitelist format check is performed on the converted audio file to verify the cleaning effect during the format conversion. The specific process is as follows: Figure 3As shown. The converted audio file is checked based on the target audio standard format whitelist to determine whether there is target file data that does not conform to the target audio standard format whitelist in the converted audio file; if there is target file data that does not conform to the target audio standard format whitelist in the converted audio file, the corrective measures corresponding to the target file data are determined using a preset corrective measures library, and the corresponding corrective measures are executed, and the converted audio is checked through the target audio standard format whitelist to clean the second hidden information of the converted audio file to obtain the checked audio file; if there is target file data that does not conform to the target audio standard format whitelist in the converted audio file, the corresponding corrective measures are not executed, and the converted audio file is directly used as the checked audio file, and then it is determined whether the checked audio file undergoes corresponding business data extraction, waveform processing, and file reconstruction.
[0059] like Figure 4 As shown, the checked audio file is subjected to corresponding waveform processing and other operations, but by Figure 2 It can be seen that waveform processing is an optional step. Therefore, to determine whether the inspected audio file needs to undergo corresponding waveform processing and other operations, the decision can be made based on the verification result obtained by verifying the target audio specification format whitelist, or it can be decided by the user. If the inspected audio file needs to undergo waveform processing and other operations, the inspected audio file is subjected to corresponding business data extraction, waveform processing, and file reconstruction, thereby cleaning the third hidden information in the inspected audio file to obtain a cleaned audio file; if the inspected audio file does not need to undergo waveform processing and other operations, the corresponding business data extraction, waveform processing, and file reconstruction are not performed, and the inspected audio file is directly used as the cleaned audio file; after obtaining the corresponding cleaned audio file, it indicates that the cleaning process of the target audio file is completed. In addition, Figure 4 The 'head' in the file is the file header, and the 'tail' is the file tail.
[0060] Accordingly, see Figure 5 As shown, the present application also provides an audio file cleaning device, comprising:
[0061] The format conversion module 11 is used to perform corresponding format conversion on the target audio file that meets the preset audio file format based on the preset format conversion tool in the current cross-network file exchange scenario to obtain the corresponding converted audio file and complete the corresponding first hidden information processing operation;
[0062] A format checking module 12 is used to check the format of the converted audio file based on a pre-built target audio specification format white list, and determine whether to trigger a corresponding corrective action execution operation on the converted audio file based on a preset corrective action library according to the obtained inspection result, so as to obtain a corresponding checked audio file and complete a corresponding second hidden information processing operation;
[0063] The waveform processing module 13 is used to perform corresponding business data extraction, waveform processing, and file reconstruction on the checked audio file based on preset file reconstruction rules to complete the corresponding third hidden information processing operation and obtain a cleaned audio file corresponding to the target audio file.
[0064] As can be seen from the above, the present application first cleans the first hidden information in the target audio file that meets the preset audio file format through a preset format conversion tool, and then uses the pre-constructed target audio specification format whitelist and preset file reconstruction rules to clean the second hidden information and the third hidden information in the file respectively, so as to obtain the cleaned audio file corresponding to the target audio file. In this way, on the one hand, the cleaning efficiency can be improved, and on the other hand, the data leakage risk brought by steganographically hidden data in most application scenarios can be avoided, thereby ensuring the security of audio files during cross-network exchange.
[0065] In some specific implementations, the format conversion module 11 may specifically include:
[0066] The first information cleaning unit is used to identify and clean the first format hidden information and embedded domain hidden information in the target audio file during the process of format conversion of the target audio file that meets the preset audio file format based on the preset format conversion tool, so as to obtain the corresponding converted audio file.
[0067] In some specific implementations, the audio file cleaning device may further include:
[0068] An information analysis unit, used for obtaining corresponding analysis results by analyzing the information hiding strategy corresponding to the WAVE file format when the preset audio file format is the WAVE file format; wherein the information hiding strategy includes a hiding strategy based on the use of an erroneous file format, a hiding strategy based on the use of a non-standard block type and a non-standard data structure, and a hiding strategy based on embedding atypical data or modifying existing data;
[0069] The whitelist construction unit is used to perform corresponding whitelist construction operations based on the analysis results to obtain a target audio standard format whitelist.
[0070] In some specific implementations, the format checking module 12 may specifically include:
[0071] The format check completion unit is used to perform a format check on the audio structure, file header, description data, business data located in the mandatory block and the file tail located in the non-mandatory block in the converted audio file based on a pre-built target audio specification format whitelist to obtain corresponding inspection results.
[0072] In some specific implementations, the waveform processing module 13 may specifically include:
[0073] A waveform file determination unit, configured to extract the service data in the checked audio file to obtain a waveform file in the required block in the checked audio file;
[0074] The waveform file processing unit is used to perform waveform processing and file reconstruction on the waveform file based on preset waveform processing rules after deleting the coding context information in the waveform file, so as to identify and clean the time domain hidden information and transform domain hidden information in the waveform file to obtain a cleaned audio file corresponding to the target audio file.
[0075] In some specific implementations, the format checking module 12 may specifically include:
[0076] The second information cleaning unit is used to trigger the corrective measure determination and corrective measure execution operations corresponding to the target file data based on a preset corrective measure library when the inspection result indicates that there is target file data in the converted audio file that does not comply with the corresponding target audio specification format whitelist, so as to identify and clean the second format hidden information in the converted audio file to obtain the corresponding inspected audio file.
[0077] In some specific implementations, the audio file cleaning device may further include:
[0078] A first result operation unit is used for not triggering a corresponding corrective action execution operation when the inspection result indicates that the format information corresponding to the converted audio file conforms to the corresponding target audio specification format whitelist, taking the converted audio file as the inspected audio file, and jumping to the step of performing corresponding business data extraction, waveform processing, and file reconstruction on the inspected audio file based on a preset file reconstruction rule;
[0079] The second result operation unit is used to terminate subsequent operations and use the converted audio file as a cleaned audio file corresponding to the target audio file.
[0080] Furthermore, the present application also discloses an electronic device. Figure 6 : This is a structural diagram of an electronic device 20 shown according to an exemplary embodiment. The content in the figure cannot be regarded as any limitation on the scope of use of this application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the audio file cleaning method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0081] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0082] In addition, the memory 22 as a carrier for resource storage may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon may include an operating system 221, a computer program 222, etc., and the storage method may be temporary storage or permanent storage.
[0083] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the audio file cleaning method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.
[0084] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the aforementioned disclosed audio file cleaning method. The specific steps of the method can refer to the corresponding contents disclosed in the aforementioned embodiments, and will not be repeated here.
[0085] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0086] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0087] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0088] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0089] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technicians in this field, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. An audio file cleaning method, characterized in that: include: In the current cross-network file exchange scenario, a target audio file that meets a preset audio file format is converted into a corresponding format based on a preset format conversion tool to clean the first hidden information in the target audio file and obtain a corresponding converted audio file; Checking the format of the converted audio file based on a pre-built target audio specification format whitelist, triggering a corresponding corrective action execution operation on the converted audio file based on the obtained check result and a preset corrective action library, so as to clean the second hidden information in the converted audio file and obtain a corresponding checked audio file; Based on preset file reconstruction rules, corresponding business data extraction, waveform processing, and file reconstruction are performed on the checked audio file to clean the third hidden information in the checked audio file and obtain a cleaned audio file corresponding to the target audio file.
2. The audio file cleaning method according to claim 1, characterized in that: The method of performing corresponding format conversion on the target audio file that meets the preset audio file format based on the preset format conversion tool to clean the first hidden information in the target audio file includes: In the process of format conversion of a target audio file that meets a preset audio file format based on a preset format conversion tool, first format hidden information and embedded domain hidden information in the target audio file are identified and cleaned to obtain a corresponding converted audio file.
3. The audio file cleaning method according to claim 1, characterized in that: Before checking the format of the converted audio file based on the pre-built target audio specification format white list, the method further includes: When the preset audio file format is a WAVE file format, a corresponding analysis result is obtained by analyzing an information hiding strategy corresponding to the WAVE file format; wherein the information hiding strategy includes a hiding strategy based on an erroneous file format, a hiding strategy based on a non-standard block type and a non-standard data structure, and a hiding strategy based on embedding atypical data or modifying existing data; Based on the analysis result, a corresponding whitelist construction operation is performed to obtain a target audio standard format whitelist.
4. The audio file cleaning method according to claim 3, characterized in that: The checking the format of the converted audio file based on the pre-built target audio specification format whitelist includes: Based on the pre-built target audio specification format whitelist, the audio structure, file header, description data, business data located in the mandatory block and the file tail located in the non-mandatory block in the converted audio file are format checked to obtain corresponding inspection results.
5. The audio file cleaning method according to claim 4, characterized in that: The extracting corresponding business data, processing waveforms, and reconstructing files of the checked audio files based on preset file reconstruction rules to clean the third hidden information in the checked audio files includes: Extracting the business data in the checked audio file to obtain a waveform file in the required block in the checked audio file; After deleting the encoding context information in the waveform file, the waveform file is processed and reconstructed based on preset waveform processing rules to identify and clean the time domain hidden information and transform domain hidden information in the waveform file to obtain a cleaned audio file corresponding to the target audio file.
6. The audio file cleaning method according to any one of claims 1 to 5, characterized in that: The step of triggering a corresponding corrective measure execution operation on the converted audio file according to the obtained inspection result and based on a preset corrective measure library to clean the second hidden information in the converted audio file includes: When the inspection result indicates that there is target file data in the converted audio file that does not comply with the corresponding target audio specification format whitelist, a corrective measure determination and corrective measure execution operation corresponding to the target file data is triggered based on a preset corrective measure library to identify and clean the second format hidden information in the converted audio file to obtain a corresponding inspected audio file.
7. The audio file cleaning method according to claim 6, characterized in that: After checking the format of the converted audio file based on the pre-built target audio specification format white list, the method further includes: When the inspection result indicates that the format information corresponding to the converted audio file conforms to the corresponding target audio specification format whitelist, the corresponding corrective action execution operation is not triggered, the converted audio file is used as the inspected audio file, and the process jumps to the step of performing corresponding business data extraction, waveform processing, and file reconstruction on the inspected audio file based on the preset file reconstruction rule; Or terminate subsequent operations and use the converted audio file as a cleaned audio file corresponding to the target audio file.
8. An audio file cleaning device, characterized in that: include: A format conversion module is used to perform corresponding format conversion on a target audio file that meets a preset audio file format based on a preset format conversion tool in the current cross-network file exchange scenario, so as to clean the first hidden information in the target audio file and obtain a corresponding converted audio file; A format checking module is used to check the format of the converted audio file based on a pre-built target audio specification format white list, and trigger a corresponding corrective action execution operation on the converted audio file based on the obtained check result and a preset corrective action library, so as to clean the second hidden information in the converted audio file and obtain a corresponding checked audio file; The waveform processing module is used to perform corresponding business data extraction, waveform processing, and file reconstruction on the checked audio file based on preset file reconstruction rules to clean the third hidden information in the checked audio file and obtain a cleaned audio file corresponding to the target audio file.
9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the steps of the audio file cleaning method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein when the computer program is executed by a processor, the steps of the audio file cleaning method according to any one of claims 1 to 7 are implemented.