# Patent

## Title
Systems and methods for efficient detection of fingerprinted data and information

## Abstract

The disclosed embodiments provide systems, methods, and apparatus for efficient detection of fingerprinted content and relate generally to the field of information (or data) leak prevention. Particularly, a compact and efficient repository of fingerprint ingredients is used to analyze content and determine the content's similarity to previously fingerprinted content. Some embodiments employ probabilistic indications regarding the existence of fingerprint ingredients in the repository.

## Background
CROSS-REFERENCE TO RELATED APPLICATIONS
This application is a utility application of U.S. Provisional Patent Application No. 61/181,185, filed May 26, 2009, the disclosure of which is incorporated herein by reference in its entirety.
BACKGROUND
1. Field
The field of invention relates to systems and methods for efficient and accurate detection of fingerprint information.
2. Description of the Related Art
Information and knowledge created and accumulated by organizations and businesses are, in many cases, their most valuable assets. Unauthorized dissemination of intellectual property, financial information and other confidential or sensitive information can significantly damage a company's reputation and competitive advantage. In addition, individuals' private information inside organizations, as well as private information of clients, customers and business partners may include sensitive details that can be abused by users with criminal intentions.
Apart from the damage to business secrecy and reputation, regulations within the US and abroad pose substantial legal liabilities for information leakage. Regulations such as the Health Insurance Portability and Accountability Act (HIPAA), the Gramm-Leach-Bliley act (GLBA) and the privacy-protecting laws of various states and nations imply that the information assets within organizations should be monitored and subjected to an information protection policy in order to protect client's privacy and to mitigate the risks of potential misuse and fraud.
A file may be divided into fragments. A subset of the hashes of these fragments may then be used as “fingerprints” of the document. A file may be divided into fragments in one of two ways: 1) division and 2) phrasing. “Division” comprises dividing the file into a subsequence of n items known as an n-gram. The divisions covered by these n-grams may overlap (a condition known as “shingling”). N-grams may be generated by applying a “sliding window” over the text. Each “window” comprises a given number of characters or words, and from the content of each “window”, a hash-value is calculated.
“Phrasing” comprises dividing the content into phrases, using a separator, such as commas, semi-colons or sentence boundaries. A hash-value is calculated from the content of each phrase. The set of hashes may thereafter be post-selected, or “diluted”, in order to reduce storage and enhance performance by selecting hash-values that are divisible by a certain integer p. For example, if p=5, then, on average, one-fifth of the hashes will be selected.
To assess the similarity level between two texts (i.e., documents), each text is first canonized by bringing the document into a standard format used by the detection system (for example by converting the textual content to lowercase Unicode letters, removal of common words (also known as “stopwords”) like “the” and “is” and other “noise”, etc.). Additionally, “stemming” may be performed, which comprises reducing inflected (or sometimes derived) words to their stem, base or root form.
A similarity measure is used to compare two fingerprints of canonized texts. One similarity measure is the Jaccard similarity measure, which defines the similarity between documents A and B as:




  
    
    
      A
      ⋂
      B
    
    
  
  
    
    
      A
      ⋃
      B
    
    
  




Where the intersection |A∩B| is defined by the number of hashes the fingerprints of the two documents have in common.
However, Applicants have recognized that for at least the reason that fingerprint size is proportional to the size of the fingerprinted content, fingerprinting large amounts of content, in a manner that will facilitate robust identification, requires an allocation of considerable memory resources. It is generally hard to maintain a large repository in the readily available Random Access Memory (RAM). The detection process may also require expensive accesses to disk storage. These memory requirements hamper performance and the problem is particularly apparent when employing fingerprint-based detection at endpoints, such as laptops and desktops.
The present embodiments contemplate novel methods and systems for efficient detection of fingerprinted information, which overcome the drawbacks and inefficiencies of the current methods described above.
SUMMARY
The system, method, and devices of the invention each have several aspects, no single one of which is solely responsible for its desirable attributes. Without limiting the scope of this invention, its more prominent features will now be discussed briefly. After considering this discussion, and particularly after reading the section entitled “Detailed Description of Certain Embodiments,” one will understand how the features of this invention provide advantages over other display devices.
Certain embodiments contemplate a system for compacting fingerprints of electronic content comprising a compact representation module having a processor, the processor configured to hash the contents of the electronic content to create an electronic fingerprint of the content. The processor of the compact representation module may be configured to perform multiple hashes of the electronic content and generate multiple fingerprints of the electronic content. In some embodiments, the system may further comprise a compact repository for storing the fingerprints of the electronic content. In certain embodiments the system comprises an analysis module having a processor and configured to hash new content and generate a fingerprint for the new content.
In some embodiments the system may comprise a match estimator for comparing fingerprints stored in the compact repository with fingerprints of the new content. The match estimator may determine whether fingerprints match based upon the probability that a match exists within the compact repository. In some embodiments the system comprises a decision module configured to apply a transmission policy on the new content based upon the probability that a match exists between the fingerprint of the new content and a fingerprint stored in the compact repository.
Some embodiments comprise a system for applying a transmission policy on electronic content stored in an electronic network, the system comprising: a scanning engine having a processor and configured to identify electronic content; a fingerprinting module in electronic communication with the scanning engine and configured to hash the electronic content in order to generate a compact fingerprint of the electronic content identified by the scanning engine; and at least one compact fingerprint repository in electronic communication with the fingerprinting module and configured to store fingerprints generated by the fingerprinting module. The system may further comprise a content processor in electronic communication with the electronic network, the content processor configured to hash new electronic content of the electronic network and a match estimator in electronic communication with the fingerprint repository and the content processor.
In some embodiments the match estimator my be configured to determine probabilistic matches between the fingerprint of the new electronic content and a fingerprint stored in the fingerprint repository; a decision module in electronic communication with the match estimator and the electronic network, the decision module configured to apply the transmission policy to the new electronic content based upon an output from the match estimator. In some embodiments the system may further comprise a fingerprint repository in electronic communication with the fingerprinting module, the fingerprinting module being configured to generate a hash of the electronic content and to store it in the fingerprint repository. In some embodiments, the match estimator may be configured to determine a match based upon a distance between matched hashes.
Certain embodiments contemplate a method of transmitting electronic content over an electronic network, the method comprising the steps: identifying electronic content on the electronic network with a scanning engine; fingerprinting the electronic content with at least one hash to generate a compact fingerprint of the electronic content; storing at least one compact fingerprint in a compact fingerprint repository; fingerprinting new electronic content with at least one hash, the new electronic content to be transmitted over the electronic network; comparing the fingerprint of the new electronic content with fingerprints stored in the compact fingerprint repository; and determining whether to transmit the new electronic content over the electronic network in response to the comparison of the fingerprints.
In certain embodiments the method further comprises the step of applying a transmission policy to the new electronic content in response to determining whether the new electronic content should be transmitted. The step of determining whether the new electronic content should be transmitted may comprise determining matches between fingerprints stored in the compact fingerprint repository and the fingerprint of the new electronic content. The step of determining matches may comprise determining the distances between matches of the fingerprints.
Certain embodiments contemplate a system for compacting fingerprints of an electronic content, the system comprising: one or more processors, wherein: at least one of the one or more processors is configured to receive at least a portion of a first electronic fingerprint; and at least one of the one or more processors is configured to flag one or more addresses in an array, the one or more addresses associated with the at least a portion of the first electronic fingerprint.
In some embodiments a hash function determines the associations of addresses to the at least a portion of the first fingerprint. In certain embodiments the hash function is configured such that at least one address is associated with two or more fingerprints. The system may further comprise a compact repository, the compact repository comprising an array of addresses, the addresses which are associated with a second fingerprint of a second electronic content being flagged. In some embodiments, the array addresses associated with the first fingerprint of the electronic content may be stored in the compact repository. In some embodiments, the array of addresses associated with the first fingerprint and the array of addresses associated with the second fingerprint may have no addresses associated with both the first and second fingerprint.
In certain embodiments, at least one of the one or more processors is configured to compare the flagged addresses associated with the first fingerprint and the flagged addresses associated with the second fingerprint, and to determine a probability that the fingerprints match. In some embodiments, at least one of the one or more processors is configured to apply a transmission policy to the electronic content based upon the probability that a match exists between the fingerprint of the electronic content and the fingerprints represented in the compact repository.
Certain embodiments contemplate a system for applying a transmission policy on electronic content stored in an electronic network. These systems may comprise a scanning engine processor configured to identify electronic content; a hashing processor configured to receive at least a portion of an electronic fingerprint of the electronic content identified by the scanning engine processor, the hashing processor further configured to flag a plurality of addresses associated with the at least a portion of an electronic fingerprint in an array, the hashing processor in electrical communication with the scanning engine processor; where at least one compact fingerprint repository may be in electrical communication with the hashing processor and configured to store the array associated with the at least a portion of an electronic fingerprint. The system may further comprise a content processor in electrical communication with the electronic network, the content processor configured to generate fingerprints of new electronic content of the electronic network. The system may also comprise a match estimation processor in electrical communication with the fingerprint repository and the content processor, the match estimation processor configured to determine probabilistic matches between the fingerprint of the new electronic content and the fingerprints stored in the fingerprint repository. The system may also comprise a decision processor in electrical communication with the match estimation processor and the electronic network, the decision processor configured to apply the transmission policy to the new electronic content based upon an output from the match estimation processor.
In certain embodiments at least two of the scanning engine processor, hashing processor, content processor, match estimation processor, and decision processor, may comprise a single processor. Some embodiments may also comprise a non-compact fingerprint repository in electrical communication with the hashing processor. In some embodiments the match estimation processor may be further configured to determine a match based upon a distance between two fingerprints.
Certain embodiments contemplate a method of transmitting electronic content over an electronic network comprising: performing the following on one or more electronic processors: identifying electronic content on the electronic network; generating a new fingerprint of the electronic content; comparing the new fingerprint of the electronic content with fingerprints stored in a compact fingerprint repository, comprising determining the one or more addresses flagged by new fingerprint when applied to a hash function and comparing these addresses with the one or more addresses flagged by the fingerprint of the repository when applied to the hash function; and determining whether to transmit the new electronic content over the electronic network in response to the comparison of the fingerprints.
In some embodiments, determining whether to transmit the new electronic content comprises applying a transmission policy to the new electronic content. In some embodiments, determining whether to transmit the new electronic content over the electronic network depends at least in part on the comparing the new fingerprint of the electronic content with fingerprints stored in the compact fingerprint repository. In some embodiments, the step of determining matches comprises determining the distances between matches of the fingerprints.
Certain embodiments contemplate a computer-readable medium comprising code configured to cause one or more processors to perform the following: receiving at least a portion of a first electronic fingerprint; flagging one or more addresses in an array, the one or more addresses associated with the at least a portion of the first electronic fingerprint; storing the array; receiving at least a portion of a second electronic fingerprint; determining if an address associated with the at least a portion of the second electronic fingerprint is the same as an address associated with the first electronic fingerprint.
In certain embodiments the first electronic fingerprint is associated with a first electronic document and the second electronic fingerprint is associated with a second electronic document. In certain embodiments, the computer-readable medium of Claim 31, wherein the one or more processors are further configured to determine a probability that the first electronic document and the second electronic document are the same based on at least the determining if an addresses associated with the at least a portion of the second electronic fingerprint is the same as an address associated with the first electronic fingerprint. In some embodiments the array is stored in a compact repository.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a block diagram illustrating a networked system comprising a scanning system which makes reference to a compact fingerprint repository.
FIG. 2 is a flow diagram illustrating a method for information leak prevention employing a compact representation of the fingerprint repository.
FIG. 3 is a flow diagram illustrating a method for employing an efficient and compact probabilistic representation of fingerprinted content.
FIG. 4 is a flow diagram illustrating a method for assessing the similarity between analyzed content and fingerprinted content subjected to a certain policy.
FIG. 5 is a flow diagram illustrating a method handling multiple policies.
FIG. 6 is a block diagram illustrating a system that comprises both a local, compact repository on an endpoint, and a server with a repository of the original fingerprints.
FIG. 7 is a block diagram illustrating a situation in which the analyzed content contains one section from fingerprinted content and another section from un-fingerprinted content.
FIG. 8 is a block diagram illustrating a system which considers the distance between consecutive indications that hashes exist in order to decide whether the content contains a significant fingerprinted part.
FIG. 9 is a flow diagram illustrating a method allowing for further reduction of false positives and facilitating a more efficient update mechanism.
FIG. 10 is a flow diagram illustrating a method for simultaneously querying several compact repositories.



DETAILED DESCRIPTION OF CERTAIN EMBODIMENTS
The following detailed description is directed to certain specific embodiments. However, the teachings herein can be applied in a multitude of different ways. In this description, reference is made to the drawings wherein like parts are designated with like numerals throughout. The embodiments may be implemented in a variety of devices comprising computational functionality. Particularly, it is contemplated that the embodiments may be implemented in or associated with a variety of electronic devices such as, but not limited to, database storage systems, mobile telephones, wireless devices, personal data assistants (PDAs), hand-held or portable computers, GPS receivers/navigators, cameras, MP3 players, game consoles, portable electronic reading devices, and the like.
It will be recognized that the described components are illustrative and non-limiting and may be implemented in software, hardware or the combination of both. Particularly, the following figures make reference to certain features of various embodiments as being modules, systems, storage, engines, interfaces, and the like. One would recognize that each of these features may be implemented in hardware, software, or firmware. Furthermore, the features may reside independently from one another on separate software or hardware components, or may be found together on a single component.
The following embodiments describe systems, methods, and apparatus for efficient detection of fingerprinted content. Particularly, a compact and efficient repository of fingerprint ingredients is used to analyze content and determine the content's similarity to previously fingerprinted content. Some embodiments employ probabilistic indications regarding the existence of fingerprint ingredients in the repository. The system may be particularly useful when utilized within a system for information (or data) leak prevention.
Information fingerprinting is one method for monitoring and blocking unauthorized dissemination and usage of confidential and sensitive information. The following publications, each of which is incorporated by reference in its entirety, provide a cursory overview of fingerprinting methods: US Pat. Pub. No. 20020129140; US Pat. Pub. No. 20050288939; U.S. Pat. Pub. No. 20040255147; U.S. Pat. Pub. No. 20040260924; U.S. Pat. No. 7,493,650; U.S. Pat. App. No. 20050025291.
A fingerprint, FP(CM), may be defined as the set:

FP(CM)={H(Xi)|g(CM,H(Xi),ξ)=0}

Where:
CM=the Mth Information Item (e.g., a document or a spreadsheet);
H is a universal hash function;
Xi is a vector of length N, where N is the size of the “sliding window.” The vector can be generally described by:

Xi[k]=WkCri-N+k 

Where:

    
    
        Wj:=Weighting factors that determine the shape of the window
        {Cr}=Elementary taxonomic units by which the window is defined (e.g., words or characters).
    
    


g=Selection function, (such as selecting only these that are divisible by ξ). The function g can be a function of the hash itself, but in general also of the document to be fingerprinted (its size, average word length, etc), and ξ, the security parameter, which determines how many hashes will be saved.
Intuitively, ξ may be viewed as a parameter that determines the size of the holes in a “textual sieve.” These holes may determine the size of the maximal excerpt not represented by a hash value. In general, one can select “wider holes” for less sensitive content. The selection of the hashes to be saved can be done in several ways such as by selecting only hashes that are divisible by a number p (“zero mod p”). In this case, ξ=p and

g(CM,H(Xi),ξ)=H(Xi)mod(p)

Effective similarity measures may require that a fingerprint be sufficiently “faithful” to the original content it represents, that the similarity of the original content can be measured by the similarity of the fingerprints. Particularly, the similarity level d(CA,CB) between two documents, CA and CB, may be estimated using the similarity between their respective fingerprints d(FP(CA), FP(CB)). We define the fingerprinting scheme FP to be an “(ε, δ) faithful representation”, for some (ε, δ)>0 if:

d(FP(CA),FP(CB))<ε→d(CA,CB)<δ

As mentioned, fingerprint size comprises a primary obstacle to the efficient implementation of document identification. If the system should be able to detect any fragments of the original content that are greater than some pre-defined size (e.g., each fragment or paragraph with more than 50 words), then in order to provide an accurate and robust identification, the size of the fingerprints needs to be proportional to the size of the fingerprinted content. In large and modern organizations, this size can be huge. A substantial reduction in the size of the fingerprints, without hampering accuracy, is therefore vital especially while employing fingerprint-based detection at endpoints, such as laptops and desktops. Among other benefits, the following embodiments provide means for overcoming these obstacles.
FIG. 1 illustrates a computer network system 1000. In this system, various client machines 1001a-b interact with one another across an internal network 1002 and occasionally seek to send and receive data from the internet or an outside network 1005. The client machines may comprise various computing devices, such as laptops, cellular phones, personal digital assistants, fixed client terminals, workstations, and the like. In certain embodiments, a scanning system 1003 monitors documents transmitted across the internal network 1002. Certain documents may contain confidential information and be subjected to various security policies (number of copies, transmissions, only certain users may view, etc.) depending on the sensitivity of the subject matter they contain. When the scanning system 1003 encounters a document (say, when a user requests transmission of a file) the system 1003 will consult a “fingerprints” repository 1004. The scanning system 1003 may scan file-servers, document management systems and drives on client machines 1001a-b to identify documents. An administrator may have previously associated a given document, or document format, with a particular security policy. This association is reflected in the repository 1004 which provides a table or similar means for associating one or more fingerprints with that document's policy. The scanning system 1003 will compare the fingerprints in the repository 1004 with the fingerprints of an incoming document to determine if the incoming document is the same as the document associated with a particular security policy. If a match is determined, the system 1003 may enforce the policy associated with the matched document.
Although shown in this diagram as an intermediary between the internal 1002 and external 1005 networks, one skilled in the art will readily recognize numerous locations in which the scanning engine may operate instead. Furthermore, separate systems may scan for outgoing documents and perform the fingerprint extraction and comparison.
FIG. 2 illustrates a flow diagram showing the modules that implement a method for detection, storage, and subsequent comparison and identification of fingerprints used by the scanning system 1003. Content Ci, 100 is pre-processed by a pre-processor 110. For example, in the case where the content is a textual document, the text may be first extracted and then canonized by bringing it up to a standard form (e.g., changing the letters to lowercase, and then removing “stop words” such as common words “the”, “and”, “or” etc.). After the preprocessing stage, hashes are extracted by a hash extraction module 120 and are thereafter selected by a hash selector module 130. The selected hashes, which are the fingerprints FP(Ci) 140 of the content C; are stored, possibly together with a number or a string that provides an identification of the content C, and an applicable policy PLj, in a fingerprint repository 150. The identification may allow correlating the fingerprints with the content. A table correlating between the identification number or string and other basic properties of the content, such as its name, location, owner etc. may be used for this purpose.
The policy that is assigned to the content may be a distribution and usage policy that determines, for example the allowed senders, allowed recipients, allowed storage devices, allowed distribution channels, and other allowed actions. In most practical situations, the distribution and usage policy is selected from a set of pre-defined organizational policies (e.g., “confidential R&D documents are not allowed to be sent to people outside the organization, and should be stored on a central file server X.”).
The fact that the content C is subjected to the policy PLj is denoted by Cj├PLj. The collection of all the hashes from all the contents that are subjected to the same policy PLj is denoted by FPLj={FP(Ci)|Ci├PLj}. From all the selected hashes of the contents that share the same policy PLj, a compact representation, (such as probabilistic representation, as explained below) RPj of FPLj may be created and stored at the compact repository 1004. In order to decide which policy should be applied or enforced, the system may assess the similarity between monitored content (e.g., a content that is disseminated over monitored channels such as email or instant-messaging) and content that was defined as being subjected to the various policies. In this analysis phase, new content, Ck, 170 (e.g., a PDF document that is attached to an outgoing email) may be analyzed. Content is first pre-processed by a pre-processor module 112. After the preprocessing stage, hashes are extracted by a hash extraction module 122 and are thereafter post selected by a hash selector module 132. (It will be recognized that in some embodiments the functionality of the modules 112, 122 and 132 can be performed using modules 110, 120 and 130, correspondingly). A compact representation of the content 180 is created and matched against the compact representation RPj of FPLj stored in the compact repository 1004. The number of matches may thereafter used by the decision module 190 to decide, based on the assessed similarity between the fingerprinted content Ci, and the analyzed content Ck, whether the policy PLj is applicable and should be enforced on Ck.
Referring now to FIG. 3, a flow diagram showing the modules for utilizing an efficient and compact probabilistic representation of fingerprinted content is shown. A compact representation creation module (CRCM) 210 takes hashes X 220 from the fingerprint repository 150 and employs one or more hash-functions hi 212 to transform each hash value to an L-bits long binary number, hi(X) 214, where the distribution of the numbers may be close to uniform over the range 1:2L. For each of the hash-functions there is a corresponding array ai, 232, of length 2L that is stored in the compact representation repository 1004. The elements of the arrays are bits which are all initiated to a have a zero value. After evaluating hi(X), the element of the array ai at the address hi(X) is set to 1, that is, the element is “flagged”, indicating the existence of the element X. Because the mapping of elements to addresses in the array is quasi-random, there is always the possibility of “collisions” between two different items, i.e., that:

hi(X1)=hi(X2) while X1≠X2

The probability that a collision will occur becomes close to “1” when the number of items become substantially greater than the square root of the number of addresses (i.e., 2(L/2)), a phenomenon known as “the birthday problem”. It is therefore not practical, in general, to positively indicate the existence of a certain item. However, if there is a “0” in at least one of the corresponding arrays ai, then one can be certain that the item does not exist. This feature provides a “fast proof of non-existence” (consider a Bloom filter, as described in: Space/Time Trade-offs in Hash Coding with Allowable Errors, by H Bloom Burton, Communications of the ACM, 13 (7). 422-426, 1970, the contents of which are hereby incorporated herein by reference in its entirety). The search may therefore be stopped after the first “0” is encountered. Each of the arrays can therefore be considered as a “filter”.
The array's optimal length (and the number of bits in the output of the hash function) is computed based on occupancy. 50% appears optimal, which requires arrays of a size around 1.44 times the number of items. Consider an element Y, which does not exist in the repository. If the array i is half occupied, then the probability that hi(Y) will match an occupied cell is 1⁄2. If there are n arrays that are occupied using different hash functions, h1, . . . hn, then the probability of false positive (i.e., that all the cells whose addresses are h1(X) . . . hn(X) in the corresponding arrays will be occupied) is 2−n. The cost of reducing the probability of false positives by a factor of 2 is therefore approximately 1.5 bits per item.
FIG. 4 illustrates a flow diagram of a method performed by a processor for assessing the similarity between analyzed content and fingerprinted content that is subjected to a policy PLj. New content Ck 170 is analyzed at stage A 320. The analysis phase may comprise preprocessing 322, hash extraction 324 and hash post-selection 326. Several different hash functions, h1(X) . . . hn(X) may be evaluated for each post-selected hash X at stage B 330. Denote hi(X)=Ai, the value Ai is considered as an address in the array ai, which is stored in the compact repository 1004. ai(Ai)=1, for i=1, . . . n indicates positive match against the compact representation of contents subjected to FPLj stored in the compact repository 1004.
At stage C 340 the number of matches is used in order to decide whether the policy PLj is applicable and should be enforced on Ck. The evaluation of the number of matches will take into account the false-positives—if, out of N hashes there were pN true matches, and the probability of false positives is PFP, than the expected number of matches is:

 pN=(p(1−PFP)+PFP)N 

And the maximum likelihood estimator of p is therefore:




  
    p
    ⋒
  
  =
  
    
      
        p
        _
      
      -
      
        P
        FP
      
    
    
      1
      -
      
        P
        FP
      
    
  




For example, if it is determined that out of 100 hashes in the analyzed content, 70 have positive indications (i.e., p=0.7) and the probability of false-positives, PFP is 0.125, then the maximum likelihood estimator of the number of matches is:




  
    p
    ⋒
  
  =
  
    
      
        0.7
        -
        0.125
      
      
        1
        -
        0.125
      
    
    =
    0.657
  




Using the above scheme, one can obtain a reasonable estimator of the similarity from an information security perspective. In real-life scenarios the implications of small differences in the similarity are negligible—trying to disseminate 65% or 70% of a confidential document have substantially the same impact.
Note that this number represents the number of matches with all the contents that share the same policy, so it might be the case that the analyzed content comprises segments from several documents that share the same policy. The method will therefore address cases in which the breached content contains segments from several confidential documents.
At stage D, 350, the estimator {circumflex over (p)} for the number of matches is compared against a threshold T. The threshold may be determined by a designer or system administrator as comprising the minimum probability at which a comparison will result in two documents being classified as being sufficiently similar such that the policy will be applied. In some embodiments the threshold may be automatically determined. Accordingly, if {circumflex over (p)}>T, then, at stage E, 360, the policy PLj will be applied on the content Ck. If {circumflex over (p)} is less or equal than T, than the content is not subjected to the policy PLj. The system can check if the content is subjected to other policies (as explained with reference to FIG. 5 below) or continue to analyze new contents
FIG. 5 is a flow diagram illustrating a method where several policies, PL1, . . . PLn are active. A scanning engine 410 scans repositories 420 such as file-servers, document managements systems and drives of an organization. One skilled in the art will readily recognize that the scanning engine may comprise code implemented on a processor configured to scan the repositories. Alternatively, the engine may comprise firmware or hardware. The information that needs to be fingerprinted (e.g., textual information) is extracted from the contents of the repositories 420 and a set of hashes that comprises the fingerprints of the content is evaluated, as explained above for FIG. 2, using the fingerprinting module 430. Users can then provide inputs via human-machine interface (HMI) 440, in order to assign one or more of the policies PL1, . . . PLn. Assigning a policy to a content can be done by using a table T, 450, that correlates content ID with a policy. Using the table, a set of repositories of the fingerprints of content subjected to the policies PL1, . . . PLn, denoted by R1, . . . Rn 460, is created. From each of these repositories a corresponding compact representation CR1, . . . CRn, 470, is then created. When content Ck 170 is analyzed, a content processor 482 pre-processes the content, extracts the hashes and post-selects a subset set of hashes, as explained above. A match estimator 484 may thereafter be used to provide the maximum-likelihood estimators of the fraction of the common hashes between the content Ck and the hashes in each of the repositories R1, . . . Rn. A decision module 490 then decides the applicable policies by applying the policies for which. {circumflex over (p)}i>T.
In some cases, more than one policy can be found to be applicable with respect to the content Ck. In some cases, this can invoke conflicts. For example, one policy, say PL1, may allow content distribution only to a set of recipients RC1, another policy, say PL2, may allow content distribution to only a second set RC2 of authorized recipients. In such cases, one may solve the conflict by allowing the content to be sent only to recipients that belong to both RC1 and RC2.
Advantageously, this scheme can adequately address cases in which the content is derived by combining several fingerprinted contents, which are all subjected to the same policy. The compact representations CR1, . . . CRn may not allow one to exactly determine the actual contents to which content Ck is similar. One may prefer to know the exact source document, either to get a better understanding of the case (e.g., “this document has 90% similarity to our secret business plan”) or in order to reduce false positives (perhaps when the document comprises many small fragments of the different documents in Rj). This problem may be overcome by keeping the full repository of fingerprints and, if needed, comparing the fingerprints of the analyzed content with the fingerprints in this repository. This method is especially useful in cases where the compact repository is used for the protection of content in endpoints (such as laptops or desktops) and where storage space may be scarce. These endpoints may connect (at least part of the time) to a central server, which can store the comprehensive fingerprint repository.
FIG. 6 is a block diagram illustrating a system that comprises both a local, compact repository on an endpoint, and a server with a repository of the original fingerprints. An endpoint 510 (e.g., a laptop or desktop computer or other portable device) may be equipped with a local analysis module 520 and a local compact repository 1004. A content Ck 170 is analyzed (perhaps when attempting to save the content to a portable device or send it via email) by Local Analysis Module 520. Local Analysis Module 520 first estimates the maximum likelihood estimators of the number of matched hashes with each of the compact repositories CR1, . . . CRn, 470 as described for FIGS. 4 and 5. For each policy for which {circumflex over (p)}i>T the local analysis module 520 sends a query Q 550, to a central server 560. The server 560 then performs a full analysis using the fingerprints in the relevant repositories (i.e., all the repositories for which {circumflex over (p)}i>T) using an analyzer 562 as described for FIG. 5 and returns a response that comprises the applied policies back to the endpoint 510 and to an audit and reporting module 564.
For better mitigation of false-positives, one can further use the distances between probable matches as an additional parameter for deciding what policy to apply, as illustrated in FIG. 7. Consider the case in which the content Ck 610 contains a section 612, from a fingerprinted content 620, while the rest of content contains un-fingerprinted content 614. While analyzing fingerprinted part 612, all the selected hashes will induce a match, and the distances between matches will be equal to the distance between selected hashes 630. In contrast, the remainder 614 of the document may only contain intermittent hits 640. The matching hashes of unfingerprinted part 614, are false-positives and can be viewed as matches which stem from a Bernoulli process with p=PFP. The distribution of distances between matches will therefore correspond to the distribution of the number of trails between two successes in a series of Bernoulli trails, and will be therefore geometric with an average distance of 1/PFP.
FIG. 8 is a block diagram illustrating the operations of a module which uses the distance between hashes to decide whether the content contains a significant fingerprinted portion. A module M 710 receives as an input the total number of selected hashes 720, the number of matched hashes 722, and the distances (in terms of selected hashes) between any two consecutive matches 724. Sub-module 712 evaluates a histogram 730 of the distances. For the case described in the description of FIG. 7, the histogram will be bi-modal, with one pick 740, at “0” (i.e., match between consecutive selected hashes) and a wider pick 750 at approximately 1/PFP (e.g., if PFP=1⁄8, the pick will be at “8”). Based on the number of matches at the first pick, an assessment sub-module 714 assesses the fraction of hashes that, most probably came from fingerprinted content, thereby reducing the chance of false positives. Note that the length of the sequences of consecutive hashes can also be used to assess the size of the sections that were probably taken from a fingerprinted content.
FIG. 9 is a flow diagram illustrating a method allowing for further reduction of false positives in cases in which the analyzed document is comprised of or created from many small fragments of the different documents in Ri which are small enough to be benign, and facilitates a more efficient update mechanism. The repository Ri 150 comprises fingerprints of a set of documents that are subjected to a policy Pi that is divided into n repositories Ri1 812 . . . Rij 814 . . . Rin 816, each of them representing a different set of documents chosen such that the total number of fingerprints in each of the repositories Rij will not exceed a certain pre-defined number M.
A set of compact repositories 820 with n compact repositories CRi1 822 . . . CRij 824 . . . CRin 826 is derived from the repositories Ri1 812 . . . Rij 814 . . . Rin 816, as explained above in the reference to FIG. 3. The set 820 is thereafter used to estimate the number of matches. When content Ck 170 is analyzed to determine its similarity to one of the contents in the repository Ri, it is pre-processed first by a content pre-processor 482, which extracts and selects N hash-values 850 as explained in the description of FIGS. 4 and 5 above. These N values are compared with the compact repositories CRi1 822 . . . CRij 824 . . . CRin 826 using match estimators 860, 862 and 864 respectively. If the number of matches with the compact repository CRij is greater than a predefined threshold T (876), then, with a high probability, the content is similar to one of the documents whose fingerprints are represented in the repository Rij (878), while for the other cases (illustrated as 870-880 and 874-882) the content is not similar to any one of the documents whose fingerprints are represented in the corresponding repository.
The size of the fingerprint repositories of each set may be small enough to facilitate simpler and faster content deletions and updates and to allow for incremental updates.
The sub-divisions described and illustrated in FIG. 9 above, may require that more array structures be queried. However, these queries involve only a single bit, while CPU implementations usually facilitate elementary operations with respect to at least one “byte” (8 bits). Therefore the bit-querying processes can be expedited by a factor of 8 utilizing “byte-wise queries”, providing that the bit array is restructured in a manner that would facilitate such queries.
FIG. 10 illustrates a “bit-transpose” method that reduces the number of in-memory random-access read operations. The eight arrays 1-8 (910), each containing Nb bits, are “transposed” into a set 920 of Nb arrays set, each with 8-bits, such that ith bit of the ith array in the original set 910 is equal to the jth bit of the jth array in the new set 920. By accumulating the results from a bitwise AND with a byte register 930 that corresponds to the binary representation of 255 (i.e. 8 bits, all set to “1”), one can obtain simultaneously the status of 8 bits in the original arrays 910. This method can be further generalized by merging two 8-bit super-blocks into a 16-bit super-block and so on.
Note that the methods described above can be applied, mutatis mutandis, also for any hash-based fingerprinting method of other types of content—e.g., audio and video content, images, and drawings.
The methods and apparatus disclosed herein provide methods and systems allowing for an efficient detection of fingerprinted content. One or more steps of any of the methods described herein may be implemented in a different order than that shown while not departing from the spirit and scope of the invention. While the methods and apparatus disclosed herein may or may not have been described with reference to specific hardware or software, the methods and apparatus have been described in a manner sufficient to enable persons of ordinary skill in the art to readily adapt commercially available hardware and software as may be needed to reduce any of the embodiments of the present invention to practice without undue experimentation and using conventional techniques. One skilled in the art can appreciate that the above combinations are not exhaustive and that all reasonable combinations of the above features are hereby included in the present disclosure.
The foregoing description details certain embodiments of the invention. It will be appreciated, however, that no matter how detailed the foregoing appears in text, the invention can be practiced in many ways. As is also stated above, it should be noted that the use of particular terminology when describing certain features or aspects of the invention should not be taken to imply that the terminology is being re-defined herein to be restricted to including any specific characteristics of the features or aspects of the invention with which that terminology is associated. The scope of the invention should therefore be construed in accordance with the appended claims and any equivalents thereof.

## Claims

1. A system for managing potential transmission of a plurality of electronic documents over a network, the system comprising:
hardware electronic processing means for generating a repository of compact fingerprints comprising a plurality of compact fingerprints, wherein each of the compact fingerprints is generated by:
selecting a subset of the plurality of electronic documents to which a particular transmission policy is applied,
hashing the subset of the plurality of electronic documents to generate a plurality of corresponding hashes, and
generating a compact fingerprint based on the plurality of hashes;

hardware electronic processing means for identifying an electronic document on the electronic network with a scanning engine;
hardware electronic processing means for generating a plurality of new fingerprints of the identified electronic document;
hardware electronic processing means for determining probabilistic matches between the plurality of new fingerprints of the identified electronic document and compact fingerprints stored in the compact fingerprint repository; and
hardware electronic processing means for determining whether to transmit the identified electronic document over the electronic network based, at least in part on a number of matching fingerprints.

2. The system of claim 1 wherein the hardware electronic processing means for determining probabilistic matches determines the distances between matches of the fingerprints.

3. The system of claim 1 further comprising hardware electronic processing means for applying a transmission policy to the electronic document in response to determining whether the electronic document should be transmitted.

4. The system of claim 1, wherein the at least one fingerprint comprises an array of addresses, and the hardware electronic processing means for determining probabilistic matches is configured to determine whether an association exists between one or more of the plurality of new fingerprints of the identified electronic document and a flagged address in the array of addresses.

5. A system for applying a transmission policy to electronic content transmitted over a network, the system comprising:
one or more hardware electronic processors configured to:
identify electronic content via a scanning engine, the electronic content comprising a plurality of electronic documents;
generate a plurality of compact fingerprints of the identified electronic content identified by the scanning engine, each compact fingerprint generated by:
selecting a subset of the plurality of electronic documents to which a particular transmission policy is applied,
hashing the subset of the plurality of electronic documents to generate a plurality of corresponding hashes, and
generating the compact fingerprint based on the plurality of hashes;

store the compact fingerprints in a compact fingerprint repository;
hash second electronic content identified on the network;
determine probabilistic matches between the hashes and the compact fingerprints stored in the compact fingerprint repository;
identify a transmission policy for the second electronic content identified on the network based, at least in part, on a compact fingerprint matching the hashes that corresponds to the identified transmission policy; and

apply the identified transmission policy to the second electronic content identified on the network.

6. The system of claim 5, wherein the one or more processors are configured to generate a hash of the identified second electronic content and to store it in the fingerprint repository.

7. The system of claim 5 wherein the one or more processors are configured to determine a match between the hashes and fingerprints stored in the compact fingerprint repository based upon a distance between matched hashes.

8. A method of transmitting electronic content over a network, the method comprising:
performing the following on one or more hardware electronic processors:
identifying electronic content on the electronic network with a scanning engine, the electronic content comprising a plurality of documents;

generating a plurality of compact fingerprints of the electronic content, each compact fingerprint generated by:
selecting a subset of the plurality of electronic documents to which a particular transmission policy is applied,
hashing the subset of the plurality of electronic documents to generate a plurality of corresponding hashes, and
generating the compact fingerprint based on the plurality of hashes;

storing the generated compact fingerprints in a compact fingerprint repository;
identifying second electronic content on the network;
generating hashes of the second electronic content identified on the network; and
determining whether to transmit the second electronic content identified on the network over the network, based at least in part on a transmission policy corresponding to a compact fingerprint stored in the compact fingerprint repository matching the generated hashes.

9. The method of claim 8 further comprising applying a transmission policy to the second electronic content identified on the network in response to determining whether the second electronic content should be transmitted.

10. The method of claim 9, wherein the compact fingerprint repository comprises an array of addresses, and the method further comprises determining whether an association exists between the generated hashes and flagged address in the array of addresses.

11. The method of claim 10 wherein the method further comprises determining probabilistic matches by determining the distances between matches of the hashes and compact fingerprints.

12. A non-transitory computer-readable medium comprising code configured to cause one or more processors to perform a method of transmitting electronic content over a network, the method comprising:
identifying electronic content on the electronic network, the electronic content comprising a plurality of documents;
generating a plurality of fingerprints for each of the plurality of documents;
generating a plurality of compact fingerprints for a plurality of corresponding transmission policies, each compact fingerprint generated by:
selecting a subset of the plurality of electronic documents to which a particular transmission policy is applied,
hashing the subset of the plurality of electronic documents to generate a plurality of corresponding hashes, and
generating the compact fingerprint based on the plurality of hashes;

storing the plurality of compact fingerprints in a compact fingerprint repository;
determining probabilistic matches between fingerprints of second electronic content and the compact fingerprints stored in the fingerprint repository; and
determining whether to transmit the second electronic content over the electronic network based at least in part, on a compact fingerprint matching fingerprints of the second electronic content.

13. The computer-readable medium of claim 12, wherein determining probabilistic matches comprises determining the distances between matches of the fingerprints.

14. The computer-readable medium of claim 13, wherein the method further comprises applying a transmission policy corresponding to the matching compact fingerprint to the second electronic content in response to determining whether the second electronic content should be transmitted.

15. The computer-readable medium of claim 12, further comprising applying a transmission policy to the second electronic content, wherein the applied transmission policy corresponds to a compact fingerprint in the compact fingerprint repository that matches the fingerprints of the second electronic content.