Data detection method and apparatus

By using credentials generated through asymmetric encryption algorithms and verification via the C2PA framework, the problem of easily tampered metadata in AI-generated media content files is solved, enabling secure detection of file metadata and improving data security and content authenticity.

WO2026242934A1PCT designated stage Publication Date: 2026-11-26VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2026/097206
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-05-21
Filing Date
2026-05-15
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

In existing technologies, the file metadata of AI-generated media content is easily tampered with, resulting in poor data security and difficulty in detecting tampering. Furthermore, existing implicit identification methods are subject to risks of interconnection, deletion, and tampering, and cannot effectively identify the authenticity of media content.

Method used

An asymmetric encryption algorithm is used to generate credentials based on file information and a private key. The public key is used for security verification to ensure the integrity and authenticity of file metadata. The C2PA framework is used for content credential verification to prevent tampering.

Benefits of technology

It enables effective detection of whether file metadata has been tampered with, improves the data security of media files, prevents attackers from forging credentials to tamper with the files, and ensures the authenticity and integrity of the content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2026097206_26112026_PF_FP_ABST
    Figure CN2026097206_26112026_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present application are a data detection method and apparatus. The method comprises: acquiring a first file, and acquiring a first credential from metadata of the first file, wherein the metadata is description information of the first file, and the first credential is generated on the basis of file information of the first file and a first private key; and on the basis of the first credential and a digital certificate corresponding to the first private key, performing security verification on the first file, wherein the digital certificate corresponding to the first private key includes a public key corresponding to the first private key.
Need to check novelty before this filing date? Find Prior Art

Description

Data detection methods and devices

[0001] Cross-references to related applications

[0002] This application claims priority to Chinese Patent Application No. 202510659163.9, filed in China on May 21, 2025, the entire contents of which are incorporated herein by reference. Technical Field

[0003] This application belongs to the field of electronic technology, specifically relating to a data detection method and apparatus. Background Technology

[0004] With the development of technology, media content generated by artificial intelligence (AI) is becoming increasingly realistic, capable of being mistaken for the real thing, and easily exploited by criminals. Therefore, it is necessary to manage AI-generated media content, i.e., synthetic content.

[0005] Currently, a common management method is to add an implicit identifier extension field to the file metadata of the synthesized content to record relevant information about the generation of the synthesized content, such as the generated synthesized content tag, creator, production number ID, etc., so as to achieve traceability and management of the synthesized content.

[0006] However, the open format of file metadata makes it easily modifiable by various editing tools. Criminals can easily tamper with the metadata to disguise fabricated content as genuine, thereby spreading false information. This vulnerability of file metadata results in poor data security for media files. Summary of the Invention

[0007] The purpose of this application is to provide a data detection method and apparatus that can detect whether the metadata of a file has been tampered with, thereby improving the data security of media files.

[0008] In a first aspect, embodiments of this application provide a data detection method, the method comprising: obtaining a first file and obtaining a first credential from the metadata of the first file, the metadata being description information of the first file, the first credential being generated based on file information of the first file and a first private key; and performing security verification on the first file based on the first credential and the public key corresponding to the first private key.

[0009] Secondly, embodiments of this application provide a data detection device, which includes an acquisition module and a verification module. The acquisition module is used to acquire a first file and obtain a first credential from the metadata of the first file. The metadata is the description information of the first file, and the first credential is generated based on the file information of the first file and a first private key. The verification module is used to perform security verification on the first file based on the first credential acquired by the acquisition module and the public key corresponding to the first private key.

[0010] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.

[0011] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0012] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.

[0013] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.

[0014] In this embodiment, a first file can be obtained, and a first credential generated based on the file information and first private key of the first file can be retrieved from the metadata of the first file. Then, the first file can be securely verified based on this first credential and a digital certificate containing the public key corresponding to the first private key. In this scheme, since the first credential is generated based on the file information and first private key of the first file, the first file can be securely verified based on the public key corresponding to the first private key. Since an attacker does not have the first private key, they cannot generate the first credential. Therefore, a forged credential by an attacker cannot be used to securely verify the first file based on the public key corresponding to the first private key in the digital certificate. This allows for the detection of tampering by the attacker, thus achieving the detection of whether the file metadata has been tampered with and improving the data security of media files. Attached Figure Description

[0015] Figure 1 is a flowchart of one of the data detection methods provided in the embodiments of this application;

[0016] Figure 2 is a second flowchart of the data detection method provided in the embodiment of this application;

[0017] Figure 3 is a flowchart of the data detection method provided in the embodiment of this application;

[0018] Figure 4 is a schematic diagram of the process of adding the creator's credentials to the first file according to an embodiment of this application;

[0019] Figure 5 is a flowchart of the data detection method provided in the embodiments of this application (fourth one).

[0020] Figure 6 is a schematic diagram of the process of verifying the file generated by the creator according to an embodiment of this application;

[0021] Figure 7 is a flowchart of the data detection method provided in the embodiments of this application;

[0022] Figure 8 is a schematic diagram of the process of detecting the credentials of the disseminator added to the first document provided in an embodiment of this application;

[0023] Figure 9 is a schematic diagram of the process by which a user views and verifies the implicit identifier of file metadata provided in an embodiment of this application;

[0024] Figure 10 is a schematic diagram of the process of storing metadata implicit identifiers and content credentials in a cloud service according to an embodiment of this application;

[0025] Figure 11 is a schematic diagram of the process of viewing and verifying implicit identifiers of file metadata through cloud services according to an embodiment of this application;

[0026] Figure 12 is a schematic diagram of the data detection device provided in an embodiment of this application;

[0027] Figure 13 is a schematic diagram of the structure of the electronic device provided in an embodiment of this application;

[0028] Figure 14 is a schematic diagram of the hardware structure of the electronic device provided in an embodiment of this application. Detailed Implementation

[0029] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0030] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0031] The terms "at least one," "at least one," etc., in this application refer to any one, any two, or a combination of two or more of the included objects. For example, at least one of a, b, and c can mean: "a," "b," "c," "a and b," "a and c," "b and c," and "a, b, and c," where a, b, and c can be single or multiple. Similarly, "at least two" refers to two or more, and its meaning is similar to that of "at least one."

[0032] The data detection method and apparatus provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.

[0033] The embodiments of this application can be applied to scenarios where AI is used to generate synthetic content. For example:

[0034] Scenario 1: Advertising Scenario

[0035] Advertising companies use AI to generate advertising images, videos, and other content for commercial promotion.

[0036] Scene 2: Entertainment Scene

[0037] In the entertainment industry, including music, film, and games, professionals can use AI to generate synthetic content for creating special effects, sound effects, characters, and more.

[0038] Scenario 3: Educational Scenario

[0039] Educational institutions can use AI to create online courses, educational videos, and learning materials for learning relevant knowledge.

[0040] It should be noted that scenarios 1 to 3 above are merely exemplary examples of some scenarios that may be applied to the embodiments of this application. In actual implementation, the embodiments of this application can also be applied to any possible scenario of demand data detection, and the embodiments of this application are not limited here.

[0041] It should be noted that existing content identification methods include two types: explicit identification and implicit identification. Among them, implicit identification will be the primary identification method for AI-generated synthetic content. Implicit identification includes two types: file metadata implicit identification and content implicit identification. File metadata implicit identification is mandatory, while content implicit identification is optional.

[0042] In existing technical methods, the relevant terms are defined as follows:

[0043] Artificial intelligence-generated and synthesized content: Information such as text, images, audio, video, and virtual scenes generated and synthesized using artificial intelligence technology.

[0044] AI-generated synthetic content identifier: Information indicating that a certain content is AI-generated synthetic content.

[0045] In existing content identification methods, the requirements for the implicit identification format of file metadata are defined as follows:

[0046] 1) Add an implicit identifier extended field to the file metadata. The field name or keyword should contain "AIGC".

[0047] 2) The value of the file metadata implicit identifier extended field should be a string conforming to the following format:

[0048] As can be seen, the implicit identifiers in the file metadata can include information such as the content generation service provider and the content distribution service provider. Specifically, the "Generated Content Tag" represents the AI-generated attribute information of the content, indicating whether the content belongs to, may be, or is suspected of being generated by AI, thus identifying the content as AI-generated. The "Generated Content Creator" is the name or code of the creator of the generated content. The "Content Creation ID" is a unique identifier for the content created by the creator. The "Generated Content Distributor" is the name or code of the distributor of the generated content. The "Content Distribution ID" is a unique identifier for the content distributed by the distributor of the generated content.

[0049] 3) Both reserved field 1 and reserved field 2 are optional fields. A hash algorithm is used to digitally sign the file metadata information and the result is stored in the reserved field.

[0050] Existing content identification methods have the following problems:

[0051] 1) Current implicit identifiers in file metadata suffer from interoperability issues. Different types of media, such as images, audio, and video, each have their own unique metadata format. Existing content identification methods' implicit identifier extension fields in file metadata have not yet been adapted and standardized to the metadata formats of various media files. Therefore, even if content creators add these implicit identifier extension fields, the lack of unified standards makes it impossible for browsing tools used by users and content distributors to effectively recognize them.

[0052] 2) Metadata implicitly identified in the current file is at risk of being deleted. This is mainly because metadata in media files requires a certain amount of storage space, and in order to optimize storage resources, most content platforms usually remove this metadata when processing media files.

[0053] 3) Current file metadata implicitly identifies the vulnerability to tampering:

[0054] a) Because media files use an open format for their metadata, anyone can edit them using appropriate tools. Therefore, malicious actors may exploit this to generate false media information to evade responsibility. For example, they can tamper with file metadata to prevent implicit identifiers from being correctly identified, or even forge other people's identities to generate or disseminate malicious and false information.

[0055] (b) In existing content identification methods, creators of synthetic content use hash algorithms to digitally sign file metadata information and store the result in reserved field 1. Similarly, distributors of synthetic content use hash algorithms to digitally sign file metadata information and store the result in reserved field 2. However, digital signatures using hash algorithms offer no security guarantees because malicious actors can easily tamper with hash-based digital signatures while simultaneously altering file metadata.

[0056] 4) Current file metadata implicit identifiers cannot establish a direct association with the actual media content, making it difficult to detect tampering with the actual media content. This flaw allows attackers to easily tamper with media content and generate false information without modifying the metadata. By retaining the original implicit metadata identifiers, attackers can forge identities, thereby spreading false information and evading responsibility.

[0057] This application provides a data detection method and apparatus. Since the first credential is generated based on the file information of the first file and the first private key, the electronic device can perform security verification on the first file based on the public key corresponding to the first private key. Since the attacker does not have the first private key, he cannot generate the first credential. Therefore, the credential forged by the attacker cannot be used by the electronic device to perform security verification on the first file based on the public key corresponding to the first private key in the digital certificate. Thus, the electronic device can detect the attacker's tampering behavior. In this way, the detection of whether the file metadata has been tampered with is realized, and the data security of the media file is improved.

[0058] The data detection method provided in this application can be executed by a data detection device, which can be an electronic device, or a functional module or functional entity within an electronic device. The following description uses an electronic device as an example to illustrate the technical solution provided in this application.

[0059] Figure 1 shows a flowchart of a data detection method provided in an embodiment of this application. As shown in Figure 1, the data detection method provided in an embodiment of this application may include the following steps 201 and 202.

[0060] Step 201: The electronic device obtains the first file and retrieves the first credential from the metadata of the first file.

[0061] In this embodiment of the application, the metadata is the description information of the first file, and the first credential is generated based on the file information of the first file and the first private key.

[0062] In this embodiment, the first file is AI-generated synthetic content created by the content creator. It is a media file that requires security verification and can be of various types, such as images, audio, video, and documents. For example, the first file can be an image generated by the content creator using an AI image generation tool.

[0063] In this embodiment, the aforementioned metadata is also referred to as file metadata, which is additional information used to describe a file and may include information such as file attributes, generation information, and editing history. For example, the metadata of an image file may include information such as the shooting date, camera model, and image size.

[0064] In this embodiment of the application, the first credential is a security credential of the Coalition for Content Provenance and Authenticity (C2PA) generated based on the file information of the first file and the first private key. It is used to verify the authenticity and integrity of the file and is stored in the implicit identifier extension field of the file metadata.

[0065] In this embodiment of the application, the above-mentioned file information includes, but is not limited to, at least one of the following: the original data of the first file, the tags used to describe the first file, the creator information of the first file, the generation identifier information of the first file, and the information of the model that generated the first file.

[0066] In this embodiment of the application, the first private key is a private key in an asymmetric encryption algorithm held by the content creator, which is used to digitally sign the file information.

[0067] It should be noted that the "Content Identification Method" mentions that the creator of the synthesized content uses a hash algorithm to digitally sign the file metadata information and stores the result in reserved field 1; similarly, the distributor of the synthesized content uses a hash algorithm to digitally sign the file metadata information and stores the result in reserved field 2. However, digital signatures using hash algorithms offer no security guarantee, because malicious actors can easily tamper with hash-based digital signatures while simultaneously altering the file metadata. In this application's embodiment, an asymmetric cryptographic algorithm is used to digitally sign the file metadata information. The asymmetric encryption algorithm generates a key pair, including a public key and a private key, which are mathematically related. However, given current computing power, it is difficult to derive the private key from the public key. The public key can be made public, while the private key must be kept secret. The private key is used for signing during encryption, and the public key is used for verification during decryption. Digital signatures based on hash algorithms and digital signatures based on asymmetric cryptography algorithms are two different technologies. The former makes it easy for the signature identity to be impersonated or the signature result to be tampered with, while the latter, based on asymmetric encryption algorithms using public and private key pairs, can prevent attacks that could impersonate the signature identity or tamper with the signature result.

[0068] Optionally, in this embodiment of the application, the electronic device may read the first file from a local storage device, or the electronic device may download the first file from a remote server or cloud storage service via a network, or the electronic device may receive the first file from other external devices.

[0069] Optionally, in this embodiment, the electronic device can use a file processing library or API corresponding to the first file to read the metadata of the first file. For example, for a JPEG image file, the metadata of the file can be read using an Exchangeable Image File Format (Exif) library. Then, the electronic device can search for implicit identifier extension fields in the metadata, i.e., extension fields whose names or keywords contain "AIGC", and extract the first credential from these implicit identifier extension fields. For example, if the electronic device finds the "Manufacturer notes" tag in the Exif Image File Directory (IFD) attribute information by searching for extension fields whose names or keywords contain "AIGC", the electronic device can extract the first credential from this tag.

[0070] Step 202: The electronic device performs security verification on the first file based on the digital certificate corresponding to the first credential and the first private key.

[0071] In this embodiment of the application, the digital certificate corresponding to the first private key contains the public key corresponding to the first private key.

[0072] In this embodiment of the application, the aforementioned digital certificate is an electronic document used to verify the digital identity of the subject.

[0073] In this embodiment of the application, the public key is the public key in an asymmetric encryption algorithm paired with the private key, used to verify the digital signature in the metadata of the first file.

[0074] In this embodiment, the aforementioned security verification refers to using technical means to ensure the authenticity and integrity of the file, preventing it from being tampered with or forged. Through security verification, the electronic device can confirm whether the first file has been tampered with.

[0075] Optionally, in this embodiment, the electronic device can verify the digital signature 1 in the content credential according to the C2PA specification through the content credential verification module of the C2PA Capability Center. The C2PA Capability Center is a framework and toolset dedicated to ensuring the authenticity and integrity of digital content. It aims to help users and systems identify credible content and combat the spread of misinformation by providing standardized methods for recording and verifying the source, creation process, and subsequent dissemination and editing activities of content.

[0076] In this embodiment of the application, the electronic device can perform digital signature based on asymmetric cryptographic algorithm on the implicit identifier of metadata and media content based on the C2PA content certificate, and store the digital signature result. That is, the C2PA content certificate contains reserved field 1 and reserved field 2, so as to identify whether the implicit identifier of file metadata has been tampered with, and prevent attackers from impersonating others to generate or spread malicious or false information.

[0077] This application provides a data detection method. Since the first credential is generated based on the file information of the first file and the first private key, the electronic device can perform security verification on the first file based on the public key corresponding to the first private key. Since the attacker does not have the first private key, he cannot generate the first credential. Therefore, the credential forged by the attacker cannot be used by the electronic device to perform security verification on the first file based on the public key corresponding to the first private key in the digital certificate. Thus, the electronic device can detect the attacker's tampering behavior. In this way, the detection of whether the file metadata has been tampered with is realized, and the data security of the media file is improved.

[0078] In this embodiment of the application, the implicit identifier of file metadata can be stored in the tag specified by the media file metadata. For example, for images and audio, the implicit identifier of file metadata can be stored in the tag "Manufacturer notes" in the Exif IFD attribute information.

[0079] In this embodiment of the application, the content creator and the content distributor each have a public-private key pair. That is, they use the private key to sign the implicit identifier of the file metadata and use a digital certificate containing the public key corresponding to the private key to verify the digital signature of the implicit identifier of the file metadata.

[0080] In this embodiment of the application, since the digital signature is based on an asymmetric encryption algorithm, in order to establish mutual trust between different Certificate Authorities (CAs), it is necessary to build a CA trust list or a root CA. That is, the root certificate of the digital certificate of the content creator and the content distributor needs to be registered in the CA trust list, or the digital certificate of the content creator and the content distributor is digitally signed by the root CA.

[0081] In this embodiment of the application, C2PA capability has been built, that is, electronic devices can generate content credentials for different media such as pictures, audio, and video in accordance with the C2PA content credential standard, and can also verify the validity of content credentials.

[0082] Optionally, in this embodiment of the application, referring to FIG1 and FIG2, before step 201 above, the data detection method provided in this embodiment of the application further includes steps 301 to 303 as described below.

[0083] Step 301: The electronic device generates a first file and writes the first information of the first file into the first tag in the metadata of the first file.

[0084] In this embodiment of the application, the first information includes at least one of the following: a tag for describing the first file, the creator information of the first file, and the generation identifier information of the first file.

[0085] In this embodiment, the first tag is a specific field in the file metadata used to store first information. For example, if the first file is an image or audio file, the first tag can be the tag "Manufacturer notes" from the Exif IFD Attribute Information of the Camera & Imaging Products Association (CIPA). The Exif IFD Attribute Information is presented in the following format:

[0086] The tags related to user information (D.Tags Relating to User Information) indicate that the tag belongs to a category related to user information and is typically used to store information related to the device or file creator. The tag name identifies the purpose of the tag. Here, the tag name is "Manufacturer notes." The field name is the specific name of the tag in the Exif metadata standard, used for referencing during programming or metadata operations. Here, the field name is "MakerNote." The tag ID is the decimal (Dex) and hexadecimal (Hex) representation of the tag, used to uniquely identify the field in the metadata. The type indicates the data type of the field; here, "UNDEFINED" means that the data type of the field is not strictly defined, and the specific data content and format are determined by the manufacturer. The count indicates the number of data items the field can contain; here, "Any" means that the field can contain any number of data items, and the specific length and content are determined by the manufacturer according to actual needs. In summary, this table describes specific tags in the file metadata. These tags store custom information related to the manufacturer, with the specific data content and format defined by the manufacturer. The "Manufacturer notes" section, in addition to storing the originally defined information such as device manufacturer information, also needs to store tags for generated content, the creator of the generated content, the content creation ID, the distributor of the generated content, and the content distribution ID. This enables implicit identification of file metadata to achieve interconnectivity among content creators, content distributors, and users.

[0087] In this embodiment, the tags used to describe the first file are generated synthetic content tags, used to identify that the content is AI-generated. The creator information of the first file is the creator of the generated synthetic content, which is the name or code of the creator of the generated synthetic content. The generation identifier information of the first file is the content creation number ID, which is a unique number for the content generated by the creator of the synthetic content.

[0088] Optionally, in this embodiment of the application, the electronic device can generate a first file using an AI model, such as generating an image using an image generation model. Then, the electronic device can select the corresponding tag in the metadata as the first tag according to the file type. For example, for images and audio, the tag "Manufacturer notes" in the Exif IFD attribute information is selected as the first tag. Then, the first information related to generating the first file is written into the first tag, that is, the first information is written into the first tag as an implicit identifier of metadata, thereby obtaining a first file containing the implicit identifier of metadata.

[0089] Step 302: The electronic device generates a first credential based on the first information, the original data of the first file, the first private key, and the second information.

[0090] In this embodiment of the application, the original data mentioned above is the actual content data stored in the first file, and the second information mentioned above includes information about the model that generated the first file, such as the name and version number of the AI ​​model.

[0091] In this embodiment, the original data of the first file refers to the actual content data stored in the first file, which is the core component of the file. The specific data depends on the type of file. For example, the original data of an image file is pixel information, and the original data of an audio file is audio waveform data, etc.

[0092] Optionally, in this embodiment of the application, the electronic device can perform hash calculation on the first information, the original data of the first file, and the second information to obtain a hash value, and use the first private key to sign the obtained hash value to obtain a digital signature. Then, the digital signature is encapsulated together with the first information, the second information, and the hash value to obtain a first credential.

[0093] Optionally, in this embodiment of the application, referring to FIG2 and FIG3, the above step 302 can be specifically implemented by the following steps 302a to 302d.

[0094] Step 302a: The electronic device performs a hash calculation on the original data of the first file to obtain a first hash value, performs a hash calculation on the first information to obtain a second hash value, and performs a hash calculation on the second information to obtain a third hash value.

[0095] In this embodiment of the application, the hash calculation is performed using a specific hash algorithm to convert the three types of information into three hash values, each of which is unique and used for subsequent verification of whether the data has been tampered with.

[0096] Optionally, in this embodiment of the application, the electronic device can use C2PA content credentials to digitally sign information. In addition to the first and second information, the signed information also includes the original data, i.e., the actual media content. Therefore, if the actual media content is tampered with, it will be detected by verifying the C2PA content credentials, thereby associating the metadata implicit identifier with the media content. While identifying whether the metadata implicit identifier has been tampered with, it can also identify whether the media content has been tampered with, preventing attackers from using malicious or false information to replace content generated by others, causing negative impacts to the other party.

[0097] Step 302b: The electronic device performs hash calculations on the first hash value, the second hash value, and the third hash value to obtain the fourth hash value.

[0098] Optionally, in this embodiment, the electronic device can combine the three hash values ​​and calculate them again using a selected hash algorithm to obtain a fourth hash value. The fourth hash value represents a comprehensive summary of the original data of the file, the first information, and the second information; any tampering with this information will result in a change to the fourth hash value.

[0099] In this embodiment, since the process of signing a hash value with a private key requires complex cryptographic operations and involves a large amount of computation, directly signing the three hash values ​​with the private key separately requires high computing power. However, by first performing hash calculations on the three hash values ​​to obtain a fourth hash value, the three hash values ​​can be merged, and only the fourth hash value needs to be signed. This can significantly reduce the consumption of computing resources and the signing processing time, while ensuring that the integrity and authenticity of the data are efficiently verified, thus improving the efficiency of the overall process.

[0100] Step 302c: The electronic device uses the first private key to sign the fourth hash value to obtain the first digital signature information.

[0101] Optionally, in this embodiment of the application, the electronic device may use an asymmetric encryption algorithm to sign the fourth hash value with the first private key to generate a digital signature, namely the first digital signature information.

[0102] Step 302d: The electronic device encapsulates the first information, the first hash value, the second hash value, the third hash value, the fourth hash value, the first digital signature information, and the second information to generate the first credential.

[0103] Optionally, in this embodiment of the application, the electronic device can integrate all key information and verification data, and encapsulate the first information, the first hash value, the second hash value, the third hash value, the fourth hash value, the first digital signature information and the second information together to form a complete credential, namely the first credential.

[0104] In this way, electronic devices can merge three hash values ​​to generate a fourth hash value and digitally sign the fourth hash value. This means that the original data, the first information, and the second information of the file are indirectly included in the digital signature. Any tampering will destroy the hash value matching and cause the verification to fail, thereby greatly increasing the difficulty of tampering with the file content or related information and improving the data security of media files.

[0105] Step 303: The electronic device writes the first credential into the metadata of the first file.

[0106] Optionally, in this embodiment of the application, the electronic device can use a media file metadata editing tool to write the C2PA content certificate into the media file metadata according to the C2PA standard, thereby obtaining AI-generated synthetic content with implicit file metadata identifiers. That is, in addition to containing the original data of the actual media content, the metadata of the AI-generated synthetic content also contains the first file of the metadata implicit identifiers (such as the generated synthetic content tag, the generated synthetic content creator, and the content production number ID) and the C2PA content certificate.

[0107] Optionally, in this embodiment of the application, the data detection method provided in this embodiment of the application is as shown in Figure 4, and the specific process includes the following steps 1 to 6.

[0108] Step 1: The electronic device generates synthetic content through an AI-based module. After generating synthetic media content based on the AI ​​model, it sends the original data of the generated synthetic content, along with the generated synthetic content tags, the generated synthetic content creator, and the content production ID shown in Figure 1, to the media file metadata editing tool in the electronic device.

[0109] Step 2: The electronic device can use the media file metadata editing tool to write the received generated composite content tags, the generated composite content creator, and the content production ID into the tags specified in the file metadata. For example, for images and audio, the tag "Manufacturer notes" can be written into the Exif IFD attribute information to obtain the generated composite content with implicit identification of the file metadata, and then send it to the C2PA capability center in the electronic device.

[0110] Step 3: After receiving the generated synthetic content with implicit file metadata identification, the electronic device can perform the following operations sequentially through the content credential generation module of the C2PA capability center: a) perform hash calculation on the original data of the generated synthetic content to obtain hash value 1; b) perform hash calculation on the generated synthetic content tag, the generated synthetic content creator, and the content production ID to obtain hash value 2; c) perform hash calculation on other information (such as AI model name, software version, etc.) to obtain hash value 3; d) perform hash calculation again on hash value 1, hash value 2, and hash value 3 to obtain hash value 4; e) use the content creator's private key to digitally sign hash value 4 to obtain digital signature 1; f) encapsulate the generated synthetic content tag, the generated synthetic content creator, the content production ID, hash value 1, hash value 2, hash value 3, hash value 4, digital signature 1, and other information to form a C2PA content credential generated by the content creator platform.

[0111] Step 4: Electronic devices can return the encapsulated C2PA content credentials to the media file metadata editing tool through the C2PA capability center.

[0112] Step 5: The electronic device uses a media file metadata editing tool to write the received C2PA content certificate into the media file metadata according to the C2PA standard. For example, for a JPEG image, the C2PA content certificate is written into the application segment APP11 in the JPEG file metadata. This creates AI-generated composite content with implicit file metadata identifiers. In addition to the original data of the actual media content, the metadata of this AI-generated composite content also includes implicit metadata identifiers and C2PA content certificates. The implicit metadata identifiers include the generated composite content tag, the generated composite content creator, and the content creation ID. The C2PA content certificate contains the implicit file metadata identifiers and the digital signature 1 of the original media content data, which is related to reserved field 1.

[0113] Step 6: The electronic device uses the media file metadata editing tool to return the AI-generated composite content with implicit file metadata identifiers to the AI-generated composite content generation module.

[0114] In this way, by using the private key in the asymmetric encryption algorithm held by the content creator to digitally sign the hash value of the key information, the electronic device can obtain a first credential including complete key information and verification data, and write it into the metadata of the first file. The first credential can then be verified by the public key corresponding to the content creator's private key, and tampering can be detected in time, thus improving the security of the file.

[0115] Optionally, in this embodiment of the application, referring to FIG1 and FIG5, the above step 202 can be specifically implemented by the following steps 202a to 202c.

[0116] Step 202a: The electronic device uses the digital certificate corresponding to the first private key to verify the first digital signature information in the first credential and obtain the fifth hash value.

[0117] In this embodiment of the application, the first digital signature information is obtained by signing the file information of the first file based on the first private key.

[0118] In this embodiment of the application, the fifth hash value is a hash value obtained after verifying the first digital signature information, and is used to compare with the recalculated hash value.

[0119] Optionally, in this embodiment of the application, the electronic device can extract the public key from the digital certificate of the content creator and extract the first digital signature information from the first credential. Then, the electronic device can use the obtained public key to verify the first digital signature information and obtain the fifth hash value, which is the fourth hash value before signing with the first private key.

[0120] Step 202b: The electronic device performs a hash calculation based on the first file to obtain the sixth hash value.

[0121] Optionally, in this embodiment of the application, the electronic device may perform hash calculations on the original data of the first file, the first information in the first certificate, and the second information in the first certificate to obtain three hash values, and then combine the three hash values ​​and perform hash calculations again to obtain a sixth hash value.

[0122] Optionally, in this embodiment of the application, the electronic device may perform hash calculation on the original data of the first file to obtain a seventh hash value, perform hash calculation on the first information in the first credential to obtain an eighth hash value, perform hash calculation on the second information in the first credential to obtain a ninth hash value, and then combine the seventh hash value, the eighth hash value and the ninth hash value and perform hash calculation again to obtain a sixth hash value.

[0123] The seventh hash value corresponds to the recalculated first hash value, the eighth hash value corresponds to the recalculated second hash value, the ninth hash value corresponds to the recalculated third hash value, and the sixth hash value corresponds to the recalculated fourth hash value. That is, the first, second, and third hash values ​​need to be recalculated, and then the fourth hash value needs to be recalculated. The recalculated fourth hash value is then compared with the actual fourth hash value obtained from decoding to determine whether the verification was successful.

[0124] Step 202c: If the fifth hash value matches the sixth hash value, the electronic device determines that the security verification of the first file is successful.

[0125] In this embodiment of the application, the above-mentioned matching means that the fifth hash value and the sixth hash value are the same, or the matching degree between the two is greater than or equal to a preset threshold, such as 99%.

[0126] For example, the fifth hash value is exactly the same as the sixth hash value, indicating that the file has not been tampered with during transmission and storage.

[0127] In this embodiment of the application, the successful security verification of the first file indicates that the electronic device confirms that the first file is authentic and has not been tampered with, and can be used safely.

[0128] Optionally, in this embodiment of the application, the electronic device can use the public key corresponding to the first private key to decrypt the digital signature and obtain the original hash value 4. Then, it can recalculate the hash values ​​1, 2, and 3 for the original data, content information, and other information in the first credential. Then, it can calculate the hash value 4 based on the hash values ​​1, 2, and 3. Finally, it can compare the decrypted hash value 4 with the recalculated hash value 4. If they match, it means that the digital signature is valid and the credential has not been tampered with; otherwise, the signature verification fails.

[0129] Optionally, in this embodiment of the application, as shown in Figure 6, it is a schematic diagram of the process by which the data detection method provided in this embodiment verifies the file generated by the creator. The specific process includes steps 7 to 10 below.

[0130] Step 7: After receiving the AI ​​model that generates the synthetic media content to be disseminated, the electronic device can send the content generator and the content dissemination ID to the media file metadata editing tool.

[0131] Step 8: The electronic device uses a media file metadata editing tool to check if there is an implicit metadata identifier generated by the content creator. If there is no implicit metadata identifier, for example, if the file is existing generated composite content before the implementation of the "Content Identification Method," these files will not have an implicit metadata identifier containing the content creator, and the electronic device can skip the verification. If there is an implicit metadata identifier, the electronic device can use the media file metadata editing tool to send the media content with the implicit metadata identifier generated by the content creator to the C2PA Capability Center.

[0132] Step 9: After receiving media content with implicit identifiers of file metadata generated by the content creator through the content credential verification module of the C2PA Capability Center, the electronic device verifies the digital signature 1 in the content credential according to the C2PA specification. The specific steps include: a) checking whether the content creator's digital certificate is valid, such as whether it is within the specified time; b) checking whether the content creator's digital certificate is trustworthy, such as whether the root certificate of the content creator's digital certificate is on the trusted list or whether the certificate is signed by a public root certificate; c) verifying the digital signature 1 in the content credential and detecting whether the media content and / or the implicit identifiers of file metadata related to the content creator have been tampered with.

[0133] Step 10: If the verification is successful, meaning that the file metadata implicit identifier and media content have not been tampered with, the electronic device can use the content credential verification module in the C2PA capability center to return the verification result, along with the generated synthetic content tag, the generated synthetic content creator, and the content production ID information from the content credential to the media file metadata editing tool. If the verification fails, the electronic device can exit the entire operation and return an error message indicating that the file metadata implicit identifier generated by the content creator and / or the media content has been tampered with.

[0134] Optionally, in this embodiment of the application, if the electronic device discovers that the file metadata containing the content creator's information has been implicitly identified or that the content has been tampered with, it may suggest that the content distributor stop disseminating the content, because the media content may have a certain negative impact.

[0135] Optionally, in this embodiment of the application, if the content disseminator needs to continue disseminating the content even if the implicit identifier or media content has been tampered with, the electronic device can be pre-configured to skip the verification, so that the electronic device does not need to verify the digital signature 1 in the content certificate, that is, the above verification steps are no longer executed.

[0136] In this way, electronic devices can verify digital signatures using the public key corresponding to the private key. Since attackers do not have the private key, the digital signatures they forge cannot pass the security checks performed by the electronic devices using the public key. As a result, electronic devices can easily detect tampering and achieve the detection of whether file metadata has been tampered with, thus improving the data security of media files.

[0137] Optionally, in this embodiment of the application, referring to FIG1 and FIG7, after step 202 above, the data detection method provided in this embodiment of the application further includes the following steps 401 to 403.

[0138] Step 401: If the security verification of the first file is successful, the electronic device writes the third information of the first file into the first tag in the metadata of the first file.

[0139] In this embodiment of the application, the third information includes at least one of the following: the propagator information of the first document and the propagation identifier information of the first document.

[0140] In this embodiment of the application, the propagator information of the first document mentioned above refers to the propagator of the generated synthetic content, which is the name or code of the propagator of the generated synthetic content. The propagation identifier information of the first document mentioned above refers to the content propagation number ID, which is a unique number for the content by the propagator of the generated synthetic content.

[0141] Optionally, in this embodiment of the application, if the security verification of the first file is successful, the electronic device can determine that the first file has not been tampered with, and thus the electronic device can propagate the first file. Then, the electronic device can write the propagator information and propagation identifier information of the first file into the first tag in the metadata of the first file, thereby obtaining a first file whose metadata implicitly identifies the generated synthetic content tag, the generated synthetic content creator, the content creation number ID, the generated synthetic content propagator, and the content propagation number ID.

[0142] Optionally, in this embodiment of the application, if the fifth hash value does not match the sixth hash value, the electronic device determines that the security verification of the first file has failed. That is, the electronic device determines that the metadata or media content of the first file has changed after the certificate is generated, and the integrity and authenticity of the file cannot be guaranteed. The file needs to be handled with caution or refused to be used.

[0143] Optionally, in this embodiment of the application, if the security verification of the first file fails, the electronic device may not perform the information writing and may display an error message to indicate to the content disseminator or user that the file metadata implicit identifier and / or media content has been tampered with.

[0144] Step 402: The electronic device generates a second credential based on the third information, the first information, the original data of the first file, the second private key, and the second information.

[0145] In this embodiment of the application, the original data is the actual content data stored in the first file, the second private key is the private key held by the disseminator of the first file, the second information includes information about the model that generated the first file, and the second credential includes second digital signature information.

[0146] In this embodiment of the application, the second private key is a private key in an asymmetric encryption algorithm held by the content distributor, which is used to digitally sign the file information.

[0147] In this embodiment of the application, the second digital signature information is obtained by signing the file information of the first file based on the second private key.

[0148] Optionally, in this embodiment, the electronic device can perform hash calculation on the original data of the first file to obtain a hash value, and perform hash calculation on the third information, the first information, and the second information to obtain a hash value. Then, these three hash values ​​are combined and hashed again to obtain a hash value. This hash value is then signed using the second private key to generate a digital signature. The electronic device can then integrate all key information and verification data, encapsulating the first information, the third information, the four calculated hash values, the first digital signature information, and the second information together to form a complete credential, namely the second credential.

[0149] Step 403: The electronic device writes the second credential into the metadata of the first file.

[0150] Optionally, in this embodiment of the application, the electronic device can use a media file metadata editing tool to write C2PA content credentials into the media file metadata according to the C2PA standard. For example, for a JPEG image, the C2PA content credentials are written into APP11 to obtain AI-generated synthetic content with implicit file metadata identifiers. That is, in addition to containing the original data of the actual media content, the metadata of the AI-generated synthetic content also contains the first file of metadata implicit identifiers (such as synthetic content tag, synthetic content creator, content production ID, synthetic content distributor, content distribution ID) and C2PA content credentials.

[0151] Thus, by using the private key in the asymmetric encryption algorithm held by the content distributor to digitally sign the hash value of the key information, the electronic device can obtain a first credential including complete key information and verification data, and write it into the metadata of the first file. This first credential can then be verified using the public key corresponding to the content distributor's private key, thereby promptly detecting tampering and improving file security.

[0152] Optionally, in this embodiment of the application, as shown in FIG8, it is a schematic diagram of the process of the data detection method provided in this embodiment of the application for detecting the credentials of the disseminator added to the first file. The specific process includes the following steps 11 to 15.

[0153] Step 11: Electronic devices can use media file metadata editing tools to write the received generated composite content distributor and content distribution ID into the tags specified in the file metadata. For example, for images and audio, the tag "Manufacturer notes" can be written into the Exif IFD attribute information, forming generated composite content with implicit file metadata identification, and then sending it to the C2PA capability center. At this time, the implicit metadata identification includes the generated composite content tag, the generated composite content creator, the content production ID, the generated composite content distributor, and the content distribution ID.

[0154] Step 12: After receiving the generated composite content with implicit file metadata identification via the content credential generation module of the C2PA capability center, the electronic device performs the following operations: a) Hash calculation is performed on the original data of the generated composite content to obtain hash value 5; b) Hash calculation is performed on the generated composite content tag, generated composite content creator, content creation ID, generated composite content distributor, and content distribution ID to obtain hash value 6; c) Hash calculation is performed on other information, such as AI model name and software version, to obtain hash value 7; d) Hash calculation is performed again on hash values ​​5, 6, and 7. e) Obtain hash value 8; f) Use the content distributor's private key to digitally sign hash value 8 to obtain digital signature 2; g) Encapsulate the generated synthetic content tag, the generated synthetic content creator, the content production ID, the generated synthetic content distributor, the content distribution ID, hash value 5, hash value 6, hash value 7, hash value 8, digital signature 2, and other information, such as the AI ​​model name and software version, to form a new C2PA content credential generated by the content distributor platform, which includes the implicit identifier of file metadata and the digital signature 2 of the original media content data, i.e., it is related to both reserved field 1 and reserved field 2.

[0155] Step 13: The electronic device returns the encapsulated C2PA content certificate to the media file metadata editing tool through the C2PA capability center.

[0156] Step 14: The electronic device uses a media file metadata editing tool to write the received C2PA content certificate into the media file metadata according to the C2PA standard. For example, for a JPEG image, the C2PA content certificate is written into APP11. This results in AI-generated composite content with implicit file metadata identifiers. In addition to the original data of the actual media content, the metadata of this AI-generated composite content also includes implicit metadata identifiers and C2PA content certificates. The implicit metadata identifiers include the generated composite content tag, the generated composite content creator, the content production ID, the generated composite content distributor, and the content distribution ID.

[0157] Step 15: The electronic device uses a media file metadata editing tool to return the AI-generated composite content with implicit file metadata identifiers to the AI-generated composite content propagation module.

[0158] It should be noted that, typically, content creators and content distributors are different companies / entities, and their C2PA capability centers have different CAs. Therefore, it is recommended that content distributors regenerate and sign an updated content manifest as the next hop for the content creator; and retain the original content manifest generated by the content creator (if it exists) as a component assertion for attribution purposes.

[0159] Optionally, in the embodiments of this application, the data detection method provided in the embodiments of this application further includes the following steps 501 or 502.

[0160] Step 501: If the credential of the first document is a credential generated by the creator, the electronic device verifies the first digital signature information in the credential of the first document.

[0161] In this embodiment of the application, the certificate generated by the creator refers to a certificate containing the digital signature of the content creator, that is, a certificate containing a digital certificate obtained by the electronic device using the private key of the content creator to sign the file information.

[0162] Optionally, in this embodiment, the electronic device can identify the credentials of the first file. If the credentials of the first file are generated by the content creator rather than the content distributor, the electronic device extracts the first digital signature information from the credentials, then decrypts the first digital signature information using the content creator's public key to obtain a decrypted hash value. The extracted file information is then hashed to obtain a new hash value. The electronic device can then compare the decrypted hash value with the recalculated hash value: if they match, the file has not been tampered with, and the verification is successful; otherwise, the verification fails. The specific process of hashing the extracted file information to obtain the hash value is described above and will not be repeated here.

[0163] Step 502: If the credential of the first document is a credential generated by the disseminator, the electronic device verifies the second digital signature information in the credential of the first document.

[0164] In this embodiment of the application, the certificate generated by the disseminator refers to a certificate containing the digital signature of the content disseminator, that is, a certificate containing a digital certificate obtained by the electronic device signing the file information using the private key of the content disseminator.

[0165] Optionally, in this embodiment, the electronic device can identify the credentials of the first file. If the credentials of the first file are generated by the content distributor rather than the content creator, the electronic device extracts the first digital signature information from the credentials, then decrypts the first digital signature information using the content distributor's public key to obtain a decrypted hash value. The extracted file information is then hashed to obtain a new hash value. The electronic device can then compare the decrypted hash value with the recalculated hash value: if they match, the file has not been tampered with, and the verification is successful; otherwise, the verification fails. The specific process of hashing the extracted file information to obtain the hash value is described above and will not be repeated here.

[0166] Optionally, in this embodiment of the application, as shown in Figure 9, it is a schematic diagram of the process by which a user views and verifies the implicit identifier of file metadata. The specific process includes steps 16 to 20 below.

[0167] Step 16: After receiving the media content to be viewed through the media content browsing module, the electronic device can send it to the media file metadata editing tool.

[0168] Step 17: Electronic devices can use the media file metadata editing tool to check if there is an implicit identifier for file metadata. If not, the content is returned to the media content browsing module for normal display. If there is an implicit identifier for file metadata, the implicit identifier for file metadata and the related media content are sent to the C2PA capability center.

[0169] Step 18: After receiving media content with implicit file metadata identification through the content credential verification module of the C2PA capability center, the electronic device needs to perform the following judgment:

[0170] (1) If the file metadata only contains content credentials generated by the content creator platform, then according to the C2PA specification, verify the digital signature 1 in the content credentials. The specific steps include: a) checking whether the content creator's digital certificate is valid, such as whether it is within the specified time; b) checking whether the content creator's digital certificate is trustworthy, such as whether the root certificate of the content creator's digital certificate is on the trusted list or whether the certificate is signed by a public root certificate platform; c) verifying whether the digital signature 1 in the content credentials is valid. If it is valid, then the media content and the implicit identifier of the file metadata generated by the content creator platform have not changed. If it is invalid, then the media content and / or the implicit identifier of the file metadata have been tampered with.

[0171] (2) If the file metadata only contains content credentials generated by the content distributor platform, then according to the C2PA specification, verify the digital signature 2 in the content credentials. The specific steps include: a) checking whether the digital certificate of the content distributor is valid, such as whether it is within the specified time; b) checking whether the digital certificate of the content distributor is trustworthy, such as whether the root certificate of the content distributor's digital certificate is on the trusted list or whether the certificate is signed by a public root certificate platform; c) verifying whether the digital signature 2 in the content credentials is valid. If it is valid, then the implicit identifier of the media content and the file metadata generated by the content distributor platform has not changed. If it is invalid, then the implicit identifier of the media content and / or the file metadata has been tampered with.

[0172] Step 19: Electronic devices can return the verification results to the media file metadata editing tool through the content credential verification module of the C2PA Capability Center.

[0173] Step 20: The electronic device can return the verification result to the media content browsing module through the media file metadata editing tool and display it on the media content browsing module: a) If the verification is successful, the implicit identifier of the file metadata is displayed, namely, the generated synthetic content tag, the generated synthetic content creator, the content production ID, the generated synthetic content distributor, and the content distribution ID; b) If the verification fails, it is displayed that the media content, and / or the content creator, and / or the content distributor has been tampered with.

[0174] In this way, electronic devices can verify the credentials of both the creator and the distributor, ensuring the authenticity and integrity of the document during its generation and dissemination.

[0175] Optionally, in the embodiments of this application, the data detection method provided in the embodiments of this application further includes the following steps 601 to 603.

[0176] Step 601: If the metadata of the second file does not contain credentials, the electronic device obtains the first digital fingerprint information or the first implicit watermark information based on the second file.

[0177] In this embodiment, the digital fingerprint is a unique identifier obtained by hashing the file content using a perceptual hash algorithm. The implicit watermark information is invisible information embedded in the file content and is used to identify the source of the file.

[0178] Optionally, in this embodiment of the application, the second file can be the first file, or the second file can be any file other than the first file. The specific file can be determined according to actual usage requirements, and this embodiment of the application does not impose any restrictions.

[0179] Optionally, in this embodiment of the application, the aforementioned credentials can be credentials generated by the content creator, or the aforementioned credentials can be credentials generated by the content disseminator. The specific credentials can be determined according to actual usage needs, and this embodiment of the application does not impose any restrictions.

[0180] Optionally, in this embodiment of the application, if the metadata of the second file does not contain credentials, that is, if the metadata or credentials of the second file are missing, the electronic device can calculate the digital fingerprint of the original data of the second file or identify the implicit watermark through the digital fingerprint or implicit watermark module of the media content.

[0181] Step 602: The electronic device acquires a third credential associated with the first digital fingerprint information or the first implicit watermark information.

[0182] In this embodiment of the application, the third credential is any one of the pre-stored credentials.

[0183] Optionally, in this embodiment, the third credential can be the first credential mentioned above, i.e., the credential for the first file generated by the creator of the first file. Alternatively, the third credential can also be the second credential mentioned above, i.e., the credential for the first file generated by the distributor of the first file after successful security verification. Alternatively, the third credential can also be any other credential associated with the first digital fingerprint information or the first implicit watermark information. The specific credential can be determined according to actual usage requirements, and this embodiment does not impose any limitations.

[0184] Optionally, in this embodiment of the application, the electronic device may pre-store digital fingerprint information or implicit watermark information in the cloud service, as well as the credentials associated with the digital fingerprint information or implicit watermark information. After obtaining the first digital fingerprint information or the first implicit watermark information, the electronic device can search for and obtain the associated credentials from the cloud service based on the obtained digital fingerprint or implicit watermark, i.e., the third credential.

[0185] Step 603: The electronic device performs security verification on the second document based on the third credential.

[0186] Optionally, in this embodiment of the application, the electronic device can perform security verification on the second file based on a third credential using a content credential verification module. The specific steps of the security verification are described above and will not be repeated here.

[0187] Optionally, in this embodiment, the electronic device can, based on C2PA content credentials, calculate the digital fingerprint of the media content or add an implicit watermark to the media content when adding the implicit identifier of the media file's metadata. The obtained digital fingerprint or implicit watermark is then associated with the file metadata implicit identifier and the C2PA content credentials, and stored in a cloud service. If the file metadata implicit identifier of the media content is deleted, the corresponding file metadata implicit identifier and C2PA content credentials can be obtained from the cloud service by calculating the digital fingerprint of the media content or obtaining the implicit watermark, thereby reducing the risk of being unable to identify the deleted file metadata implicit identifier.

[0188] Optionally, in this embodiment of the application, as shown in Figure 11, it is a schematic diagram of the process by which an electronic device views and verifies the implicit identifier of file metadata through a cloud service. Specifically: the electronic device sends the viewed media content to the media file metadata editing tool through the media content browsing module. If the media file metadata editing tool does not recognize the implicit identifier of file metadata, the electronic device then sends the media content to the C2PA capability center. If the electronic device finds that the media content has no file metadata or no implicit identifier of metadata through the content credential verification module of the C2PA capability center, it will perform the following operations: a) call the digital fingerprint or implicit watermark module of the media content to calculate the digital fingerprint of the actual media content or identify the implicit watermark; b) based on the obtained digital fingerprint or implicit watermark, search for the associated file metadata implicit identifier and content credential in the cloud service; c) the cloud service returns the queried digital fingerprint or implicit watermark, file metadata implicit identifier, and content credential to the digital fingerprint or implicit watermark module of the media content, and then to the content credential verification module. Then, the electronic device verifies the content credentials and file metadata implicit identifiers through the content credential verification module of the C2PA capability center, and returns the results to the media file metadata editing tool. For specific operations, please refer to the above description, which will not be repeated here.

[0189] In this way, electronic devices can pre-calculate the digital fingerprint of media content or obtain an implicit watermark, and upload it to the cloud service along with the implicit identifier of file metadata and content credentials. Thus, even if the implicit identifier of the file metadata of media content is deleted, the electronic device can still obtain the corresponding implicit identifier of file metadata and content credentials from the cloud service for security verification by calculating the digital fingerprint of media content or obtaining an implicit watermark, thereby reducing the risk of being unable to perform security verification of files when the implicit identifier of file metadata is deleted.

[0190] Optionally, in the embodiments of this application, before step 601 above, the data detection method provided in the embodiments of this application further includes the following steps 701 and 702, or steps 703 and 704.

[0191] Step 701: The electronic device calculates the digital fingerprint information of the second file based on the original data of the second file to obtain the first digital fingerprint information.

[0192] Step 702: The electronic device establishes and stores the association between the first digital fingerprint information and the third credential.

[0193] Step 703: The electronic device embeds the first implicit watermark information into the original data of the second file based on the original data of the second file.

[0194] Step 704: The electronic device establishes and stores the association between the first implicit watermark information and the third credential.

[0195] Optionally, in this embodiment of the application, the electronic device may pre-calculate the digital fingerprint of the original data of the first file based on a perceptual hash algorithm, or embed an implicit watermark. Then, after generating the credentials for the first file, it establishes an association between the digital fingerprint or implicit watermark, the implicit identifier of the file metadata, and the credentials for the first file, and sends them together to the cloud service for secure storage in the following form:

[0196] In this context, 'a' represents a digital fingerprint or implicit watermark, 'b' represents an implicit identifier for file metadata, and 'c' represents a C2PA content credential. The specific form can be determined according to actual usage requirements, and this application does not impose any limitations.

[0197] Optionally, in this embodiment of the application, as shown in Figure 10, which illustrates the process of an electronic device storing implicit metadata identifiers and content credentials in a cloud service, when a content creator or content distributor generates implicit metadata identifiers for AI-generated synthetic content through an electronic device, the electronic device can store the relevant information in the cloud service. Specifically, after the electronic device requests the C2PA capability center to generate content credentials through the AI-generated synthetic content generation module or distribution module, the content generation module of the C2PA capability center completes the generation of content credentials and returns them to the media file metadata editing tool. Then, the electronic device can perform the following operations through the digital fingerprint or implicit watermark module of the media content in the C2PA capability center: a) calculate the digital fingerprint of the actual media content based on a perceptual hash algorithm, or embed an implicit watermark; b) send the digital fingerprint or implicit watermark, the implicit metadata identifier, and the content credentials together to the cloud service; c) the cloud service stores the received digital fingerprint or implicit watermark, the implicit metadata identifier, and the content credentials. After receiving the content credentials through the media file metadata editing tool, the electronic device can continue to write the content credentials into the first file. The specific process is described above and will not be repeated here.

[0198] It should be noted that the digital fingerprint or implicit watermark module for media content can also be deployed outside the C2PA capability center. The specific deployment can be determined based on actual usage requirements, and this application embodiment does not impose any restrictions.

[0199] In this way, electronic devices can calculate digital fingerprints or embed implicit watermarks and store the relevant information in cloud services, providing a more reliable means of tracking the dissemination and use of files. Even if the file's metadata is tampered with or deleted, the true source and integrity of the file can be identified through digital fingerprints or implicit watermarks, thereby reducing the risk of being unable to perform security verification of the file when the implicit identifier of the file's metadata is deleted.

[0200] In this embodiment, for image and audio files, electronic devices can extend the Exif IFD attribute information of CIPA to enable the implicit identifier of file metadata to be interconnected among content creators, content distributors, and users; based on C2PA content credentials, the implicit identifier of file metadata and media content are digitally signed using an asymmetric key algorithm to prevent the implicit identifier of file metadata and media content from being tampered with; in addition, by combining it with the digital fingerprint or digital watermark of media content, even if the implicit identifier of the media file's metadata is deleted, the implicit identifier of file metadata can still be restored.

[0201] The data detection method provided in this application will be illustrated below through two implementation methods.

[0202] The following illustrative description, using Implementation Method 1, illustrates a security enhancement method for AI-generated synthetic content identification based on C2PA, specifically including the following steps:

[0203] Step 101: The content creator uses the AI-generated synthetic content generation module of the electronic device, the media file metadata editing tool, and the content credential generation module of the C2PA capability center to generate implicit identifiers for the AI-generated synthetic content's file metadata. The specific process is described in steps 1 to 6 above and will not be repeated here.

[0204] Step 102: The content disseminator, through the AI-generated synthetic content generation module of the electronic device, the media file metadata editing tool, the content credential verification module of the C2PA capability center, and the content credential generation module of the C2PA capability center, further generates implicit identifiers for file metadata of the AI-generated synthetic content. For details, please refer to the descriptions of steps 7 to 10 and steps 11 to 15 above, which will not be repeated here.

[0205] Step 103: The user views and verifies the implicit identifier of the file metadata through the media content browsing module of the electronic device, the media file metadata editing tool, and the content credential verification module of the C2PA Capability Center. For details, please refer to the descriptions of steps 16 to 20 above, which will not be repeated here.

[0206] Thus, for image and audio files, electronic devices can extend the Exif IFD attribute information of CIPA, enabling the implicit identification of file metadata in existing content identification methods to achieve interconnection between content creators, content distributors, and users. At the same time, based on C2PA content credentials, the risk of tampering with the implicit identification of file metadata in AI-generated synthetic content can be reduced, as can the risk of tampering or replacement of media content associated with the implicit identification of file metadata, thereby improving the security of the implicit identification of file metadata in content identification methods.

[0207] The following, through Implementation Method Two, illustratively describes the process of storing digital fingerprints or implicit watermarks, implicit identifiers of file metadata, and C2PA content credentials in the cloud to identify and verify the implicit identifiers of file metadata after the file metadata of media content has been deleted. Specifically, it includes the following steps:

[0208] Step 104: The content creator or distributor, through the AI-generated synthetic content generation or distribution module in the electronic device, the content generation module of the C2PA capability center, the media file metadata editing tool, and the digital fingerprint or implicit watermarking module of the media content in the C2PA capability center, while generating implicit identifiers for the file metadata of the AI-generated synthetic content, simultaneously stores the relevant information in the cloud service. For specific steps, please refer to the relevant description in Figure 10 above, which will not be repeated here.

[0209] Step 105: Users view and verify the implicit identifier of file metadata through cloud services using the media content browsing module, media file metadata editing tool, content credential verification module of the C2PA capability center, and digital fingerprint or implicit watermark module of the media content on their electronic devices. See Figure 11 above for specific steps; they will not be repeated here.

[0210] Thus, even if the implicit identifier of the file metadata of media content is deleted, electronic devices can still obtain the corresponding implicit identifier of file metadata and content credentials from cloud services by calculating the digital fingerprint of the media content or obtaining the implicit watermark, thereby reducing the risk of being unable to perform security verification of the file when the implicit identifier of file metadata is deleted.

[0211] Each of the above-described method embodiments, or various possible implementations of each method embodiment, can be executed individually or in combination of any two or more. The specific implementation can be determined according to actual usage requirements, and this application does not impose any restrictions on this.

[0212] The data detection method provided in this application can be executed by a data detection device. This application uses an example of a data detection device executing the data detection method to illustrate the data detection device provided in this application.

[0213] Figure 12 shows a possible structural schematic diagram of a data detection device involved in some embodiments of this application. As shown in Figure 12, the data detection device 70 may include: an acquisition module 71 and a verification module 72.

[0214] The acquisition module 71 is used to acquire the first file and obtain the first credential from the metadata of the first file. The metadata is the description information of the first file, and the first credential is generated based on the file information of the first file and the first private key.

[0215] The verification module 72 is used to perform security verification on the first file based on the digital certificate corresponding to the first credential and the first private key obtained by the acquisition module 71. The digital certificate corresponding to the first private key contains the public key corresponding to the first private key.

[0216] In one possible implementation, the data detection device further includes a generation module 73 and a writing module 74. The generation module 73 is used to generate a first file before the acquisition module 71 acquires the first file, and to write first information of the first file into a first tag in the metadata of the first file. This first information includes at least one of the following: a tag describing the first file, creator information of the first file, and generation identifier information of the first file. The generation module 73 is also used to generate a first credential based on the first information, the original data of the first file, a first private key, and second information. The original data is the actual content data stored in the first file, and the second information includes information about the model that generated the first file. The writing module 74 is used to write the first credential generated by the generation module 73 into the metadata of the first file.

[0217] In one possible implementation, the aforementioned generation module 73 is specifically used for: performing a hash calculation on the original data of the first file to obtain a first hash value, performing a hash calculation on the first information to obtain a second hash value, and performing a hash calculation on the second information to obtain a third hash value; performing a hash calculation on the first hash value, the second hash value, and the third hash value to obtain a fourth hash value; signing the fourth hash value using a first private key to obtain first digital signature information; and encapsulating the first information, the first hash value, the second hash value, the third hash value, the fourth hash value, the first digital signature information, and the second information to generate a first credential.

[0218] In one possible implementation, the verification module 72 is specifically used to: verify the first digital signature information in the first credential using the digital certificate corresponding to the first private key, and obtain a fifth hash value, wherein the first digital signature information is obtained by signing the file information of the first file based on the first private key; perform hash calculation based on the first file to obtain a sixth hash value; and if the fifth hash value matches the sixth hash value, then the security verification of the first file is determined to be successful.

[0219] In one possible implementation, the data detection device further includes a writing module 74 and a generation module 73. The writing module 74, after performing security verification on the first file based on the digital certificate corresponding to the first credential and the first private key, writes third information of the first file into the first tag of the first file's metadata if the security verification is successful. This third information includes at least one of the following: the propagator information of the first file and the propagation identifier information of the first file. The generation module 73, based on the third information, the first information, the original data of the first file, the second private key, and the second information written by the generation module 73, generates a second credential. The original data is the actual stored content data of the first file, the second private key is the private key held by the propagator of the first file, the second information includes information about the model that generated the first file, and the second credential includes second digital signature information. The writing module 74 is also used to write the second credential generated by the generation module 73 into the metadata of the first file.

[0220] In one possible implementation, the verification module 72 is further configured to: verify the first digital signature information in the first document's certificate if the certificate of the first document is a certificate generated by the creator; or, verify the second digital signature information in the first document's certificate if the certificate of the first document is a certificate generated by the disseminator.

[0221] In one possible implementation, the acquisition module 71 is further configured to acquire first digital fingerprint information or first implicit watermark information based on the second file if the metadata of the second file does not contain a credential. The acquisition module 71 is also configured to acquire a third credential associated with the first digital fingerprint information or the first implicit watermark information, wherein the third credential is any of the pre-stored credentials. The verification module 72 is further configured to perform security verification on the second file based on the third credential acquired by the acquisition module 71.

[0222] In one possible implementation, the data detection device further includes a processing module 75 and a storage module 76. The processing module 75 is used to calculate the first digital fingerprint information based on the original data of the second document, or to embed the first implicit watermark information into the original data of the first document, before the acquisition module 71 acquires the first digital fingerprint information or the first implicit watermark information based on the second document. The storage module 76 is used to establish and store the association between the first digital fingerprint information or the first implicit watermark information processed by the processing module 75 and the third credential.

[0223] This application provides a data detection device. Since the first credential is generated based on the file information of the first file and the first private key, the data detection device can perform security verification on the first file based on the public key corresponding to the first private key. Since the attacker does not have the first private key, he cannot generate the first credential. Therefore, the credential forged by the attacker cannot pass the security verification of the first file by the data detection device based on the public key corresponding to the first private key in the digital certificate. Thus, the data detection device can detect the attacker's tampering behavior. In this way, the detection of whether the file metadata has been tampered with is realized, and the data security of the media file is improved.

[0224] The data detection device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the specific implementation.

[0225] The data detection device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.

[0226] The data detection device provided in this application embodiment can implement all the processes implemented in the above method embodiments, and will not be described again here to avoid repetition.

[0227] Optionally, as shown in FIG13, this application embodiment also provides an electronic device 1000, including a processor 1001 and a memory 1002. The memory 1002 stores a program or instructions that can run on the processor 1001. When the program or instructions are executed by the processor 1001, they implement the various steps of the above-described data detection method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0228] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0229] Figure 14 is a schematic diagram of the hardware structure of an electronic device that implements an embodiment of this application.

[0230] The electronic device 100 includes, but is not limited to, components such as: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.

[0231] Those skilled in the art will understand that the electronic device 100 may also include a power supply (such as a battery) for powering various components. The power supply may be logically connected to the processor 110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in Figure 14 does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0232] The processor 110 is used to obtain a first file and obtain a first credential from the metadata of the first file. The metadata is the description information of the first file, and the first credential is generated based on the file information of the first file and the first private key.

[0233] The processor 110 is used to perform security verification on the first file based on the first credential and the digital certificate corresponding to the first private key, wherein the digital certificate corresponding to the first private key contains the public key corresponding to the first private key.

[0234] Optionally, the processor 110 is further configured to generate the first file before acquiring it, and write the first information of the first file into a first tag in the metadata of the first file. The first information includes at least one of the following: a tag describing the first file, creator information of the first file, and generation identifier information of the first file. The processor 110 is also configured to generate a first credential based on the first information, the original data of the first file, a first private key, and second information. The original data is the actual content data stored in the first file, and the second information includes information about the model that generated the first file. The processor 110 is configured to write the first credential into the metadata of the first file.

[0235] Optionally, the processor 110 is specifically configured to: perform a hash calculation on the original data of the first file to obtain a first hash value, perform a hash calculation on the first information to obtain a second hash value, and perform a hash calculation on the second information to obtain a third hash value; perform a hash calculation on the first hash value, the second hash value, and the third hash value to obtain a fourth hash value; sign the fourth hash value using a first private key to obtain first digital signature information; and encapsulate the first information, the first hash value, the second hash value, the third hash value, the fourth hash value, the first digital signature information, and the second information to generate a first credential.

[0236] Optionally, the processor 110 is specifically used to: use the digital certificate corresponding to the first private key to verify the first digital signature information in the first credential to obtain a fifth hash value, wherein the first digital signature information is obtained by signing the file information of the first file based on the first private key; perform hash calculation based on the first file to obtain a sixth hash value; and if the fifth hash value matches the sixth hash value, then it is determined that the security verification of the first file is successful.

[0237] Optionally, the processor 110 is further configured to, after performing security verification on the first file based on the digital certificate corresponding to the first credential and the first private key, write the third information of the first file into the first tag in the metadata of the first file if the security verification of the first file is successful. The third information includes at least one of the following: the propagator information of the first file and the propagation identifier information of the first file. The processor 110 is further configured to generate a second credential based on the third information, the first information, the original data of the first file, the second private key, and the second information. The original data is the actual content data stored in the first file, the second private key is the private key held by the propagator of the first file, the second information includes information about the model that generated the first file, and the second credential includes second digital signature information. The processor 110 is further configured to write the second credential into the metadata of the first file.

[0238] Optionally, the processor 110 is further configured to: verify the first digital signature information in the certificate of the first document if the certificate of the first document is a certificate generated by the creator; or, verify the second digital signature information in the certificate of the first document if the certificate of the first document is a certificate generated by the disseminator.

[0239] Optionally, the processor 110 is further configured to, if the metadata of the second file does not contain a credential, obtain first digital fingerprint information or first implicit watermark information based on the second file. The network module 102 is further configured to obtain a third credential associated with the first digital fingerprint information or the first implicit watermark information, wherein the third credential is any of the pre-stored credentials. The processor 110 is further configured to perform security verification on the second file based on the third credential.

[0240] Optionally, the processor 110 is further configured to, before obtaining the first digital fingerprint information or the first implicit watermark information based on the second file, calculate the digital fingerprint information of the second file to obtain the first digital fingerprint information based on the original data of the second file, or embed the first implicit watermark information into the original data of the first file. The network module 102 is configured to establish and store the association between the first digital fingerprint information or the first implicit watermark information and the third credential.

[0241] This application provides an electronic device. Since the first credential is generated based on the file information of the first file and the first private key, the electronic device can perform security verification on the first file based on the public key corresponding to the first private key. Since the attacker does not have the first private key, he cannot generate the first credential. Therefore, the credential forged by the attacker cannot be used by the electronic device to perform security verification on the first file based on the public key corresponding to the first private key in the digital certificate. Thus, the electronic device can detect the attacker's tampering behavior. In this way, the detection of whether the file metadata has been tampered with is realized, and the data security of the media file is improved.

[0242] The electronic device provided in this application embodiment can implement all the processes implemented in the above method embodiments and achieve the same technical effects. To avoid repetition, it will not be described again here. The beneficial effects of the various implementation methods in this embodiment can be found in the beneficial effects of the corresponding implementation methods in the above method embodiments. To avoid repetition, it will not be described again here.

[0243] It should be understood that, in this embodiment, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.

[0244] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 109 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 109 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.

[0245] Processor 110 may include one or more processing units; optionally, processor 110 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 110.

[0246] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described data detection method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0247] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0248] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above data detection method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0249] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0250] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the data detection method embodiments described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0251] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0252] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0253] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A data detection method, comprising: obtaining a first file, and obtaining a first credential from metadata of the first file, the metadata being description information of the first file, the first credential being generated based on file information of the first file and a first private key; performing security verification on the first file based on a digital certificate corresponding to the first credential and the first private key, the digital certificate corresponding to the first private key containing a public key corresponding to the first private key.

2. The method of claim 1, wherein, Before the obtaining the first file, the method further comprises: generating the first file, and writing first information of the first file into a first label in the metadata of the first file, the first information including at least one of the following: a label used to describe the first file, creator information of the first file, and generation identification information of the first file; generating the first credential based on the first information, original data of the first file, the first private key, and second information, the original data being content data actually stored by the first file, the second information including information of a model used to generate the first file; writing the first credential into the metadata of the first file.

3. The method of claim 2, wherein, The generating the first credential based on the first information, the original data of the first file, the first private key, and the second information comprises: performing hash calculation on the original data of the first file to obtain a first hash value, performing hash calculation on the first information to obtain a second hash value, and performing hash calculation on the second information to obtain a third hash value; performing hash calculation on the first hash value, the second hash value, and the third hash value to obtain a fourth hash value; signing the fourth hash value using the first private key to obtain first digital signature information; encapsulating the first information, the first hash value, the second hash value, the third hash value, the fourth hash value, the first digital signature information, and the second information to generate the first credential.

4. The method of claim 1 or 3, wherein, The performing security verification on the first file based on the digital certificate corresponding to the first credential and the first private key comprises: verifying first digital signature information in the first credential using the digital certificate corresponding to the first private key to obtain a fifth hash value, the first digital signature information being obtained by signing file information of the first file using the first private key; performing hash calculation on the first file to obtain a sixth hash value; if the fifth hash value matches the sixth hash value, determining that the security verification on the first file is successful.

5. The method of claim 1, wherein, After the performing security verification on the first file based on the digital certificate corresponding to the first credential and the private key, the method further comprises: in a case where the security verification on the first file is successful, writing third information of the first file into the first label in the metadata of the first file, the third information including at least one of the following: disseminator information of the first file, and dissemination identification information of the first file. generate a second credential based on the third information, the first information, original data of the first file, a second private key and second information, the original data being content data actually stored by the first file, the second private key being a private key held by a propagator of the first file, the second information including information of a model for generating the first file, the second credential including second digital signature information; write the second credential into metadata of the first file.

6. The method of claim 1 or 5, wherein, The method further includes: in a case where the credential of the first file is a credential generated by a creator, verifying first digital signature information in the credential of the first file; or in a case where the credential of the first file is a credential generated by a propagator, verifying second digital signature information in the credential of the first file.

7. The method of claim 1, wherein, The method further includes: if the metadata of the second file does not include a credential, obtaining first digital fingerprint information or first implicit watermark information based on the second file; obtain a third credential associated with the first digital fingerprint information or the first implicit watermark information, the third credential being any of pre-stored credentials; based on the third credential, perform security verification on the second file.

8. The method of claim 7, wherein, Before the obtaining of the first digital fingerprint information or the first implicit watermark information based on the second file, the method further includes: based on original data of the second file, calculate digital fingerprint information of the second file to obtain the first digital fingerprint information, or embed the first implicit watermark information into the original data of the second file; establish and store an association relationship between the first digital fingerprint information or the first implicit watermark information and the third credential.

9. A data detection device, the data detection device comprising: an obtaining module and a verifying module; the obtaining module is configured to obtain a first file and obtain a first credential from metadata of the first file, the metadata being description information of the first file, and the first credential being generated based on file information of the first file and a first private key; the verifying module is configured to perform security verification on the first file based on the first credential obtained by the obtaining module and a digital certificate corresponding to the first private key, the digital certificate corresponding to the first private key containing a public key corresponding to the first private key.

10. The apparatus of claim 9, wherein, The data detection apparatus further includes a generating module and a writing module; the generating module is configured to generate the first file before the obtaining module obtains the first file, and write first information of the first file into a first label in the metadata of the first file, the first information including at least one of the following: a label for describing the first file, creator information of the first file, and generation identification information of the first file; the generating module is further configured to generate the first credential based on the first information, original data of the first file, the first private key and second information, the original data being content data actually stored by the first file, and the second information including information of a model for generating the first file; the writing module is configured to write the first credential generated by the generating module into the metadata of the first file.

11. The apparatus of claim 10, wherein, The generation module is specifically configured to: perform hash calculation on original data of the first file to obtain a first hash value, perform hash calculation on the first information to obtain a second hash value, and perform hash calculation on the second information to obtain a third hash value; perform hash calculation on the first hash value, the second hash value, and the third hash value to obtain a fourth hash value; sign the fourth hash value by using the first private key to obtain first digital signature information; encapsulate the first information, the first hash value, the second hash value, the third hash value, the fourth hash value, the first digital signature information, and the second information to generate the first credential.

12. The apparatus of claim 9 or 11, wherein, The verification module is specifically configured to: verify the first digital signature information in the first credential by using a digital certificate corresponding to the first private key to obtain a fifth hash value, the first digital signature information being obtained by signing file information of the first file based on the first private key; perform hash calculation based on the first file to obtain a sixth hash value; if the fifth hash value matches the sixth hash value, it is determined that the first file passes the security verification.

13. The apparatus of claim 9, wherein, The data detection device further includes a writing module and a generation module. The writing module is configured to, after performing the security verification on the first file based on the first credential and the digital certificate corresponding to the first private key, and in a case where the first file passes the security verification, write third information of the first file into a first label in metadata of the first file, the third information including at least one of propagator information of the first file and propagation identification information of the first file. The generation module is configured to generate a second credential based on the third information written by the generation module, the first information, original data of the first file, a second private key, and second information, the original data being actual content data stored by the first file, the second private key being a private key held by a propagator of the first file, the second information including information of a model for generating the first file, and the second credential including second digital signature information. The writing module is further configured to write the second credential generated by the generation module into the metadata of the first file.

14. The apparatus of claim 9 or 13, wherein, The verification module is further configured to: in a case where the credential of the first file is a credential generated by a creator, verify first digital signature information in the credential of the first file; or in a case where the credential of the first file is a credential generated by a propagator, verify second digital signature information in the credential of the first file.

15. The apparatus of claim 9, wherein, The acquisition module is further configured to, if the metadata of the second file does not include a credential, acquire first digital fingerprint information or first implicit watermark information based on the second file. The acquisition module is further configured to acquire a third credential associated with the first digital fingerprint information or the first implicit watermark information, the third credential being any of pre-stored credentials. The verification module is further configured to perform security verification on the second file based on the third credential obtained by the obtaining module.

16. The apparatus of claim 15, wherein, The data detection apparatus further includes a processing module and a storage module; The processing module is configured to, before the obtaining module obtains the first digital fingerprint information or the first implicit watermark information based on the second file, calculate the first digital fingerprint information based on original data of the second file or embed the first implicit watermark information into the first file; The storage module is configured to establish and store an association between the first digital fingerprint information or the first implicit watermark information processed by the processing module and the third credential. 17.An electronic device, comprising a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement steps of the data detection method according to any one of claims 1 to 8. 18.A readable storage medium, wherein the readable storage medium stores programs or instructions, and the programs or instructions, when executed by a processor, implement steps of the data detection method according to any one of claims 1 to 8. 19.A chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is configured to execute programs or instructions to implement the data detection method according to any one of claims 1 to 8. 20.A computer program product, wherein the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the data detection method according to any one of claims 1 to 8.