|Numéro de publication||US7966658 B2|
|Type de publication||Octroi|
|Numéro de demande||US 10/822,226|
|Date de publication||21 juin 2011|
|Date de dépôt||8 avr. 2004|
|Date de priorité||8 avr. 2004|
|État de paiement des frais||Payé|
|Autre référence de publication||US8296842, US20050229254, US20080307524, WO2005103899A1|
|Numéro de publication||10822226, 822226, US 7966658 B2, US 7966658B2, US-B2-7966658, US7966658 B2, US7966658B2|
|Inventeurs||Sumeet Singh, George Varghese, Cristi Estan, Stefan Savage|
|Cessionnaire d'origine||The Regents Of The University Of California|
|Exporter la citation||BiBTeX, EndNote, RefMan|
|Citations de brevets (22), Citations hors brevets (14), Référencé par (12), Classifications (22), Événements juridiques (4)|
|Liens externes: USPTO, Cession USPTO, Espacenet|
This invention was made with government support under contracts ANI-0137102 and 60NANB1D0118 awarded by the National Science Foundation and the National Institute of Standards and Technology. The government has certain rights in the invention.
The U.S. Government has certain rights in this disclosure pursuant to Grant Nos. 60NANB1D0118 and ANI-0137102 awarded by the Com. National Institute of Standards and Technology and National Science Foundation.
Many computers are connected to publicly-accessible networks such as the Internet. This connection has made it possible to launch large-scale attacks of various kinds against computers connected to the Internet. A large-scale attack is an attack that involves several sources and destinations, and which often (but not necessarily) involves a large traffic footprint. Examples of such large-scale attacks may include:
Large-scale span: Spam is unsolicited network messages often sent for commercial purposes. Large-scale spam is often simply the same as (or small variants of) the spam sent to multiple recipients. Note that this definition of spam includes both email as well as newer spam variants such as Spam Sent Over Instant Messenger.
A specific form of attack is an exploit, which is a technique for attacking a computer, which then causes the intruder to take control of the target computer, and run the intruder's code on the attack machine. A worm is a large-scale attack formed by an exploit along with propagation code. Worms can be highly efficacious, since they can allow the number of infected computers to increase geometrically.
Many current worms propagate via random probing. In the context of the Internet, each of the number of different computers has an IP address, which is a 32-bit address. The probing can simply randomly probe different combinations of 32-bit addresses, looking for machines that are susceptible to the particular worm. Once the machine is infected, that machine starts running the worm code, and again begins the Internet. This geometrically progresses. However, future worms may not use random probing, so probing can only be used as one sign of a worm.
The worm can do some specific damage, or alternatively can simply take up network bandwidth and computation, or can harvest e-mail addresses or take any other desired action.
A very common exploit is a so-called buffer overflow. In computers, different areas of memory are used to store various pieces of information. One area in memory may be associated with storing information received from the network: such areas are often called buffers. However, an adjoining area in the memory may be associated with an entirely different function. For example, a document name used for accessing Internet content (e.g., a URL) may be stored into a URL buffer. However, this URL buffer may be directly adjacent to protected memory used for program access. In a buffer overflow exploit, the attacker sends a URL that is longer than the longest possible URL that can be stored in the receiver buffer and so overflows the URL which allows the attacker to store the latter portion of its false URL into protected memory. By carefully crafting an extra long URL (or other message field), the attack or can overwrite the return address, and cause execution of specified code by pointing the return address to the newly installed code. This causes the computer to transfer control to what is now the attacker code, which executes the attacker code.
The above has described one specific exploit (and hence worm) exploiting the buffer overflow. A security patch that is intended for that exact exploit can counteract any worm of this type. However, the operating system code is so complicated that literally every time one security hole is plugged, another is noticed. Further, it often takes days for a patch to be sent by the vendor; worse, because many patches are unreliable and end users may be careless in not applying patches, it may be days, if not months, before a patch is applied. This allows a large window of vulnerability during which a large number of machines are susceptible to the corresponding exploit. Many worms have exploited this window of vulnerability.
A signature is a string of bits in a communication packet that characterize a specific attack. For example, an attempt to execute the perl program at an attacked machine is often signalled by the string “perl.exe” in a message/packet sent by the attacker. Thus a signature-based blocker could remove such traffic by looking for the string “perl.exe” anywhere in the content of a message. The signature could, in general, include header patterns as well as exact bit strings, as well as bit patterns (often called regular expressions) which allow more general matches than exact matches.
While the exact definition of the different terms above may be a matter of debate, the basic premise of these, and other attacks, is the sending of undesired information to a publicly accessible computer, connected to a publicly accessible network, such as the internet.
Different ways are known to handle such attacks. One such technique involves using the signature, and looking for that signature in Internet traffic to block anything that matches that signature. A limitation of this technique has come from the way that such signatures are found. The signature is often not known until the first attacks are underway, at which point it is often too late to effectively stop the initial (sometimes called zero-day) attacks.
An Intrusion Detection System (IDS) may analyze network traffic patterns to attempt to detect attacks. Typically, IDS systems focus on known attack signatures. Such intrusion detection systems, for example, may be very effective against so-called script kiddies who download known scripts an attempt to use them over again at some later time.
Existing solutions to attacks each have their own limitations. Hand patching is when security patches from the operating system vendor are manually installed. This is often too slow (takes days to be distributed). It also requires large amounts of resources, e.g., the person who must install the patches.
A firewall may be positioned at the entrance to a network, and review the packets coming from the public portion of the network. Some firewalls only look at the packet headers; for example, a firewall can route e-mail that is directed to port 25 to a corporate e-mail gateway. The firewalls may be useful, but are less helpful against disguised packets, e.g., those disguised by being sent to other well-known services.
Intrusion detection and prevention systems, and signature based intrusion systems look for an intrusion in the network. These are often too slow (because of the time required for humans to generate a signature) to be of use in a rapidly spreading new attack.
Other systems can look for other suspicious behavior, but may not have sufficient context to realize that certain behavior accompanying a new attack is actually suspicious. For example, a common technique is to look for scanning behavior but this is ineffective against worms and viruses that do not scan. This leads to so-called false negatives where more sophisticated attacks (increasingly common) are missed.
Scanning makes use of the realization that an enterprise network may be assigned a range of IP addresses, and may only use a relatively small portion of this range for the workstations and routers in the network. Any outside attempts to connect to stations within the unused range may be assumed to be suspicious. When multiple attempts are made to access stations within this address space, they may increase the level of suspicion and make it more likely that a scan is taking place.
This technique has been classically used, as part of the so-called network telescope approach.
The present application defines a new technique of automatically determining an unknown attack. This is done by looking for specified different commonalities among the different attacks, and can be used to automatically generate information indicative of the new attack, e.g., a signature for the new attack.
The embodiments describe detecting commonalities including content replication, increasing levels of sending, scanning, executable code, and/or spam keywords.
An aspect of this system defines scalable data reduction techniques to detect the commonalities referred to above. These scalable techniques enable the monitoring of network data for any desired size network apparatus that can be implemented at various speeds ranging from the highest speed links (currently at 40 Gbps) to lower speed local links within local networks.
These and other aspects will now be described in detail with reference to the accompanying drawings, wherein:
Internet messages are sent in packets including headers that identify the destination and/or function of the message. An IP header identifies both source and destination for the payload. A TCP header may also identify destination and source port number. The port number identifies the service which is requested from the TCP destination in one direction, and from the source in the reverse direction. For example, port 25 may be the port number used commonly for e-mail; port number 80 is often used for FTP and the like. The port number thus identifies the specific resources which are requested.
An intrusion is an attempt by an intruder to investigate or use resources within the network 110 based on messages over the network. A number of different systems are in place to detect and thwart such attacks.
The inventors have discovered commonalities between the different kinds of large-scale attacks, each of which attack a different security hole, but each of which have something in common.
Typical recent attacks have large numbers of attackers. Typical recent attacks often increase geometrically, but in any case the number of infected machines increases.
Attacks may often be polymorphic, that is they change their content during each infection in order to thwart signature based methods.
The present technique describes using properties of an attack to detect properties of the new attack, by detecting patterns in data. Effectively, this can detect an attack in the abstract, without actually knowing anything about the details of the attack. The detection of attack can be used to generate a signature, allowing automatic detection of the attack. Another aspect describes certain current properties which are detected, to detect the attack.
A technique is disclosed which identifies characteristics of an abstract attack. This abstract attack looks for properties in network data which make it likely that an attack of new or previous type is underway.
The present disclosure describes a number of different properties being viewed; however it should be understood that these properties could be viewed in any order, and other properties could alternatively be viewed, and that the present disclosure only describes a number of embodiments of different ways of finding an attack under way.
One aspect of the disclosed technique involves looking through large amounts of data. An aspect discloses a truly brute force method of looking through this data; and this brute force method could be usable if large amounts of resources such as memory and the like are available. Another aspect describes scalable data reduction techniques, in which patterns in the data are determined with reduced resources (specifically, smaller configurations of memory and processing.)
The destination checker 190 analyzes the packets 200 for known vulnerabilities such as buffer overflows. At 255, a list of destinations that are susceptible to known vulnerabilities is first consulted to check whether the destination of the current packet being analyzed is on the list. Such a list can be built by a scan of the network prior to the arrival of any packets containing an attack and/or can be maintained as part of routine network maintenance.) If the specific destination is susceptible to a known vulnerability, then the packet is intended for that destination parsed at 265 to see whether the packet data conforms to the vulnerability. For example, in a buffer overflow vulnerability for say a URL, the URL field is found and its length is checked to see if the field is over a pre-specified limit. If the packet passes the tests in 255 and 265, the relevant contents of the packet that exploit the vulnerability (for example, the contents of the field that would cause a buffer overflow) are passed to the output as an anomalous signature, together with the destination and source of the packet.
Content analysis 199 creates anomalous signatures for attacks that are not necessarily based on known vulnerabilities. At 205, “signatures” that are indicative of the information in the packets are created. The signatures can represent a reduced data portion of the information, or a portion or slice of the information, for example. These signatures are analyzed through the techniques of
At 215, the signatures 210 are analyzed to determine frequent content within the data itself, as the common content.
It has been found that large attacks against network resources typically include content which repeats an unusual number of times. For example, the content could be TCP or IP control messages for denial of service attacks. By contrast, worms and viruses have content that contains the code that forms the basis of the attack, and hence that code is often repeated as the attack propagates from computer to computer. Spam has repeated content that contains the information the spammer wishes to send to a large number of recipients.
Only the frequent signatures are likely to be problems. For example, a signature that repeats just once could not represent a large-scale attack. At most, it represents an attack against a single machine. Therefore, the frequent signatures 225 which have been found at 215 may be further analyzed to determine if it is truly a threat, or is merely part of a more benign message.
The signatures found to be frequent signatures at 215 are further analyzed to detect spreading content at 230 as the common content. This spreading content test determines whether a large (where “large” is defined by thresholds that can be set to any desired level) number of attackers or attacked machines are involved in sending/receiving the same content. The content is “common,” in the sense that the same frequent signatures are being sent. During a large-scale attack, the number of sources or destinations associated with the content may grow geometrically. This is in particular true for worms and viruses. For spam, the number of destinations to which the spam content is sent may be relatively large; at least for large-scale spam. For denial of service attacks, the number of sources may be relatively large. Therefore, spreading content may be an additional factor representing an ongoing attack.
The frequent and spreading signatures found at 240 may then be subjected to additional checks at 245. These additional checks can check for code, spam, backdoors, scanning and correlation. Each of these checks, and/or additional checks, can be carried out by modules, either software based, hardware based, or any combination thereof.
In order to launch an attack, it may be necessary to communicate with vulnerable sources. Scanning may be used to find valid IP addresses to probe for vulnerable services. Probing of unused addresses and/or ports can be used for this determination. However it is possible that future attacks may modify their propagation strategies to use pre-generated addresses instead of probing. Therefore, this invention uses scanning only as an “additional sign of guilt” which is not necessary to output an anomalous signature.
Correlation refers to the fact that a piece of content sent to a set of destinations in a measurement interval is followed, in a later measurement interval, by some fraction of these destinations acting as sources of the content. Such correlation can imply causality wherein infections sent to stations in the earlier interval are followed by these stations acting as infecting agents in the later interval.
Besides scanning and correlation, the presence of executable code segments is also an “additional sign of guilt”. Worms and certain other attacks are often characterized by the presence of code (for example, code that can directly execute on Windows machines) in the attack packets they send. Therefore, in analyzing content to determine an infestation, the repeatable content is tested against parameters that determine executable code segments. It is unlikely that reasonably large segments of contiguous packet data will accidentally look like executable code; this observation is the basis of special techniques for determining code that are described herein with reference to
Spam is characterized by an additional sign of guilt such as keywords based on heuristic criteria.
Note that while worms may evince themselves by the presence of reasonably large code fragments, other attacks such as Distributed Denial of Service may be based on other characteristics such as large amounts of repetition, large number of sources, and the reception of an unusually large number of TCP reset messages.
These additional checks 245 may be optional, any number of, all of, or none of these tests may be used.
The above has described mechanisms for analyzing content to detect attack signatures and sources and destinations. It should be understood, however, that the brute force method of analyzing content (e.g., in 215 and 230) could occupy incredible amounts of data storage. For example, commonly used vantage links that operate at 1 Gigabit per second, easily produce terabytes of packet content over a period of a few hours. Accordingly, a general data reduction technique may be used. It should be understood, however, that in one aspect, the other detection techniques may be used without the general data reduction technique. According to an aspect, a data reduction technique is used as part of the detection at 205, 215, 230 and/or 245.
In one aspect, anomalous signatures may be established when any frequent content found by 215 meets an additional test found by 230 or 245. According to another aspect, the signatures may be scored based on the amount on indicia they include. In any case, the information is used at 285, to form “anomalous signatures” which may be used to block operations, or may be sent to a bank of signature blockers and managers.
In addition to the signature, if a packet signature is deemed to be anomalous according to the tests above, the destination and source of the packet may also be passed (285) to the output. This can be useful, for example, to track which machines in a network have been attacked, and which ones have been infected.
At 275, the protection device may also (in addition to passing the signature, source, and destination) take control actions by itself. Standard control actions that are well known in the state of the art include connection termination (where the TCP connection containing the suspicious signature is terminated), connection rate limiting (where the TCP connection is not terminated but slowed down to reduce the speed of the attack), packet dropping (where any packet containing the suspicious content is dropped with a certain probability). Note that when the attack is based on a known vulnerability (255, 265) packet dropping with probability 1 can potentially completely prevent an attack from coming into a network or organization.
Signature Computation Block (205): The signature computation block is detailed with respect to
The attack content may lie buried within the packet content and may be repeated, but other packet headers may change from attack to attack. Thus, according to another aspect, shown as the offset signature 570, the signature is formed by any continuous portion in payload, appended to the TCP destination port. Therefore, the signature 510 investigates for content repetition strings anywhere within the TCP payload. For example, the text “hi Joe” may occur within packet 1 at offset 100 in a first message, and the same text “hi Joe” may occur in packet 2 at offset 200. This signature 510 allows counting that as two occurrences of the same string despite the different offsets in each instance.
The evaluation of this occurrence is carried out by evaluating all possible substrings in the packet of any certain length. A value of a substring length can be chosen, for example, 40 bytes. Then, each piece of data coming in may be windowed, to first look for bytes 1 through 40, then look for bytes 2 through 41, then look for bytes 3 through 42. All possible offsets are evaluated.
The length of substrings may be selected a trade-off depending on the desired amount of processing. Longer substrings will typically have fewer false positives, since it is unlikely that randomly selected substrings can create repetitions of a larger size. On the other hand, shorter substrings may make it more difficult for an intruder to evade attacks.
Certain attacks may chop the attack into portions which are separated by random filler. However, this will still find several invariant content substrings within the same packet.
The multi-signature 515 may be used to combat these kinds of attacks, formed by one or more continuous portions of payload, and the destination port. The multi-signature, is formed by one or more continuous portions of a packet concatenated with a destination port.
Find Frequent Signature Block
After computing a signature 210 at 205, the signature is subjected to the frequent signature test at 215. The find frequent signatures operation 215 is detailed with reference to the flowchart of
The content repetition can be any pre-specified set of bytes within the packet at any location. This may include a part of the header or the payload or just a portion of the payload.
The simplest way of looking for this content is to simply store each item within each message in a database. However, this could require a massive amount of storage at the detection device. An embodiment describes scalable data reduction techniques to avoid this excessive memory usage.
At 300, a data reduction signature is taken of a string S, within the received network content. The data reduction takes each item of data, which can be a fixed size or a variable size, and reduces that data to something less, but which reduced data has a constant predetermined relation with the original data. The process must be repeatable, e.g., each time the same original data is received, the same reduced data will be produced. However, information theory dictates that at least certain other data will also produce the same reduced data.
A specific data reduction technique which is described herein is hashing. Hashing is a set of techniques to convert a long string or number into a smaller number. A simple hashing technique is often to simply remove all but the last three digits of a large number. Since the last three digits of the number are effectively random, it is easy way to characterize something that is referred by a long number. For example, U.S. Pat. No. 6,398,311 can be described simply ‘the 311 patent’. However, much more complex and sophisticated forms of hashing are known.
In one example, assume the number 158711, and that this number must be assigned to one of 10 different hashed “bins” by hashing the number to one of 10 bins. One hashing technique simply adds the digits 1+5+8+7+1+1 equals 23. The number 23 is still bigger than the desired number of 10. Therefore, another reduction technique is carried out by dividing the final number by 10, and taking the remainder (“modulo 10”). The remainder of 23 divided by 10 is 3. Therefore, in 158711 is assigned to bin 3. In this technique, the specific hash function is:
The same hash function can be used to convert any string into a number between 0 and 9. Different numbers can be used to find different hashes.
The hash function is repeatable, that is, any time the hash function receives the number 158711, it will always hash to bin 3. However, other numbers will also hash to bin 3. Any undesired string in the same bin as a desired string is called a hash collision.
Many other hash functions are known, and can be used. These include Cyclic Redundancy Checks (CRCs) commonly used for detecting errors in packet data in networks, a hash functions based on computing multiples of the data after division by a pre-specified modulus, the so-called Carter-Wegman universal hash functions (the simplest instantiation of which is to multiply the bit string by a suitably chosen matrix of bits), hash functions such as Rabin hash functions based on polynomial evaluation, and one-way hash functions such as MD-5 used in security. This list is not exhaustive and it will be understood that other hash functions and other data reduction techniques can be used.
A specific aspect of the windowing embodiment (510) allows adding a part of the hash and removing a part when moving between two adjacent substrings. One aspect of this embodiment, therefore, may use an incremental hash function. Incremental hash functions make it easy to compute the hash of the next substring based on the hash of the previous substring. One classic incremental hash function is a Rabin hash function (used previously by Manber in spotting similarities in files instead of other non-incremental hashes (e.g, SHA, MD5, CRC32).
Large payloads may contain thousands of bytes, and according to one aspect, the content is data reduced at 300. 64-bit content may be sufficient to minimize the probability of hash collisions, so the data reduction may be, for example, a hash to 64 bits.
The string S may include information about the destination port. The destination port generally remains the same for a worm, and may distinguish frequent email content from frequent Web content or peer-to-peer traffic in which the destination port changes.
A frequency threshold is also defined. If the count for S exceeds the frequency threshold, then S is added to the frequent content table at 325. Periodically, each of the counters is reset, so that the frequent content test effectively requires the frequent content to be received in a specified time period.
The table formed in the simple solution 305 may be huge, and therefore a scalable solution is shown as 350. According to the scalable solution, a data reduction hash is first carried out.
An optional front end test that is commonly used is described in 351. One technique is to use a Bloom Filter as described in “Burton Bloom: Space/time tradeoffs in hash coding with allowable errors. Communications ACM, 1970” or a counting Bloom Filter as described in L. Fan, P. Cao, J. Almeida, and A. Broder. Summary Cache: A Scalable wide-area Web cache sharing protocol SIGCOMM 98, 1998, to sieve out content that is repeated only a small number of times. While Bloom filters are a reasonable front end and may suffice in some applications where memory is not expensive, they still require a few bits per piece of unique content and hence are not completely scalable.
For a more scalable analysis of frequent content, at 355, a number k of hash stages are established. Each stage I hashes the value S using a specified hash function Hash (I), where Hash(I) is a different hash function for each stage I. For each of those stages, a specific position, k(I) is obtained from the hashing. The counter in position k(I) is incremented in each of the k stages. Then, the next I is established. Again, there are k stages, where k is often at least three, but could even be 1 or 2 in some instances.
At 360, the system checks to see if all of the k stage counters that incremented by the hash, for a specific string S, are greater than a stage frequency threshold. S is added to the frequent content table only when all of the k counters are all greater then the threshold.
At the beginning of each measurement interval, all counters in each stage are initialized to 0. Each packet comes in and is hashed by a hash function associated with the stage. The result of the hash is used to set a counter in that stage. For example, the packet S is hashed by hash function 401 in order for the first stage 400. This produces a result of 2, shown incrementing counter 2 in the first stage array 400. The same packet S is also hashed using hash function 2 (421), and increments counter 0 in the second stage array 420. Similarly, and analogously, the packet S is hashed by hash function three (431), which hashes to counter 6 of the third stage 430. The same packet hashes to three different sections (in general, though there is a small probability that these sections may coincide) in the three different counter stages.
The stage detector 410 detects if the counters that have currently been incremented are each above the frequency threshold. The signature is added to the frequent content memory 415 only when all of the stages that have been incremented above the stage frequency threshold.
As examples, the first hash function 301 could sum digits and take the remainder when divided by 13. The second hash function 321 could sum digits and take the remainder when divided by 37. Hash function 331 could also similarly be a third independent function. In practice, it parameterized hash functions may be used, with different parameters for the different stages, to produce different but independent instances of the hash function.
The use of multiple hash stages with independent hash functions reduces the problems caused by multiple hash collisions. Moreover, the system is entirely scalable. By simply adding another stage, the effect of hash collisions is geometrically reduced. Moreover, since the memory accesses can be performed in parallel, this can form a very efficient, multithreaded software or hardware implementation.
Spreading Content Test:
Once a frequent signature is found at 215, 230 investigates whether the content is spreading characteristic. This is done by looking for and counting, sources and destinations associated with the content.
When the same string S comes from the same source, the counter is not incremented. When that same string does come from a new source, the new source is added as an additional source and the unique source counter is incremented. The destinations are counted in an analogous way. The source table is used to prevent over-counting the number of sources. That is, if Sally continually sends the message “hi Joe”, Sally does not get counted twice.
During a large attack, millions or billions of sources and destinations may be involved.
First, at 629, an N bit count array is maintained where each bit may be 0 or 1, and the array has N positions, 630, the string S is reviewed against the frequent content table. If S is not within the table, no further steps are taken.
At 635, the source IP address is hashed, using a specified function, to form a W bit hash value Shash. At 640, the hash value SHASH is used to “set” the bit at a corresponding bit position within the count array, if not already set. A running counter at 645 can maintain the number of set bits, or alternatively, the number of set bits can be counted at the end of each interval. 646 tests for the end of an interval, and resets the bits of the counter when the interval end is detected at 647.
The count of bits can be weighted by the probability of hash collisions, in order to get a more accurate count of numbers of sources and destinations.
This technique essentially stores a bitmap; one bit per source, instead of the entire 32-bit IP source table.
While the bitmap solution is better than storing complete addresses, it still may require keeping hundreds of thousands of bits per frequent content. Another solution carries out even further data compression by using a threshold T which defines a large value. For example, defining T as 100, this system only detects values that are large in terms of sources. Therefore, no table entries are necessary until more than 100 sources are found.
It also may be desirable to know not only the number of sources, but the rate of increase of the sources. For example, it may be desirable to know that even though a trigger after 100 sources is made, that in the next second there are 200 sources, in the second after that there are 400 sources, and the like.
This system uses only a small portion of the entire bit map space.
At 650, a check is made to see if the signature is a frequent signature, if not, it skips the remaining steps. At 655, the IP address is hashed to a W bit number SHASH. At 660, only certain bits of that hash are selected, e.g. the low order r bits. That is, this system scales down the count to only sampling a small portion of the bitmap space. However, the same scaling is used to estimate the complete bitmap space.
The same operations are carried out on the destination address at 605 and 670.
For example, an array of 32-bit (i.e., r=32) may be maintained, where the threshold T is 96. Each source of the content is hashed to a position between 1 and 96. If the position is between 1 and 32, then it is set. If the position is beyond 32, then it is ignored, since there is no portion in the array for that bit.
At the end of the interval at 675, the number of bits set into the 32-bit array is counted, and corrected for collisions. The value is scaled up based on the number of bits which were ignored. Thus, for any value of T, the number of bits set within the available portion of the registers is counted, and scaled by a factor of T. For example, in the previous example, if we had hashed from 1 to 96 but only stored 1 through 32, the final estimate would be scaled up by a factor of 3.
The address is hashed at 682. A scale factor for sources is denoted by SourceScale. At 684 only if the high order bits of the hash from positions r+1 to r+SourceScale are all zero, is the low order r bits used to set the corresponding position in the Source BitMap. For example, if SourceScale is initially 3 and r is 32, essentially all but the low order 35 bits of the hash are ignored and the low order 32 bits of the 35 bits are focused on, a scaling of 2^(35−32)=2^3=8.
The interval is over at 686. At 688, the counter is cleared, and source scale is incremented by some amount. If in the next interval, in the same example, the scale factor goes up to 4, the scaling focuses on the top 36 bits of the hash, giving a scaling of 2^4=16. Thus by incrementing SourceScale by 1, the amount of sources that can be counted is doubled. Thus when comparing against the threshold for sources in 675, the number of bits in SourceHash is scaled by a factor of 2^(SourceScale−1) before being compared to the threshold.
Note that this same technique is used not only for sources, as described, but also for destinations in 665, 670 and 675.
Scanning Test: A special kind of scanning test can also be carried out at 245. Unlike previous scanning systems, here both the content and the source are used as keys for the test, as compared with previous systems that tested merely the source. Tests are made for content that is being sent to unused addresses (of sources that disburse such content and send to unused addresses) and not solely sources. A guilt score is assigned to pieces of “bad” content, though as a side-effect, the individual stations disbursing the bad content may be tagged. Notice also that the exploit in a TCP-based worm will not be sent to these addresses because a connection cannot be initiated without an answer from the victim
Noticing a range of probes to an unused space: A source may make several attempts to an inactive address or port by mistake. A hundred attempts to a single unused address or port is less suspicious than a single attempt to each of a hundred unused addresses/ports. Thus rather than counting just counting the number of attempts to unused addresses, it may also be useful to get an estimate of the range of unused addresses that have been probed.
To implement these augmentations scalably, a representation of the set of the unused addresses/ports of an enterprise or campus network is maintained. For scalability, unused addresses can be done compactly using a bitmap (for example, for a Class B network, 64K bits suffices) or Bloom Filter or as described in L. Fan, P. Cao, J. Almeida, and A. Broder. Summary Cache: A Scalable wide-area Web cache sharing protocol SIGCOMM 98, 1998. The list can be dynamically validated. Initial guesses about which addresses spaces are being used can be supplied by a manager. This can easily be dynamically corrected. For example, whenever an address S thought to be unassigned sends a packet from the inside, that address should be updated to be an assigned address. Note that in the special case of a contiguous address space, a simple network mask suffices.
A scalable list of unused ports can be kept by keeping an array with one counter for each port, where each array entry is a counter. The counter is incremented for every TCP SYN sent or each RESET sent, and decremented for every TCP FIN or FIN-ACK sent. Thus, if a TCP-based attack occurs to a port and many of the machines it contacts are not using this port, TCP FINs will not be sent back by these machines, or they will send TCP resets. Thus, the counter for that port will increase. Some care must be taken in implementing this technique to handle spoofing and asymmetrical routing, but even the simplest instance of this method will work well for most organizations.
A “blacklist” of sources that have sent packets to the unused addresses or ports in the last k measurement periods. This can be done compactly via a Bloom Filter or a bitmap. A hashed bit map can also be maintained, (similar to counting sources above) of the inactive destinations probed, and the ports for which scanning activity is indicated.
For each piece of frequent content, the mechanism keeps track of the range of sources in the blacklisted list associated with the content. Once again, this can be done scalably using a hashed bitmap as described herein.
Code can also be detected at 245. This can be used with a packet code test shown in
The code test can simply be a disassembler run on the packet at each of the plurality of offsets. Most worms and the like use 8086 code segments. Therefore, an 8086 disassembler can be used for this purpose.
This test, therefore, maintains a small table of all opcodes, and for each valid opcode, uses the length of the instruction to test whether the bits are valid.
The system thus checks for code at offset O by consulting the table looking for a first opcode at O. If the opcode is invalid, then the test fails, and the pointer moves to test the next offset.
However, if the opcode is valid, then the test skips the number of bytes indicated by the instruction length, to find the next opcode, and the test repeats. If the test has not failed after reaching N bytes from the offset O, then the test has succeeded.
This test can be carried out on each string, using only 8086 and unicode, since most of the attacks have been written in these formats. It should be understood, however, that this may be extended to other code sets, should that be necessary.
The code test can be combined with the frequent content test as a final confirmatory test of whether a piece of frequent content contains at least one fragment of code. In another alternative, the code detection can be used to form a front end for the frequent content. Only content that has a code segment of size N or more is therefore considered for frequent content testing.
The following correlation test can be used in 245 to scalably detect the correlation between content sent to stations in one interval, and content sent by these sources in the next interval. As this is a likely sign of an infection, it adds to the guilt score assigned to a piece of content, if this test is passed. A scalable method of doing this is shown in
In 905, a bitmap for sources and a bitmap for destinations are initialized to “0” whenever a new signature is added to the frequent content table. A similar initialization occurs at the end of every interval as shown in 940. The concepts used are very similar to those for detecting spreading content in
In an analogous way for
A test for correlation at 935 compares the bit positions set in the source bitmap for this interval with the bit positions set in the destination bitmap for the previous interval. If a large number of bits are set in common, it is clear that of the sample of destinations that received the content in the last interval, a significant fraction is sending the same content in this interval, and the content passes the correlation test in 935.
The source and destination bitmaps of an interval are logged in 940 at the end of an interval and the counters are reset.
Another one of the additional checks shown as 245 is the Spam test shown in
The packet testing described in
Two different sample combinations of the way that this can be used in a network configuration are respectively shown in
The signatures from each of these devices, representing either the data, or the reduced data, is sent to a consolidator 1170. The consolidator then carries out the additional tests of finding the frequent content 215; finding spreading content 230, and additional tests 245. This has the advantage that a piece of content, while not passing the tests at any one device, still passes the tests when viewed across all the devices. Alternately, signatures 1164 or from device 1160, signatures 1165 from device 1161, and signatures 1166 from device 1162. The consolidated signature 1171 provides a consolidated signature the blocking to router 1152. More generally, however, any part of the intrusion detection system/intrusion prevention system, may generate signatures, that is bit patterns corresponding to the offensive content of the attack or undesired content, and the entire solution could distributed in various ways.
Other implementations, besides those specifically disclosed above, are within the scope of the following claims.
For example, although the above has described hashing, any technique, mathematical or otherwise, can be used for this data reduction so long as it follows the techniques disclosed above. Moreover, although the above has described only a few tests, which are representative of today's kinds of intrusions, other tests can be added in the future.
All such implementations and modifications are intended to be encompassed within the following claims.
|Brevet cité||Date de dépôt||Date de publication||Déposant||Titre|
|US6477651 *||8 janv. 1999||5 nov. 2002||Cisco Technology, Inc.||Intrusion detection system and method having dynamically loaded signatures|
|US6578147 *||15 janv. 1999||10 juin 2003||Cisco Technology, Inc.||Parallel intrusion detection sensors with load balancing for high speed networks|
|US6738814 *||18 mars 1998||18 mai 2004||Cisco Technology, Inc.||Method for blocking denial of service and address spoofing attacks on a private network|
|US6829635 *||1 juil. 1998||7 déc. 2004||Brent Townshend||System and method of automatically generating the criteria to identify bulk electronic mail|
|US6988208 *||16 juil. 2002||17 janv. 2006||Solutionary, Inc.||Method and apparatus for verifying the integrity and security of computer networks and implementing counter measures|
|US7080408 *||30 nov. 2001||18 juil. 2006||Mcafee, Inc.||Delayed-delivery quarantining of network communications having suspicious contents|
|US7089592 *||15 mars 2001||8 août 2006||Brighterion, Inc.||Systems and methods for dynamic detection and prevention of electronic fraud|
|US7535909||9 nov. 2005||19 mai 2009||Cisco Technology, Inc.||Method and apparatus to process packets in a network|
|US20020107953||16 janv. 2001||8 août 2002||Mark Ontiveros||Method and device for monitoring data traffic and preventing unauthorized access to a network|
|US20030014662||13 juin 2002||16 janv. 2003||Gupta Ramesh M.||Protocol-parsing state machine and method of using same|
|US20030445485||Titre non disponible|
|US20040054925||13 sept. 2002||18 mars 2004||Cyber Operations, Llc||System and method for detecting and countering a network attack|
|US20040064737||4 sept. 2003||1 avr. 2004||Milliken Walter Clark||Hash-based systems and methods for detecting and preventing transmission of polymorphic network worms and viruses|
|US20040073617||4 sept. 2003||15 avr. 2004||Milliken Walter Clark||Hash-based systems and methods for detecting and preventing transmission of unwanted e-mail|
|US20060098585||9 nov. 2005||11 mai 2006||Cisco Technology, Inc.||Detecting malicious attacks using network behavior and header analysis|
|US20060150249 *||4 mai 2004||6 juil. 2006||Derek Gassen||Method and apparatus for predictive and actual intrusion detection on a network|
|US20060242703 *||11 août 2003||26 oct. 2006||Paolo Abeni||Method and system for detecting unauthorized use of a communication network|
|US20070094728 *||24 nov. 2003||26 avr. 2007||Klaus Julisch||Attack signature generation|
|US20070112714 *||10 juil. 2006||17 mai 2007||John Fairweather||System and method for managing knowledge|
|US20070192863 *||13 déc. 2006||16 août 2007||Harsh Kapoor||Systems and methods for processing data flows|
|US20080307524||1 déc. 2004||11 déc. 2008||The Regents Of The University Of California||Detecting Public Network Attacks Using Signatures and Fast Content Analysis|
|WO2005103899A1||1 déc. 2004||3 nov. 2005||Univ California||Detecting public network attacks using signatures and fast content analysis|
|1||Bloom, Burton, "Space/time trade-offs in hash coding with allowable errors," Communications of the ACM 13(7): 422-426, 1970.|
|2||Chambers Dictionary of Science and Technology, Copyright 1999 by Chambers Harrap Publishers Ltd., p. 303 (including a definition of "data reduction").|
|3||Estan et al., "Building a Better NetFlow," SIGCOMM 2004 Tech Report, Portland Oregon, Aug. 30-Sep. 3, 2004 (12 pages).|
|4||Fan et al., "Summary Cache: A Scalable wide-area Web cache sharing protocol," ACM SIGCOMM 98, Vancouver, British Columbia, Sep. 2-4, 1998 (12 pages).|
|5||Graham, Paul, "A Plan for Spam," http://www.paulgraham.com/spam.html , Aug. 2002, 12 pages, (accessed May 23, 2007).|
|6||Graham, Paul, "A Plan for Spam," http://www.paulgraham.com/spam.html , Aug. 2002, 12 pages, (accessed May 23, 2007).|
|7||Manber, Udi "Finding Similar Files In a Large File System", Proc. 1994 Winter Usenix Technical Conference, Jan. 1994, pp. 1-10.|
|8||McGraw-Hill Dictionary of Scientific and Technical Terms, 6th Edition, Copyright 2003, . . . by The McGraw-Hill Companies, Inc., p. 505 (including a definition of "data reduction").|
|9||Microsoft Computer Dictionary, 5th Edition, Copyright 2002 by Microsoft Corporation, p. 144 (including a definition of "data reduction").|
|10||Moore et al., "Inferring Internet Denial-of-Service Activity," Proceedings of the 10th USENIX Security Symposium, Aug. 13-17, 2001, Washington, D.C, 15 pages.|
|11||Moore et al., "Internet Quarantine: Requirements for Containing Self-Propagating Code," The 22nd Annual Joint Conference of the IEEE Computer and Communications Societies, San Francisco, CA, U.S.A. (Apr. 1-3, 2003).|
|12||Rabin, Michael O., "Fingerprinting by random polynomials," Center for Research in Computing Technology, Harvard University, Report TR-15-91, 1981.|
|13||Singh et al., "Automated Worm Fingerprinting," OSDI '04: 6th Symposium on Operating Systems Design and Implementation, San Francisco, CA, U.S.A., USENIX Association, pp. 45-60 (Dec. 6-8, 2004).|
|14||Snort web site, www.snort.org, (accessed on May 23, 2007).|
|Brevet citant||Date de dépôt||Date de publication||Déposant||Titre|
|US8250081 *||18 janv. 2008||21 août 2012||Websense U.K. Limited||Resource access filtering system and database structure for use therewith|
|US8495733 *||25 mars 2009||23 juil. 2013||Trend Micro Incorporated||Content fingerprinting using context offset sequences|
|US8615800||10 juil. 2006||24 déc. 2013||Websense, Inc.||System and method for analyzing web content|
|US8768876 *||24 févr. 2012||1 juil. 2014||Placed, Inc.||Inference pipeline system and method|
|US8972357||24 févr. 2012||3 mars 2015||Placed, Inc.||System and method for data collection to validate location data|
|US8978140||20 juin 2011||10 mars 2015||Websense, Inc.||System and method of analyzing web content|
|US8996035||11 mars 2014||31 mars 2015||Enhanced Geographic Llc||Mobile advertisement with social component for geo-social networking system|
|US9003524||23 déc. 2013||7 avr. 2015||Websense, Inc.||System and method for analyzing web content|
|US9008691||29 mai 2014||14 avr. 2015||Enhanced Geographic Llc||Systems and methods to provide an advertisement relating to a recommended business to a user of a wireless device based on a location history of visited physical named locations associated with the user|
|US9076165||19 mai 2014||7 juil. 2015||Enhanced Geographic Llc||Systems and methods to determine the name of a physical business location visited by a user of a wireless device and verify the authenticity of reviews of the physical business location|
|US20100217771 *||18 janv. 2008||26 août 2010||Websense Uk Limited||Resource access filtering system and database structure for use therewith|
|US20130226857 *||24 févr. 2012||29 août 2013||Placed, Inc.||Inference pipeline system and method|
|Classification aux États-Unis||726/22, 726/13, 726/23|
|Classification internationale||G06F21/00, H04L9/00, G06F12/14, G08B23/00, H04L9/32, G06F11/30, H04L29/06|
|Classification coopérative||H04L9/3236, H04L2463/141, H04L9/002, H04L2209/60, G06F21/55, H04L9/3247, H04L63/1416|
|Classification européenne||G06F21/55, H04L63/14A1, H04L9/32L, H04L9/32N, H04L9/00K|
|12 juil. 2004||AS||Assignment|
Owner name: REGENTS OF THE UNIVERSITY OF CALIFORNIA, THE, CALI
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:SINGH, SUMEET;VARGHESE, GEORGE;ESTAN, CRISTI;AND OTHERS;REEL/FRAME:015551/0953
Effective date: 20040511
|25 oct. 2006||AS||Assignment|
Owner name: NATIONAL SCIENCE FOUNDATION, VIRGINIA
Free format text: CONFIRMATORY LICENSE;ASSIGNOR:UNIVERSITY OF CALIFORNIA SAN DIEGO;REEL/FRAME:018432/0011
Effective date: 20050307
|8 oct. 2008||AS||Assignment|
Owner name: FOUNDATION, NATIONAL SCIENCE, VIRGINIA
Free format text: EXECUTIVE ORDER 9424, CONFIRMATORY LICENSE;ASSIGNOR:SAN DIEGO, UNIVERSITY OF CALIFORNIA;REEL/FRAME:021647/0249
Effective date: 20080623
|22 déc. 2014||FPAY||Fee payment|
Year of fee payment: 4