U disk device and processing method for data compliance processing
By designing a security chip and distributed storage area, and using dynamic decryption and splicing logic, the problem of intellectual property and user data privacy protection in data compliance processing in existing technologies is solved. This enables closed-loop operation and dynamic access control within the USB flash drive device, ensuring the security and privacy of data compliance processing.
Patent Information
- Application Number
- CN202611398604.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-09
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies cannot effectively protect the intellectual property rights of core program code, the privacy of user data, or implement dynamic access control based on user identity, especially in vertical fields involving sensitive data, where there are risks of data leakage and compliance.
It adopts a design of logical storage area and data storage area with security chip and distributed storage. Session key is generated through authentication for dynamic decryption. Logical code fragments are dynamically spliced in the chip and executed in a closed environment. It is protected by irreversible feature data and invisible traceability watermark.
It enables compliant data processing within USB flash drive devices, preventing core program code from being reverse-engineered and pirated, while protecting user data privacy from leakage, achieving dual protection of intellectual property rights and user data.
Smart Images

Figure CN123158679A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing and security technology, and in particular to a USB flash drive device and processing method for data compliance processing. Background Technology
[0002] Small and micro enterprises, individual businesses, and other market entities generally lack professional compliance personnel in their daily operations, resulting in high costs for data compliance processing and frequent business compliance risks. Current industry solutions mainly fall into three categories: first, cloud-based (Software as a Service) intelligent agents, where the core logic is deployed on the service provider's cloud, and users upload business data to obtain processing results; second, pure software tools, installed on general-purpose computers or mobile phones; and third, general-purpose portable AI (Artificial Intelligence) devices, equipped with edge computing power for offline inference. However, cloud-based solutions upload user business data to third-party servers, posing data leakage and compliance risks; pure software solutions store core algorithms and business rules in plaintext or with only simple obfuscation in general-purpose storage areas, making them highly susceptible to decompilation or memory dumping, leaving the service provider's core intellectual property unprotected; and general-purpose portable devices lack dedicated protection designs for intelligent agent intellectual property, allowing for direct extraction of complete skill logic after physical disassembly. These deficiencies are particularly prominent in vertical fields involving sensitive data, such as financial and tax compliance, legal compliance, and medical compliance.
[0003] Currently, USB (Universal Serial Bus) encrypted flash drives and dongles can only achieve storage encryption or authorization authentication. They do not have the ability to perform operations within the flash drive. Their encryption engine is transparent to upper-layer software. Any software installed on the host computer can read, write, and decrypt the plaintext data through the standard file system API (Application Programming Interface). They cannot provide dedicated protection for intellectual property objects such as program code, rule bases, and model weights. At the same time, their data encryption mostly uses fixed preset keys or user-set passwords. The key is not bound to the user's identity, and there is a risk of data leakage if the device is lost. Furthermore, they cannot meet the real-name compliance and audit traceability requirements of business scenarios.
[0004] In summary, how to achieve intellectual property protection for core program code, privacy protection for user data, and dynamic access control based on user identity while completing data compliance processing is a problem that needs to be solved in this field. Summary of the Invention
[0005] In view of this, the purpose of this invention is to provide a USB flash drive device and processing method for data compliance processing, which, while completing data compliance processing, achieves intellectual property protection of core program code, privacy protection of user data, and dynamic access control based on user identity. The specific solution is as follows: In a first aspect, the present invention discloses a USB flash drive device for data compliance processing, comprising: The security chip is used to receive authentication information transmitted by the external host device after establishing a connection with the external host device through a physical interface, and to verify the authentication information. The data storage area connected to the security chip is used to store encrypted user data; The logical storage area connected to the security chip is used to store program code that constitutes the data compliance processing logic. The program code is stored in different sub-storage areas of the logical storage area in the form of multiple code fragments without independent semantics. The security chip is further configured to, after the authentication information is verified, decrypt the user data stored in the data storage area using a session key generated based on the authentication information, read historical user data corresponding to the authentication information from the decrypted user data in the data storage area, extract structured parameters from the business data transmitted from the external host device, dynamically concatenate the code fragments read from the logical storage area to restore the complete data compliance processing logic, call the data compliance processing logic to process the structured parameters and the historical user data, generate a compliance processing result, write the compliance processing result into the data storage area, and output the compliance processing result to the external host device through the physical interface.
[0006] Optionally, the security chip is also used to configure access permissions for the logical storage area, prohibiting the external host device from directly reading the code fragments stored in the logical storage area.
[0007] Optionally, the identity verification information includes irreversible feature data generated after the user completes identity verification through a preset real-name platform. The irreversible feature data includes authorization credential hash value and / or biometric hash value and / or operation behavior feature value.
[0008] Optionally, the security chip is specifically used to embed an invisible traceability watermark into the compliance processing result to obtain a compliance processing result with the embedded watermark, and to write the compliance processing result with the embedded watermark into the data storage area. The invisible traceability watermark carries the unique identification information of the USB flash drive device.
[0009] Optionally, the USB flash drive device further includes: A one-time programmable storage unit is used to store the device salt value and the fixed logical root key of the USB flash drive; Accordingly, the security chip is used to read the device salt value from the one-time programmable storage unit, generate a session key by iteratively performing a hash algorithm on the authentication information and the device salt value, and temporarily store the plaintext of the session key in a register inside the security chip.
[0010] Optionally, the security chip is also used for: The plaintext of the session key in the register is cleared when the session between the USB flash drive and the external host device ends or the connection between the USB flash drive and the external host device is disconnected. When the USB flash drive remains connected to the external host device and receives a soft lock command from the external host device, it determines that the external host device is in a locked state. If no soft unlock command is received from the external host device, it refuses to respond to the data access request sent by the external host device. If the duration of the locked state is longer than a preset time threshold, the plaintext of the session key in the register is cleared.
[0011] Optionally, the USB flash drive device further includes: The anti-tamper module is installed inside the casing of the USB flash drive. The anti-tamper module includes conductive lines and a hardware filtering unit for filtering out instantaneous pulse signals with a duration less than a preset threshold. The two ends of the conductive lines are respectively connected to the security chip and the hardware filtering unit to form a closed loop. The two ends of the hardware filtering unit are respectively connected to the security chip and the conductive lines. Accordingly, the security chip is also used for: If the duration of the open circuit exceeds the preset threshold, the temporary data in the registers inside the security chip is destroyed, the index table of code segments in the logic storage area is erased, and the security chip is marked as permanently disabled.
[0012] Optionally, the program code is code that has undergone instruction-level obfuscation, and the instruction-level obfuscation includes inserting redundant instructions and / or adding spurious branches; The security chip also includes: The inducement identification module is used to identify whether the structured parameters include inducement questions targeting the data compliance processing logic. If the structured parameters include the inducement questions, an obfuscation result is returned to the external host device.
[0013] Secondly, the present invention discloses a processing method based on a USB flash drive device, applied to a security chip in the USB flash drive device. The USB flash drive device further includes a data storage area connected to the security chip and used to store encrypted user data, and a logical storage area connected to the security chip and used to store program code constituting data compliance processing logic. The program code is stored in different sub-storage areas of the logical storage area in the form of multiple code fragments without independent semantics. The method includes: After establishing a connection with an external host device through a physical interface, the system receives authentication information transmitted by the external host device and verifies the authentication information. After the authentication information is verified, the user data stored in the data storage area is decrypted using the session key generated based on the authentication information. Historical user data corresponding to the authentication information is read from the decrypted user data in the data storage area. Structured parameters are extracted from the business data transmitted from the external host device. The code fragments read from the logical storage area are dynamically concatenated to restore the complete data compliance processing logic. The data compliance processing logic is called to process the structured parameters and the historical user data to generate a compliance processing result. The compliance processing result is written into the data storage area and output to the external host device through the physical interface.
[0014] Optionally, the processing method based on the USB flash drive device further includes: The device hardware fingerprint and authorization identifier of the USB flash drive are sent to the external host device, and the client running on the external host device reports the device hardware fingerprint and authorization identifier to the cloud so that the cloud can verify the legality and authorization validity of the USB flash drive. If the verification is successful, an encrypted incremental patch is generated based on the device hardware fingerprint and authorization identifier, and incremental data and the encrypted incremental patch are sent to the client. The incremental data includes compliance knowledge base data and / or interpretation data of compliance rules. Receive the encryption incremental patch and the incremental data relayed by the client; The incremental data is stored in the data storage area; The encrypted incremental patch is decrypted, and the program code is updated based on the decrypted incremental patch.
[0015] The beneficial effects of this invention are as follows: The USB flash drive device for data compliance processing includes: a security chip, used to receive authentication information transmitted by an external host device after establishing a connection with the external host device through a physical interface, and to verify the authentication information; a data storage area connected to the security chip, used to store encrypted user data; and a logical storage area connected to the security chip, used to store program code constituting the data compliance processing logic, wherein the program code is stored in different sub-storage areas of the logical storage area in the form of multiple code fragments without independent semantics; the security chip is further used to generate data based on the authentication information after the authentication information verification is passed. The session key is used to decrypt the user data stored in the data storage area. Historical user data corresponding to the authentication information is read from the decrypted user data in the data storage area. Structured parameters are extracted from the business data transmitted from the external host device. The code fragments read from the logical storage area are dynamically concatenated to restore the complete data compliance processing logic. The data compliance processing logic is called to process the structured parameters and the historical user data to generate a compliance processing result. The compliance processing result is written to the data storage area and output to the external host device through the physical interface. Therefore, the USB flash drive device used for data compliance processing includes a security chip, a data storage area, and a logical storage area. First, the program code in the logical storage area is distributed across different sub-storage areas as multiple code fragments without independent semantics. During each processing iteration, the security chip reads these code fragments from the logical storage area and dynamically assembles them to reconstruct the complete logic. This assembly process is completed internally by the security chip, preventing external host devices from obtaining the complete program code. Even if an attacker physically disassembles and reads the original data in the logical storage area, they can only obtain meaningless fragments, thus preventing the core program code from being reverse-engineered and copied. Second, the security chip only dynamically generates a session key based on the authentication information after successful verification. This key decrypts the data storage area, ensuring that the unlocking key is not permanently stored in the device but is generated in real-time for each session. The keys differ between sessions, and user data in the data storage area is always stored in encrypted form. Even if the device is lost, unauthorized personnel cannot obtain user data through physical disassembly or brute-force attacks. Simultaneously, the security chip executes the restored data compliance processing logic internally, with the external host device acting only as an input / output terminal. User data and core logic are not exposed to the host device's operating system or memory during processing. This prevents the theft of core intellectual property while protecting user data privacy, achieving two-way protection of intellectual property and user data within the same device. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0017] Figure 1 This is a schematic diagram of a USB flash drive device for data compliance processing disclosed in this invention; Figure 2 This is a diagram of a specific data compliance processing and protection system disclosed in this invention; Figure 3 This is a flowchart of a processing method based on a USB flash drive disclosed in this invention. Detailed Implementation
[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0019] Small and micro enterprises, individual businesses, and other market entities generally lack professional compliance personnel in their daily operations, resulting in high compliance costs and frequent business compliance risks. Current industry solutions mainly fall into three categories: cloud-based SaaS intelligent agents deploy core logic on the server side, with users uploading business data and receiving processing results; pure software tools installed on general-purpose computers or mobile phones; and general-purpose portable AI devices equipped with edge computing power for offline inference. However, cloud-based solutions pose risks of user data privacy leaks, pure software solutions' core algorithms and business rules are easily decompiled or extracted via memory dumps, and general-purpose portable devices lack dedicated protection designs for intelligent agent intellectual property rights, allowing for direct extraction of complete skill logic after physical disassembly. These deficiencies are particularly prominent in vertical fields involving sensitive data, such as finance, taxation, legal affairs, and healthcare. Taking financial and tax compliance as an example, users need to input sensitive data such as invoices and ledgers into the system to complete bookkeeping, tax verification, and risk assessment. Once data is leaked, the losses are irreversible, and if the core rule engine and judgment model are stolen, the service provider's R&D investment is also wasted.
[0020] Existing encrypted USB flash drives and dongles can only achieve storage encryption or authorization authentication, but cannot perform computations within the USB flash drive itself. Their encryption engines are transparent to upper-layer software, allowing any software installed on the host computer to read and write the decrypted plaintext data via standard file system APIs. Furthermore, their data encryption often uses fixed pre-set keys or user-defined passwords, which are unlinked from user identities, posing a risk of data leakage if the device is lost. This fails to meet the real-name compliance and audit traceability requirements of business scenarios. If compliance processing software is installed on the host computer, and the USB flash drive is only used as a dongle or key storage medium, the technical logic will inevitably exist in plaintext form in the host machine's memory during runtime, making it completely accessible to Trojans, debuggers, and memory dumping tools. Therefore, only by integrating a programmable secure execution environment within the USB flash drive, allowing the entire process of technical logic parsing, reasoning, and output to be completed within the chip, with the host machine only seeing the input and output parameters, can true technical protection be achieved. This "computation enclosed within the USB flash drive" architecture is fundamentally different from the existing encrypted USB flash drive's "storage encryption open read" model. Furthermore, while general-purpose edge AI devices possess computing power, their trusted execution environments allocate extremely limited computing resources to the secure world, making it impossible for them to directly handle complex vertical domain compliance inference tasks. Security and intelligence are forced to choose one or the other.
[0021] Therefore, the present invention provides a USB flash drive device and processing method for data compliance processing, which achieves intellectual property protection of core program code, privacy protection of user data, and dynamic access control based on user identity while completing data compliance processing.
[0022] See Figure 1 As shown, this embodiment of the invention discloses a USB flash drive device for data compliance processing, comprising: Security chip 11 is used to receive authentication information transmitted by the external host device after establishing a connection with the external host device through a physical interface, and to verify the authentication information. The data storage area 12, connected to the security chip, is used to store encrypted user data; The logical storage area 13 connected to the security chip is used to store program code that constitutes the data compliance processing logic. The program code is stored in different sub-storage areas of the logical storage area in the form of multiple code fragments without independent semantics. The security chip 11 is further configured to, after the authentication information is verified, decrypt the user data stored in the data storage area using a session key generated based on the authentication information, read historical user data corresponding to the authentication information from the decrypted user data in the data storage area, extract structured parameters from the business data transmitted from the external host device, dynamically concatenate the code fragments read from the logical storage area to restore the complete data compliance processing logic, call the data compliance processing logic to process the structured parameters and the historical user data, generate a compliance processing result, write the compliance processing result into the data storage area, and output the compliance processing result to the external host device through the physical interface.
[0023] Understandably, the security chip 11 establishes a connection with the external host device through a physical interface, which may be a USB-A interface, a Type-C interface, or a Lightning interface, or may include Bluetooth wireless transmission. The device is enumerated in the USB descriptor as a Human Interface Device (HID) and a custom device class, rather than a standard Mass Storage device class. The operating system will not automatically mount it as a removable disk, and the host device cannot directly access any partition of the USB flash drive through the file system. All data interaction is completed by calling the custom device driver through the accompanying client. After the connection is established, the security chip 11 receives authentication information transmitted from the external host device. Users complete identity verification by scanning a QR code or scanning their face. When logging in by scanning a QR code, the client generates a login QR code carrying the unique identifier of the USB flash drive. The user scans the code using the official application and completes the authorization confirmation. The official platform returns a temporary authorization credential. The client only generates the credential hash value and transmits it to the security chip 11 via the USB protocol. The client does not obtain or store the user's account password. When logging in by scanning their face, the client calls the camera of the external host device to capture a facial image. After extracting the irreversible feature hash locally, it is transmitted to the security chip 11 as a biometric factor. At the same time, the client calls the official real-name verification interface to complete the facial comparison. The credential hash of the successful verification is also transmitted to the security chip 11. The original facial photo is not stored on the USB flash drive or uploaded to the service provider's cloud.
[0024] In this embodiment, the identity verification information includes irreversible feature data generated after a user completes identity verification through a preset real-name platform. This irreversible feature data includes authorization credential hash values and / or biometric hash values and / or operational behavior feature values. The identity verification information includes irreversible feature data generated after a user completes identity verification through a preset real-name platform. This preset real-name platform may vary under different data compliance processing conditions. For example, in financial and tax compliance processing, the preset real-name platform may be an electronic tax bureau or a personal income tax application, or it may be an extended interface connecting to government platforms such as industry and commerce, social security, etc., or it may use hardware real-name media such as digital certificates or tax UKeys. Users complete identity verification by scanning a QR code or scanning their face. When logging in by scanning a QR code, the official platform returns a temporary authorization credential, and the client only generates the hash value of this credential and passes it to the security chip. When logging in by scanning their face, the client calls the camera of the external host device to capture a facial image, extracts the irreversible feature hash locally, and passes it to the security chip as a biometric factor. The irreversible feature data includes one or more of the following: authorization credential hash value, verification success identifier hash value, facial feature hash value, login timestamp, and operation behavior feature value. All login factors are irreversibly processed. The client does not obtain or store the user's account password, and the original facial photo is not stored on a USB flash drive or uploaded to the service provider's cloud.
[0025] The data storage area 12, connected to the security chip 11, uses encrypted Flash memory as its hardware carrier, and access permissions are uniformly managed by the security chip 11. Data storage area 12 stores encrypted user data. In tax compliance processing, user data includes private data such as user invoice images, business ledgers, declaration records, and basic enterprise information. It can be understood that data storage area 12 can store a portion of user data, with another portion encrypted and stored locally on the computer. Alternatively, data storage area 12 can store all user data, as long as the core key remains in the hardware, and all data is encrypted using dynamically derived keys. External host devices cannot directly read the raw data in data storage area 12; all read / write requests must be submitted to the security chip 11 for authentication. Decryption and reading / writing are only permitted after key verification is passed. When a USB flash drive is removed, data storage area 12 automatically locks, making the encrypted data inaccessible. Physically removing the encrypted Flash chip also prevents decryption.
[0026] The logical storage area 13, connected to the security chip, is housed in encrypted Flash memory, with access permissions uniformly managed by the security chip. This logical storage area stores the program code that constitutes the data compliance processing logic. In financial and tax compliance processing, this program code includes an accounting rule engine, tax return verification logic, a compliance risk assessment model, an industry-specific prompt dictionary, and parameter verification rules. All program code is broken down into more than two hundred encrypted code fragments without independent semantics, distributed across different sub-storage areas of the logical storage area by physical address, functional module, or semantic dimension. A single fragment cannot reconstruct valid business logic. The encryption root key for the program code adopts a one-machine-one-key mechanism, derived from the unique identifier of the security chip and the physical unique identifier of the logical storage area. It is embedded in a one-time programmable storage unit, used only within the security chip, and never exported outside the chip.
[0027] In this embodiment, the program code is code that has undergone instruction-level obfuscation. Instruction-level obfuscation includes inserting redundant instructions and / or adding spurious branches. The program code undergoes instruction-level obfuscation, which involves inserting redundant instructions and adding spurious branches, or only inserting redundant instructions, or only adding spurious branches, to make the program code unrecognizable as having real business logic when decompiled. The program code undergoes instruction-level obfuscation before being stored in the logical storage area and is stored in different sub-storage areas of the logical storage area as multiple code fragments without independent semantics. In tax compliance processing, the core logic code of the vertical domain tax intelligence agent corresponding to the program code undergoes instruction-level obfuscation before being factory-fixed. Instruction-level obfuscation includes, but is not limited to: randomly inserting redundant instructions with no practical effect into the real business instruction sequence, and adding spurious branch conditions that always jump to invalid branches during runtime, so that the code read by decompilation tools or static analysis methods cannot identify the real business execution path, thereby preventing the core judgment logic and compliance rules of the intelligence agent from being extracted through reverse analysis.
[0028] Both data storage area 12 and logical storage area 13 are storage modules connected to the security chip. There is no direct data path between them, and any cross-area data interaction is controlled by the security chip. In terms of hardware implementation, data storage area 12 and logical storage area 13 can be implemented using their own independent encrypted Flash chips, or they can be implemented using a single Flash chip through hardware partitioning. Both implementation methods satisfy the core logic of physical isolation and independent access control between the two areas.
[0029] In this embodiment, the security chip 11 is also used to configure access permissions for the logical storage area, prohibiting the external host device from directly reading the code fragments stored in the logical storage area. The security chip 11 configures access permissions for the logical storage area 13 according to the following rules: the external host device has no direct read interface, prohibiting it from directly reading the code fragments stored in the logical storage area; the external host device can only transmit structured parameters and receive processing results via the USB controlled protocol, and cannot read, copy, or export the original code fragments, model weights, or prompt text stored in the logical storage area.
[0030] After the identity verification information is passed, the security chip 11 indicates successful login. It automatically collects multi-dimensional login factors for this login, performs irreversible processing on all of them, and does not store the original privacy data. Specifically, these factors include: 1) Time factor: The precise timestamp of this login session; 2) Credential Factor: Presets the hash value of the authorization credential returned by the real-name platform and the hash value of the successful verification identifier; 3) Biometric factor: Irreversible hash value of facial features (effective during facial recognition login); 4) Equipment Factors: Environmental characteristics of the equipment logged in this time; 5) Behavioral factors: Click trajectory and duration characteristics of user login operations.
[0031] In this embodiment, the USB flash drive device further includes a one-time programmable storage unit 14 for storing the device salt value and the fixed logic root key of the USB flash drive device.
[0032] The USB flash drive also includes a one-time programmable storage unit 14, connected to the security chip 11, for storing the device salt value and the fixed logical root key of the USB flash drive. This device salt value and fixed logical root key are immutable, unreadable, and non-exportable. The fixed logical root key is derived from the unique identifier of the security chip 11 and the physical unique identifier of the logical storage area, and is used only within the security chip 11 and never exported outside the chip. The device salt value is used within the security chip 11 to participate in the derivation operation of the session key.
[0033] In tax and financial compliance processing, the logical storage area (i.e., the secure execution area) serves as the dedicated hardware carrier for the vertical domain tax and financial intelligence agent. This agent includes an accounting rule engine, tax filing verification logic, a compliance risk assessment model, an industry-specific prompt word system, and a tax and financial parameter configuration library. All of the aforementioned logic is solidified into data compliance processing logic in the form of program code. The security chip configures access permissions to the logical storage area, prohibiting external host devices from directly accessing the program code stored in the logical storage area through any file system calls, debugging interface reads, or memory mapping. The logical storage area is invisible to external host devices, thereby ensuring that the core code of the vertical domain tax and financial intelligence agent cannot be reverse-engineered or copied, achieving hardware-level isolation protection for the agent's intellectual property rights.
[0034] In this embodiment, the security chip is used to read the device salt value from the one-time programmable storage unit, generate a session key by iteratively performing a hash algorithm on the authentication information and the device salt value, and temporarily store the plaintext of the session key in a register inside the security chip.
[0035] The security chip 11 reads the device salt value from the One-Time Programmable (OTP) storage unit, concatenates the multi-dimensional login factors from the authentication information in sequence, mixes the concatenated factors with the device salt value, and generates a session key by iteratively processing the mixed data using a hash algorithm. The hash algorithm can be SHA (Secure Hash Algorithm)-256, SM3, or SHA-3. After decrypting the user data in the data storage area, the security chip 11 reads the historical user data corresponding to the authentication information from the decrypted user data. In tax compliance processing, this historical user data includes one or more of the user's invoice images, business ledgers, declaration records, and basic enterprise information.
[0036] When a user triggers a data backup, the security chip 11 reads the device family's common salt value from the one-time programmable storage unit, extracts the user's identity hash from the authentication information, and performs a second-order iterative hashing combining the backup timestamp and the device family's common salt value to derive a backup-specific key. This backup-specific key is bound to the user's identity; the same user generates a consistent backup-specific key after completing identity verification on any authorized device. After the backup is complete, this backup-specific key is immediately cleared from the security chip's internal register. After the user inserts the original USB flash drive into the external host device and completes identity verification, the security chip directly uses the session key generated based on the current authentication information to decrypt the user data in the data storage area to restore the user data from the original device. After a new USB flash drive is inserted into an external host device, the chip receives backup package metadata transmitted by the external host device. This backup package metadata includes a backup timestamp and data length. It reads the device family's common salt value from the one-time programmable storage unit, extracts the user identity hash from the current authentication information, derives a backup key based on the user identity hash, the backup timestamp in the backup package metadata, and the device family's common salt value, and uses this backup key to decrypt the encrypted backup package inside the security chip. The decrypted user data is then written to the data storage area of the new USB flash drive. The encrypted backup package is a backup package index pre-stored on the external host device or in the cloud and contains only encrypted data. The cloud does not store any plaintext keys, but only stores the backup package metadata for user retrieval.
[0037] The security chip 11 is also used to complete identity verification through the bound real-name mobile phone number verification code when QR code login or face login fails, and to derive the session key using the same hash logic as QR code login or face login; the security chip 11 is also used to generate a new session key after re-completing identity verification when the user actively triggers key refresh, and to re-encrypt the user data in the data storage area using the new session key to realize key rotation; the security chip 11 is also used to receive a remote locking command forwarded by the external host device from the cloud platform after the device is lost, and to disable the session key generation function according to the remote locking command to lock the USB flash drive device.
[0038] When security chip 11 extracts structured parameters from business data transmitted from an external host device, the business data is transmitted to security chip 11 via a USB controlled protocol. This USB controlled protocol has built-in format verification logic, allowing only field-based structured parameters to be transmitted to security chip 11. During the extraction of structured parameters, security chip 11 simultaneously performs frequency limiting verification, restricting the number of times the external host device transmits business data to security chip 11 per unit time, preventing batch probing and reverse fitting attacks; it also performs content audit verification, intercepting abnormal format data and prohibiting the transmission of program code snippets, model weights, prompt text, keys, and executable files across devices via the USB controlled protocol. Security chip 11 extracts structured parameters from business data only after the business data has passed format verification, frequency limiting verification, and content audit verification.
[0039] In this embodiment, the security chip 11 further includes: an inducement identification module, used to identify whether the structured parameters include inducement questions for the data compliance processing logic; if the structured parameters include the inducement questions, then an obfuscation result is returned to the external host device.
[0040] The security chip 11 also includes an inducement identification module, which is used to identify whether the structured parameters include inducement questions targeting the data compliance processing logic. The inducement questions are one or more questions from the rule engine, judgment model, and prompt word library that are intended to steal the data compliance processing logic. When the inducement identification module identifies that the structured parameters include inducement questions, it automatically returns an obfuscated result to the external host device. The obfuscated result is a response that is semantically correct but has no actual business value, in order to prevent attackers from replicating the data compliance processing logic through batch dialogue fitting.
[0041] After reading code fragments from different sub-storage areas of the logical storage area, the security chip 11 dynamically concatenates these code fragments in its internal encrypted memory to reconstruct the complete data compliance processing logic. During this dynamic concatenation process, the concatenation order of the code fragments changes randomly each time the USB flash drive is booted. The complete data compliance processing logic exists only in plaintext form within the encrypted memory of the security chip 11. After completing the concatenation, the security chip 11 invokes the reconstructed complete data compliance processing logic. This logic includes a rule engine, verification logic, and a judgment model. It processes the structured parameters extracted from business data and the historical user data read after decryption from the data storage area. The structured parameters and historical user data are input into the data compliance processing logic within the security chip 11. The processing is executed in a closed loop within the security chip 11; the external host device does not participate in the computation. After processing, the security chip 11 generates the compliance processing result.
[0042] In this embodiment, the security chip is specifically used to embed an invisible traceability watermark into the compliance processing result to obtain a compliance processing result with the embedded watermark, and to write the compliance processing result with the embedded watermark into the data storage area. The invisible traceability watermark carries the unique identification information of the USB flash drive device.
[0043] After generating the compliance processing result, the security chip 11 embeds an invisible traceability watermark into the compliance processing result to obtain the compliance processing result with the embedded watermark. The invisible traceability watermark is an invisible character-level digital watermark that carries the unique identification information of the USB flash drive device. The security chip 11 writes the compliance processing result with the embedded watermark into the data storage area.
[0044] In tax and financial compliance processing, the compliance results are generated by a vertical tax and financial intelligent agent after inference calculations. To prevent others from reverse engineering or replicating the agent's core business logic by calling the agent's input / output interfaces in batches, the security chip calls its built-in watermark embedding module before outputting the compliance results to the external host device. This embeds an invisible traceability watermark in the invisible character positions of the text content of the compliance results. The invisible traceability watermark carries the unique identification information of the USB flash drive device, and the watermarks embedded in the same batch of output results from different devices are all different. When the compliance results are leaked to an unauthorized third party, the watermark can be extracted to trace back to the specific device and the corresponding real-name logged-in user, thereby achieving traceable and anti-proliferation control of the intelligent agent's output content.
[0045] The security chip 11 outputs the compliance processing result to the external host device via a physical interface, which can be a USB-A interface, a Type-C interface, or a Lightning interface, or may include Bluetooth wireless transmission. The compliance processing result is also output to the external host device via a USB controlled protocol through the physical interface. This USB controlled protocol only allows the transmission of standardized text results and prohibits the transmission of program code snippets, model weights, prompt text, keys, and executable files across devices via the USB controlled protocol. Once the external host device receives the compliance processing result, the security chip 11 does not output the original program code, model weights, prompt text, or keys to the external host device.
[0046] In this embodiment, the security chip 11 is further configured to: clear the plaintext of the session key in the register when the session between the USB flash drive and the external host device ends or the connection between the USB flash drive and the external host device is disconnected; when the USB flash drive and the external host device remain connected and the USB flash drive receives a soft lock command sent by the external host device, determine that the external host device is in a locked state, and refuse to respond to the data access request sent by the external host device if no soft unlock command is received; if the duration of the locked state is greater than a preset time threshold, clear the plaintext of the session key in the register.
[0047] When the session between the USB flash drive and the external host device ends or the connection between the USB flash drive and the external host device is disconnected, the security chip 11 clears the plaintext session key from its internal register, and the data storage area returns to an encrypted locked state. Re-authentication is required for the next use. When the USB flash drive and the external host device remain connected and the security chip 11 receives a soft-lock command from the external host device, the security chip 11 determines that the external host device is in a locked state. The security chip 11 retains the plaintext session key but does not respond to any data access requests from the external host device. The security chip 11 continues to refuse to respond to data access requests from the external host device until a soft-unlock command is received. If the duration of the locked state exceeds a preset time threshold, or if the duration exceeds 30 minutes, the security chip 11 actively clears the plaintext session key from its register. After receiving a soft-unlock command from the external host device, the security chip 11 resumes responding to data access requests.
[0048] In this embodiment, the USB flash drive further includes an anti-tamper module disposed within the casing of the USB flash drive. The anti-tamper module includes conductive lines and a hardware filtering unit for filtering out instantaneous pulse signals with a duration less than a preset threshold. The two ends of the conductive lines are respectively connected to the security chip and the hardware filtering unit to form a closed loop. The two ends of the hardware filtering unit are respectively connected to the security chip and the conductive lines.
[0049] The USB flash drive also includes an anti-tamper module housed within its casing, which is ultrasonically welded for integrated sealing. The anti-tamper module comprises conductive circuitry and a hardware filtering unit for filtering out transient pulse signals with a duration less than a preset threshold. The conductive circuitry is either an inner layer conductive anti-tamper circuitry on a multilayer PCB (Printed Circuit Board), or a conductive ink anti-tamper circuitry on the PCB surface, or a combination of both forming a dual-redundant anti-tamper structure. Both ends of the conductive circuitry are connected to the security chip 11 and the hardware filtering unit to form a closed loop. The two ends of the hardware filtering unit are also connected to the security chip 11 and the conductive circuitry. The trigger circuit is directly connected to the hardware interrupt of the security chip 11, bypassing the software layer. An RC (Resistor-Capacitance circuit) hardware filtering unit and digital anti-bounce logic are added to the front end of the trigger circuit. The preset threshold is 150 milliseconds. Transient pulse signals with a duration less than 150 milliseconds are filtered out by the hardware filtering unit and do not trigger the self-destruction of the security chip 11. Transient pulse signals generated by device drops or transportation vibrations are automatically filtered out because their duration is less than the preset threshold.
[0050] In this embodiment, the security chip 11 is further configured to: destroy temporary data in the registers inside the security chip, erase the index table of code segments in the logical storage area, and mark the security chip as permanently disabled if the duration of the open circuit of the conductive line is greater than the preset threshold.
[0051] When the duration of the open circuit exceeds a preset threshold, the security chip 11 determines it as a valid physical disassembly trigger and executes hardware-level self-destruct. The self-destruction operation includes: destroying temporary data stored in the security chip's internal registers and SRAM, including session keys, code fragment assembly status, and session context; erasing the code fragment index table in the logical storage area, causing each code fragment to lose its assembly order information, making it impossible to recover the complete program code; and writing a permanent failure flag to the security chip's internal status register. After self-destruction, the security chip will detect this permanent failure flag during subsequent startup and refuse to execute any operations related to the program code. The device salt value and the fixed logical root key embedded in the one-time programmable storage unit cannot be electrically erased due to their physical characteristics, but after self-destruction, the code fragment index table is destroyed and the security chip is marked as permanently failed, making it impossible to recover the program code.
[0052] The security chip reports the device hardware fingerprint and authorization identifier of the USB flash drive to the cloud via a client running on an external host device, enabling the cloud to verify the legality and authorization validity of the USB flash drive. The security chip receives publicly available compliance knowledge base data and / or rule interpretation data relayed by the client and issued by the cloud after successful verification, and stores this data in its data storage area. The security chip also receives encrypted incremental patches generated by the cloud for the USB flash drive, relayed by the client. These encrypted incremental patches are unique passwords generated by the cloud based on the USB flash drive's device hardware fingerprint and authorization identifier. The encryption patch is decrypted within the security chip, and the program code stored in the logical storage area is updated based on the decrypted incremental patch. The security chip receives a remote locking command forwarded by the client and disables the session key generation function based on the remote locking command to lock the USB flash drive. In each session, the security chip reports device call behavior data to the cloud through the client, so that the cloud can monitor device call behavior and identify abnormal cracking attempts. The security chip also reports device authorization records and de-identified real-name login logs to the cloud through the client, so that the cloud retains the device authorization records and de-identified real-name login logs.
[0053] The beneficial effects of this invention are as follows: The USB flash drive device for data compliance processing includes: a security chip, used to receive authentication information transmitted by an external host device after establishing a connection with the external host device through a physical interface, and to verify the authentication information; a data storage area connected to the security chip, used to store encrypted user data; and a logical storage area connected to the security chip, used to store program code constituting the data compliance processing logic, wherein the program code is stored in different sub-storage areas of the logical storage area in the form of multiple code fragments without independent semantics; the security chip is further used to generate data based on the authentication information after the authentication information verification is passed. The session key is used to decrypt the user data stored in the data storage area. Historical user data corresponding to the authentication information is read from the decrypted user data in the data storage area. Structured parameters are extracted from the business data transmitted from the external host device. The code fragments read from the logical storage area are dynamically concatenated to restore the complete data compliance processing logic. The data compliance processing logic is called to process the structured parameters and the historical user data to generate a compliance processing result. The compliance processing result is written to the data storage area and output to the external host device through the physical interface. Therefore, the USB flash drive device used for data compliance processing includes a security chip, a data storage area, and a logical storage area. First, the program code in the logical storage area is distributed across different sub-storage areas as multiple code fragments without independent semantics. During each processing iteration, the security chip reads these code fragments from the logical storage area and dynamically assembles them to reconstruct the complete logic. This assembly process is completed internally by the security chip, preventing external host devices from obtaining the complete program code. Even if an attacker physically disassembles and reads the original data in the logical storage area, they can only obtain meaningless fragments, thus preventing the core program code from being reverse-engineered and copied. Second, the security chip only dynamically generates a session key based on the authentication information after successful verification. This key decrypts the data storage area, ensuring that the unlocking key is not permanently stored in the device but is generated in real-time for each session. The keys differ between sessions, and user data in the data storage area is always stored in encrypted form. Even if the device is lost, unauthorized personnel cannot obtain user data through physical disassembly or brute-force attacks. Simultaneously, the security chip executes the restored data compliance processing logic internally, with the external host device acting only as an input / output terminal. User data and core logic are not exposed to the host device's operating system or memory during processing. This prevents the theft of core intellectual property while protecting user data privacy, achieving two-way protection of intellectual property and user data within the same device.
[0054] like Figure 2As shown, for the program code that constitutes the data compliance processing logic stored in the logical storage area, the USB flash drive device has built a three-layer intellectual property protection system consisting of a hardware layer, a firmware layer, and an application layer. This program code is the core skill of the data compliance processing intelligent agent running inside the USB flash drive device.
[0055] Hardware-level protection includes: a one-device-one-key hardware binding mechanism, where the encryption root key of the program code is derived from the unique identifier of the security chip and the physical unique identifier of the logical storage area. Each USB flash drive has a unique root key, which is embedded in a one-time programmable storage unit and used only inside the security chip, never exported to the outside of the chip; the program code is stored in multiple code fragments without independent semantics in different sub-storage areas of the logical storage area, and a single code fragment cannot restore the valid business logic; the anti-tamper module set in the shell includes conductive lines and a hardware filtering unit. The two ends of the conductive lines are connected to the security chip and the hardware filtering unit respectively to form a closed loop. When the duration of the conductive line being broken due to physical disassembly exceeds a preset threshold, the security chip performs a self-destruct operation, destroying the temporary data in the internal registers, erasing the index table of code fragments in the logical storage area, and marking the security chip as permanently disabled.
[0056] Firmware layer protection includes: the security chip reads each code fragment from the logical storage area and dynamically splices them in the encrypted memory inside the security chip each time it boots. The splicing order changes randomly each time the USB flash drive is booted. The time from when the USB flash drive is inserted into the external host device to when the splicing is completed meets the requirements of less than 3 seconds for cold boot and less than 1 second for warm boot. The program code stored in the logical storage area is code that has undergone instruction-level obfuscation. Instruction-level obfuscation includes inserting redundant instructions and adding fake branches, so that the program code cannot be identified as real business logic when it is decompiled.
[0057] Application-layer protection includes: a leading detection module inside the security chip to identify whether the structured parameters include leading questions targeting the data compliance processing logic. The structured parameters are field-based parameters extracted from business data transmitted from external host devices. When a leading question is identified, the leading detection module automatically returns an obfuscated result to the external host device and limits the number of questions processed per unit time according to a preset frequency threshold to prevent attackers from replicating the core skills of the data compliance processing agent through batch dialogue leading methods; the security chip embeds an invisible traceability watermark in the compliance processing result. This invisible traceability watermark is an invisible character-level digital watermark carrying the unique identification information of the USB flash drive device. The compliance processing result with the embedded watermark is written to the data storage area.
[0058] See Figure 3As shown, this invention discloses a processing method based on a USB flash drive, applied to a security chip in the USB flash drive. The USB flash drive further includes a data storage area connected to the security chip and used to store encrypted user data, and a logical storage area connected to the security chip and used to store program code constituting data compliance processing logic. The program code is stored in different sub-storage areas of the logical storage area in the form of multiple code fragments without independent semantics. The method includes: Step S11: After establishing a connection with the external host device through the physical interface, receive the authentication information transmitted by the external host device and verify the authentication information.
[0059] Step S12: After the authentication information is verified, the user data stored in the data storage area is decrypted using the session key generated based on the authentication information. Historical user data corresponding to the authentication information is read from the decrypted user data in the data storage area. Structured parameters are extracted from the business data transmitted by the external host device. The code fragments read from the logical storage area are dynamically concatenated to restore the complete data compliance processing logic. The data compliance processing logic is called to process the structured parameters and the historical user data to generate a compliance processing result. The compliance processing result is written into the data storage area and output to the external host device through the physical interface.
[0060] This embodiment further includes: sending the device hardware fingerprint and authorization identifier of the USB flash drive to the external host device, and reporting the device hardware fingerprint and authorization identifier to the cloud through a client running on the external host device, so that the cloud can verify the legality and authorization validity period of the USB flash drive. If the verification is successful, an encrypted incremental patch is generated based on the device hardware fingerprint and the authorization identifier, and incremental data and the encrypted incremental patch are sent to the client; wherein, the incremental data includes compliance knowledge base data and / or interpretation data of compliance rules; receiving the encrypted incremental patch and the incremental data relayed by the client; storing the incremental data in the data storage area; decrypting the encrypted incremental patch, and updating the program code based on the decrypted incremental patch.
[0061] The security chip sends the USB flash drive's hardware fingerprint and authorization identifier to the external host device. A client running on the external host device then reports the hardware fingerprint and authorization identifier to the cloud, enabling the cloud to verify the USB flash drive's legitimacy and authorization validity. Upon successful verification, the cloud generates an encryption incremental patch based on the hardware fingerprint and authorization identifier and sends incremental data and the encryption incremental patch to the client. The incremental data includes compliance knowledge base data and interpretation data of compliance rules. After receiving the incremental data and encryption incremental patch, the client stores the incremental data in the data storage area via the client and directly transmits the encryption incremental patch to the security chip via the client. The security chip receives the encryption data transmitted via the client. Incremental patches and incremental data are used. Incremental data is stored in the data storage area, and the encrypted incremental patch is decrypted inside the security chip. The program code stored in the logical storage area is updated based on the decrypted incremental patch. The plaintext of the encrypted incremental patch is not exposed to the external host device during the decryption and update process. At the same time, the cloud monitors the USB flash drive device call behavior reported by the client running on the external host device in real time, identifies abnormal call patterns, and sends a remote locking command to the client when an abnormal cracking attempt is identified. The security chip receives the remote locking command through the client and disables the session key generation function according to the command. Device authorization records and real-name login de-identified logs are retained in the cloud to meet audit traceability requirements.
[0062] In tax and financial compliance processing, the vertical-domain tax and financial intelligent agent is not a static logic that remains unchanged after leaving the factory, but a dynamic intelligent agent that is continuously updated through a cloud-based collaborative mechanism. The cloud stores the latest publicly available tax and financial regulations knowledge base, policy interpretations, industry parameter configurations, and other incremental data, as well as encrypted incremental patches generated for specific devices. After receiving the encrypted incremental patches and incremental data through a client running on an external host device, the security chip stores the incremental data in the data storage area for subsequent use by the intelligent agent; the encrypted incremental patch is decrypted inside the security chip, and the program code stored in the logic storage area is incrementally updated based on the decrypted incremental patch.
[0063] The USB flash drive also includes an anti-tamper module housed within its casing. This module comprises conductive circuitry and a hardware filtering unit for filtering out transient pulse signals with a duration less than a preset threshold. During normal operation, the anti-tamper module operates in a closed-loop state. When physical damage occurs, such as tearing the casing, breaking the conductive circuitry on the inner layer of the PCB multilayer board, or breaking the conductive ink on the PCB surface, the closed loop is disrupted. The anti-tamper module then outputs a level-change signal to the security chip as an anti-tamper trigger signal. The trigger circuit is directly connected to the hardware interrupt pin of the security chip, bypassing the software layer. The trigger signal first passes through an RC hardware filtering unit and digital debounce logic to filter out transient pulse signals with a duration less than the preset threshold. Transient pulse signals with a duration less than 150 milliseconds, generated by device drops or transportation vibrations, are automatically filtered out and do not trigger self-destruction. When a legitimate service token is inserted, the anti-tamper circuit is temporarily bypassed; the protection function is automatically restored after the service is completed. When the duration of the open circuit is greater than or equal to 150 milliseconds, the security chip determines that a valid physical disassembly has been triggered and executes a self-destruct operation in parallel. This includes: destroying the temporary data stored in the security chip's internal registers and SRAM (Static Random-Access Memory), which includes the session key, code fragment concatenation status, and temporary plaintext data; erasing the index table of code fragments in the logical storage area, which includes physical address mappings and concatenation order parameters; and writing a self-destruct permanent marker to the security chip's internal status register. After self-destruction, the USB flash drive enters a permanently disabled state, the program code in the logical storage area cannot be recovered, and the user data in the data storage area cannot be decrypted.
[0064] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.
[0065] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the invention. The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly in hardware, software modules executed by a processor, or a combination of both.
[0066] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, 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 said element.
[0067] The above provides a detailed description of a USB flash drive device and processing method for data compliance processing provided by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A USB flash drive device for data compliance processing, characterized in that, include: The security chip is used to receive authentication information transmitted by the external host device after establishing a connection with the external host device through a physical interface, and to verify the authentication information. The data storage area connected to the security chip is used to store encrypted user data; The logical storage area connected to the security chip is used to store program code that constitutes the data compliance processing logic. The program code is stored in different sub-storage areas of the logical storage area in the form of multiple code fragments without independent semantics. The security chip is further configured to, after the authentication information is verified, decrypt the user data stored in the data storage area using a session key generated based on the authentication information, read historical user data corresponding to the authentication information from the decrypted user data in the data storage area, extract structured parameters from the business data transmitted from the external host device, dynamically concatenate the code fragments read from the logical storage area to restore the complete data compliance processing logic, call the data compliance processing logic to process the structured parameters and the historical user data, generate a compliance processing result, write the compliance processing result into the data storage area, and output the compliance processing result to the external host device through the physical interface.
2. The USB flash drive device for data compliance processing according to claim 1, characterized in that, The security chip is also used to configure access permissions for the logical storage area, prohibiting the external host device from directly reading the code fragments stored in the logical storage area.
3. The USB flash drive device for data compliance processing according to claim 1, characterized in that, The identity verification information includes irreversible feature data generated after the user completes identity verification through a preset real-name platform. The irreversible feature data includes authorization credential hash value and / or biometric hash value and / or operation behavior feature value.
4. The USB flash drive device for data compliance processing according to claim 1, characterized in that, The security chip is specifically used to embed an invisible traceability watermark into the compliance processing result to obtain a compliance processing result with the embedded watermark, and to write the compliance processing result with the embedded watermark into the data storage area. The invisible traceability watermark carries the unique identification information of the USB flash drive device.
5. The USB flash drive device for data compliance processing according to claim 1, characterized in that, The USB flash drive device also includes: A one-time programmable storage unit is used to store the device salt value and the fixed logical root key of the USB flash drive; Accordingly, the security chip is used to read the device salt value from the one-time programmable storage unit, generate a session key by iteratively performing a hash algorithm on the authentication information and the device salt value, and temporarily store the plaintext of the session key in a register inside the security chip.
6. The USB flash drive device for data compliance processing according to claim 5, characterized in that, The security chip is also used for: The plaintext of the session key in the register is cleared when the session between the USB flash drive and the external host device ends or the connection between the USB flash drive and the external host device is disconnected. When the USB flash drive remains connected to the external host device and receives a soft lock command from the external host device, it determines that the external host device is in a locked state. If no soft unlock command is received from the external host device, it refuses to respond to the data access request sent by the external host device. If the duration of the locked state is longer than a preset time threshold, the plaintext of the session key in the register is cleared.
7. The USB flash drive device for data compliance processing according to claim 5, characterized in that, The USB flash drive device also includes: The anti-tamper module is installed inside the casing of the USB flash drive. The anti-tamper module includes conductive lines and a hardware filtering unit for filtering out instantaneous pulse signals with a duration less than a preset threshold. The two ends of the conductive lines are respectively connected to the security chip and the hardware filtering unit to form a closed loop. The two ends of the hardware filtering unit are respectively connected to the security chip and the conductive lines. Accordingly, the security chip is also used for: If the duration of the open circuit exceeds the preset threshold, the temporary data in the registers inside the security chip is destroyed, the index table of code segments in the logic storage area is erased, and the security chip is marked as permanently disabled.
8. The USB flash drive device for data compliance processing according to claim 1, characterized in that, The program code is code that has undergone instruction-level obfuscation, which includes inserting redundant instructions and / or adding spurious branches. The security chip also includes: The inducement identification module is used to identify whether the structured parameters include inducement questions targeting the data compliance processing logic. If the structured parameters include the inducement questions, an obfuscation result is returned to the external host device.
9. A processing method based on a USB flash drive, characterized in that, A security chip is applied in the USB flash drive device, the USB flash drive device further includes a data storage area connected to the security chip and used to store encrypted user data, and a logical storage area connected to the security chip and used to store program code constituting data compliance processing logic, wherein the program code is stored in different sub-storage areas of the logical storage area in the form of multiple code fragments without independent semantics; the method includes: After establishing a connection with an external host device through a physical interface, the system receives authentication information transmitted by the external host device and verifies the authentication information. After the authentication information is verified, the user data stored in the data storage area is decrypted using the session key generated based on the authentication information. Historical user data corresponding to the authentication information is read from the decrypted user data in the data storage area. Structured parameters are extracted from the business data transmitted from the external host device. The code fragments read from the logical storage area are dynamically concatenated to restore the complete data compliance processing logic. The data compliance processing logic is called to process the structured parameters and the historical user data to generate a compliance processing result. The compliance processing result is written into the data storage area and output to the external host device through the physical interface.
10. The processing method based on a USB flash drive according to claim 9, characterized in that, Also includes: The device hardware fingerprint and authorization identifier of the USB flash drive are sent to the external host device, and the client running on the external host device reports the device hardware fingerprint and authorization identifier to the cloud so that the cloud can verify the legality and authorization validity of the USB flash drive. If the verification is successful, an encrypted incremental patch is generated based on the device hardware fingerprint and authorization identifier, and incremental data and the encrypted incremental patch are sent to the client. The incremental data includes compliance knowledge base data and / or interpretation data of compliance rules. Receive the encryption incremental patch and the incremental data relayed by the client; The incremental data is stored in the data storage area; The encrypted incremental patch is decrypted, and the program code is updated based on the decrypted incremental patch.
