Privacy-preserving sensitive data detection system with multi-stage matching
A multi-stage hybrid matching pipeline addresses the challenge of detecting sensitive content within documents by using cryptographic hash matching, vector embeddings, and local LLM evaluation, ensuring data privacy and sovereignty, and enhancing compliance and detection accuracy.
Patent Information
- Application Number
- US19/678516
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Priority Date
- 2025-05-21
- Filing Date
- 2026-05-15
- Publication Date
- 2026-11-26
AI Technical Summary
Existing data scanning solutions face challenges in identifying sensitive information across diverse environments while maintaining data privacy, sovereignty, and operational efficiency, leading to security risks, compliance gaps, and inefficiencies.
A multi-stage hybrid matching pipeline that combines cryptographic hash matching for exact matches, vector embedding comparison for semantic matches, and local large language model evaluation to identify sensitive content within documents, operating entirely within the customer's computing environment.
The system provides precise and accurate detection of sensitive content, maintains data privacy and sovereignty, reduces operational inefficiencies, and enhances compliance by operating locally without exposing sensitive data, thus reducing the risk of breaches and improving detection rates.
Smart Images

Figure US20260379638A1-D00000_ABST
Abstract
Description
RELATED APPLICATION
[0001] Under provisions of 35 U.S.C. § 119(e), the Applicant claims benefit of U.S. Provisional Application No. 63 / 809,936 filed on May 21, 2025, and having inventors in common, which is incorporated herein by reference in its entirety.
[0002] It is intended that each of the referenced applications may be applicable to the concepts and embodiments disclosed herein, even if such concepts and embodiments are disclosed in the referenced application(s) with different limitations and configurations and described using different examples and terminology.FIELD OF DISCLOSURE
[0003] The present disclosure generally relates to data security and privacy protection systems for identifying sensitive information within documents and structured data sources. More specifically, the present disclosure relates to privacy-preserving scanning architectures that combine cryptographic hash matching, vector embedding-based semantic search, and local large language model evaluation to detect both exact and semantic matches of sensitive data while operating entirely within customer controlled infrastructure.BACKGROUND
[0004] In some situations, organizations need to identify and protect sensitive information within their data repositories. For example, enterprises must scan their document repositories to detect personally identifiable information (PII), protected health information (PHI), and other confidential data to comply with regulations such as GDPR, CCPA, and HIPAA. Thus, the conventional strategy is to utilize data loss prevention (DLP) and data discovery solutions that require uploading sensitive data to third-party cloud environments for processing and analysis. This often causes problems because the conventional strategy does not maintain data privacy and sovereignty throughout the scanning process. For example, when organizations use traditional DLP solutions, they typically must either upload their sensitive data directly to vendor cloud environments, install proprietary connectors that process data and transmit results externally, or make API calls to external services for data matching.
[0005] Current data scanning solutions create significant privacy and compliance challenges for organizations in regulated industries. Most existing technologies primarily rely on exact matching through hashing techniques with limited semantic understanding of the content being scanned. These systems struggle to identify variants, misspellings, or conceptually similar content that does not match exactly. Additionally, traditional scanning solutions often use stateful scanners that maintain persistent data, creating potential security risks if these systems are compromised.
[0006] The performance limitations of conventional systems are also problematic for large enterprises. Existing solutions can take months to scan petabytes of data, with limited scalability options that require manual configuration. Many solutions are not designed for modern containerized environments with ephemeral workloads, making them inefficient in cloud-native infrastructures. Furthermore, current systems typically deliver results only after the entire scanning process completes, preventing organizations from taking immediate action on discovered sensitive data.
[0007] In some situations, organizations face significant operational challenges when implementing data scanning solutions across distributed environments. For example, organizations with multi-region operations must balance local data residency requirements with global security policies while maintaining consistent detection capabilities. Thus, the conventional strategy is to deploy individual scanning solutions in each geographic region with separate configurations and management interfaces. This often causes problems because the conventional strategy does not provide unified management or consistent policy enforcement across regions. For example, different scanning implementations may identify different types of sensitive data based on regional configurations, leading to inconsistent protection and compliance gaps.
[0008] Financial institutions face particular challenges when implementing data scanning across their complex environments. These organizations must maintain strict data boundaries between different business units while still providing comprehensive security coverage. Traditional scanning approaches require separate deployments for investment banking, retail banking, and wealth management divisions, creating administrative overhead and inconsistent results. When scanning solutions operate in isolation, they cannot correlate related sensitive information across business boundaries, limiting their effectiveness for enterprise-wide risk assessment.
[0009] Healthcare organizations encounter unique obstacles when implementing data scanning solutions due to the diverse nature of their data repositories. Medical records contain structured and unstructured data across numerous systems including electronic health records, imaging systems, and research databases. Conventional scanning solutions typically specialize in either structured or unstructured data analysis, forcing healthcare providers to implement multiple disconnected scanning technologies. This fragmented approach creates security blind spots where sensitive patient information may remain undetected.
[0010] Manufacturing companies with complex supply chains face difficulties protecting intellectual property across collaborative environments. These organizations must scan data shared with suppliers, contractors, and partners while maintaining strict controls over proprietary information. Traditional scanning approaches require either granting external vendors access to internal scanning systems or implementing separate scanning solutions for each collaborative relationship. Both approaches introduce significant security and operational inefficiencies that can delay critical business processes.
[0011] Public sector organizations encounter substantial challenges implementing effective data scanning due to legacy infrastructure constraints. Government agencies often maintain decades-old systems alongside modern cloud deployments, requiring scanning solutions that can operate across diverse technological environments. Conventional scanning technologies typically focus on either legacy or cloud environments, forcing public sector organizations to maintain multiple scanning systems with different capabilities and management interfaces. This approach increases operational complexity and creates inconsistent security coverage across the organization.
[0012] Several commercial solutions attempt to address these challenges but introduce additional problems. Microsoft Purview offers data scanning capabilities but requires organizations to upload sensitive data to Microsoft's cloud environment for processing. This approach creates data sovereignty concerns for organizations operating under strict regulatory requirements. Zscaler provides an on-premises edge connector that hashes sensitive data locally but still transmits these hashes to their cloud service for matching. This partial solution maintains some data within the organization but still exposes data representations externally. BigID offers more comprehensive scanning capabilities but requires significant infrastructure investments and introduces performance bottlenecks when scanning large data repositories.
[0013] Open-source tools like Presidio provide basic scanning capabilities but lack the sophisticated matching algorithms needed for enterprise environments. These tools typically rely on regular expression patterns that generate high false positive rates and require extensive tuning. Other solutions like Amazon Macie offer cloud-native scanning but only within specific cloud environments, limiting their usefulness for organizations with hybrid or multi-cloud infrastructures.
[0014] The limitations of existing scanning solutions force organizations to make difficult trade-offs between security, privacy, and operational efficiency. Organizations must choose between exposing sensitive data to third parties, implementing multiple disconnected scanning solutions, or accepting significant performance limitations. These compromises create security gaps, compliance risks, and operational inefficiencies that impact business operations and data protection strategies.
[0015] Thus, there is a need for a comprehensive solution that addresses the multifaceted challenges in data scanning while maintaining strict privacy, security, and operational efficiency across diverse environments. The limitations of existing technologies force organizations to make unacceptable trade-offs between data protection and regulatory compliance, creating significant business risks. A unified approach is needed that can operate within organizational boundaries, provide both exact and semantic matching capabilities, scale efficiently across distributed infrastructures, maintain consistent policy enforcement, and accommodate the unique requirements of different industries without compromising data sovereignty or detection accuracy. Without such a solution, organizations will continue to face escalating compliance penalties, potential data breaches, operational inefficiencies, and inability to effectively protect sensitive information across increasingly complex and regulated digital environments.BRIEF OVERVIEW
[0016] This brief overview is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This brief overview is not intended to identify key features or essential features of the claimed subject matter. Nor is this brief overview intended to be used to limit the claimed subject matter's scope.
[0017] A system for privacy-preserving sensitive data matching may comprise a processor and a memory storing instructions that, when executed by the processor, may cause the system to receive a set of sensitive values and store cryptographic hashes of the sensitive values in a secure in-memory hash table. The system may extract text from a document and tokenize the extracted text into sequences. The system may generate cryptographic hashes of the token sequences and compare the generated cryptographic hashes against the secure in-memory hash table to identify exact matches. The system may segment the extracted text into fixed-size chunks and generate vector embeddings for the fixed-size chunks. The system may perform a nearest-neighbor search using the generated vector embeddings against a local vector index to identify semantic matches. The system may construct prompts incorporating the identified exact matches and semantic matches and execute a local large language model (LLM) to evaluate match candidates and generate match decisions with confidence scores. The system may output match results indicating locations and confidence levels of matches without transmitting raw document content, embeddings, or vectors outside the system.
[0018] An apparatus for privacy-preserving sensitive data detection may comprise a text extraction module configured to extract textual content from input documents and structured data sources. The apparatus may comprise a hash matching module configured to generate cryptographic hashes of token sequences from the extracted textual content and compare the generated cryptographic hashes against a secure in-memory hash table of sensitive values to identify exact matches. The apparatus may comprise an embedding generation module configured to segment the extracted textual content into fixed-size chunks, generate vector embeddings for each chunk, and store the vector embeddings in memory. The apparatus may comprise a vector similarity search module configured to perform nearest-neighbor searches between the chunk embeddings and sensitive value embeddings and identify semantic matches based on similarity scores exceeding a threshold value. The apparatus may comprise an LLM evaluation module configured to construct context-aware prompts incorporating identified exact and semantic matches, process the prompts using a local large language model, and generate match decisions with confidence scores. The apparatus may comprise a secure destruction module configured to securely destroy all sensitive data, embeddings, hash values, and temporary data from memory upon completion of processing. The apparatus may comprise a configuration and update management module configured to receive and apply model and configuration updates from an external service without exposing local data. The apparatus may comprise a results output and reporting module configured to output match results indicating locations and confidence levels without transmitting raw document content, embeddings, or vectors outside the apparatus.
[0019] A method for privacy-preserving sensitive data matching may comprise receiving a set of sensitive values for matching against document content. The method may comprise generating cryptographic hashes of the sensitive values. The method may comprise storing the cryptographic hashes in a secure in-memory hash table. The method may comprise extracting text from a document. The method may comprise tokenizing the extracted text into sequences. The method may comprise generating cryptographic hashes of the tokenized sequences. The method may comprise comparing the generated cryptographic hashes against the secure in-memory hash table to identify exact matches. The method may comprise segmenting the extracted text into fixed-size chunks. The method may comprise generating vector embeddings for the fixed-size chunks. The method may comprise performing a nearest-neighbor search using the generated vector embeddings to identify semantic matches. The method may comprise constructing prompts incorporating the identified exact matches and semantic matches. The method may comprise executing a local large language model (LLM) to evaluate the match candidates. The method may comprise outputting match results indicating locations and confidence levels of matches without exposing sensitive data.
[0020] A method for multi-stage privacy-preserving data matching may comprise receiving a set of sensitive values for matching against document content. The method may comprise storing the sensitive values securely in an ephemeral memory structure. The method may comprise extracting text content from a document. The method may comprise performing a first-stage exact match by tokenizing the extracted text into n-gram sequences. The first-stage exact match may comprise generating cryptographic hash values for the n-gram sequences. The first-stage exact match may comprise comparing the generated hash values against hash values of the sensitive values. The first-stage exact match may comprise identifying exact matches based on hash value correspondence. The method may comprise performing a second-stage semantic match by dividing the extracted text into chunks of predetermined size. The second-stage semantic match may comprise generating vector embeddings for each chunk. The second-stage semantic match may comprise comparing the generated vector embeddings against vector embeddings of the sensitive values using a similarity search algorithm. The second-stage semantic match may comprise identifying semantic matches based on similarity scores exceeding a threshold. The method may comprise performing a third-stage contextual analysis by constructing a prompt containing identified matches from the first and second stages along with surrounding context. The third-stage contextual analysis may comprise submitting the prompt to a local large language model. The third-stage contextual analysis may comprise analyzing the language model response to confirm or reject candidate matches. The third-stage contextual analysis may comprise assigning confidence scores to confirmed matches. The method may comprise generating a match report containing only document identifiers, match locations, and confidence scores. The method may comprise securely destroying all sensitive values, hash values, and vector embeddings from memory upon completion of the matching process.
[0021] Both the foregoing brief overview and the following detailed description provide examples and are explanatory only. Accordingly, the foregoing brief overview and the following detailed description should not be considered to be restrictive. Further, features or variations may be provided in addition to those set forth herein. For example, embodiments may be directed to various feature combinations and sub-combinations described in the detailed description.BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings, which are incorporated in and constitute a part of this disclosure, illustrate various embodiments of the present disclosure. The drawings contain representations of various trademarks and copyrights owned by the Applicant. In addition, the drawings may contain other marks owned by third parties and are being used for illustrative purposes only. All rights to various trademarks and copyrights represented herein, except those belonging to their respective owners, are vested in and the property of the Applicant. The Applicant retains and reserves all rights in its trademarks and copyrights included herein, and grants permission to reproduce the material only in connection with reproduction of the granted patent and for no other purpose.
[0023] Furthermore, the drawings may contain text or captions that may explain certain embodiments of the present disclosure. This text is included for illustrative, non-limiting, explanatory purposes of certain embodiments detailed in the present disclosure. In the drawings:
[0024] FIG. 1 illustrates a block diagram of an operating environment consistent with the present disclosure.
[0025] FIG. 2 is a flow chart of a method for providing privacy-preserving sensitive data detection system with multi-stage matching.
[0026] FIG. 3 is a block diagram of a system including a computing device for performing the method of FIG. 2.DETAILED DESCRIPTION
[0027] As a preliminary matter, it will readily be understood by one having ordinary skill in the relevant art that the present disclosure has broad utility and application. As should be understood, any embodiment may incorporate only one or a plurality of the above-disclosed aspects of the disclosure and may further incorporate only one or a plurality of the above-disclosed features. Furthermore, any embodiment discussed and identified as being “preferred” is considered to be part of a best mode contemplated for carrying out the embodiments of the present disclosure. Other embodiments also may be discussed for additional illustrative purposes in providing a full and enabling disclosure. Moreover, many embodiments, such as adaptations, variations, modifications, and equivalent arrangements, will be implicitly disclosed by the embodiments described herein and fall within the scope of the present disclosure.
[0028] Accordingly, while embodiments are described herein in detail in relation to one or more embodiments, it is to be understood that this disclosure is illustrative and exemplary of the present disclosure and are made merely to provide a full and enabling disclosure. The detailed disclosure herein of one or more embodiments is not intended, nor is to be construed, to limit the scope of patent protection afforded in any claim of a patent issuing here from, which scope is to be defined by the claims and the equivalents thereof. It is not intended that the scope of patent protection be defined by reading into any claim a limitation found herein that does not explicitly appear in the claim itself.
[0029] Thus, for example, any sequence(s) and / or temporal order of steps of various processes or methods that are described herein are illustrative and not restrictive. Accordingly, it should be understood that, although steps of various processes or methods may be shown and described as being in a sequence or temporal order, the steps of any such processes or methods are not limited to being carried out in any particular sequence or order, absent an indication otherwise. Indeed, the steps in such processes or methods generally may be carried out in various different sequences and orders while still falling within the scope of the present invention. Accordingly, it is intended that the scope of patent protection is to be defined by the issued claim(s) rather than the description set forth herein.
[0030] Additionally, it is important to note that each term used herein refers to that which an ordinary artisan would understand such a term to mean based on the contextual use of the term herein. To the extent that the meaning of a term used herein—as understood by the ordinary artisan based on the contextual use of such term—differs in any way from any particular dictionary definition of such term, it is intended that the meaning of the term as understood by the ordinary artisan should prevail.
[0031] Regarding applicability of 35 U.S.C. § 112, ¶6, no claim element is intended to be read in accordance with this statutory provision unless the explicit phrase “means for” or “step for” is actually used in such claim element, whereupon this statutory provision is intended to apply in the interpretation of such claim element.
[0032] Furthermore, it is important to note that, as used herein, “a” and “an” each generally denotes “at least one,” but does not exclude a plurality unless the contextual use dictates otherwise. When used herein to join a list of items, “or” denotes “at least one of the items,” but does not exclude a plurality of items of the list. Finally, when used herein to join a list of items, “and” denotes “all of the items of the list.”
[0033] The following detailed description refers to the accompanying drawings. Wherever possible, the same reference numbers are used in the drawings and the following description to refer to the same or similar elements. While many embodiments of the disclosure may be described, modifications, adaptations, and other implementations are possible. For example, substitutions, additions, or modifications may be made to the elements illustrated in the drawings, and the methods described herein may be modified by substituting, reordering, or adding stages to the disclosed methods. Accordingly, the following detailed description does not limit the disclosure. Instead, the proper scope of the disclosure is defined by the appended claims. The present disclosure contains headers. It should be understood that these headers are used as references and are not to be construed as limiting upon the subject matter disclosed under the header.
[0034] In modern enterprise environments, organizations face significant challenges in identifying and protecting sensitive information within their data repositories. These challenges include the need to accurately detect personally identifiable information (PII), protected health information (PHI), financial data, and other confidential content across large document repositories. Traditional approaches to sensitive data detection may involve transferring documents or data to third-party services for analysis, which may create privacy and security risks. Organizations subject to strict regulatory requirements such as GDPR, HIPAA, PCI-DSS, and other data protection regulations may be prohibited from sharing sensitive data with external systems.
[0035] One technical problem being addressed relates to how organizations can effectively identify sensitive content within their documents while maintaining data sovereignty and privacy. This involves several specific technical challenges:
[0036] First, organizations may need to determine if specific sensitive values (such as customer names, social security numbers, or account identifiers, among other things) appear within their document repositories without exposing those sensitive values to external systems. For example, a healthcare provider may need to locate all documents containing specific patient identifiers, without transmitting those identifiers or the documents outside their secure environment.
[0037] Second, sensitive data detection systems may need to identify not just exact matches of sensitive content, but also semantic variations or contextual references that may indicate the presence of sensitive information. For instance, a document may not contain an exact match of a protected value, but may contain semantically similar content that refers to the same sensitive information.
[0038] Third, the processing of documents for sensitive content detection may need to occur at scale, potentially involving millions of documents across various storage systems, while maintaining strict privacy controls throughout the entire process.
[0039] Fourth, organizations may require detailed information about the presence and context of sensitive content without exposing the actual sensitive values, enabling them to take appropriate remediation actions while maintaining privacy.
[0040] To illustrate these challenges in an example use case, consider a financial institution that maintains a large repository of documents including customer communications, transaction records, and internal reports. The institution may need to identify all documents containing specific customer account numbers and / or personal identifiers to ensure proper data governance. However, they may be prohibited by regulations from transmitting these sensitive values or the documents containing them to external systems for analysis. The institution may need a solution that can accurately identify documents containing these sensitive values, including semantic variations, while maintaining complete data privacy and providing detailed match information for remediation purposes.
[0041] Similar challenges may exist in healthcare environments where patient identifiers and medical information must be located across document repositories while maintaining strict HIPAA compliance, or in legal environments where privileged or confidential information must be identified while maintaining attorney-client privilege.
[0042] The technical problem therefore centers on how to create a system that can accurately identify sensitive content within documents, including both exact and semantic matches, while maintaining complete data privacy and sovereignty, operating entirely within the organization's secure environment, and providing detailed match information without exposing the sensitive content itself.
[0043] In response to the technical problem identified, the present disclosure provides a system for privacy-preserving sensitive data matching that may operate entirely within a customer's own computing environment. This approach may address the need for organizations to identify sensitive information within their document repositories while maintaining complete data sovereignty and privacy.
[0044] The system may employ a multi-stage hybrid matching pipeline that combines several techniques to accurately identify sensitive content within documents. The pipeline may include cryptographic hash matching for exact matches, vector embedding comparison for semantic matches, and local large language model (LLM) evaluation for contextual verification.
[0045] In one embodiment, the system may receive a set of sensitive values that require protection and identification within document repositories. These values may include personally identifiable information (PII), protected health information (PHI), financial account numbers, and / or other confidential information. The system may generate cryptographic hashes of these sensitive values and store them in a secure in-memory hash table that exists only during the scanning operation.
[0046] When processing documents, the system may extract text from each document and generate cryptographic hashes of token sequences from the extracted text. These generated hashes may be compared against the secure in-memory hash table to identify exact matches of sensitive values within the document. This approach may allow for precise identification of sensitive content without exposing the actual sensitive values.
[0047] For semantic matching capabilities, the system may segment the extracted text into fixed-size chunks and generate vector embeddings for these chunks. The system may perform a nearest-neighbor search using these embeddings to identify semantic matches—instances where the document may contain variations or contextual references to the sensitive information rather than exact matches.
[0048] The results from both the exact matching and semantic matching stages may be combined and evaluated by a local large language model (LLM) that operates entirely within the customer environment. The LLM may analyze the context surrounding potential matches to confirm true positives and filter out false positives, providing a more accurate determination of whether sensitive information is present.
[0049] For cases where the confidence in a match determination may be below a predetermined threshold, the system may escalate to a higher-precision analysis. This may involve retrieving the sensitive cleartext values from the in-memory hash table, incorporating them into prompts for the local LLM, and generating final match decisions with confidence scores based on this more detailed analysis.
[0050] Throughout the entire process, no sensitive data, document content, embeddings, or vectors may leave the customer environment. The system may output only minimal match results, which may include file identifiers, match flags, confidence levels, and scan result traces showing the determination process through multiple stages of analysis.
[0051] The system may be deployed as a container within the customer computing environment, with the secure in-memory hash table and the vector embedding table stored exclusively in memory during scanning operations. Upon completion of scanning operations, the system may securely destroy the in-memory hash table and embedding table, along with any temporary data, ensuring that no sensitive information persists after the scanning process is complete.
[0052] The system may also include a mechanism for receiving model and configuration updates from a software-as-a-service (SaaS) tenant service. These updates may be applied to local matching algorithms without exposing local data to the SaaS tenant service, allowing the system to stay current with the latest detection capabilities while maintaining data privacy.
[0053] This privacy-preserving approach may be particularly valuable for organizations subject to strict regulatory requirements such as (but not limited to) GDPR, HIPAA, PCI-DSS, and other data protection regulations. It may enable these organizations to effectively identify sensitive content within their document repositories while maintaining complete control over their data and ensuring compliance with privacy regulations.
[0054] The system may be applicable across various industries and use cases, including financial institutions seeking to identify customer account information, healthcare providers locating patient records, legal firms protecting privileged communications, and any organization that needs to identify specific sensitive information within their document repositories while maintaining strict privacy controls.
[0055] The privacy-preserving sensitive data matching system described in the invention provides numerous technical advantages over prior art approaches. The system may offer enhanced data sovereignty by operating entirely within a customer's computing environment, eliminating the need to transmit sensitive data to third-party services for analysis. This architecture may address critical compliance requirements for organizations subject to regulations such as GDPR, HIPAA, PCI-DSS, and other data protection frameworks that restrict the sharing of sensitive information with external systems.
[0056] A technical advantage may be found in the multi-stage hybrid matching pipeline that combines several sophisticated techniques. The use of cryptographic hash matching for exact matches may provide precise identification capabilities without exposing the actual sensitive values. This approach may significantly reduce the risk of data breaches during the scanning process, as the original sensitive values may only exist temporarily in a secure in-memory hash table that persists only during scanning operations.
[0057] The vector embedding comparison stage for semantic matches may offer substantial improvements over traditional exact-matching techniques. By generating vector embeddings for document chunks and performing nearest-neighbor searches, the system may identify semantic variations or contextual references to sensitive information that would be missed by conventional hash-matching approaches. This capability may be particularly valuable for identifying sensitive content that has been paraphrased or referenced indirectly.
[0058] The incorporation of a local large language model (LLM) for contextual verification may provide a significant technical advantage in accuracy and false positive reduction. By analyzing the context surrounding potential matches, the LLM may confirm true positives and filter out false positives, providing more accurate determinations of whether sensitive information is present. This contextual awareness may substantially reduce the burden of manual review typically required with traditional pattern-matching systems.
[0059] The system's escalation mechanism for cases where match confidence is below a predetermined threshold may offer enhanced precision in borderline cases. By retrieving sensitive cleartext values from the in-memory hash table and incorporating them into prompts for the local LLM, the system may generate more accurate final match decisions with appropriate confidence scores. This approach may balance the need for privacy with the requirement for high-precision analysis in challenging cases.
[0060] A significant technical advantage may be found in the system's container-based deployment model. By operating as a container within the customer computing environment, the system may provide isolation and secure lifecycle management. Upon completion of scanning operations, the secure in-memory hash table and any temporary data may be securely destroyed, ensuring that no sensitive information persists after the scanning process is complete. This ephemeral nature may substantially reduce the attack surface and potential for data leakage.
[0061] The system's mechanism for receiving model and configuration updates from a software-as-a-service (SaaS) tenant service may provide ongoing improvements without compromising data privacy. These updates may be applied to local matching algorithms without exposing local data to the SaaS tenant service, allowing the system to maintain current detection capabilities while preserving data sovereignty. This approach may balance the benefits of centralized management with the requirements of data privacy.
[0062] The minimal output approach may offer technical advantages in reducing potential data leakage vectors. By outputting only file identifiers, match flags, confidence levels, and scan result traces showing the determination process, the system may provide actionable information without exposing sensitive content. This design may significantly reduce the risk of inadvertent data exposure during result transmission and storage.
[0063] The system's architecture may offer superior scalability compared to traditional approaches. By performing all processing locally within the customer environment, the system may avoid bandwidth limitations and latency issues associated with transmitting large volumes of data to external services. This local processing approach may enable more efficient scanning of large document repositories, potentially reducing overall scan times and computational resource requirements.
[0064] The combination of multiple matching techniques within a unified pipeline may provide more comprehensive coverage than single-technique approaches. By leveraging the strengths of cryptographic hashing, vector embeddings, and LLM analysis, the system may identify a broader range of sensitive content patterns, including exact matches, semantic variations, and contextual references. This hybrid approach may substantially improve detection rates compared to systems relying on a single matching technique.
[0065] The present disclosure includes many aspects and features. Moreover, while many aspects and features relate to, and are described in, the context of a privacy-preserving exact and semantic match platform, embodiments of the present disclosure are not limited to use only in this context.I. Platform Overview
[0066] This overview is provided to introduce a selection of concepts in a simplified form that are further described below. This overview is not intended to identify key features or essential features of the claimed subject matter. Nor is this overview intended to be used to limit the claimed subject matter's scope.
[0067] The present disclosure may provide a privacy-preserving sensitive data matching system that may operate entirely within a customer's computing environment. This approach may enable organizations to identify sensitive information within their document repositories while maintaining complete data sovereignty and privacy. The system may allow organizations to effectively detect personally identifiable information (PII), protected health information (PHI), financial data, and / or other confidential content across large document repositories without exposing this sensitive data to external systems or third-party services.
[0068] The system may employ a multi-stage hybrid matching pipeline that may combine several sophisticated techniques to accurately identify sensitive content within documents. This pipeline may include cryptographic hash matching for exact matches, vector embedding comparison for semantic matches, and local large language model (LLM) evaluation for contextual verification. This multi-faceted approach may allow for comprehensive detection of sensitive information in various forms and contexts.
[0069] When processing documents, the system may extract text from each document and generate cryptographic hashes of token sequences from the extracted text. These generated hashes may be compared against a secure in-memory hash table to identify exact matches of sensitive values within the document. For semantic matching capabilities, the system may segment the extracted text into fixed-size chunks and generate vector embeddings for these chunks. The system may then perform a nearest-neighbor search using these embeddings to identify semantic matches-instances where the document may contain variations or contextual references to the sensitive information rather than exact matches.
[0070] The results from both the exact matching and semantic matching stages may be combined and evaluated by a local large language model (LLM) that may operate entirely within the customer environment. The LLM may analyze the context surrounding potential matches to confirm true positives and filter out false positives, providing a more accurate determination of whether sensitive information may be present. For cases where the confidence in a match determination may be below a predetermined threshold, the system may escalate to a higher-precision analysis.
[0071] Throughout the entire process, no sensitive data, document content, embeddings, or vectors may leave the customer environment. The system may output only minimal match results, which may include file identifiers, match flags, confidence levels, and scan result traces showing the determination process through multiple stages of analysis. The system may be deployed as a container within the customer computing environment, with the secure in-memory hash table stored exclusively in memory during scanning operations. Upon completion of scanning operations, the system may securely destroy the in-memory hash table and any temporary data, ensuring that no sensitive information persists after the scanning process is complete.
[0072] This privacy-preserving approach may be particularly valuable for organizations subject to strict regulatory requirements such as GDPR, HIPAA, PCI-DSS, and other data protection regulations. It may enable these organizations to effectively identify sensitive content within their document repositories while maintaining complete control over their data and ensuring compliance with privacy regulations. The system may be applicable across various industries and use cases, including financial institutions seeking to identify customer account information, healthcare providers locating patient records, legal firms protecting privileged communications, and any organization that needs to identify specific sensitive information within their document repositories while maintaining strict privacy controls.
[0073] Embodiments of the present disclosure may comprise methods, systems, and a computer readable medium comprising, but not limited to, at least one of the following:
[0074] A. A Text Extraction Module
[0075] B. A Hash Matching Module
[0076] C. An Embedding Generation Module
[0077] D. A Vector Similarity Search Module
[0078] E. A Large Language Model Evaluation Module
[0079] F. A Secure Destruction Module
[0080] G. Configuration and Update Management Module
[0081] H. Results Output and Reporting Module
[0082] Details with regards to each module are provided below. Although modules are disclosed with specific functionality, it should be understood that functionality may be shared between modules, with some functions split between modules, while other functions duplicated by the modules. Furthermore, the name of each module should not be construed as limiting upon the functionality of the module. Moreover, each component disclosed within each module can be considered independently, without the context of the other components within the same module or different modules. Each component may contain functionality defined in other portions of this specification. Each component disclosed for one module may be mixed with the functionality of other modules. In the present disclosure, each component can be claimed on its own and / or interchangeably with other components of other modules.
[0083] The following depicts an example of a method of a plurality of methods that may be performed by at least one of the aforementioned modules, or components thereof. Various hardware components may be used at the various stages of the operations disclosed with reference to each module. For example, although methods may be described to be performed by a single computing device, it should be understood that, in some embodiments, different operations may be performed by different networked elements in operative communication with the computing device. For example, at least one computing device 300 may be employed in the performance of some or all of the stages disclosed with regard to the methods. Similarly, an apparatus may be employed in the performance of some or all of the stages of the methods. As such, the apparatus may comprise at least those architectural components as found in computing device 300.
[0084] Furthermore, although the stages of the following example method are disclosed in a particular order, it should be understood that the order is disclosed for illustrative purposes only. Stages may be combined, separated, reordered, and various intermediary stages may exist. Accordingly, it should be understood that the various stages, in various embodiments, may be performed in orders that differ from the ones disclosed below. Moreover, various stages may be added or removed without altering or departing from the fundamental scope of the depicted methods and systems disclosed herein.
[0085] Consistent with embodiments of the present disclosure, a method may be performed by at least one of the modules disclosed herein. The method may be embodied as, for example, but not limited to, computer instructions which, when executed, perform the method. The method may comprise the following stages:
[0086] receiving a set of sensitive values for matching against document content;
[0087] generating cryptographic hashes of the sensitive values;
[0088] storing the cryptographic hashes in a secure in-memory hash table;
[0089] generating vector embeddings of the sensitive values;
[0090] storing the vector embedding in a secure in-memory vector embedding table;
[0091] extracting text from a document;
[0092] tokenizing the extracted text into sequences;
[0093] generating cryptographic hashes of the tokenized sequences;
[0094] comparing the generated cryptographic hashes against the secure in-memory hash table to identify exact matches;
[0095] segmenting the extracted text into fixed-size chunks;
[0096] generating vector embeddings for the fixed-size chunks;
[0097] performing a search (e.g., a nearest neighbor search, cosine similarity search, and / or the like) using the generated vector embeddings to identify semantic matches;
[0098] constructing prompts incorporating the identified exact matches and semantic matches;
[0099] executing a local large language model (LLM) to evaluate the match candidates; and
[0100] outputting match results indicating locations and confidence levels of matches without exposing sensitive data.
[0101] Although the aforementioned method has been described to be performed by the platform 100, it should be understood that computing device 300 may be used to perform the various stages of the method. Furthermore, in some embodiments, different operations may be performed by different networked elements in operative communication with computing device 300. For example, a plurality of computing devices may be employed in the performance of some or all of the stages in the aforementioned method. Moreover, a plurality of computing devices may be configured much like a single computing device 300. Similarly, an apparatus may be employed in the performance of some or all stages in the method. The apparatus may also be configured much like computing device 300.
[0102] Both the foregoing overview and the following detailed description provide examples and are explanatory only. Accordingly, the foregoing overview and the following detailed description should not be considered to be restrictive. Further, features or variations may be provided in addition to those set forth herein. For example, embodiments may be directed to various feature combinations and sub-combinations described in the detailed description.II. Platform Configuration
[0103] FIG. 1 illustrates one possible operating environment through which a platform consistent with embodiments of the present disclosure may be provided. By way of non-limiting example, a privacy-preserving exact and semantic match platform 100 may be hosted on, for example, a cloud computing service. In some embodiments, the platform 100 may be hosted on a computing device 300. A user may access platform 100 through a software application and / or hardware device. The software application may be embodied as, for example, but not be limited to, a website, a web application, a desktop application, and a mobile application compatible with the computing device 300.
[0104] The platform 100 may be designed for flexible deployment within a customer's computing environment, with careful attention to lifecycle management to ensure privacy and security throughout the system's operation. The deployment model may be containerized, allowing for efficient resource utilization, isolation, and secure destruction after scanning operations are complete.
[0105] The platform 100 may be packaged as a container image that includes all necessary components, including the text extraction module, hash matching module, embedding generation module, vector similarity search module, LLM evaluation module, and secure destruction module. This containerized approach may provide isolation from other systems and may facilitate complete removal after scanning operations.
[0106] Deployment of the platform 100 may be initiated through a container orchestration platform such as Kubernetes, Docker Swarm, or similar technologies. The deployment process may include configuration of resource allocations, network settings, and access controls to ensure proper operation and security.
[0107] During initialization, the platform 100 may load necessary models, configurations, and sensitive value sets into memory. The sensitive values may be immediately transformed into secure representations (hashes and embeddings) to minimize the duration that cleartext sensitive values may exist in memory.
[0108] The platform 100 may operate with a defined lifecycle that includes initialization, active scanning, and secure destruction phases. This lifecycle approach may ensure that sensitive data may only exist within the system for the minimum time necessary to complete scanning operations.
[0109] Resource management during operation may balance performance and resource utilization. The platform 100 may implement dynamic resource allocation based on workload characteristics, scaling resource usage as needed for different phases of the scanning operation.
[0110] Monitoring and health checks may be implemented to ensure proper operation throughout the scanning process. These health checks may include component status verification, resource utilization monitoring, and error detection to identify and address operational issues.
[0111] Upon completion of scanning operations, the platform 100 may initiate a controlled shutdown process that includes secure destruction of sensitive data and termination of the container. This shutdown process may be triggered by the completion of all scanning tasks, an explicit administrative directive, or a configured idle timeout.
[0112] The platform 100 may support on-demand deployment for specific scanning operations and / or persistent deployment for continuous monitoring scenarios. In persistent deployment scenarios, the platform 100 may still implement secure destruction of sensitive data between scanning operations while maintaining the base container infrastructure.
[0113] Integration with existing enterprise systems may be facilitated through standardized interfaces for job submission, result retrieval, and management operations. These interfaces may enable the system to operate as part of a broader data protection ecosystem while maintaining its privacy-preserving characteristics.
[0114] The containerized deployment model may provide additional security benefits through isolation from other systems and the ability to apply security hardening measures specific to the container environment. These measures may include reduced privileges, read-only file systems for immutable components, and network isolation to minimize attack surface.
[0115] The boundary within which all sensitive data processing operations may occur may be referred to herein as the secure processing environment. The secure processing environment may encompass the customer computing environment, including the container and all memory resources, processing units, and storage locations allocated to the scanning operation within the customer-controlled infrastructure. The secure processing environment may be implemented as a containerized execution context, a dedicated on-premises computing infrastructure, a private cloud deployment, or any other computing environment in which the organization maintains exclusive data sovereignty. Data may be considered to remain within the secure processing environment so long as it does not traverse a network boundary to a system outside the customer's exclusive control, regardless of whether that external system is operated by a third party, a cloud service provider, or any other entity. No sensitive values, document content, vector embeddings, cryptographic hashes of document text, or match results may be transmitted outside the secure processing environment during any phase of the scanning operation.
[0116] In some embodiments, the system may implement a batch processing mode where multiple documents may be processed in batches rather than individually. This batch processing approach may improve throughput for large document collections by amortizing initialization costs across multiple documents and enabling more efficient resource utilization. The batch size may be configurable based on available memory and processing resources.
[0117] The system may support various document input mechanisms beyond direct file processing. These mechanisms may include integration with document management systems, email servers, cloud storage providers, and other enterprise data repositories. The integration may be implemented through standardized connectors that maintain the privacy-preserving characteristics of the system while enabling access to diverse document sources.
[0118] For organizations with extremely high privacy requirements, the system may implement a zero-knowledge approach where even the in-memory hash table may not contain the original sensitive values. In this configuration, the sensitive values may be pre-hashed before being provided to the system, ensuring that the original values may never exist within the system's memory. This approach may provide an additional layer of privacy protection at the cost of reduced flexibility in the escalation process.
[0119] The zero-knowledge input mode may pre-hash sensitive values before they are provided to the system, such that cleartext sensitive values may never exist within the system's memory at any point during operation. In this configuration, the caller may compute cryptographic hashes of the sensitive values externally and may supply only those hashes to the system as input. The secure in-memory hash table may be populated exclusively with the pre-computed hashes, and no cleartext sensitive value may be stored, derived, or reconstructed within the system. Because cleartext values may not be available during operation, the escalation mechanism that incorporates sensitive cleartext values into LLM prompts may be unavailable in this mode. The system may indicate in the match report that zero-knowledge input mode was active during the scan, providing transparency for audit and compliance purposes. This mode may provide an additional layer of privacy protection for organizations that require the highest degree of data minimization.
[0120] The system may support incremental scanning where only new or modified documents may be processed in subsequent scanning operations. This incremental approach may significantly reduce the computational resources required for ongoing monitoring of document repositories by focusing only on changes since the previous scan.
[0121] In this mode, the system may maintain a manifest of previously scanned document identifiers and their associated modification timestamps or content hashes. Upon initiation of a subsequent scan, the system may compare the current document inventory against the manifest to identify documents that are new or have been modified since the previous scan. Only those documents may be submitted to the matching pipeline, reducing computational resource requirements for ongoing monitoring of large document repositories. The manifest itself may contain only document identifiers and metadata and may not contain any document content, sensitive values, or match results, preserving the privacy-preserving characteristics of the system.
[0122] In some embodiments, the system may implement a continuous monitoring mode where it may operate as a persistent service rather than a one-time scanning operation. In this mode, the system may monitor document repositories for new or modified documents and automatically process them as they appear. The continuous monitoring mode may still maintain the privacy-preserving characteristics of the system, with sensitive data existing only in memory during active processing.
[0123] In the continuous monitoring mode, the system may monitor one or more document repositories for new or modified documents and may automatically submit them to the matching pipeline as they appear or are modified. The continuous monitoring mode may utilize file system event listeners, polling mechanisms, or integration with document management system notification APIs to detect document changes in near real time. The secure in-memory hash table and vector index may be maintained in memory for the duration of the monitoring session to avoid repeated initialization overhead. Upon detection of a configurable idle period or receipt of an administrative shutdown directive, the system may initiate the secure destruction process to remove all sensitive data from memory, consistent with the privacy-preserving design of the system.
[0124] In some embodiments, the system may implement a federated scanning approach where multiple scanner instances may operate independently across different organizational units or geographic regions. The results from these federated scanners may be aggregated at a central point for comprehensive reporting while maintaining data locality and privacy.
[0125] The federated scanning architecture may allow multiple scanner instances may operate independently across different organizational units, geographic regions, or network segments. Each scanner instance may operate as an isolated container within its respective environment, processing only the documents accessible within that environment and maintaining all sensitive data locally. The scanner instances may not share sensitive values, document content, embeddings, or vectors with one another. Upon completion of scanning operations, each instance may generate a privacy-preserving match report containing only document identifiers, match flags, and confidence scores. These reports may be transmitted to a central aggregation point for consolidated reporting and analysis. The aggregation point may combine the reports from multiple scanner instances to provide a comprehensive view of sensitive data presence across the organization without any instance having access to the data of another. The federated architecture may enable organizations with strict data residency requirements to maintain compliance while achieving organization-wide visibility into sensitive data distribution.
[0126] In some embodiments, the system may implement a risk-based scanning approach where documents may be prioritized for scanning based on their potential risk level. This prioritization may consider factors such as document metadata, storage location, access patterns, and other contextual information to focus scanning efforts on the documents most likely to contain sensitive information.
[0127] In the risk-based approach, a document prioritization mechanism may rank documents and process the documents in order of their estimated likelihood of containing sensitive information. The prioritization may be computed from a combination of signals including document metadata such as author, creation date, and modification history; storage location and repository classification; access frequency and access pattern anomalies; document type and format; and organizational data classification labels where available. Documents assigned a higher risk score may be submitted to the full three-stage matching pipeline first, enabling earlier identification of high-priority matches. Documents assigned a lower risk score may be deferred or may be processed using only the exact matching stage as an initial triage, with semantic and LLM stages applied only if the triage produces candidate matches. The risk scoring model may be configurable and may be updated through the configuration and update management module to reflect evolving organizational priorities and threat intelligence.
[0128] The system may support customizable document preprocessing to handle specialized document formats, character encodings, or other document-specific characteristics. This preprocessing may be implemented through pluggable modules that may be developed and deployed based on specific organizational requirements.
[0129] For organizations with specific regulatory requirements, the system may implement specialized scanning modes that focus on particular types of sensitive information such as personally identifiable information (PII), protected health information (PHI), payment card information (PCI), or other regulated data types. These specialized modes may optimize the matching pipeline for the specific characteristics of the target data type.
[0130] For organizations with extremely large document repositories, the system may implement a distributed processing approach where the document corpus may be partitioned across multiple scanner instances, each processing a subset of the documents. This distributed approach may enable linear scaling of processing capacity to handle arbitrarily large document collections.
[0131] Accordingly, embodiments of the present disclosure provide a software and hardware platform 100 comprised of a distributed set of computing elements, including, but not limited to:
[0132] A. Text Extraction Module
[0133] The platform 100 may include a text extraction module 110. The text extraction module 110 may serve as a foundational component of the privacy-preserving sensitive data matching system. This module 110 may be configured to process various document formats and / or other data structures and extract textual content for subsequent analysis. The module 110 may utilize specialized parsers for different file formats, including but not limited to PDF, DOCX, TXT, HTML, and other common document types. Each parser may be optimized to handle the specific structure and encoding of its corresponding file format.
[0134] When processing a document, the text extraction module 110 may first identify the document type based on file extension, MIME type, or content analysis. Upon determining the document type, the module 110 may invoke the appropriate parser to extract the textual content. The extraction process may preserve structural elements such as paragraphs, sections, and formatting where relevant to maintain the context of the extracted text.
[0135] In some embodiments, the text extraction module 110 may support optical character recognition (OCR) as a text extraction pathway for image-based documents and scanned files. When the module 110 determines that a document consists of scanned page images, rasterized PDF content, or other image-based formats from which text cannot be extracted through conventional parsing, the module 110 may invoke an OCR engine to recognize and extract textual content from the document images. The OCR engine may be configured to operate entirely within the customer computing environment, consistent with the privacy-preserving design of the system. The module 110 may apply image preprocessing steps such as deskewing, denoising, and contrast enhancement prior to OCR processing to improve recognition accuracy. The OCR-extracted text may be subject to the same normalization procedures applied to conventionally extracted text before being passed to the hash matching and embedding generation modules. The module 110 may record in the document metadata that OCR extraction was used, which may be reflected in the match report to indicate that match accuracy may be subject to OCR recognition quality. The OCR capability may extend the system's coverage to scanned archives, fax-derived documents, and other image-based repositories that may contain sensitive information.
[0136] The module 110 may implement text normalization procedures to ensure consistent encoding and character representation across different document sources. This normalization may include handling of special characters, whitespace standardization, and encoding conversion to UTF-8 or another standardized format. The normalization process may help ensure reliable downstream processing by subsequent modules in the pipeline.
[0137] In addition to extracting the main textual content, the module 110 may extract metadata elements from the document when available. These metadata elements may include author information, creation date, modification history, and other document properties that may provide contextual information for the matching process.
[0138] For documents containing embedded objects or attachments, the text extraction module 110 may recursively process these elements to ensure comprehensive coverage of all textual content within the document. This recursive processing may help ensure that sensitive information contained within embedded objects or attachments may not be overlooked during the matching process.
[0139] The extracted text may be segmented into manageable units for efficient processing by subsequent modules. This segmentation may be based on natural document boundaries such as paragraphs, sections, or pages, depending on the document structure and the requirements of downstream processing stages.
[0140] The text extraction module 110 may implement error handling mechanisms to manage corrupted documents, unsupported formats, or extraction failures. These mechanisms may include graceful degradation options, such as attempting alternative extraction methods or providing partial extraction results when complete extraction may not be possible.
[0141] In some embodiments, the text extraction module 110 may be configured to process structured data sources in addition to unstructured documents. Structured data sources may include database tables, comma-separated value (CSV) files, tab-separated value (TSV) files, JSON records, XML documents, and other tabular or record-oriented data formats. When processing a structured data source, the module 110 may treat each row, record, or field as a discrete unit of text for extraction, preserving field names and row identifiers as metadata to enable precise match location reporting. The module 110 may apply configurable field selection rules to focus extraction on fields most likely to contain sensitive information, such as name fields, identifier fields, and contact information fields, while optionally excluding fields that may be known to contain non-sensitive data. The extracted field values may be passed to the hash matching and embedding generation modules using the same interfaces as document-derived text, enabling the full three-stage matching pipeline to operate uniformly across both structured and unstructured data sources. Match location output for structured data sources may include the row identifier, field name, and column reference in addition to confidence scores, enabling precise identification of the specific record and field containing the sensitive value.
[0142] B. A Hash Matching Module
[0143] The platform 100 may include a hash matching module 120. The hash matching module 120 may be designed to identify exact matches of sensitive values within the extracted text. This module may operate by generating cryptographic hashes of text segments and comparing the cryptographic hashes against a set of pre-computed hashes representing sensitive values to be searched for within the documents. The use of cryptographic hashing may provide a privacy-preserving mechanism for exact matching without requiring the storage or transmission of the actual sensitive values.
[0144] Upon receiving extracted text from the text extraction module, the hash matching module 120 may first tokenize the text into appropriate sequences for comparison. These sequences may include individual words, n-grams (sequences of n consecutive words or characters), or sliding windows of text. The tokenization approach may be configurable based on the nature of the sensitive values being matched and the requirements of the specific use case.
[0145] In some embodiments, the hash matching module 120 may apply different tokenization and hashing strategies depending on whether the input originates from an unstructured document or a structured data source. For unstructured document text, the module 120 may apply a sliding-window n-gram hashing approach wherein a window of configurable width may be advanced across the token stream one position at a time, generating a cryptographic hash for each overlapping n-gram sequence. The sliding-window approach may ensure that sensitive values appearing at any position within a continuous text stream, including positions that span natural word boundaries or punctuation, may be identified regardless of their alignment relative to sentence or paragraph boundaries. The window width and step size may be configurable based on the typical length of the sensitive values being matched. For structured data sources, the module 120 may apply a field-aware hashing approach wherein each field value may be extracted as a discrete unit and hashed as a whole based on its associated column name or field identifier. In the field-aware approach, the column name or field identifier may be incorporated into the hash input alongside the field value, enabling the module 120 to distinguish between identical values appearing in different fields and to apply field-specific matching rules. For example, a value appearing in a field identified as a name field may be evaluated against the sensitive value set using name-specific normalization, while the same value appearing in a free-text notes field may be evaluated using the sliding-window approach applicable to unstructured text. The field-aware hashing approach may reduce false positives in structured data scanning by constraining matches to fields whose semantic type is consistent with the sensitive value category being matched. In other embodiments, the hash matching module 120 may apply a uniform hashing approach to both structured and unstructured inputs without field-aware differentiation.
[0146] The system may support multiple intake interfaces for providing sensitive values to the hash matching module 120. In one embodiment, sensitive values may be provided as a row-based upload where each row of a structured file, such as a CSV or TSV file, represents one sensitive value or a set of related variants for a single base value. In another embodiment, sensitive values may be provided through a programmatic API that accepts structured records, enabling integration with identity management systems, customer data platforms, or other enterprise data sources. In a further embodiment, sensitive values may be provided as a stream of records delivered over a secure in-memory channel, enabling the system to begin processing before the full sensitive value set has been received. In all intake modes, sensitive values may be transformed into their cryptographic hash representations immediately upon receipt, and the cleartext values may be retained only in the secure in-memory hash table for the duration of the scanning operation. The intake interface may support configurable field mappings to accommodate different source data schemas, and may validate the format and encoding of received values prior to hash generation to ensure consistent matching behavior.
[0147] For each tokenized sequence, the hash matching module 120 may generate a cryptographic hash using secure hashing algorithms such as SHA-256, SHA-3, and / or any other suitable algorithm. The choice of hashing algorithm may balance security requirements with performance considerations, ensuring efficient processing while maintaining strong cryptographic properties.
[0148] The generated hashes may be compared against a secure in-memory hash table containing pre-computed hashes of sensitive values. This in-memory hash table may be created at the beginning of the scanning operation by hashing the sensitive values provided as input to the system. The in-memory storage approach may ensure that sensitive values may only exist in memory during the scanning operation and may not be persisted to disk.
[0149] In some embodiments, the system may support an alternative storage mode for use cases where scanning sessions may be long-running or may need to survive process restarts. In this alternative mode, the cryptographic hashes of sensitive values may be stored in an encrypted on-disk store rather than exclusively in volatile memory. The on-disk store may be encrypted using a session key that may be derived from a hardware-bound secret or a key management service accessible only within the customer computing environment. Access to the on-disk store may be restricted to the scanning process through operating system access controls and file system permissions. Upon completion of scanning operations, the encrypted on-disk store may be securely deleted using multi-pass overwrite techniques consistent with the secure destruction procedures of the secure destruction module 160. The alternative storage mode may trade the absolute ephemerality of the memory-only model for resilience against process interruption, and may be selected based on organizational requirements and the sensitivity classification of the values being scanned. The system may indicate in the match report and audit log which storage mode was active during the scan, providing transparency for compliance purposes.
[0150] When a hash match is identified, the hash matching module 120 may record the match location within the document, including information such as the token position, surrounding context, and any relevant metadata. This location information may be valuable for subsequent processing stages and for providing actionable match results.
[0151] The hash matching module 120 may also implement techniques to handle variations in text representation that may affect exact matching. These techniques may include case normalization, whitespace normalization, and other text standardization approaches to increase the likelihood of identifying matches despite minor variations in text representation.
[0152] In some embodiments, the system may support ingestion of sensitive value sets that include aliases, normalized variants, transliterations, abbreviations, and pattern-derived forms of a base sensitive value. For example, a person's name may be provided along with known abbreviations, alternate spellings, and transliterated forms, each of which may be hashed and stored as a separate entry in the secure in-memory hash table. The system may also accept regular expression patterns as sensitive value descriptors, from which the hash matching module may derive a set of candidate token sequences for hashing during the initialization phase. Normalization procedures applied during tokenization of extracted text, such as case folding, diacritic removal, and whitespace standardization, may be applied symmetrically to both the sensitive value set and the document text to maximize the likelihood of identifying matches despite minor representational variations. The set of variants associated with a base sensitive value may be tracked internally so that a match against any variant may be attributed to the corresponding base sensitive value in the match report.
[0153] To optimize performance, the hash matching module 120 may implement efficient hash table lookup mechanisms and parallel processing capabilities. These optimizations may enable high-throughput processing of large documents or document collections while maintaining accuracy and comprehensive coverage.
[0154] In some embodiments, the hash matching module 120 may implement a prefilter pyramid to reduce the computational cost of the cryptographic hash lookup stage. The prefilter pyramid may comprise three ordered layers applied to each candidate token sequence before a full cryptographic hash comparison is performed. In the first layer, a format and pattern prefilter may evaluate each token sequence against a set of regular expression patterns or finite automaton rules that characterize the expected structural shapes of sensitive values, such as the format of a social security number, a credit card number, a date of birth, or a name pattern. This first-layer prefilter may be implemented using a high-performance multi-pattern matching engine, such as those employing Hyperscan-style algorithms or similar finite automaton approaches, capable of evaluating large numbers of patterns against token sequences at high throughput. Token sequences that do not match any expected sensitive value shape may be rejected by the first-layer prefilter without proceeding to further evaluation. In the second layer, a probabilistic prefilter may evaluate each token sequence that survives the first layer against a Bloom filter constructed over the set of cryptographic hashes stored in the secure in-memory hash table. The Bloom filter may provide a space-efficient probabilistic test that determines with certainty whether a given hash value is absent from the hash table, enabling rapid rejection of token sequences whose hashes are definitively not present in the hash table without performing a full hash table lookup. Token sequences for which the Bloom filter returns a negative result may be discarded without further processing. In the third layer, a full cryptographic hash lookup may be performed only for token sequences that survive both the first and second prefilter layers. The full lookup may compute the cryptographic hash of the token sequence and perform a direct comparison against the secure in-memory hash table to confirm or reject the match. This three-layer prefilter pyramid may substantially reduce the number of full cryptographic hash computations required during a scanning operation, improving throughput for large documents while preserving the accuracy and privacy-preserving properties of the hash matching stage. The prefilter pyramid may be implemented as one embodiment of the hash matching stage; in other embodiments, the hash matching module 120 may perform direct cryptographic hash comparison against the secure in-memory hash table without prefiltering.
[0155] C. An Embedding Generation Module
[0156] The platform 100 may include an embedding generation module 130. The embedding generation module 130 may be responsible for transforming textual content into vector representations (embeddings) that capture semantic meaning. These embeddings may enable the system to identify semantic matches-instances where document content may be semantically similar to sensitive values even if not identical in wording. The embedding generation module 130 may utilize machine learning models specifically trained for text embedding generation.
[0157] Upon receiving segmented text from the text extraction module 110, the embedding generation module 130 may divide the text into fixed-size chunks. The chunk size may be configurable, with typical values around 500 tokens, balancing contextual information capture with processing efficiency. Each chunk may overlap with adjacent chunks by a configurable amount to ensure that sensitive information spanning chunk boundaries may not be missed.
[0158] For each text chunk, the module 130 may generate a vector embedding using a pre-trained embedding model. The embedding model may be based on transformer architectures or other neural network approaches designed for natural language understanding. The specific model may be selected based on performance characteristics, language support, and semantic capture capabilities.
[0159] The embedding generation process may transform each text chunk into a high-dimensional vector (typically ranging from 384 to 1536 dimensions, depending on the model) that represents the semantic content of the chunk. These vectors may capture complex semantic relationships and contextual information that may enable identification of paraphrased or conceptually similar content.
[0160] The generated embeddings may be stored in memory during the processing operation for comparison against embeddings of sensitive values. The module may implement memory-efficient storage approaches to handle large documents with numerous chunks while maintaining performance.
[0161] The embedding generation module 130 may support multiple languages through the use of multilingual embedding models or language-specific models loaded based on document language detection. This multilingual support may enable semantic matching across different languages and may accommodate organizations with international operations and multilingual document repositories.
[0162] In some embodiments, the multilingual support of the embedding generation module 130 may be implemented through automatic language detection applied to each document or document chunk prior to embedding generation. The language detection component may analyze the statistical properties of the extracted text to identify the primary language and may assign a language code to each chunk. Based on the detected language code, the module 130 may select the appropriate embedding model from a set of available language-specific or multilingual models. Language-specific models may provide higher semantic accuracy for documents in a single language, while multilingual models may be used for documents containing mixed-language content or for languages for which a dedicated model may not be available. The normalization procedures applied during tokenization, including diacritic handling, case folding, and script normalization, may be adapted based on the detected language to ensure that language-specific character representations are handled correctly. For sensitive value sets that include values in multiple languages or scripts, the system may generate embeddings for each value using the model corresponding to the language of that value, ensuring that cross-language semantic matching may be performed using compatible embedding spaces. Language detection results may be included in the match report metadata to provide transparency regarding the language processing applied to each document.
[0163] To optimize performance, the embedding generation module 130 may implement batching techniques that process multiple chunks simultaneously, leveraging hardware acceleration where available (such as GPU or specialized AI accelerators). These optimizations may significantly improve throughput for large documents or document collections.
[0164] The quality and accuracy of the generated embeddings may be important for effective semantic matching. The module 130 may therefore incorporate model version management and quality monitoring to ensure consistent and reliable embedding generation across different documents and scanning operations.
[0165] D. A Vector Similarity Search Module
[0166] The platform 100 may include a vector similarity search module 140. The vector similarity search module 140 may be designed to identify semantic matches by comparing vector embeddings of document chunks against vector embeddings of sensitive values. This module 140 may leverage efficient nearest-neighbor search algorithms to identify semantically similar content even when exact text matches may not be present. The vector similarity search capability may be particularly valuable for identifying paraphrased, summarized, or conceptually similar references to sensitive information.
[0167] Upon receiving vector embeddings of document chunks from the embedding generation module 130, the vector similarity search module 140 may perform a nearest-neighbor search against a pre-computed index of sensitive value embeddings. This search may identify the most semantically similar sensitive values for each document chunk based on vector distance metrics such as cosine similarity, Euclidean distance, or other appropriate distance measures.
[0168] The module 140 may utilize an approximate nearest-neighbor (ANN) index to enable efficient high-dimensional vector search operations. Suitable ANN index implementations may include, but are not limited to, the Facebook AI Similarity Search (FAISS) library, the Hierarchical Navigable Small World (HNSW) graph-based index as implemented in libraries such as HNSWlib or hnswlib, the Scalable Nearest Neighbors (ScaNN) library developed by Google, the Annoy (Approximate Nearest Neighbors Oh Yeah) library, and / or any other ANN index implementations or similar technology capable of performing approximate nearest-neighbor search in high-dimensional vector search operations. The ANN index may provide optimized algorithms for approximate nearest-neighbor search that may scale to large embedding collections while maintaining search efficiency. The specific ANN index implementation and configuration may be selected based on the size of the sensitive value set, performance requirements, memory constraints, and accuracy considerations of the deployment.
[0169] The vector embedding comparison stage may be enhanced with domain-specific embedding models trained for particular industries or types of sensitive information. For example, specialized embedding models may be developed for healthcare terminology, financial data, legal documents, or other domain-specific contexts. These specialized models may improve the accuracy of semantic matching for domain-specific content.
[0170] Specialized embedding models may be developed and deployed for healthcare terminology, financial instrument identifiers, legal document structures, or other domain-specific contexts where general-purpose embedding models may produce suboptimal semantic representations. The embedding generation module 130 may select the appropriate embedding model based on a configured domain profile, a detected document type, or an explicit parameter supplied at scan initialization. Where multiple domain profiles may be relevant, the module 130 may generate embeddings using each applicable model and may merge the resulting candidate match sets prior to the vector similarity search stage. Domain-specific models may be delivered to the system through the configuration and update management module 170 as model update packages, enabling the system to expand its domain coverage without requiring redeployment of the base container image.
[0171] For each document chunk, the vector similarity search module 140 may return a list of candidate matches with corresponding similarity scores. These similarity scores may indicate the degree of semantic similarity between the document chunk and each matched sensitive value. A configurable similarity threshold may be applied to filter out low-confidence matches, focusing subsequent processing on the most promising match candidates.
[0172] In some embodiments, the nearest-neighbor search may be configured as a top-K search wherein the vector similarity search module 140 may retrieve the K most similar sensitive value embeddings for each document chunk, ranked in descending order of similarity score. The value of K may be configurable and may be set based on the size of the sensitive value set and the acceptable false positive rate for the semantic matching stage. Only candidates whose similarity scores exceed the configured threshold may be passed to the LLM evaluation stage, with the remaining candidates below the threshold being discarded without further processing.
[0173] In performing the nearest-neighbor search, the vector similarity search module 140 may submit each document chunk embedding as a query vector to the ANN index. The ANN index may process the query vector by computing approximate distances between the query vector and the indexed sensitive value embeddings using the configured index structure. Non-limiting examples of suitable index structures include an inverted file index (IVF) as implemented in FAISS, a hierarchical navigable small world (HNSW) graph as implemented in HNSWlib or FAISS, a flat exhaustive index for smaller sensitive value sets, and product quantization (PQ) based indexes for memory-constrained deployments. The module 140 may retrieve the top-K indexed embeddings having the smallest distance to the query vector, corresponding to the highest similarity scores, and may return those candidates along with their similarity scores for threshold filtering and subsequent LLM evaluation.
[0174] The vector similarity search module 140 may implement search optimization techniques such as (but not limited to) quantization, product quantization, or hierarchical navigable small world (HNSW) graphs to balance search speed, memory usage, and accuracy. These optimizations may be particularly important when dealing with large sets of sensitive values or processing large document collections.
[0175] The module 140 may record match metadata for each identified semantic match, including the chunk location, similarity score, and any relevant context information. This metadata may be valuable for subsequent processing stages and for providing actionable match results.
[0176] To accommodate updates to the sensitive value set, the vector similarity search module 140 may support dynamic index updates or rebuilding. This capability may ensure that the system may adapt to changes in the sensitive value set without requiring a complete restart of the scanning operation.
[0177] The vector similarity search module 140 may be configured to operate entirely in memory to ensure that no sensitive data or embeddings may be persisted to disk during the scanning operation. This in-memory operation may align with the system's privacy-preserving design principles.
[0178] E. A Large Language Model Evaluation Module
[0179] The platform 100 may include a large language model (LLM) evaluation module 150. The LLM evaluation module 150 may serve as a sophisticated filter and verification component that analyzes potential matches identified by the hash matching and vector similarity search modules. This module 150 may leverage the contextual understanding capabilities of large language models to confirm true positive matches and filter out false positives, providing more accurate match determinations.
[0180] The LLM evaluation module 150 may operate by constructing carefully designed prompts that incorporate match candidates and their surrounding context. These prompts may be structured to elicit a determination from the language model regarding whether the identified content truly represents an instance of the sensitive value in question. The prompt construction may balance providing sufficient context for accurate determination while minimizing the inclusion of sensitive information.
[0181] For processing, the module 150 may utilize a local LLM that operates entirely within the customer environment. This local operation may ensure that no sensitive data or prompts may leave the secure environment during the evaluation process. The specific LLM may be selected based on accuracy, resource requirements, and performance characteristics, with options ranging from smaller, efficient models to larger, more capable models depending on the use case requirements.
[0182] In some embodiments, the local LLM may be selected from a class of instruction-following transformer-based language models having sufficient parameter count and context window capacity to perform contextual text comparison and natural language inference tasks. Suitable models may include, but are not limited to, open-weight models such as Meta's Llama family (e.g., Llama 2, Llama 3, and derivatives thereof), Mistral AI's Mistral and Mixtral model families, the Falcon model family developed by the Technology Innovation Institute, Microsoft's Phi family of small language models, and other open-weight or commercially licensed models capable of instruction following and natural language inference. The system may also support quantized variants of the foregoing models, such as models quantized using GGUF, GPTQ, or AWQ formats, which may reduce memory and computational requirements while preserving sufficient accuracy for the sensitive data matching task. In some embodiments, the local LLM may be deployed using a local inference runtime such as llama.cpp, Ollama, vLLM, or Hugging Face Transformers, each of which may be configured to operate entirely within the customer computing environment without requiring external API calls or network connectivity. The minimum capability requirements for a suitable local LLM may include the ability to process prompts of at least 2,048 tokens in a single context window, the ability to follow structured instructions and return structured responses including confidence assessments, and the ability to perform semantic comparison between two text passages to determine whether one passage contains a reference to the content of the other. Models with larger context windows, such as those supporting 8,192 tokens or more, may be preferred for use cases involving longer document passages or more complex contextual analysis. The selection of a specific model may be governed by a combination of accuracy benchmarks on sensitive data detection tasks, inference latency requirements, available hardware resources including GPU memory and CPU capacity, and organizational policies regarding approved open-weight or licensed model families. The model selection and version may be recorded in the audit log and match report to provide transparency and reproducibility for compliance purposes.
[0183] Upon receiving a prompt, the LLM may analyze the context surrounding potential matches to determine whether they represent true instances of sensitive information. The LLM may consider factors such as semantic context, document structure, and linguistic patterns to make this determination. The model's response may include a confidence score indicating the likelihood that the match represents a true instance of sensitive information.
[0184] For cases where the confidence in a match determination may be below a predetermined threshold, the LLM evaluation module 150 may implement an escalation mechanism. This escalation may involve retrieving the sensitive cleartext value from the secure in-memory hash table, incorporating it into a more specific prompt for the LLM, and generating a final match decision with an updated confidence score. This escalation approach may balance privacy considerations with the need for high-precision analysis in challenging cases.
[0185] The LLM evaluation module 150 may implement prompt templating mechanisms that adapt to different types of sensitive information and matching scenarios. These templates may be optimized for specific sensitivity categories (such as personally identifiable information, financial data, or health information) to improve determination accuracy.
[0186] In some embodiments, the LLM evaluation module 150 may implement a two-tier LLM architecture that distinguishes between a first-tier evaluation engine and a second-tier escalation engine. The first-tier evaluation engine may receive match candidates identified by the hash matching module 120 and the vector similarity search module 140, along with surrounding document context, and may evaluate those candidates without access to sensitive cleartext values. The first-tier engine may operate exclusively on anonymized context, producing a confidence score and a preliminary match determination for each candidate. When the confidence score produced by the first-tier engine meets or exceeds a configured acceptance threshold, the first-tier determination may be accepted as final without further processing. When the confidence score falls below the acceptance threshold, the match candidate may be escalated to the second-tier escalation engine. The second-tier escalation engine may receive the sensitive cleartext value retrieved from the secure in-memory hash table, incorporate it into an enhanced prompt alongside the document context, and produce a final match determination with an updated confidence score. The two-tier design may preserve privacy by limiting cleartext value exposure exclusively to the second-tier engine and only for candidates that cannot be resolved by the first-tier engine alone. The first-tier and second-tier engines may utilize the same underlying LLM model or different models selected based on accuracy and resource requirements for each tier.
[0187] The LLM evaluation module 150 may be enhanced with domain-specific fine-tuning to improve its performance for particular types of sensitive information or document contexts. This fine-tuning may involve additional training on domain-specific data to enhance the model's understanding of contextual nuances relevant to the specific use case.
[0188] To optimize or otherwise improve performance, the module 150 may implement batching techniques that process multiple match evaluations simultaneously when possible. These optimizations may improve throughput while maintaining accuracy for large documents with numerous potential matches.
[0189] In some embodiments, the LLM evaluation results may be combined with the results from earlier matching stages to produce a comprehensive match determination. This combination may consider the confidence scores from each stage, applying configurable weighting or decision rules to arrive at a final determination.
[0190] F. A Secure Destruction Module
[0191] The platform 100 may include a secure destruction module 160. The secure destruction module 160 may be responsible for ensuring that all sensitive data, including the secure in-memory hash table, vector embeddings, and any temporary processing data, may be securely removed from memory and storage after the completion of scanning operations. This module 160 may play a role in the privacy-preserving design of the platform 100 by helping to ensure that sensitive information may not persist beyond its operational necessity.
[0192] Upon completion of scanning operations or upon receiving a destruction directive, the secure destruction module 160 may initiate a comprehensive cleanup process. This process may begin with the identification of all memory allocations and temporary storage locations that may contain sensitive information, including the in-memory hash table, vector embeddings, document chunks, and any intermediate processing results.
[0193] For each identified memory allocation, the module 160 may implement secure memory clearing techniques that may go beyond standard memory deallocation. These techniques may include overwriting memory with random patterns before deallocation to mitigate potential memory remnant attacks. The specific memory clearing approach may be selected based on security requirements and platform capabilities.
[0194] For any temporary files created during processing, the secure destruction module 160 may implement secure file deletion techniques. These techniques may include multiple-pass overwriting or leveraging platform-specific secure deletion APIs to ensure that file contents may not be recoverable through forensic analysis.
[0195] The module 160 may verify the successful destruction of sensitive data through validation checks that confirm memory has been properly cleared and temporary files have been securely deleted. These validation checks may provide assurance that the destruction process has been completed successfully.
[0196] In containerized deployment scenarios, the secure destruction module 160 may coordinate with container management systems to ensure that the entire container may be terminated and removed after scanning operations. This container-level destruction may provide an additional layer of isolation and security by ensuring that no operational remnants may persist after processing.
[0197] Upon termination of the container, the secure destruction module 160 may perform a post-termination verification step to confirm that all memory allocations, temporary files, and container resources associated with the scanning operation have been fully released and that no sensitive data persists in any accessible storage location. This verification may include querying the container orchestration platform to confirm complete container removal and may generate a verification record in the destruction log for audit purposes.
[0198] The secure destruction module 160 may maintain destruction logs that record the completion of destruction operations without including any sensitive information. These logs may be valuable for audit and compliance purposes, providing evidence that sensitive data has been properly handled throughout its lifecycle.
[0199] To handle exceptional conditions such as system crashes or unexpected terminations, the secure destruction module 160 may implement recovery mechanisms that identify and clean up any sensitive data that may have been left in an inconsistent state. These recovery mechanisms may be triggered during system initialization to ensure that no sensitive data from previous operations may persist.
[0200] The secure destruction module 160 may be configured to operate with minimal privileges necessary to perform its functions, following the principle of least privilege. This restricted privilege approach may reduce the risk of unauthorized access to sensitive data during the destruction process.
[0201] G. Configuration and Update Management Module
[0202] In some embodiments, the platform 100 may include a configuration and update management module 170. The configuration and update management module 170 may be responsible for managing system configurations, receiving and applying updates to matching models and algorithms, and ensuring that the system may operate with the most current detection capabilities while maintaining data privacy. This module 170 may provide a mechanism for the system to stay current with evolving detection requirements without exposing local data to external systems.
[0203] The module 170 may establish a secure communication channel with a software-as-a-service (SaaS) tenant service to receive configuration updates and model improvements. This communication channel may be secured using strong encryption and authentication mechanisms to ensure that only authorized updates may be applied to the system.
[0204] Upon receiving updates from the SaaS tenant service, the module 170 may verify the authenticity and integrity of the updates using cryptographic signatures or other verification mechanisms. This verification may ensure that only legitimate updates from authorized sources may be applied to the system, protecting against potential supply chain attacks or unauthorized modifications.
[0205] The module 170 may manage various configuration parameters that control system behavior, including matching thresholds, escalation criteria, LLM prompt templates, and resource allocation settings. These parameters may be updated based on evolving requirements or performance optimization needs.
[0206] In some embodiments, configuration updates received from the external configuration service may be encrypted and may comprise at least three categories of parameters: detection rules that define the patterns, formats, and contextual criteria used to identify sensitive information; threshold values that control the confidence score cutoffs applied at each stage of the matching pipeline, including the exact match acceptance threshold, the semantic similarity threshold, and the LLM escalation threshold; and model parameters that specify the versions, weights, and hyperparameters of the embedding generation model and the LLM used for evaluation. Each category of configuration update may be applied independently to the corresponding module without requiring a full system restart, enabling targeted updates to individual pipeline components. The system may maintain a versioned record of each configuration category separately, enabling precise audit tracing of which detection rules, threshold values, and model parameters were active during any given scanning operation.
[0207] For model updates, the module 170 may handle the secure deployment of new or updated models for embedding generation, vector similarity search, and LLM evaluation. These model updates may include improvements to accuracy, performance, or coverage of different types of sensitive information.
[0208] The module 170 may implement version control mechanisms that track the versions of all components, configurations, and models used during scanning operations. This version information may be included in scan results to provide transparency and traceability for audit and compliance purposes.
[0209] To ensure operational continuity, the module 170 may implement update staging and validation procedures that verify the correct operation of updated components before they may be fully deployed. These procedures may include functional testing and performance validation to identify any potential issues before they affect production operations.
[0210] The module 170 may maintain a local cache of configurations and models to enable operation in disconnected scenarios where communication with the SaaS tenant service may not be available. This caching mechanism may ensure that the system may continue to operate effectively even when external connectivity may be limited.
[0211] The configuration and update management module 170 may implement privacy-preserving update mechanisms that apply updates to local matching algorithms and models without exposing local data to the SaaS tenant service. This approach may ensure that data privacy may be maintained throughout the update process.
[0212] In some embodiments, the architecture of the system may enforce a strict separation between the SaaS tenant service and the sensitive data matching operations. The SaaS tenant service may function exclusively as a management and control plane, responsible for delivering model updates, configuration policies, job coordination directives, and aggregated operational telemetry. The SaaS tenant service may not participate in any aspect of the sensitive data matching process itself and may not receive, process, or store any sensitive values, document content, vector embeddings, cryptographic hashes of document text, or match results containing document content. All data-plane operations, including text extraction, hash matching, embedding generation, vector similarity search, LLM evaluation, and result generation, may occur exclusively within the customer computing environment. This architectural boundary may be enforced through the design of the communication interface between the configuration and update management module 170 and the SaaS tenant service, which may be restricted to outbound requests for updates and inbound delivery of update packages, with no mechanism for the SaaS tenant service to initiate data retrieval from the customer environment. This explicit management-plane-only design may provide a verifiable privacy guarantee that the SaaS operator may not access customer data regardless of the operational state of the system.
[0213] H. Results Output and Reporting Module
[0214] In some embodiments, the platform 100 may include a results output and reporting module 180. The results output and reporting module 180 may be responsible for generating and delivering match results in a privacy-preserving manner. This module 180 may ensure that only minimal, necessary information about matches may be included in the output, without exposing sensitive data or document content. The privacy-preserving output approach may be a critical aspect of the system's design, enabling organizations to identify sensitive content while maintaining strict data privacy controls.
[0215] The module 180 may generate match reports that include file identifiers, match flags indicating the presence of sensitive information, confidence levels for each match, and location information within the document, but do not include the specific content contained in the identified file. These elements may provide actionable information about the presence of sensitive content without including the sensitive content itself.
[0216] For each identified match, the module 180 may include decision path information that shows how the match was determined through the multiple stages of analysis. This decision path may include information about which matching stage (hash matching, vector similarity, or LLM evaluation) contributed to the final determination, along with relevant confidence scores from each stage.
[0217] In some embodiments, the module 180 may provide configurable match location output at multiple levels of granularity. For unstructured documents, match location may be reported at the page level, the paragraph level, the sentence level, or the token span level, including character offset and byte offset within the document, depending on the configured output granularity. For structured data sources, match location may be reported using row identifiers, column references, and field names. The level of location granularity may be configurable at scan initialization and may be set independently for different document types or data sources. Finer-grained location output may enable more precise remediation actions by downstream systems, while coarser-grained output may reduce the volume of result data and may be appropriate for high-level compliance reporting. In all cases, the location metadata reported may describe the position of the match within the document without including the matched content itself, preserving the privacy-preserving characteristics of the output.
[0218] The module 180 may implement configurable output formats to accommodate different integration scenarios and reporting requirements. These formats may include structured data formats such as JSON or XML, as well as human-readable report formats for review and analysis.
[0219] To support audit and compliance requirements, the module 180 may include metadata about the scanning operation, such as scan time, system version information, and configuration parameters used during the scan. This metadata may provide context for interpreting scan results and may support compliance documentation requirements.
[0220] In some embodiments, the system may generate a matching process audit log that records operational events throughout the scanning lifecycle without including sensitive values or raw document content. The audit log may include entries for scan initiation and completion timestamps, the number of documents processed, the number of match candidates identified at each stage, the number of escalations performed, the number of final match determinations, the model and configuration versions active during the scan, and any error or exception events encountered during processing. The audit log may not include document content, sensitive values, vector embeddings, cryptographic hashes of document text, or match location details beyond aggregate counts, ensuring that the log may be retained for compliance purposes without creating an additional sensitive data exposure risk.
[0221] The module 180 may implement access controls that ensure that match results may only be accessible to authorized users or systems. These access controls may include authentication mechanisms, encryption of result data, and integration with existing enterprise authentication systems.
[0222] In some embodiments, match reports may be encrypted prior to transmission or storage using organization-managed encryption keys, ensuring that result data may remain confidential during transit and at rest. The encryption may be performed using asymmetric key pairs where the public key may be provided to the system at scan initialization and the corresponding private key may be retained exclusively by the authorized recipient, such that the scanning system itself may not decrypt the results it produces. In addition, the module 180 may apply role-based output filtering whereby the level of detail included in a match report may be determined by the role of the requesting user or system. Users with administrative roles may receive full match reports including document identifiers, match locations, confidence scores, and decision traces. Users with operational roles may receive summary reports indicating only the presence or absence of sensitive content at the document level. Users with audit roles may receive compliance-focused reports formatted to satisfy specific regulatory reporting requirements. This role-based filtering may ensure that each user receives only the information necessary for their specific responsibilities, minimizing unnecessary exposure of match metadata.
[0223] For organizations with data classification requirements, the module 180 may generate classification metadata that can be applied to documents based on the identified sensitive content. This classification metadata may be used by data governance systems to apply appropriate protection measures to sensitive documents.
[0224] The module 180 may support real-time result streaming for integration with monitoring systems or dashboards. This streaming capability may enable timely awareness of sensitive content identification without requiring the completion of the entire scanning operation.
[0225] In some embodiments, the real-time result streaming capability of the module 180 may be implemented using server-sent events (SSE), WebSocket connections, message queue protocols such as AMQP or MQTT, or other streaming communication mechanisms. As each document completes processing through the matching pipeline, the module 180 may emit a result event containing the document identifier, match flags, confidence scores, and location metadata for that document without waiting for the completion of the full scanning operation. Downstream monitoring systems, security information and event management (SIEM) platforms, and operational dashboards may subscribe to the result stream to receive match notifications in near real time. The streaming interface may support configurable filtering so that subscribers may receive only results meeting specified criteria, such as matches above a confidence threshold or matches within a particular document repository. All streamed result events may conform to the same privacy-preserving output constraints as batch result reports, containing no raw document content, sensitive values, embeddings, or vectors. The streaming connection itself may be secured using transport layer security (TLS) and may require authentication of the subscribing system prior to stream establishment.
[0226] To minimize or otherwise reduce data exposure, the module 180 may implement result filtering mechanisms that control the level of detail included in match results based on user roles or other authorization criteria. These filtering mechanisms may ensure that users receive only the information necessary for their specific responsibilities.
[0227] The results output and reporting module 180 may maintain strict separation between match results and the actual sensitive content, ensuring that no document content, embeddings, or vectors may be included in the output. This separation may be fundamental to the system's privacy-preserving design.
[0228] The system may support customizable output formats and integration with downstream systems such as data loss prevention (DLP) tools, information rights management systems, or compliance reporting platforms. This integration may enable organizations to take automated actions based on the match results while maintaining the privacy-preserving nature of the system.
[0229] The system may support customizable result aggregation and reporting to provide different views of the scanning results for different stakeholders. These views may include executive summaries, detailed technical reports, compliance-focused reports, or other specialized formats tailored to specific organizational needs.
[0230] In some embodiments, the system may implement a privacy-preserving remediation workflow where identified sensitive data may be automatically redacted, encrypted, or otherwise protected based on organizational policies. This remediation workflow may operate entirely within the customer environment, maintaining the privacy-preserving characteristics of the system.
[0231] In the privacy-preserving remediation workflow, documents identified as containing sensitive information may be automatically subjected to one or more protective actions based on configurable organizational policies. Supported remediation actions may include in-place redaction of identified match locations within the document, encryption of the document using organization-managed keys, application of information rights management (IRM) controls, quarantine of the document to a restricted storage location, or generation of a remediation work item for manual review. All remediation actions may be performed entirely within the customer computing environment without transmitting document content, sensitive values, or match results to external systems. The remediation workflow may be triggered automatically upon completion of the matching pipeline or may be deferred pending review of the match report by an authorized user. The system may generate a remediation log documenting the actions taken for each document without including sensitive values or document content, supporting audit and compliance requirements.
[0232] The system may support customizable logging and audit trails to document scanning operations and results for compliance and security purposes. These logs may be designed to provide comprehensive operational visibility without including sensitive data or document content.III. Platform Operation
[0233] Embodiments of the present disclosure provide a hardware and software platform operative by a set of methods and computer-readable media comprising instructions configured to operate the aforementioned modules and computing elements in accordance with the methods. The following depicts an example of at least one method of a plurality of methods that may be performed by at least one of the aforementioned modules. Various hardware components may be used at the various stages of operations disclosed with reference to each module.
[0234] For example, although methods may be described as being performed by a single computing device, it should be understood that, in some embodiments, different operations may be performed by different networked elements in operative communication with the computing device. For example, at least one computing device 300 may be employed in the performance of some or all of the stages disclosed with regard to the methods. Similarly, an apparatus may be employed in the performance of some or all of the stages of the methods. As such, the apparatus may comprise at least those architectural components found in computing device 300.
[0235] Furthermore, although the stages of the following example method are disclosed in a particular order, it should be understood that the order is disclosed for illustrative purposes only. Stages may be combined, separated, reordered, and various intermediary stages may exist. Accordingly, it should be understood that the various stages, in various embodiments, may be performed in arrangements that differ from the ones described below. Moreover, various stages may be added or removed from the method without altering or departing from the fundamental scope of the depicted methods and systems disclosed herein.
[0236] A. Master Method
[0237] Consistent with embodiments of the present disclosure, a method may be performed by at least one of the aforementioned modules. The method may be embodied as, for example, but not limited to, computer instructions, which, when executed, perform the method.
[0238] FIG. 2 is a flow chart setting forth the general stages involved in a method 200 consistent with an embodiment of the disclosure for providing the privacy-preserving exact and semantic match platform 100. Method 200 may be implemented using a computing device 300 or any other component associated with platform 100 as described in more detail below with respect to FIG. 3. For illustrative purposes alone, computing device 300 is one potential actor in the following stages.
[0239] The platform 100 may implement a privacy-preserving sensitive data matching method 200 that operates entirely within a customer's computing environment. Method 200 may begin at stage 205 where computing device 300 may store data based on the sensitive values that require identification within document repositories. As non-limiting examples, these sensitive values may include personally identifiable information (PII), protected health information (PHI), financial account numbers, and / or other confidential information requiring protection. The data may include a set of cryptographic hashes representing the sensitive values and a set of vector embeddings generated using the sensitive values.
[0240] In some embodiments, storing the cryptographic hashes may begin with receiving a set of sensitive values to be identified (e.g., as plain text data). Upon receiving the sensitive values, the method may generate cryptographic hashes of these values using secure hashing algorithms such as SHA-256 and / or other suitable algorithms. These cryptographic hashes may serve as secure representations of the sensitive values, enabling matching operations without exposing the actual sensitive data. The cryptographic hash generation for sensitive values may utilize algorithms selected for their collision resistance and security properties. The choice of hashing algorithm may balance security requirements with performance considerations, ensuring efficient processing while maintaining strong cryptographic properties. The generated hashes may be stored (along with the sensitive values used to generate the hashes) exclusively in memory during the scanning operation, with no persistence to disk to minimize the risk of data exposure.
[0241] In other embodiments, the system may receive the cryptographic hashes directly, without receiving the actual sensitive values The cryptographic hashes may be stored in a secure in-memory hash table. In embodiments, that table may be stored such that it is destroyed after the scanning operation completes, providing an additional layer of privacy protection.
[0242] Similarly, storing the vector embedding may include generating vector embeddings based on the sensitive values. Vector embeddings may be generated by training a machine learning model to represent data points (like words, images, or documents) as numerical vectors. Thereafter, the sensitive values may be used as an input to the machine learning model, and the model may output a vector embedding. For the sensitive value. The vector embeddings for each sensitive value may be stored exclusively in memory during the scanning operation, with no persistence to disk to minimize the risk of data exposure.
[0243] In stage 210, the computing device may extract text from a document. The text extraction stage may involve processing a document to extract its textual content. This extraction may utilize specialized parsers for different file formats, including but not limited to PDF, DOCX, TXT, HTML, and other common document types. The extracted text may undergo normalization procedures to ensure consistent encoding and character representation across different document sources.
[0244] The text extraction process may preserve structural elements such as paragraphs, sections, and formatting where relevant to maintain the context of the extracted text. For documents containing embedded objects or attachments, the text extraction may recursively process these elements to ensure comprehensive coverage of all textual content within the document. This recursive processing may help ensure that sensitive information contained within embedded objects or attachments may not be overlooked during the matching process.
[0245] Following text extraction, the method 200 may tokenize the extracted text into sequences suitable for comparison at stage 215. These sequences may include individual words, n-grams (sequences of n consecutive words or characters), sliding windows of text, and / or any other sequence of characters useful for comparison. The tokenization approach may be configurable based on the nature of the sensitive values being matched, the requirements of the specific use case, and / or the like.
[0246] The tokenization of extracted text may implement techniques to handle variations in text representation that may affect exact matching. These techniques may include case normalization, whitespace normalization, and other text standardization approaches to increase the likelihood of identifying matches despite minor variations in text representation. The tokenization process may be optimized for the specific characteristics of the sensitive values being matched, with different approaches for numerical identifiers, names, addresses, or other types of sensitive information.
[0247] At stage 220, the computing device may determine if the tokenized text matches any of the sensitive information. For each tokenized sequence, the computing device 300 may generate one or more cryptographic hashes using the same secure hashing algorithm employed for the sensitive values. These generated hashes may be compared against the secure in-memory hash table to identify exact matches of sensitive values within the document. When a hash match is identified, this may be indicative of an exact match of the sensitive information item. The computing device 300 may record the match location within the document, including information such as the token position, surrounding context, and any relevant metadata.
[0248] The method 200 may also implement semantic matching. In some embodiments, the semantic matching may be implemented in parallel with the exact matching described above. In other embodiments, the method may move to semantic matching after a decision regarding an exact match is determined.
[0249] In some embodiments, the exact matching stage and the semantic matching stage may be executed in parallel, with results from both stages merged prior to LLM evaluation. Parallel execution may reduce overall scan latency for large documents by allowing the hash matching pipeline and the embedding generation and vector search pipeline to operate concurrently on the same extracted text. In other embodiments, the method may execute the stages sequentially, proceeding to semantic matching only after exact matching is complete. In sequential execution, exact match results may be used to inform the scope of semantic matching, potentially reducing the number of document chunks submitted for embedding generation. The selection between parallel and sequential execution may be configurable based on available computational resources, latency requirements, and the characteristics of the sensitive value set. In either execution mode, the results from both stages may be combined before being submitted to the LLM evaluation stage.
[0250] In stage 225, the computing device may generate embeddings associated with the extracted text. The extracted text may be segmented into fixed-size chunks. The chunk size may be configurable. As one non-limiting example, a chunk size may be approximately 500 tokens, balancing contextual information capture with processing efficiency. Each chunk may overlap with adjacent chunks by a configurable amount to ensure that sensitive information spanning chunk boundaries may not be missed.
[0251] The overlap between adjacent chunks may be implemented by advancing the chunk start position by a stride value that is less than the chunk size, such that each chunk may share a configurable number of tokens with the preceding and following chunks. As a non-limiting example, a chunk size of 500 tokens with a stride of 400 tokens may produce an overlap of 100 tokens between adjacent chunks. The overlap amount may be configurable independently of the chunk size and may be set based on the typical length of the sensitive values being matched. For sensitive values that are short relative to the chunk size, a smaller overlap may be sufficient. For sensitive values that may span longer text sequences, a larger overlap may reduce the risk of boundary-spanning matches being missed. The system may also support a dynamic overlap mode where the overlap amount may be adjusted based on the detected boundaries of natural language units such as sentences or paragraphs, ensuring that chunk boundaries may not fall within a sensitive value sequence where possible.
[0252] For each text chunk, the method may generate a vector embedding using a pre-trained embedding model. These embeddings may transform each text chunk into a high-dimensional vector that represents the semantic content of the chunk. The vectors may capture complex semantic relationships and contextual information that may enable identification of paraphrased or conceptually similar content.
[0253] The vector embedding generation for fixed-size chunks may utilize models specifically designed for semantic similarity detection. These models may capture nuanced semantic relationships that enable the identification of paraphrased or conceptually similar content. The embedding generation process may be enhanced with domain-specific models trained for particular industries or types of sensitive information, improving the accuracy of semantic matching for domain-specific content.
[0254] In embodiments, the generated embeddings may be stored in memory during the scanning operation, with no persistence to disk to minimize the risk of data exposure.
[0255] At stage 230, the computing device 300 may compare the generated vector embeddings to the embeddings associated with sensitive information as a means of identifying semantic matches. For example, a nearest-neighbor search and / or cosine similarity search may be performed using the generated vector embeddings and the embeddings stored in the vector embedding table to identify semantic matches instances where the document may contain variations or contextual references to the sensitive information rather than exact matches. This search may identify the portions (chunks) of each document that are most semantically similar to the sensitive values based on vector distance metrics such as cosine similarity, Euclidean distance, or other appropriate distance measures.
[0256] The nearest-neighbor search using the generated vector embeddings may implement efficient ANN to enable high-performance similarity searches in high-dimensional vector spaces, identifying semantic matches with minimal computational overhead. Suitable ANN implementations may include, but are not limited to, the FAISS library, HNSW-based indexes, ScaNN, Annoy, and other approximate nearest-neighbor search libraries capable of operating entirely within the customer computing environment. The search process may apply configurable similarity thresholds to filter out low-confidence matches, focusing subsequent processing on the most promising match candidates.
[0257] At stage 235, the results from both the exact matching (220) and semantic matching (230) stages may be combined to construct prompts for a local large language model (LLM). These prompts may incorporate the identified match candidates along with surrounding context to provide sufficient information for accurate evaluation. The prompt construction may balance providing adequate context for determination while minimizing the inclusion of sensitive information.
[0258] The construction of prompts for the local LLM may implement templates optimized for different types of sensitive information and matching scenarios. These templates may be designed to elicit accurate determinations from the language model while minimizing the inclusion of sensitive information in the prompts. The prompt construction may incorporate information about the match type (exact or semantic), the confidence level from previous stages, and sufficient context to enable accurate evaluation.
[0259] The computing device 300 may execute a local LLM that operates entirely within the customer environment to evaluate the match candidates in stage 240. The LLM may analyze the context surrounding potential matches to determine whether they represent true instances of sensitive information. The model may consider factors such as semantic context, document structure, and linguistic patterns to make this determination. The LLM's response may include a confidence score indicating the likelihood that the match represents a true instance of sensitive information.
[0260] The execution of the local LLM may leverage models specifically selected or fine-tuned for the sensitive data matching task. These models may be optimized for deployment within the customer environment, balancing accuracy with resource requirements. The LLM evaluation may implement batching techniques that process multiple match evaluations simultaneously when possible, improving throughput while maintaining accuracy for large documents with numerous potential matches.
[0261] For cases where the confidence in a match determination may be below a predetermined threshold, the method may implement an escalation mechanism. This escalation may involve retrieving the sensitive cleartext value from the secure in-memory hash table, incorporating it into a more specific prompt for the local LLM, and generating a final match decision with an updated confidence score. This escalation approach may balance privacy considerations with the need for high-precision analysis in challenging cases.
[0262] As an example, the system may determine that confidence in a match candidate may be below a predetermined threshold based on the combined results from the exact matching and semantic matching stages. This determination may consider factors such as the similarity score from the semantic matching process, the context surrounding the potential match, and any ambiguities in the matching results.
[0263] Upon determining that a more detailed analysis may be required, the method may retrieve the sensitive cleartext value from the in-memory hash table corresponding to the match candidate. This retrieval may be performed with strict access controls to ensure that the sensitive value may only be used for the specific evaluation purpose and may not be exposed beyond the local LLM processing environment.
[0264] The correspondence between a match candidate and its originating sensitive value in the in-memory hash table may be maintained through a match candidate record generated during the exact matching or semantic matching stage, wherein the record may store a reference identifier linking the candidate to the hash table entry from which it was derived. This reference identifier may be used during the escalation process to retrieve the specific cleartext sensitive value associated with the candidate without requiring a full scan of the hash table.
[0265] The method may incorporate the retrieved sensitive cleartext value into a prompt for the local LLM, along with additional context from the document. This enhanced prompt may be designed to provide the LLM with sufficient information to make a more accurate determination about whether the sensitive value may be present in the document. The prompt may be structured to focus the LLM's attention on the specific comparison between the sensitive value and the document content.
[0266] The local LLM may be executed with the enhanced prompt to evaluate whether the sensitive cleartext value may be present in the document. This execution may leverage the LLM's natural language understanding capabilities to perform a more nuanced comparison than would be possible with hash matching or embedding similarity alone. The LLM may consider factors such as paraphrasing, abbreviations, formatting variations, or contextual references that might indicate the presence of the sensitive value.
[0267] Based on the LLM's evaluation, the method may generate a final match decision with a confidence score. This decision may indicate whether the sensitive value may be present in the document, along with a confidence level that reflects the LLM's certainty in its determination. The final decision may incorporate information from all previous matching stages, with the LLM evaluation providing the definitive assessment for cases where earlier stages produced uncertain results.
[0268] Throughout this escalation process, strict privacy controls may be maintained to ensure that the sensitive cleartext value may only exist in memory during the evaluation process and may be securely destroyed immediately after the evaluation is complete. The method may implement memory isolation techniques to prevent the sensitive value from being exposed beyond the specific LLM evaluation context.
[0269] In some embodiments, the system may implement memory isolation techniques to further restrict access to sensitive cleartext values during the escalation process. The sensitive cleartext values retrieved from the in-memory hash table for use in escalation prompts may be stored in an isolated memory region that may be accessible only to the LLM evaluation module 150 during the evaluation operation. Access to this isolated memory region may be controlled through operating system memory protection mechanisms, hardware-enforced memory isolation, or secure enclave technologies such as Intel SGX or ARM TrustZone where available on the deployment platform. Upon completion of the LLM evaluation for a given match candidate, the sensitive cleartext value may be immediately zeroized from the isolated memory region using secure memory clearing techniques prior to processing the next match candidate. This one-time-retrieval and immediate-zeroization approach may minimize the window during which sensitive cleartext values may be present in accessible memory, reducing the risk of exposure through memory inspection, side-channel attacks, or unexpected process termination.
[0270] The output from this escalation process may include the final match decision, confidence score, and a trace of the decision process without including the actual sensitive value. This privacy-preserving output may provide actionable information about the presence of sensitive content while maintaining the confidentiality of the sensitive value itself.
[0271] The method may output match results in stage 245. The match results may be output in a privacy-preserving manner. The output may include document identifiers, match flags indicating the presence of sensitive data, confidence scores for each identified match, location information for each match within the document, and scan result traces showing the determination process through multiple stages of analysis. Importantly, no raw document content, embeddings, or vectors may be transmitted outside the secure processing environment, maintaining the privacy-preserving nature of the method.
[0272] For purposes of the computer-readable medium embodiment, the secure processing environment may refer to the customer computing environment as described herein, including the container and all memory resources allocated to the scanning operation. No match results, embeddings, vectors, or document content may be transmitted outside this secure processing environment to any external system, service, or network endpoint.
[0273] The output of match results may implement a structured format that provides actionable information about the presence of sensitive content without including the sensitive content itself. This output may include detailed information about the match determination process, including which matching stage contributed to the final determination and the confidence scores from each stage. This detailed output may provide transparency into the matching process while maintaining the privacy-preserving nature of the method.
[0274] A scan result trace may be structured as an ordered record of per-stage determination entries, wherein each entry may include the stage identifier (exact match, semantic match, or LLM evaluation), the confidence score produced by that stage, the match candidate identifier, the location reference within the document, and a flag indicating whether the stage produced a conclusive determination or passed the candidate to the next stage. The scan result trace may be serialized in a structured format such as JSON and may be included in the match report as a nested object associated with each identified match. The trace may contain no raw document content, sensitive values, embeddings, or vectors, consistent with the privacy-preserving output constraints of the system.
[0275] In some embodiments, the match report may include an audit trail as a distinct component separate from the scan result trace. The audit trail may document the operational context of the scanning session rather than the per-match determination process, and may include the scan initiation timestamp, the identity and version of each pipeline component active during the scan, the total number of documents processed, aggregate match statistics, and any configuration parameters applied during the session. The audit trail may be formatted to exclude any sensitive values, document content, vector embeddings, or cryptographic hashes of document text, ensuring that the audit trail may be retained and shared for compliance and regulatory purposes without creating a sensitive data exposure risk. The audit trail may be serialized as a structured document appended to or associated with the match report, and may be independently accessible to users with audit roles without requiring access to the full match report.
[0276] The method 200 may operate within a container in the customer computing environment. This containerized approach may provide isolation from other systems and may facilitate complete removal after scanning operations. Upon completion of the sensitive data matching operations for the document, the method may securely destroy the secure in-memory hash table, vector embeddings, and any temporary data. The container may then be terminated to ensure no sensitive data persists after completion.
[0277] The deployment of the container within the customer computing environment may leverage container orchestration technologies such as Kubernetes, Docker Swarm, or similar platforms. These technologies may enable efficient resource allocation, isolation, and lifecycle management for the scanning container. The deployment process may include configuration of resource allocations, network settings, and access controls to ensure proper operation and security.
[0278] The method may also support receiving model and configuration updates from a software-as-a-service (SaaS) tenant service. Before applying these updates, the method may verify their integrity and authenticity to ensure that only legitimate updates from authorized sources may be applied. The updates may be applied to local matching algorithms and models without exposing local data to the SaaS tenant service. The method may maintain version information of models and configurations for audit purposes, providing transparency and traceability.
[0279] The reception of model and configuration updates from the SaaS tenant service may establish a secure communication channel using strong encryption and authentication mechanisms. This communication channel may ensure that only authorized updates may be applied to the system, protecting against potential supply chain attacks or unauthorized modifications. The update process may implement staging and validation procedures that verify the correct operation of updated components before they may be fully deployed.
[0280] The verification of update integrity and authenticity may utilize cryptographic signatures or other verification mechanisms to ensure that only legitimate updates from authorized sources may be applied. This verification may protect against tampering or unauthorized modifications during the update transmission process. The method may maintain a local cache of configurations and models to enable operation in disconnected scenarios where communication with the SaaS tenant service may not be available.
[0281] The application of updates to local matching algorithms and models may implement privacy-preserving update mechanisms that apply updates without exposing local data to the SaaS tenant service. This approach may ensure that data privacy may be maintained throughout the update process. The method may implement version control mechanisms that track the versions of all components, configurations, and models used during scanning operations.
[0282] The maintenance of version information for models and configurations may provide transparency and traceability for audit and compliance purposes. This version information may be included in scan results to document which versions were used for each scanning operation. The method may maintain detailed logs of update activities, including timestamps, version changes, and verification results, providing a comprehensive audit trail for security and compliance purposes.
[0283] In embodiments, the method 200 may cause termination of the container. For example, the container may be terminated following a configurable idle time, or in response to a command from an outside resource (e.g., an orchestrator).
[0284] The secure destruction of the in-memory hash table, vector embeddings, and temporary data may implement secure memory clearing techniques that go beyond standard memory deallocation. These techniques may include overwriting memory with random patterns before deallocation to mitigate potential memory remnant attacks. For any temporary files created during processing, the method may implement secure file deletion techniques such as multiple-pass overwriting or leveraging platform-specific secure deletion APIs.
[0285] The termination of the container may be coordinated with container management systems to ensure that the entire container may be terminated and removed after scanning operations. This container-level destruction may provide an additional layer of isolation and security by ensuring that no operational remnants may persist after processing. The method may implement verification checks to confirm that all resources have been properly released and destroyed.
[0286] Following container termination, the method may perform a post-termination verification step to confirm that all memory allocations, temporary files, and container resources associated with the scanning operation have been fully released. This verification may include querying the container orchestration platform to confirm complete container removal, inspecting the host environment for any residual process artifacts, and generating a verification record in the destruction log. The verification record may document the timestamp of container termination, the confirmation of resource release, and the identity of the orchestration platform used, without including any sensitive values or document content.
[0287] Upon completion of the sensitive data matching operations for the document, the method may initiate a comprehensive cleanup process. This process may begin with the identification of all memory allocations and temporary storage locations that may contain sensitive information, including the in-memory hash table, vector embeddings, document chunks, and any intermediate processing results.
[0288] The secure destruction of the in-memory hash table may implement secure memory clearing techniques that go beyond standard memory deallocation. These techniques may include overwriting memory with random patterns before deallocation to mitigate potential memory remnant attacks. Similar secure destruction processes may be applied to the vector embeddings and any other temporary data generated during the scanning operation.
[0289] The method may verify the successful destruction of sensitive data through validation checks that confirm memory has been properly cleared and temporary files have been securely deleted. These validation checks may provide assurance that the destruction process has been completed successfully and no sensitive data remains in memory or on disk.
[0290] The container termination process may be coordinated with container management systems to ensure that the entire container may be terminated and removed after scanning operations. This container-level destruction may provide an additional layer of isolation and security by ensuring that no operational remnants may persist after processing. The method may implement verification checks to confirm that all container resources have been properly released and destroyed.
[0291] In the computer-readable medium embodiment, upon termination of the container, the instructions may cause the processor to verify that no sensitive data, including the secure in-memory hash table, vector embeddings, document chunks, or intermediate processing results, persists in any memory region, temporary file, or storage location accessible within or outside the customer computing environment. This post-termination state guarantee may be enforced through the same secure destruction and verification procedures described with respect to the secure destruction module 160, applied within the execution context of the computer-readable medium.
[0292] Throughout this deployment and destruction process, the method may maintain detailed logs of container lifecycle events without including any sensitive information. These logs may be valuable for audit and compliance purposes, providing evidence that sensitive data has been properly handled throughout its lifecycle.IV. Hardware Architecture
[0293] Embodiments of the present disclosure provide a hardware and software platform operative as a distributed system of modules and computing elements.
[0294] The system may be embodied as, for example, but not be limited to, a website, a web application, a desktop application, a backend application, and a mobile application compatible with a computing device 300. The computing device 300 may comprise, but not be limited to, the following:
[0295] Mobile computing device, such as, but is not limited to, a laptop, a tablet, a smartphone, a drone, a wearable, an embedded device, a handheld device, an Arduino, an industrial device, or a remotely operable recording device;
[0296] A supercomputer, an exascale supercomputer, a mainframe, or a quantum computer;
[0297] A minicomputer, wherein the minicomputer computing device comprises, but is not limited to, an IBM AS400 / iSeries / System I, A DEC VAX / PDP, an HP3000, a Honeywell-Bull DPS, a Texas Instruments TI-990, or a Wang Laboratories VS Series;
[0298] A microcomputer, wherein the microcomputer computing device comprises, but is not limited to, a server, wherein a server may be rack-mounted, a workstation, an industrial device, a raspberry pi, a desktop, or an embedded device;
[0299] The system may be hosted on a centralized server or a cloud computing service. Although methods have been described to be performed by a computing device 300, it should be understood that, in some embodiments, different operations may be performed by a plurality of the computing devices 300 in operative communication on at least one network.
[0300] Embodiments of the present disclosure may comprise a system having a central processing unit (CPU) 320, a bus 330, a memory unit 340, a power supply unit (PSU) 350, and one or more Input / Output (I / O) units. The CPU 320 coupled to the memory unit 340 and the plurality of I / O units 360 via the bus 330, all of which are powered by the PSU 350. It should be understood that, in some embodiments, each disclosed unit may actually be a plurality of such units for redundancy, high availability, and / or performance purposes. The combination of the presently disclosed units is configured to perform the stages of any method disclosed herein.
[0301] FIG. 3 is a block diagram of a system including computing device 300. Consistent with an embodiment of the disclosure, the aforementioned CPU 320, the bus 330, the memory unit 340, a PSU 350, and the plurality of I / O units 360 may be implemented in a computing device, such as computing device 300 of FIG. 3. Any suitable combination of hardware, software, or firmware may be used to implement the aforementioned units. For example, the CPU 320, the bus 330, and the memory unit 340 may be implemented with computing device 300 or any of other computing devices 300, in combination with computing device 300. The aforementioned system, device, and components are examples and other systems, devices, and components may comprise the aforementioned CPU 320, the bus 330, and the memory unit 340, consistent with embodiments of the disclosure.
[0302] At least one computing device 300 may be embodied as any of the computing elements illustrated in all of the attached figures. A computing device 300 does not need to be electronic, nor even have a CPU 320, nor bus 330, nor memory unit 340. The definition of the computing device 300 to a person having ordinary skill in the art is “A device that computes, especially a programmable [usually] electronic machine that performs high-speed mathematical or logical operations or that assembles, stores, correlates, or otherwise processes information.” Any device which processes information qualifies as a computing device 300, especially if the processing is purposeful.
[0303] With reference to FIG. 3, a system consistent with an embodiment of the disclosure may include a computing device, such as computing device 300. In some configurations, the computing device 300 may include at least one clock module 310, at least one CPU 320, at least one bus 330, and at least one memory unit 340, at least one PSU 350, and at least one I / O 360 module, wherein I / O module may be comprised of, but not limited to a non-volatile storage sub-module 361, a communication sub-module 362, a sensors sub-module 363, and a peripherals sub-module 364.
[0304] In a system consistent with an embodiment of the disclosure, the computing device 300 may include the clock module 310, known to a person having ordinary skill in the art as a clock generator, which produces clock signals. Clock signals may oscillate between a high state and a low state at a controllable rate, and may be used to synchronize or coordinate actions of digital circuits. Most integrated circuits (ICs) of sufficient complexity use a clock signal in order to synchronize different parts of the circuit, cycling at a rate slower than the worst-case internal propagation delays. One well-known example of the aforementioned integrated circuit is the CPU 320, the central component of modern computers, which relies on a clock signal. The clock 310 can comprise a plurality of embodiments, such as, but not limited to, a single-phase clock which transmits all clock signals on effectively 1 wire, a two-phase clock which distributes clock signals on 2 wires, each with non-overlapping pulses, and a four-phase clock which distributes clock signals on 4 wires.
[0305] Many computing devices 300 may use a “clock multiplier” which multiplies a lower frequency external clock to the appropriate clock rate of the CPU 320. This allows the CPU 320 to operate at a much higher frequency than the rest of the computing device 300, which affords performance gains in situations where the CPU 320 does not need to wait on an external factor (like memory 340 or input / output 360). Some embodiments of the clock 310 may include dynamic frequency change, where the time between clock edges can vary widely from one edge to the next and back again.
[0306] In a system consistent with an embodiment of the disclosure, the computing device 300 may include the CPU 320 comprising at least one CPU Core 321. In other embodiments, the CPU 320 may include a plurality of identical CPU cores 321, such as, but not limited to, homogeneous multi-core systems. It is also possible for the plurality of CPU cores 321 to comprise different CPU cores 321, such as, but not limited to, heterogeneous multi-core systems, big. LITTLE systems and some AMD accelerated processing units (APU). The CPU 320 reads and executes program instructions which may be used across many application domains, for example, but not limited to, general purpose computing, embedded computing, network computing, digital signal processing (DSP), and graphics processing (GPU) 366. The GPU 366 contains multiple cores and can perform parallel processing and perform complex calculations simultaneously designed for AI processing workloads. The GPU 366 communicates with Main Memory 330 and CPU 320 using the PCI Bus 365. The CPU 320 may run multiple instructions on separate CPU cores 321 simultaneously. The CPU 320 may be integrated into at least one of a single integrated circuit die, and multiple dies in a single chip package. The single integrated circuit dies and / or the multiple dies in a single chip package may contain a plurality of other elements of the computing device 300, for example, but not limited to, the clock 310, the bus 330, the memory 340, and I / O 360.
[0307] The CPU 320 may contain cache 322 such as but not limited to a level 1 cache, a level 2 cache, a level 3 cache, or combinations thereof. The cache 322 may or may not be shared amongst a plurality of CPU cores 321. The cache 322 sharing may comprise at least one of message passing and inter-core communication methods used for the at least one CPU Core 321 to communicate with the cache 322. The inter-core communication methods may comprise, but not be limited to, bus, ring, two-dimensional mesh, and crossbar. The aforementioned CPU 320 may employ symmetric multiprocessing (SMP) design.
[0308] The one or more CPU cores 321 may comprise soft microprocessor cores on a single field programmable gate array (FPGA), such as semiconductor intellectual property cores (IP Core). The architectures of the one or more CPU cores 321 may be based on at least one of, but not limited to, Complex Instruction Set Computing (CISC), Zero Instruction Set Computing (ZISC), and Reduced Instruction Set Computing (RISC). At least one performance-enhancing method may be employed by one or more of the CPU cores 321, for example, but not limited to Instruction-level parallelism (ILP) such as, but not limited to, superscalar pipelining, and Thread-level parallelism (TLP).
[0309] Consistent with the embodiments of the present disclosure, the aforementioned computing device 300 may employ a communication system that transfers data between components inside the computing device 300, and / or the plurality of computing devices 300. The aforementioned communication system will be known to a person having ordinary skill in the art as a bus 330. The bus 330 may embody internal and / or external hardware and software components, for example, but not limited to a wire, an optical fiber, various communication protocols, and / or any physical arrangement that provides the same logical function as a parallel electrical bus. The bus 330 may comprise at least one of a parallel bus, wherein the parallel bus carries data words in parallel on multiple wires; and a serial bus, wherein the serial bus carries data in bit-wise serial form. The bus 330 may embody a plurality of topologies, for example, but not limited to, a multidrop / electrical parallel topology, a daisy chain topology, and connected by switched hubs, such as a USB bus. The bus 330 may comprise a plurality of embodiments, for example, but not limited to:
[0310] Internal data bus (data bus) 331 / Memory bus
[0311] Control bus 332
[0312] Address bus 333
[0313] System Management Bus (SMBus)
[0314] Front-Side-Bus (FSB)
[0315] External Bus Interface (EBI)
[0316] Local bus
[0317] Expansion bus
[0318] Lightning bus
[0319] Controller Area Network (CAN bus)
[0320] Camera Link
[0321] ExpressCard
[0322] Advanced Technology management Attachment (ATA), including embodiments and derivatives such as, but not limited to, Integrated Drive Electronics (IDE) / Enhanced IDE (EIDE), ATA Packet Interface (ATAPI), Ultra-Direct Memory Access (UDMA), Ultra ATA (UATA) / Parallel ATA (PATA) / Serial Serial ATA (SATA), CompactFlash (CF) interface, Consumer Electronics ATA (CE-ATA) / Fiber Attached Technology Adapted (FATA), Advanced Host Controller Interface (AHCI), SATA Express (SATAe) / External SATA (eSATA), including the powered embodiment eSATAp / Mini-SATA (mSATA), and Next Generation Form Factor (NGFF) / M.2.
[0323] Small Computer System Interface (SCSI) / Serial Attached SCSI (SAS)
[0324] HyperTransport
[0325] InfiniBand
[0326] RapidIO
[0327] Mobile Industry Processor Interface (MIPI)
[0328] Coherent Processor Interface (CAPI)
[0329] Plug-n-play
[0330] 1-Wire
[0331] Peripheral Component Interconnect (PCI), including embodiments such as but not limited to, Accelerated Graphics Port (AGP), Peripheral Component Interconnect eXtended (PCI-X), Peripheral Component Interconnect Express (PCI-e) (e.g., PCI Express Mini Card, PCI Express M.2 [Mini PCIe v2], PCI Express External Cabling [ePCIe], and PCI Express OCuLink [Optical Copper{Cu} Link]), Express Card, AdvancedTCA, AMC, Universal IO, Thunderbolt / Mini DisplayPort, Mobile PCIe (M-PCIe), U.2, and Non-Volatile Memory Express (NVMe) / Non-Volatile Memory Host Controller Interface Specification (NVMHCIS).
[0332] Industry Standard Architecture (ISA), including embodiments such as, but not limited to Extended ISA (EISA), PC / XT-bus / PC / AT-bus / PC / 104 bus (e.g., PC / 104-Plus, PCI / 104-Express, PCI / 104, and PCI-104), and Low Pin Count (LPC).
[0333] Music Instrument Digital Interface (MIDI)
[0334] Universal Serial Bus (USB), including embodiments such as, but not limited to, Media Transfer Protocol (MTP) / Mobile High-Definition Link (MHL), Device Firmware Upgrade (DFU), wireless USB, InterChip USB, IEEE 1394 Interface / Firewire, Thunderbolt, and eXtensible Host Controller Interface (xHCI).
[0335] Consistent with the embodiments of the present disclosure, the aforementioned computing device 300 may employ hardware integrated circuits that store information for immediate use in the computing device 300, known to persons having ordinary skill in the art as primary storage or memory 340. The memory 340 operates at high speed, distinguishing it from the non-volatile storage sub-module 361, which may be referred to as secondary or tertiary storage, which provides relatively slower-access to information but offers higher storage capacity. The data contained in memory 340, may be transferred to secondary storage via techniques such as, but not limited to, virtual memory and swap. The memory 340 may be associated with addressable semiconductor memory, such as integrated circuits consisting of silicon-based transistors, that may be used as primary storage or for other purposes in the computing device 300. The memory 340 may comprise a plurality of embodiments, such as, but not limited to volatile memory, non-volatile memory, and semi-volatile memory. It should be understood by a person having ordinary skill in the art that the following are non-limiting examples of the aforementioned memory:
[0336] Volatile memory, which requires power to maintain stored information, for example, but not limited to, Dynamic Random-Access Memory (DRAM) 341, Static Random-Access Memory (SRAM) 342, CPU Cache memory 325, Advanced Random-Access Memory (A-RAM), and other types of primary storage such as Random-Access Memory (RAM).
[0337] Non-volatile memory, which can retain stored information even after power is removed, for example, but not limited to, Read-Only Memory (ROM) 343, Programmable ROM (PROM) 344, Erasable PROM (EPROM) 345, Electrically Erasable PROM (EEPROM) 346 (e.g., flash memory and Electrically Alterable PROM [EAPROM]), Mask ROM (MROM), One Time Programmable (OTP) ROM / Write Once Read Many (WORM), Ferroelectric RAM (FeRAM), Parallel Random-Access Machine (PRAM), Split-Transfer Torque RAM (STT-RAM), Silicon Oxime Nitride Oxide Silicon (SONOS), Resistive RAM (RRAM), Nano RAM (NRAM), 3D XPoint, Domain-Wall Memory (DWM), and millipede memory.
[0338] Semi-volatile memory may have limited non-volatile duration after power is removed but may lose data after said duration has passed. Semi-volatile memory provides high performance, durability, and other valuable characteristics typically associated with volatile memory, while providing some benefits of true non-volatile memory. The semi-volatile memory may comprise volatile and non-volatile memory, and / or volatile memory with a battery to provide power after power is removed. The semi-volatile memory may comprise, but is not limited to, spin-transfer torque RAM (STT-RAM).
[0339] Consistent with the embodiments of the present disclosure, the aforementioned computing device 300 may employ a communication system between an information processing system, such as the computing device 300, and the outside world, for example, but not limited to, human, environment, and another computing device 300. The aforementioned communication system may be known to a person having ordinary skill in the art as an Input / Output (I / O) module 360. The I / O module 360 regulates a plurality of inputs and outputs with regard to the computing device 300, wherein the inputs are a plurality of signals and data received by the computing device 300, and the outputs are the plurality of signals and data sent from the computing device 300. The I / O module 360 interfaces with a plurality of hardware, such as, but not limited to, non-volatile storage 361, communication devices 362, sensors 363, and peripherals 364. The plurality of hardware is used by at least one of, but not limited to, humans, the environment, and another computing device 300 to communicate with the present computing device 300. The I / O module 360 may comprise a plurality of forms, for example, but not limited to channel I / O, port mapped I / O, asynchronous I / O, and Direct Memory Access (DMA).
[0340] Consistent with the embodiments of the present disclosure, the aforementioned computing device 300 may employ a non-volatile storage sub-module 361, which may be referred to by a person having ordinary skill in the art as one of secondary storage, external memory, tertiary storage, off-line storage, and auxiliary storage. The non-volatile storage sub-module 361 may not be accessed directly by the CPU 320 without using an intermediate area in the memory 340. The non-volatile storage sub-module 361 may not lose data when power is removed and may be orders of magnitude less costly than storage used in memory 340. Further, the non-volatile storage sub-module 361 may have a slower speed and higher latency than in other areas of the computing device 300. The non-volatile storage sub-module 361 may comprise a plurality of forms, such as, but not limited to, Direct Attached Storage (DAS), Network Attached Storage (NAS), Storage Area Network (SAN), nearline storage, Massive Array of Idle Disks (MAID), Redundant Array of Independent Disks (RAID), device mirroring, off-line storage, and robotic storage. The non-volatile storage sub-module (361) may comprise a plurality of embodiments, such as, but not limited to:
[0341] Optical storage, for example, but not limited to, Compact Disk (CD) (CD-ROM / CD-R / CD-RW), Digital Versatile Disk (DVD) (DVD-ROM / DVD-R / DVD+R / DVD-RW / DVD+RW / DVD±RW / DVD+R DL / DVD-RAM / HD-DVD), Blu-ray Disk (BD) (BD-ROM / BD-R / BD-RE / BD-R DL / BD-RE DL), and Ultra-Density Optical (UDO).
[0342] Semiconductor storage, for example, but not limited to, flash memory, such as, but not limited to, USB flash drive, Memory card, Subscriber Identity Module (SIM) card, Secure Digital (SD) card, Smart Card, CompactFlash (CF) card, Solid-State Drive (SSD) and memristor.
[0343] Magnetic storage such as, but not limited to, Hard Disk Drive (HDD), tape drive, carousel memory, and Card Random-Access Memory (CRAM).
[0344] Phase-change memory
[0345] Holographic data storage such as Holographic Versatile Disk (HVD).
[0346] Molecular Memory
[0347] Deoxyribonucleic Acid (DNA) Digital Data Storage
[0348] Consistent with the embodiments of the present disclosure, the computing device 300 may employ a communication sub-module 362 as a subset of the I / O module 360, which may be referred to by a person having ordinary skill in the art as at least one of, but not limited to, a computer network, a data network, and a network. The network may allow computing devices 300 to exchange data using connections, which may also be known to a person having ordinary skill in the art as data links, which may include data links between network nodes. The nodes may comprise networked computer devices 300 that may be configured to originate, route, and / or terminate data. The nodes may be identified by network addresses and may include a plurality of hosts consistent with the embodiments of a computing device 300. Examples of computing devices that may include a communication sub-module 362 include, but are not limited to, personal computers, phones, servers, drones, and networking devices such as, but not limited to, hubs, switches, routers, modems, and firewalls.
[0349] Two nodes can be considered networked together when one computing device 300 can exchange information with the other computing device 300, regardless of any direct connection between the two computing devices 300. The communication sub-module 362 supports a plurality of applications and services, such as, but not limited to World Wide Web (WWW), digital video and audio, shared use of application and storage computing devices 300, printers / scanners / fax machines, email / online chat / instant messaging, remote control, distributed computing, etc. The network may comprise one or more transmission mediums, such as, but not limited to conductive wire, fiber optics, and wireless signals. The network may comprise one or more communications protocols to organize network traffic, wherein application-specific communications protocols may be layered, and may be known to a person having ordinary skill in the art as being improved for carrying a specific type of payload, when compared with other more general communications protocols. The plurality of communications protocols may comprise, but are not limited to, IEEE 802, ethernet, Wireless LAN (WLAN / Wi-Fi), Internet Protocol (IP) suite (e.g., TCP / IP, UDP, Internet Protocol version 4[IPv4], and Internet Protocol version 6 [IPv6]), Synchronous Optical Networking (SONET) / Synchronous Digital Hierarchy (SDH), Asynchronous Transfer Mode (ATM), and cellular standards (e.g., Global System for Mobile Communications [GSM], General Packet Radio Service [GPRS], Code-Division Multiple Access [CDMA], Integrated Digital Enhanced Network [IDEN], Long Term Evolution [LTE], LTE-Advanced [LTE-A], and fifth generation [5G] communication protocols).
[0350] The communication sub-module 362 may comprise a plurality of size, topology, traffic control mechanisms and organizational intent policies. The communication sub-module 362 may comprise a plurality of embodiments, such as, but not limited to:
[0351] Wired communications, such as, but not limited to, coaxial cable, phone lines, twisted pair cables (ethernet), and InfiniBand.
[0352] Wireless communications, such as, but not limited to, communications satellites, cellular systems, radio frequency / spread spectrum technologies, IEEE 802.11 Wi-Fi, Bluetooth, NFC, free-space optical communications, terrestrial microwave, and Infrared (IR) communications. Wherein cellular systems embody technologies such as, but not limited to, 3G,4G (such as WiMAX and LTE), and 5G (short and long wavelength).
[0353] Parallel communications, such as, but not limited to, LPT ports.
[0354] Serial communications, such as, but not limited to, RS-232 and USB.
[0355] Fiber Optic communications, such as, but not limited to, Single-mode optical fiber (SMF) and Multi-mode optical fiber (MMF).
[0356] Power Line Communications.
[0357] The aforementioned network may comprise a plurality of layouts, such as, but not limited to, bus networks such as Ethernet, star networks such as Wi-Fi, ring networks, mesh networks, fully connected networks, and tree networks. The network can be characterized by its physical capacity or its organizational purpose. Use of the network, including user authorization and access rights, may differ according to the layout of the network. The characterization may include, but is not limited to a nanoscale network, a Personal Area Network (PAN), a Local Area Network (LAN), a Home Area Network (HAN), a Storage Area Network (SAN), a Campus Area Network (CAN), a backbone network, a Metropolitan Area Network (MAN), a Wide Area Network (WAN), an enterprise private network, a Virtual Private Network (VPN), and a Global Area Network (GAN).
[0358] Consistent with the embodiments of the present disclosure, the aforementioned computing device 300 may employ a sensors sub-module 363 as a subset of the I / O 360. The sensors sub-module 363 comprises at least one of the device, module, or subsystem whose purpose is to detect events or changes in its environment and send the information to the computing device 300. Sensors may be sensitive to the property they are configured to measure, may not be sensitive to any property not measured but be encountered in its application, and may not significantly influence the measured property. The sensors sub-module 363 may comprise a plurality of digital devices and analog devices, wherein if an analog device is used, an Analog to Digital (A-to-D) converter must be employed to interface the said device with the computing device 300. The sensors may be subject to a plurality of deviations that limit sensor accuracy. The sensors sub-module 363 may comprise a plurality of embodiments, such as, but not limited to, chemical sensors, automotive sensors, acoustic / sound / vibration sensors, electric current / electric potential / magnetic / radio sensors, environmental / weather / moisture / humidity sensors, flow / fluid velocity sensors, ionizing radiation / particle sensors, navigation sensors, position / angle / displacement / distance / speed / acceleration sensors, imaging / optical / light sensors, pressure sensors, force / density / level sensors, thermal / temperature sensors, and proximity / presence sensors. It should be understood by a person having ordinary skill in the art that the ensuing are non-limiting examples of the aforementioned sensors:
[0359] Chemical sensors, such as, but not limited to, breathalyzer, carbon dioxide sensor, carbon monoxide / smoke detector, catalytic bead sensor, chemical field-effect transistor, chemiresistor, electrochemical gas sensor, electronic nose, electrolyte-insulator-semiconductor sensor, energy-dispersive X-ray spectroscopy, fluorescent chloride sensors, holographic sensor, hydrocarbon dew point analyzer, hydrogen sensor, hydrogen sulfide sensor, infrared point sensor, ion-selective electrode, nondispersive infrared sensor, microwave chemistry sensor, nitrogen oxide sensor, olfactometer, optode, oxygen sensor, ozone monitor, pellistor, pH glass electrode, potentiometric sensor, redox electrode, zinc oxide nanorod sensor, and biosensors (such as nanosensors).
[0360] Automotive sensors, such as, but not limited to, air flow meter / mass airflow sensor, air-fuel ratio meter, AFR sensor, blind spot monitor, engine coolant / exhaust gas / cylinder head / transmission fluid temperature sensor, hall effect sensor, wheel / automatic transmission / turbine / vehicle speed sensor, airbag sensors, brake fluid / engine crankcase / fuel / oil / tire pressure sensor, camshaft / crankshaft / throttle position sensor, fuel / oil level sensor, knock sensor, light sensor, MAP sensor, oxygen sensor (o2), parking sensor, radar sensor, torque sensor, variable reluctance sensor, and water-in-fuel sensor.
[0361] Acoustic, sound and vibration sensors, such as, but not limited to, microphone, lace sensors such as a guitar pickup, seismometer, sound locator, geophone, and hydrophone.
[0362] Electric current, electric potential, magnetic, and radio sensors, such as, but not limited to, current sensor, Daly detector, electroscope, electron multiplier, faraday cup, galvanometer, hall effect sensor, hall probe, magnetic anomaly detector, magnetometer, magnetoresistance, MEMS magnetic field sensor, metal detector, planar hall sensor, radio direction finder, and voltage detector.
[0363] Environmental, weather, moisture, and humidity sensors, such as, but not limited to, actinometer, air pollution sensor, moisture alarm, ceilometer, dew warning, electrochemical gas sensor, fish counter, frequency domain sensor, gas detector, hook gauge evaporimeter, humistor, hygrometer, leaf sensor, lysimeter, pyranometer, pyrgeometer, psychrometer, rain gauge, rain sensor, seismometers, SNOTEL, snow gauge, soil moisture sensor, stream gauge, and tide gauge.
[0364] Flow and fluid velocity sensors, such as, but not limited to, air flow meter, anemometer, flow sensor, gas meter, mass flow sensor, and water meter.
[0365] Ionizing radiation and particle sensors, such as, but not limited to, cloud chamber, Geiger counter, Geiger-Muller tube, ionization chamber, neutron detection, proportional counter, scintillation counter, semiconductor detector, and thermoluminescent dosimeter.
[0366] Navigation sensors, such as, but not limited to, airspeed indicator, altimeter, attitude indicator, depth gauge, fluxgate compass, gyroscope, inertial navigation system, inertial reference unit, magnetic compass, MHD sensor, ring laser gyroscope, turn coordinator, variometer, vibrating structure gyroscope, and yaw rate sensor.
[0367] Position, angle, displacement, distance, speed, and acceleration sensors, such as but not limited to, accelerometer, displacement sensor, flex sensor, free-fall sensor, gravimeter, impact sensor, laser rangefinder, LIDAR, odometer, photoelectric sensor, position sensor such as, but not limited to, GPS or Glonass, angular rate sensor, shock detector, ultrasonic sensor, tilt sensor, tachometer, ultra-wideband radar, variable reluctance sensor, and velocity receiver.
[0368] Imaging, optical and light sensors, such as, but not limited to, CMOS sensor, colorimeter, contact image sensor, electro-optical sensor, infra-red sensor, kinetic inductance detector, LED configured as a light sensor, light-addressable potentiometric sensor, Nichols radiometer, fiber-optic sensors, optical position sensor, thermopile laser sensor, photodetector, photodiode, photomultiplier tubes, phototransistor, photoelectric sensor, photoionization detector, photomultiplier, photoresistor, photoswitch, phototube, scintillometer, Shack-Hartmann, single-photon avalanche diode, superconducting nanowire single-photon detector, transition edge sensor, visible light photon counter, and wavefront sensor.
[0369] Pressure sensors, such as, but not limited to, barograph, barometer, boost gauge, bourdon gauge, hot filament ionization gauge, ionization gauge, McLeod gauge, Oscillating U-tube, permanent downhole gauge, piezometer, Pirani gauge, pressure sensor, pressure gauge, tactile sensor, and time pressure gauge.
[0370] Force, Density, and Level sensors, such as, but not limited to, bhangmeter, hydrometer, force gauge or force sensor, level sensor, load cell, magnetic level or nuclear density sensor or strain gauge, piezocapacitive pressure sensor, piezoelectric sensor, torque sensor, and viscometer.
[0371] Thermal and temperature sensors, such as, but not limited to, bolometer, bimetallic strip, calorimeter, exhaust gas temperature gauge, flame detection / pyrometer, Gardon gauge, Golay cell, heat flux sensor, microbolometer, microwave radiometer, net radiometer, infrared / quartz / resistance thermometer, silicon bandgap temperature sensor, thermistor, and thermocouple.
[0372] Proximity and presence sensors, such as, but not limited to, alarm sensor, doppler radar, motion detector, occupancy sensor, proximity sensor, passive infrared sensor, reed switch, stud finder, triangulation sensor, touch switch, and wired glove.
[0373] Consistent with the embodiments of the present disclosure, the aforementioned computing device 300 may employ a peripherals sub-module 364 as a subset of the I / O 360. The peripherals sub-module 364 comprises ancillary devices used to put information into and get information out of the computing device 300. There are 3 categories of devices comprising the peripherals sub-module 364, which exist based on their relationship with the computing device 300, input devices, output devices, and input / output devices. Input devices send at least one of data and instructions to the computing device 300. Input devices can be categorized based on, but not limited to:
[0374] Modality of input, such as, but not limited to, mechanical motion, audio, visual, and tactile.
[0375] Whether the input is discrete, such as but not limited to, pressing a key, or continuous such as, but not limited to the position of a mouse.
[0376] The number of degrees of freedom involved, such as, but not limited to, two-dimensional mice and three-dimensional mice used for Computer-Aided Design (CAD) applications.
[0377] Output devices provide output from the computing device 300. Output devices convert electronically generated information into a form that can be presented to humans. Input / output devices perform that perform both input and output functions. It should be understood by a person having ordinary skill in the art that the ensuing are non-limiting embodiments of the aforementioned peripherals sub-module 364:
[0378] Input Devices
[0379] Human Interface Devices (HID), such as, but not limited to, pointing device (e.g., mouse, touchpad, joystick, touchscreen, game controller / gamepad, remote, light pen, light gun, infrared remote, jog dial, shuttle, and knob), keyboard, graphics tablet, digital pen, gesture recognition devices, magnetic ink character recognition, Sip-and-Puff (SNP) device, and Language Acquisition Device (LAD).
[0380] High degree of freedom devices, that require up to six degrees of freedom such as, but not limited to, camera gimbals, Cave Automatic Virtual Environment (CAVE), and virtual reality systems.
[0381] Video Input devices are used to digitize images or video from the outside world into the computing device 300. The information can be stored in a multitude of formats depending on the user's requirement. Examples of types of video input devices include, but are not limited to, digital camera, digital camcorder, portable media player, webcam, Microsoft Kinect, image scanner, fingerprint scanner, barcode reader, 3D scanner, laser rangefinder, eye gaze tracker, computed tomography, magnetic resonance imaging, positron emission tomography, medical ultrasonography, TV tuner, and iris scanner.
[0382] Audio input devices are used to capture sound. In some cases, an audio output device can be used as an input device to capture produced sound. Audio input devices allow a user to send audio signals to the computing device 300 for at least one of processing, recording, and carrying out commands. Devices such as microphones allow users to speak to the computer to record a voice message or navigate software. Aside from recording, audio input devices are also used with speech recognition software. Examples of types of audio input devices include, but not limited to microphone, Musical Instrumental Digital Interface (MIDI) devices such as, but not limited to a keyboard, and headset.
[0383] Data AcQuisition (DAQ) devices convert at least one of analog signals and physical parameters to digital values for processing by the computing device 300. Examples of DAQ devices may include, but not limited to, Analog to Digital Converter (ADC), data logger, signal conditioning circuitry, multiplexer, and Time to Digital Converter (TDC).
[0384] Output Devices may further comprise, but not be limited to:
[0385] Display devices may convert electrical information into visual form, such as, but not limited to, monitor, TV, projector, and Computer Output Microfilm (COM). Display devices can use a plurality of underlying technologies, such as, but not limited to, Cathode-Ray Tube (CRT), Thin-Film Transistor (TFT), Liquid Crystal Display (LCD), Organic Light-Emitting Diode (OLED), MicroLED, E Ink Display (ePaper) and Refreshable Braille Display (Braille Terminal).
[0386] Printers, such as, but not limited to, inkjet printers, laser printers, 3D printers, solid ink printers, and plotters.
[0387] Audio and Video (AV) devices, such as, but not limited to, speakers, headphones, amplifiers, and lights, which include lamps, strobes, DJ lighting, stage lighting, architectural lighting, special effect lighting, and lasers.
[0388] Other devices such as Digital to Analog Converter (DAC)
[0389] Input / Output Devices may further comprise, but not be limited to, touchscreens, networking devices (e.g., devices disclosed in network sub-module 362), data storage devices (non-volatile storage 361), facsimile (FAX), and graphics / sound cards.
[0390] All rights, including copyrights to any code included herein, are vested in and the property of the Applicant. The Applicant retains and reserves all rights in the code included herein, and grants permission to reproduce the material only in connection with the reproduction of the granted patent and for no other purpose.V. Aspects
[0391] The following discloses various Aspects of the present disclosure. The various Aspects are not to be construed as patent claims unless the language of the Aspect appears as a patent claim. The Aspects describe various non-limiting embodiments of the present disclosure.
[0392] Aspect 1. A system for privacy-preserving sensitive data matching, the system comprising: a processor; and a memory storing instructions that, when executed by the processor, cause the system to: extract text from a document; generate cryptographic hashes of token sequences from the extracted text; compare the generated cryptographic hashes against a secure in-memory hash table of sensitive values to identify exact matches; segment the extracted text into fixed-size chunks; generate vector embeddings for the fixed-size chunks; perform a nearest-neighbor search using the generated vector embeddings to identify semantic matches; construct prompts incorporating the identified exact matches and semantic matches; execute a local large language model (LLM) to evaluate match candidates; and output match results indicating locations and confidence levels of matches without exposing sensitive data.
[0393] Aspect 2. The system of Aspect 1, wherein the instructions further cause the system to: deploy the system as a container within a customer computing environment; store the secure in-memory hash table exclusively in memory during scanning operations; and securely destroy the secure in-memory hash table upon completion of scanning operations.
[0394] Aspect 3. The system of Aspect 1, wherein the instructions further cause the system to: escalate to a higher-precision LLM analysis when confidence in match candidates is below a predetermined threshold, wherein the higher-precision LLM analysis comprises: retrieving sensitive cleartext values from the in-memory hash table; incorporating the sensitive cleartext values into prompts for the local LLM; and generating final match decisions with confidence scores based on the higher-precision analysis.
[0395] Aspect 4. The system of Aspect 1, wherein the instructions further cause the system to: receive model and configuration updates from a software-as-a-service (SaaS) tenant service; and apply the updates to local matching algorithms without exposing local data to the SaaS tenant service.
[0396] Aspect 5. The system of Aspect 1, wherein the output match results comprise: file identifiers; match flags; confidence levels; and scan result traces showing determination process through multiple stages of analysis, wherein no raw document content, embeddings, or vectors are transmitted outside the system.
[0397] Aspect 6. An apparatus for privacy-preserving sensitive data detection, the apparatus comprising: a text extraction module configured to extract textual content from input documents; a hash matching module configured to: generate cryptographic hashes of text segments from the extracted textual content; compare the generated cryptographic hashes against a hash set of sensitive values; and identify exact matches between the text segments and the sensitive values; an embedding generation module configured to: divide the extracted textual content into chunks of predetermined size; generate vector embeddings for each chunk; and store the vector embeddings in a memory; a vector similarity search module configured to: maintain a vector database of embeddings corresponding to sensitive values; perform similarity searches between the chunk embeddings and the sensitive value embeddings; and identify semantic matches based on similarity scores exceeding a threshold value; a large language model (LLM) evaluation module configured to: receive the identified exact matches and semantic matches; construct context-aware prompts including the matches and surrounding text; process the prompts using a local large language model; and determine true positive matches based on the language model output; and a secure destruction module configured to remove all sensitive data, embeddings, and hash values from memory upon completion of processing.
[0398] Aspect 7. The apparatus of Aspect 6, wherein the apparatus is implemented as a containerized application configured to operate entirely within a customer computing environment without transmitting sensitive data outside the environment.
[0399] Aspect 8. The apparatus of Aspect 6, wherein the language model evaluation module is further configured to: assign confidence scores to each match based on multiple factors including hash match precision, vector similarity scores, and language model confidence; escalate low-confidence matches to a more comprehensive analysis; and generate an audit trail documenting the decision process for each identified match.
[0400] Aspect 9. The apparatus of Aspect 6, further comprising a configuration management module configured to: receive encrypted configuration updates from an external service; verify the authenticity of the updates; apply updated detection rules, models, and parameters to the respective modules; and maintain version control of all detection components for audit purposes.
[0401] Aspect 10. The apparatus of Aspect 6, wherein the apparatus is configured to output only match metadata comprising document identifiers, match locations, confidence scores, and match types, without outputting any portion of the sensitive values or document content.
[0402] Aspect 11. A method for privacy-preserving sensitive data matching, the method comprising: receiving a set of sensitive values for matching against document content; generating cryptographic hashes of the sensitive values; storing the cryptographic hashes in a secure in-memory hash table; extracting text from a document; tokenizing the extracted text into sequences; generating cryptographic hashes of the tokenized sequences; comparing the generated cryptographic hashes against the secure in-memory hash table to identify exact matches; segmenting the extracted text into fixed-size chunks; generating vector embeddings for the fixed-size chunks; performing a nearest-neighbor search using the generated vector embeddings to identify semantic matches; constructing prompts incorporating the identified exact matches and semantic matches; executing a local large language model (LLM) to evaluate the match candidates; and outputting match results indicating locations and confidence levels of matches without exposing sensitive data.
[0403] Aspect 12. The method of Aspect 11, wherein outputting match results comprises: generating a report containing document identifiers; including match flags indicating presence of sensitive data; providing confidence scores for each identified match; including location information for each match within the document; and generating scan result traces showing the determination process through multiple stages of analysis, wherein no raw document content, embeddings, or vectors are transmitted outside a secure processing environment.
[0404] Aspect 13. The method of Aspect 11, further comprising: determining that confidence in a match candidate is below a predetermined threshold; retrieving a sensitive cleartext value from the in-memory hash table corresponding to the match candidate; incorporating the sensitive cleartext value into a prompt for the local LLM; executing the local LLM with the prompt to evaluate whether the sensitive cleartext value is present in the document; and generating a final match decision with a confidence score based on the LLM evaluation.
[0405] Aspect 14. The method of Aspect 11, further comprising: deploying a container within a customer computing environment to perform the sensitive data matching; completing the sensitive data matching operations for the document; securely destroying the secure in-memory hash table, vector embeddings, and any temporary data; and terminating the container to ensure no sensitive data persists after completion.
[0406] Aspect 15. The method of Aspect 11, further comprising: receiving model and configuration updates from a software-as-a-service (SaaS) tenant service; verifying the integrity and authenticity of the updates; applying the updates to local matching algorithms and models; and maintaining version information of models and configurations for audit purposes, wherein the updates are applied without exposing local data to the SaaS tenant service.
[0407] Aspect 16. A non-transitory computer-readable medium storing instructions that, when executed by a processor, cause the processor to perform operations comprising: receiving a set of sensitive values for matching against document content; generating cryptographic hashes of the sensitive values; storing the cryptographic hashes in a secure in-memory hash table; extracting text from a document; tokenizing the extracted text into sequences; generating cryptographic hashes of the tokenized sequences; comparing the generated cryptographic hashes against the secure in-memory hash table to identify exact matches; segmenting the extracted text into fixed-size chunks; generating vector embeddings for the fixed-size chunks; performing a nearest-neighbor search using the generated vector embeddings to identify semantic matches; constructing prompts incorporating the identified exact matches and semantic matches; executing a local large language model (LLM) to evaluate the match candidates; and outputting match results indicating locations and confidence levels of matches without exposing sensitive data.
[0408] Aspect 17. The non-transitory computer-readable medium of Aspect 16, wherein outputting match results comprises: generating a report containing document identifiers; including match flags indicating presence of sensitive data; providing confidence scores for each identified match; including location information for each match within the document; and generating scan result traces showing the determination process through multiple stages of analysis, wherein no raw document content, embeddings, or vectors are transmitted outside a secure processing environment.
[0409] Aspect 18. The non-transitory computer-readable medium of Aspect 16, wherein the operations further comprise: determining that confidence in a match candidate is below a predetermined threshold; retrieving a sensitive cleartext value from the in-memory hash table corresponding to the match candidate; incorporating the sensitive cleartext value into a prompt for the local LLM; executing the local LLM with the prompt to evaluate whether the sensitive cleartext value is present in the document; and generating a final match decision with a confidence score based on the LLM evaluation.
[0410] Aspect 19. The non-transitory computer-readable medium of Aspect 16, wherein the operations further comprise: deploying a container within a customer computing environment to perform the sensitive data matching; completing the sensitive data matching operations for the document; securely destroying the secure in-memory hash table, vector embeddings, and any temporary data; and terminating the container to ensure no sensitive data persists after completion.
[0411] Aspect 20. The non-transitory computer-readable medium of Aspect 16, wherein the operations further comprise: receiving model and configuration updates from a software-as-a-service (SaaS) tenant service; verifying the integrity and authenticity of the updates; applying the updates to local matching algorithms and models; and maintaining version information of models and configurations for audit purposes, wherein the updates are applied without exposing local data to the SaaS tenant service.
[0412] Aspect 21. A method for multi-stage privacy-preserving data matching, the method comprising: receiving a set of sensitive values for matching against document content; storing the sensitive values securely in an ephemeral memory structure; extracting text content from a document; performing a first-stage exact match by: tokenizing the extracted text into n-gram sequences; generating cryptographic hash values for the n-gram sequences; comparing the generated hash values against hash values of the sensitive values; and identifying exact matches based on hash value correspondence; performing a second-stage semantic match by: dividing the extracted text into chunks of predetermined size; generating vector embeddings for each chunk; comparing the generated vector embeddings against vector embeddings of the sensitive values using a similarity search algorithm; and identifying semantic matches based on similarity scores exceeding a threshold; performing a third-stage contextual analysis by: constructing a prompt containing identified matches from the first and second stages along with surrounding context; submitting the prompt to a local large language model; analyzing the language model response to confirm or reject candidate matches; and assigning confidence scores to confirmed matches; generating a match report containing only document identifiers, match locations, and confidence scores; and securely destroying all sensitive values, hash values, and vector embeddings from memory upon completion of the matching process.
[0413] Aspect 22. The method of Aspect 21, wherein performing the third-stage contextual analysis further comprises: determining that a match candidate has a confidence score below a predefined threshold; retrieving the corresponding sensitive value from the ephemeral memory structure; constructing an enhanced prompt incorporating the sensitive value and contextual information from the document; submitting the enhanced prompt to the local large language model for evaluation; and generating a final determination based on the language model's analysis of the enhanced prompt.
[0414] Aspect 23. The method of Aspect 21, further comprising: deploying the method within a containerized environment in a customer's computing infrastructure; isolating all processing operations within the container; maintaining all sensitive data exclusively in memory during processing; generating audit logs documenting the matching process without including sensitive data; and terminating the container and verifying complete removal of all sensitive data upon completion of the matching process.
[0415] Aspect 24. The method of Aspect 21, further comprising: establishing a secure communication channel with a configuration service; receiving encrypted updates for matching algorithms, threshold values, and model parameters; verifying the authenticity of the received updates; applying the updates to the matching process; and recording version information of all components used during the matching process for audit purposes.
[0416] Aspect 25. The method of Aspect 21, wherein generating the match report further comprises: creating a detailed trace of the decision-making process for each match; documenting confidence scores from each matching stage; providing justification for match determinations based on language model analysis; formatting the report to exclude any sensitive values or document content; and encrypting the report for secure transmission to authorized recipients.
[0417] While the specification includes examples, the disclosure's scope is indicated by the following claims. Furthermore, while the specification has been described in language specific to structural features and / or methodological acts, the claims are not limited to the features or acts described above. Rather, the specific features and acts described above are disclosed as examples for embodiments of the disclosure.
[0418] Insofar as the description above and the accompanying drawing disclose any additional subject matter that is not within the scope of the claims below, the disclosures are not dedicated to the public and the right to file one or more applications to claims such additional disclosures is reserved.
Claims
1. A system for privacy-preserving sensitive data matching, the system comprising:a processor; anda memory storing instructions that, when executed by the processor, cause the system to:receive a set of sensitive values and store cryptographic hashes of the sensitive values in a secure in-memory hash table;extract text from a document;tokenize the extracted text into sequences and generate cryptographic hashes of the token sequences;compare the generated cryptographic hashes against the secure in-memory hash table to identify exact matches;segment the extracted text into fixed-size chunks and generate vector embeddings for the fixed-size chunks;perform a nearest-neighbor search using the generated vector embeddings against a local vector index to identify semantic matches;construct prompts incorporating the identified exact matches and semantic matches;execute a local large language model (LLM) to evaluate match candidates and generate match decisions with confidence scores; andoutput match results indicating locations and confidence levels of matches without transmitting raw document content, embeddings, or vectors outside the system.
2. The system of claim 1, wherein the instructions further cause the system to:deploy the system as a container within a customer computing environment;store the secure in-memory hash table exclusively in memory during scanning operations; andsecurely destroy the secure in-memory hash table, vector embeddings, and any temporary data upon completion of scanning operations.
3. The system of claim 2, wherein the instructions further cause the system to terminate the container upon completion of scanning operations to ensure no sensitive data persists after completion.
4. The system of claim 1, wherein the instructions further cause the system to:determine that a confidence score for a match candidate is below a predetermined threshold;retrieve a sensitive cleartext value from the secure in-memory hash table corresponding to the match candidate;incorporate the sensitive cleartext value into a prompt for the local LLM; andgenerate a final match decision with a confidence score based on the LLM evaluation of the prompt.
5. The system of claim 1, wherein the instructions further cause the system to:receive model and configuration updates from a software-as-a-service (SaaS) tenant service; andapply the updates to local matching algorithms and models without exposing local data to the SaaS tenant service.
6. The system of claim 5, wherein the instructions further cause the system to verify the integrity and authenticity of the updates prior to applying the updates.
7. The system of claim 1, wherein the output match results comprise document identifiers, match flags, confidence levels, and scan result traces showing the determination process through multiple stages of analysis.
8. The system of claim 1, wherein the local vector index comprises an approximate nearest neighbor (ANN) index maintained in local memory, and wherein the nearest-neighbor search comprises a top-K similarity search using similarity scores exceeding a threshold value.
9. The system of claim 1, wherein the instructions further cause the system to generate an audit log documenting the matching process without including sensitive values or raw document content.
10. The system of claim 6, wherein the configuration updates are encrypted and comprise detection rules, threshold values, and model parameters, and wherein the instructions further cause the system to apply the updated detection rules, threshold values, and model parameters to the matching operations.
11. A method for privacy-preserving sensitive data matching, the method comprising:receiving a set of sensitive values and storing cryptographic hashes of the sensitive values in a secure in-memory hash table;extracting text from a document;performing a first-stage exact match by tokenizing the extracted text into sequences, generating cryptographic hashes of the token sequences, and comparing the generated cryptographic hashes against the secure in-memory hash table to identify exact matches;performing a second-stage semantic match by segmenting the extracted text into fixed-size chunks, generating vector embeddings for each chunk, and performing a nearest-neighbor search using the generated vector embeddings against a local vector index to identify semantic matches;performing a third-stage contextual analysis by constructing a prompt containing the identified exact matches and semantic matches along with surrounding context, submitting the prompt to a local large language model, and generating match decisions with confidence scores based on the language model output; andoutputting a match report containing document identifiers, match locations, and confidence scores without transmitting raw document content, embeddings, or vectors outside a secure processing environment.
12. The method of claim 11, further comprising:determining that a confidence score for a match candidate is below a predetermined threshold;retrieving a sensitive cleartext value from the secure in-memory hash table corresponding to the match candidate;constructing an enhanced prompt incorporating the sensitive cleartext value and contextual information from the document;submitting the enhanced prompt to the local large language model; andgenerating a final match decision based on the language model's analysis of the enhanced prompt.
13. The method of claim 11, further comprising:performing the steps of the method within a containerized environment deployed in a customer computing environment;maintaining all sensitive data exclusively in memory during processing; andsecurely destroying the secure in-memory hash table, vector embeddings, and any temporary data upon completion of the matching process.
14. The method of claim 13, further comprising terminating the container and verifying complete removal of all sensitive data upon completion of the matching process.
15. The method of claim 11, further comprising:receiving model and configuration updates from a software-as-a-service (SaaS) tenant service;verifying the integrity and authenticity of the updates;applying the updates to local matching algorithms and models; andmaintaining version information of models and configurations for audit purposes, wherein the updates are applied without exposing local data to the SaaS tenant service.
16. The method of claim 11, wherein the match report output by the outputting step further comprises:match flags indicating presence of sensitive data;scan result traces documenting the determination process through each of the first, second, and third stages; andan audit trail formatted to exclude any sensitive values or raw document content.
17. The method of claim 11, wherein the local vector index comprises an approximate nearest neighbor (ANN) index, and wherein performing the nearest-neighbor search comprises querying the ANN index using the generated vector embeddings to retrieve top-K candidates having similarity scores exceeding a threshold.
18. A non-transitory computer-readable medium storing instructions that, when executed by a processor, cause the processor to perform operations comprising:receiving a set of sensitive values and storing cryptographic hashes of the sensitive values in a secure in-memory hash table;extracting text from a document;tokenizing the extracted text into sequences and generating cryptographic hashes of the token sequences;comparing the generated cryptographic hashes against the secure in-memory hash table to identify exact matches;segmenting the extracted text into fixed-size chunks and generating vector embeddings for the fixed-size chunks;performing a nearest-neighbor search using the generated vector embeddings against a local vector index to identify semantic matches;constructing prompts incorporating the identified exact matches and semantic matches;executing a local large language model (LLM) to evaluate match candidates and generate match decisions with confidence scores; andoutputting match results indicating locations and confidence levels of matches without transmitting raw document content, embeddings, or vectors outside a secure processing environment.
19. The non-transitory computer-readable medium of claim 18, wherein the operations further comprise:determining that a confidence score for a match candidate is below a predetermined threshold;retrieving a sensitive cleartext value from the secure in-memory hash table corresponding to the match candidate;incorporating the sensitive cleartext value into a prompt for the local LLM; andgenerating a final match decision with a confidence score based on the LLM evaluation.
20. The non-transitory computer-readable medium of claim 18, wherein the operations further comprise:deploying a container within a customer computing environment to perform the sensitive data matching;securely destroying the secure in-memory hash table, vector embeddings, and any temporary data upon completion; andterminating the container to ensure no sensitive data persists after completion.
