Method for security acquisition of database hidden meta-information based on minimum authority

By performing sensitivity grading and differentiated processing on the hidden metadata fields in the database, combined with adaptive round-robin scheduling and differentiated noise protection, the problem of privacy protection imbalance and resource waste in existing data collection methods is solved, achieving more efficient and secure data collection.

CN123158684APending Publication Date: 2026-11-24HUANENG INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611511310.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-28
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing database security collection methods fail to effectively distinguish the security semantic sensitivity of hidden metadata fields, resulting in insufficient noise protection for highly sensitive fields and excessive noise enhancement for low-sensitivity fields. Furthermore, the fixed collection order leads to delays in high-frequency configuration changes and repetition in low-frequency changes, causing an imbalance between privacy protection strength and collection efficiency.

Method used

The method adopts the least privilege approach, annotates fields with security semantic sensitivity classification rules, performs adaptive round-robin scheduling in combination with normalized change frequency values, generates differentiated privacy budget parameters, uses time-limited temporary least privilege tokens for querying, and applies differentiated Laplace noise processing to generate secure acquisition output.

Benefits of technology

It achieves strong noise protection for highly sensitive fields, high data availability for low sensitive fields, and priority collection of high-frequency change categories and on-demand scheduling of low-frequency change categories, thus solving the problems of privacy protection imbalance and resource waste in the collection process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123158684A_ABST
    Figure CN123158684A_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of database security, and discloses a database hidden meta-information security collection method based on minimum authority, which comprises the following steps: performing sensitivity level marking on hidden meta-information fields to generate a field classification mapping table; counting the change frequency of each category to generate a change frequency vector set; performing adaptive rotation scheduling to generate an adaptive collection task list; generating a time-limited temporary minimum authority access token and performing system directory query; assigning differential privacy budget parameters according to the field classification mapping table and applying hierarchical Laplace noise; and performing incremental difference calculation to generate a security collection output.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of database security technology, specifically to a method for securely collecting hidden metadata from a database based on the principle of least privilege. Background Technology

[0002] In database security auditing scenarios, security acquisition systems need to obtain hidden metadata such as permission configuration records, access control lists, and hidden field definitions from the target database's system directory to assess the database's security compliance status.

[0003] Existing acquisition methods apply noise processing of uniform intensity to all hidden metadata fields and perform round-robin acquisition by sequentially covering each hidden metadata category in a fixed order.

[0004] The above approach has the following drawbacks: The uniform noise intensity fails to differentiate the security semantic sensitivity of different fields, resulting in insufficient noise protection for highly sensitive fields (such as permission granting records and hidden access control items), leading to leakage risks. Meanwhile, low-sensitivity fields (such as connection parameters and timeout configurations) suffer from excessive noise, resulting in reduced usability. The fixed-order rotation does not consider the varying change frequencies of different categories in actual operation, causing delayed collection of critical security configuration items with high-frequency changes and repeated collection of low-frequency change categories, resulting in wasted permission access resources. This leads to a technical problem of an imbalance between privacy protection strength and collection scheduling efficiency during the collection of hidden metadata. Summary of the Invention

[0005] This invention provides a method for securely collecting hidden metadata from databases based on least privilege, which solves the technical problems in related technologies when collecting hidden metadata from databases, such as excessively large scope of privilege exposure, fixed collection frequency leading to resource waste, and lack of differentiated privacy protection for collected data.

[0006] This invention discloses a method for securely collecting hidden metadata from a database based on least privilege, comprising the following steps: Based on the security semantic sensitivity classification rules, sensitivity level labeling is performed on the hidden metadata fields of the target database, and a field classification mapping table is generated; The normalized change frequency value of each hidden metadata category is calculated, and an adaptive round-robin scheduling is performed based on the normalized change frequency value and the cumulative number of uncollected cycles to generate an adaptive collection task list. For each acquisition unit in the adaptive acquisition task list, a time-limited temporary minimum access token that only covers the corresponding system directory is generated. During the valid period of the token, a system directory query is performed to obtain the original record of hidden metadata. Differentiated privacy budget parameters are assigned based on the field hierarchical mapping table, Laplace noise of corresponding intensity is applied to each field, and incremental difference calculation is performed on the processed record set and the historical storage summary to generate a secure acquisition output.

[0007] Furthermore, the security semantic sensitivity classification rule marks fields that directly affect permission boundaries as high sensitivity levels, fields that indirectly affect access behavior as medium sensitivity levels, and fields whose impact on security boundaries is negligible as low sensitivity levels. Among these, high sensitivity levels cover permission granting records, hidden field access control items, and role binding entries; medium sensitivity levels cover session policy configuration and resource quota definitions; and low sensitivity levels cover connection parameters and timeout configurations.

[0008] Furthermore, the calculation of the normalized change frequency value satisfies: assuming a total The first hidden metadata category, the... Categories in recent The frequency of changes within each data collection cycle is: ,in The total number of categories of hidden metadata. Number of collection cycles If it is a category index, then the first Normalized change frequency values ​​for each category for: ; in, For category indexing, This is the sum of change frequencies for all categories; for categories with missing periodic data in the change log summary, the missing periods are filled with the average change frequency of that category within the valid period before normalization is performed.

[0009] Furthermore, the execution of the adaptive round-robin scheduling includes: setting the normalized change frequency value higher than a preset threshold. Hidden metadata categories are marked as priority acquisition units; normalized change frequency values ​​lower than [a certain value] are [selected as priority acquisition units]. The categories are sorted in descending order of cumulative uncollected periods, and the top ones are selected. One serves as a supplementary data acquisition unit, among which To supplement the upper limit of the number of acquisition units, priority acquisition units and supplementary acquisition units are merged to generate an adaptive acquisition task list. After each scheduling is completed, the cumulative number of unacquitted cycles of the categories included in the adaptive acquisition task list is reset to zero, and the cumulative number of unacquitted cycles of the categories not included is incremented by one.

[0010] Furthermore, the adaptive round-robin scheduling also includes: including cycles with an accumulated number of uncollected periods exceeding a preset mandatory inclusion threshold. Hidden metadata categories are forcibly included in the supplementary collection unit of this cycle, among which The mandatory inclusion threshold is the cumulative number of uncollected periods. After mandatory inclusion, the remaining supplementary collection units are filled in descending order of the cumulative number of uncollected periods until the total number of supplementary collection units does not exceed [a certain threshold]. .

[0011] Furthermore, the differentiated privacy budget parameters satisfy... ,in , , These are the privacy budget parameters corresponding to high sensitivity, medium sensitivity, and low sensitivity levels, respectively; for sensitivity levels of... The original value of the field Protection value after applying Laplace noise satisfy: ; in, This refers to the global sensitivity of this field in the data collection scenario. This indicates sampling using a Laplace distribution with the values ​​in parentheses as the scale parameter. This is an index for sensitivity levels.

[0012] Furthermore, the allocation of the differentiated privacy budget parameters also includes: presetting a maximum limit on the total privacy budget that can be consumed in each collection cycle. Before applying Laplace noise, the sum of the privacy budget parameters for each field in the adaptive data acquisition task list for this period is calculated. If the sum of these parameters exceeds... Then, the privacy budget parameter for high-sensitivity fields remains unchanged, while the privacy budget parameters for medium-sensitivity and low-sensitivity fields are reduced proportionally until the total consumption does not exceed [a certain threshold]. .

[0013] Furthermore, the incremental difference calculation includes: comparing the processed record set with the historical storage summary one by one at the field level, extracting the entries whose field values ​​have changed as the change entry set; adding meta-information category identifiers, adaptive rotation sequence numbers and a summary of the privacy budget parameters actually used by each field to the change entry set, and generating a secure collection output.

[0014] This invention discloses a database hidden metadata security collection system based on least privilege, comprising: The field annotation module is used to perform sensitivity level annotation on the hidden metadata fields of the target database according to the security semantic sensitivity classification rules, and generate a field classification mapping table. The frequency statistics module is used to count the change frequency of each hidden metadata category within the historical collection period, calculate the normalized change frequency value, and generate a set of change frequency vectors. The scheduling calculation module is used to perform adaptive round-robin scheduling based on the set of change frequency vectors and the current acquisition cycle number, and generate an adaptive acquisition task list; The token query module is used to generate a time-limited temporary minimum access token that covers only the corresponding system directory for each collection unit in the adaptive collection task list, and to perform a system directory query during the valid period of the token to obtain the original record of hidden metadata. The hierarchical protection module is used to assign differentiated privacy budget parameters to each field according to the field hierarchical mapping table, apply Laplace noise of corresponding intensity, and generate a set of hidden metadata records after hierarchical differential privacy protection. The incremental output module is used to perform incremental difference calculation on the set of hidden metadata records after hierarchical differential privacy protection and the historical storage summary, add the collected metadata, and generate a secure collection output.

[0015] Furthermore, the time-limited temporary minimum access token generated by the token query module has its permission scope limited to the system directory path set corresponding to the current collection unit, and does not include read permissions to other system directories, nor does it include any write permissions; the validity period of the token is set with an upper limit based on the estimated query time of the target system directory, and the token automatically expires after the upper limit is exceeded.

[0016] The beneficial effects of this invention are as follows: This invention solves the technical problems of privacy protection imbalance and inefficient collection scheduling caused by uniform noise intensity and fixed collection order in existing methods by performing security semantic sensitivity classification on hidden metadata fields and allocating differentiated privacy budget parameters accordingly, and by performing adaptive round-robin scheduling based on normalized change frequency values ​​and cumulative uncollected periods. It achieves the technical effects of stronger noise protection for high-sensitivity fields, higher data availability for low-sensitivity fields, and priority collection of high-frequency change categories and on-demand supplementary scheduling of low-frequency change categories. Attached Figure Description

[0017] Figure 1 This is a flowchart of a database hidden metadata security collection method based on least privilege provided in an embodiment of the present invention. Detailed Implementation

[0018] The subject matter described herein will now be discussed with reference to exemplary embodiments. It should be understood that these embodiments are discussed only to enable those skilled in the art to better understand and implement the subject matter described herein, and changes may be made to the function and arrangement of the elements discussed without departing from the scope of this specification. Various processes or components may be omitted, substituted, or added as needed in the examples. Furthermore, some features described in the examples may be combined in other examples.

[0019] At least one embodiment of the present invention discloses a method for securely collecting hidden metadata from a database based on least privilege, see [link to relevant documentation]. Figure 1 This includes the following steps: Step 1: Obtain the hidden metadata field definition and perform sensitivity level labeling to generate a field hierarchy mapping table.

[0020] Obtain all hidden metadata category directories and field definitions under each category in the target database. Based on the preset security semantic sensitivity classification rules, perform sensitivity level labeling on each hidden metadata field, divide the fields into high sensitivity level, medium sensitivity level and low sensitivity level, and generate a hidden metadata field classification mapping table with sensitivity level labels.

[0021] It should be noted that the security semantic sensitivity classification rules refer to a set of rules that classify fields hierarchically based on the security semantic attributes they carry. High sensitivity levels cover fields that directly affect permission boundaries, including permission granting records, hidden field access control items, and role binding entries; medium sensitivity levels cover fields that indirectly affect access behavior, including session policy configurations and resource quota definitions; low sensitivity levels cover fields whose impact on security boundaries is negligible, including connection parameters and timeout configurations.

[0022] Step 2: Count the change frequency of each hidden metadata category and generate a set of change frequency vectors.

[0023] Retrieve each hidden metadata category in the most recent Summary of change logs within each collection period, including To determine the number of collection cycles, the frequency of changes for each category is counted, the normalized change frequency value for each category is calculated, and a set of change frequency vectors at the category level of hidden metadata is generated.

[0024] Specifically, let there be a total There are several categories of hidden metadata, among which The total number of categories of hidden metadata, the first Categories in recent The frequency of changes within each data collection cycle is: ,in If it is a category index, then the first Normalized change frequency values ​​for each category for: ; in, , For category indexing, This represents the sum of change frequencies across all categories. The normalized change frequency values ​​for each category are then arranged in order of category to generate a set of change frequency vectors. .

[0025] In this embodiment of the application, in order to avoid the newly launched categories being mistakenly downgraded in scheduling priority due to insufficient historical period data resulting in low normalization results, for categories with missing period data in the change log summary, the missing period is filled with the average change frequency of the category within the effective period, and then normalization calculation is performed.

[0026] Step 3: Perform adaptive round-robin scheduling calculations to generate an adaptive acquisition task list for this cycle.

[0027] Based on the set of change frequency vectors and the current acquisition cycle number, an adaptive round-robin scheduling calculation is performed, and the normalized change frequency value is higher than a preset threshold. The metadata category is marked as the priority collection unit for this period, and the normalized change frequency value is lower than that of the previous period. The categories are sorted in descending order of cumulative uncollected periods, and the top ones are selected. One serves as a supplementary data acquisition unit, among which To supplement the upper limit on the number of acquisition units, the list of adaptive acquisition tasks generated in this cycle is merged.

[0028] It should be noted that the cumulative number of uncollected periods refers to the number of periods that a certain hidden metadata category has experienced since it was last included in the collection task list to the current collection period number. After each scheduling is completed, for categories included in the collection task list of this period, their cumulative number of uncollected periods is reset to zero; for categories not included, their cumulative number of uncollected periods is incremented by one, which is used for the sorting calculation of the next period.

[0029] In this embodiment of the application, to prevent Fixed values ​​lead to an insufficient number of supplementary acquisition units when most categories experience long-term, low-frequency changes, necessitating the introduction of dynamic... Value adjustment strategy: Adjust the value if the cumulative number of uncollected periods exceeds the preset limit. The categories, among which The mandatory inclusion threshold for accumulating the number of uncollected periods, regardless of whether its normalized change frequency value is lower than [a certain threshold]. All will be forcibly included in the supplementary data collection units for this period; after the mandatory inclusion is completed, the remaining supplementary data collection unit slots will be filled in descending order of the cumulative number of uncollected periods until the total number does not exceed [number missing]. indivual.

[0030] Step 4: Generate a time-limited temporary minimum privilege access token and perform a system directory query to obtain the original record of hidden metadata.

[0031] For each collection unit in the adaptive collection task list, a time-limited temporary minimum access token is generated based on the range of its corresponding hidden metadata category, covering only the system directory corresponding to that category. During the token's validity period, a query is performed on the target system directory to obtain the original records of the hidden metadata of each collection unit. The token expires immediately after the query is completed.

[0032] It should be noted that the scope of permissions for the time-limited temporary minimum privilege access token is strictly limited to the set of system directory paths corresponding to the current collection unit. It does not include read permissions to other system directories, nor does it include any write permissions. The validity period of the token is capped based on the estimated query time of the target system directory. Once the cap is exceeded, the token automatically expires, and subsequent steps will no longer accept query requests initiated with this token.

[0033] Step 5: Allocate differentiated privacy budget parameters according to the field hierarchy mapping table to generate a set of hidden metadata records after hierarchical differential privacy protection.

[0034] For the raw records of hidden metadata from each collection unit, differentiated privacy budget parameters are assigned according to the sensitivity level of each field in the hidden metadata field hierarchy mapping table, with smaller privacy budget parameters applied to highly sensitive fields. The Laplace noise corresponding to the value applies a moderate amount to the medium sensitivity field. The Laplace noise corresponding to the value imposes a large effect on low-sensitivity fields. The corresponding Laplace noise is used to generate a set of hidden metadata records after hierarchical differential privacy protection.

[0035] Specifically, let the privacy budget parameter corresponding to the sensitivity level of a certain field be... ,in For sensitivity level index, and The original value of this field Protection value after applying Laplace noise for: ; in, This refers to the global sensitivity of this field in the data collection scenario. This indicates sampling using a Laplace distribution with the values ​​in parentheses as the scale parameter. Represents an exponential function. The smaller the value, the larger the noise scale and the stronger the privacy protection.

[0036] In this embodiment, to accommodate the constraints of overall privacy budget consumption within different collection cycles, a global privacy budget pool management strategy is introduced: a preset upper limit on the total privacy budget allowed to be consumed in each collection cycle is defined. Before step 5 is executed, the sum of the privacy budget parameters of each field in the adaptive data collection task list for this period is calculated. If it exceeds... Then, high-sensitivity fields are retained first, and low-sensitivity fields are reduced proportionally. The amount is redistributed in a manner that continues until the total consumption does not exceed [a certain threshold]. .

[0037] Step 6: Perform incremental difference calculation and attach the acquired metadata to generate secure acquisition output.

[0038] The set of hidden metadata records after hierarchical differential privacy protection and the corresponding historical storage summary are used as input. Incremental difference calculation is performed, and the current set of records is compared with the historical storage summary one by one at the field level. The entries with changed field values ​​are extracted as the set of changed entries. Meta information category identifiers, adaptive rotation sequence numbers and privacy budget parameter summaries actually used for each field are added to generate a secure collection output of hidden metadata under the least privilege constraint.

[0039] It should be noted that the historical storage summary refers to a snapshot of the hidden metadata records saved when this category was last collected and output. The input for incremental difference calculation is the set of hidden metadata records after hierarchical differential privacy protection and the historical storage summary, and the output is the set of changed entries. Incremental difference calculation compares each entry at the field level, marking only entries with changed field values ​​as changed entries and extracting them for output. Entries that have not changed are not included in the collection and output to reduce the output data volume and subsequent storage overhead.

[0040] On the other hand, this invention also proposes a database hidden metadata security collection system based on least privilege, comprising: The field annotation module is used to obtain the category directory and field definition of all hidden metadata in the target database, perform sensitivity level annotation on each field based on the security semantic sensitivity classification rules, and generate a hidden metadata field classification mapping table. The frequency statistics module is used to obtain the most recent data for each hidden metadata category. Summary of change logs within each collection period, statistics of change frequency, calculation of normalized change frequency value, and generation of change frequency vector set; The scheduling calculation module is used to perform adaptive round-robin scheduling calculations based on the change frequency vector set and the current acquisition cycle number, and generate an adaptive acquisition task list for the current cycle. The token query module is used to generate a time-limited temporary minimum access token for each collection unit in the adaptive collection task list, and to perform a system directory query during the token's validity period to obtain the original records of hidden metadata. The hierarchical protection module is used to assign differentiated privacy budget parameters to each field according to the hierarchical mapping table of hidden metadata fields, apply Laplace noise of corresponding intensity, and generate a set of hidden metadata records after hierarchical differential privacy protection. The incremental output module is used to perform incremental difference calculations on the set of hidden metadata records after hierarchical differential privacy protection and the historical storage summary, attach the collected metadata, and generate a secure collection output of hidden metadata under the least privilege constraint.

[0041] By way of example, the system proposed in this invention may also include various features and combinations thereof in the method embodiments, which will not be elaborated here.

[0042] This invention performs a security semantic sensitivity classification on hidden metadata fields and assigns differentiated privacy budget parameters accordingly, thereby reducing the Laplace noise scale parameter of highly sensitive fields. With smaller The allocation increases, thus achieving stronger noise protection; the low-sensitivity field is larger due to... This approach maintains higher data availability while corresponding to a smaller noise scale. This hierarchical correspondence fundamentally eliminates the cause of protection imbalance under uniform noise intensity. Through adaptive round-robin scheduling based on normalized change frequency values ​​and the cumulative number of uncollected periods, hidden metadata categories of high-frequency changes are prioritized for inclusion in the task list in each collection period, shortening the collection latency of critical security configuration items; low-frequency change categories are supplemented by scheduling based on the cumulative number of uncollected periods, avoiding repeated occupation of permission access resources for the same low-frequency category in consecutive periods, thus forming a quantifiable balance between collection timeliness and permission access overhead.

[0043] The embodiments of the present invention have been described above. However, the embodiments are not limited to the specific implementation methods described above. The specific implementation methods described above are merely illustrative and not restrictive. Those skilled in the art can make more equivalent embodiments under the guidance of the present embodiments, and all of them are within the protection scope of the present embodiments.

Claims

1. A method for securely collecting hidden metadata from a database based on least privilege, characterized in that, Includes the following steps: Based on the security semantic sensitivity classification rules, sensitivity level labeling is performed on the hidden metadata fields of the target database, and a field classification mapping table is generated; The normalized change frequency value of each hidden metadata category is calculated, and an adaptive round-robin scheduling is performed based on the normalized change frequency value and the cumulative number of uncollected cycles to generate an adaptive collection task list. For each acquisition unit in the adaptive acquisition task list, a time-limited temporary minimum access token that only covers the corresponding system directory is generated. During the valid period of the token, a system directory query is performed to obtain the original record of hidden metadata. Differentiated privacy budget parameters are assigned based on the field hierarchical mapping table, Laplace noise of corresponding intensity is applied to each field, and incremental difference calculation is performed on the processed record set and the historical storage summary to generate a secure acquisition output.

2. The method for securely collecting hidden metadata from a database based on least privilege as described in claim 1, wherein, The security semantic sensitivity classification rule marks fields that directly affect permission boundaries as high sensitivity levels, fields that indirectly affect access behavior as medium sensitivity levels, and fields whose impact on security boundaries is negligible as low sensitivity levels. Among them, the high sensitivity level covers permission granting records, hidden field access control items, and role binding entries; the medium sensitivity level covers session policy configuration and resource quota definitions; and the low sensitivity level covers connection parameters and timeout configurations.

3. The method for securely collecting hidden metadata from a database based on least privilege as described in claim 1, wherein, The calculation of the normalized change frequency value satisfies: assuming a total of The first hidden metadata category, the... Categories in recent The frequency of changes within each data collection cycle is: ,in The total number of categories of hidden metadata. Number of collection cycles If it is a category index, then the first Normalized change frequency values ​​for each category for: ; in, For category indexing, This is the sum of change frequencies for all categories; for categories with missing periodic data in the change log summary, the missing periods are filled with the average change frequency of that category within the valid period before normalization is performed.

4. The method for securely collecting hidden metadata from a database based on least privilege as described in claim 1, wherein, The execution of the adaptive round-robin scheduling includes: setting the normalized change frequency value higher than a preset threshold. Hidden metadata categories are marked as priority acquisition units; normalized change frequency values ​​lower than [a certain value] are [selected as priority acquisition units]. The categories are sorted in descending order of cumulative uncollected periods, and the top ones are selected. One serves as a supplementary data acquisition unit, among which To supplement the upper limit of the number of acquisition units, priority acquisition units and supplementary acquisition units are merged to generate an adaptive acquisition task list. After each scheduling is completed, the cumulative number of unacquitted cycles of the categories included in the adaptive acquisition task list is reset to zero, and the cumulative number of unacquitted cycles of the categories not included is incremented by one.

5. The method for securely collecting hidden metadata from a database based on least privilege as described in claim 4, wherein, The adaptive round-robin scheduling also includes: including periods with an accumulated number of uncollected cycles exceeding a preset mandatory inclusion threshold. Hidden metadata categories are forcibly included in the supplementary collection unit of this cycle, among which The mandatory inclusion threshold is the cumulative number of uncollected periods. After mandatory inclusion, the remaining supplementary collection units are filled in descending order of the cumulative number of uncollected periods until the total number of supplementary collection units does not exceed [a certain threshold]. .

6. The method for securely collecting hidden metadata from a database based on least privilege as described in claim 1, wherein, The differentiated privacy budget parameters satisfy ,in , , These are the privacy budget parameters corresponding to high sensitivity, medium sensitivity, and low sensitivity levels, respectively; for sensitivity levels of... The original value of the field Protection value after applying Laplace noise satisfy: ; in, This refers to the global sensitivity of this field in the data collection scenario. This indicates sampling using a Laplace distribution with the values ​​in parentheses as the scale parameter. This is an index for sensitivity levels.

7. The method for securely collecting hidden metadata from a database based on least privilege as described in claim 6, wherein, The allocation of the differentiated privacy budget parameters also includes: a preset upper limit on the total privacy budget that can be consumed in each collection cycle. Before applying Laplace noise, the sum of the privacy budget parameters for each field in the adaptive data acquisition task list for this period is calculated. If the sum of these parameters exceeds... Then, the privacy budget parameter for high-sensitivity fields remains unchanged, while the privacy budget parameters for medium-sensitivity and low-sensitivity fields are reduced proportionally until the total consumption does not exceed [a certain threshold]. .

8. The method for securely collecting hidden metadata from a database based on least privilege as described in claim 1, wherein, The incremental difference calculation includes: comparing the processed record set with the historical storage summary one by one at the field level, extracting the entries whose field values ​​have changed as the change entry set; adding metadata category identifiers, adaptive rotation sequence numbers and a summary of the privacy budget parameters actually used by each field to the change entry set, and generating a secure collection output.

9. A database hidden metadata security collection system based on least privilege, characterized in that, include: The field annotation module is used to perform sensitivity level annotation on the hidden metadata fields of the target database according to the security semantic sensitivity classification rules, and generate a field classification mapping table. The frequency statistics module is used to count the change frequency of each hidden metadata category within the historical collection period, calculate the normalized change frequency value, and generate a set of change frequency vectors. The scheduling calculation module is used to perform adaptive round-robin scheduling based on the set of change frequency vectors and the current acquisition cycle number, and generate an adaptive acquisition task list; The token query module is used to generate a time-limited temporary minimum access token that covers only the corresponding system directory for each collection unit in the adaptive collection task list, and to perform a system directory query during the valid period of the token to obtain the original record of hidden metadata. The hierarchical protection module is used to assign differentiated privacy budget parameters to each field according to the field hierarchical mapping table, apply Laplace noise of corresponding intensity, and generate a set of hidden metadata records after hierarchical differential privacy protection. The incremental output module is used to perform incremental difference calculation on the set of hidden metadata records after hierarchical differential privacy protection and the historical storage summary, add the collected metadata, and generate a secure collection output.

10. The database hidden metadata security collection system based on least privilege as described in claim 9, wherein, The time-limited temporary minimum access token generated by the token query module has a limited scope of permissions within the system directory path set corresponding to the current collection unit. It does not include read permissions to other system directories, nor does it include any write permissions. The validity period of the token is set with an upper limit based on the estimated query time of the target system directory. Once the upper limit is exceeded, the token will automatically expire.