7716737

Connection Based Detection of Scanning Attacks

PublishedMay 11, 2010
Assigneenot available in USPTO data we have
Technical Abstract

Patent Claims
35 claims

Legal claims defining the scope of protection, as filed with the USPTO.

1

1. A computer implemented method of detecting scanning attacks, comprises: adding host-pair connection records to a first data structure stored on a computer readable medium when a host accesses another host during a first update period; determining the number of new host pairs added to the first data structure over the first update period; aggregating host-pair connection records from the first data structure into a second data structure which corresponds to a second update period that is greater than the first update period, wherein aggregating host-pair connection records involves partitioning hosts into groups that have similar connection habits; determining the number of new host pairs added to the second data structure over the second update period; and indicating a host as a scanner when at least one of the following conditions is true: (1) the host appears in more than a first threshold number of host pairs within the first update period, and a first historical number of host pairs is smaller than the first threshold number by a first factor value; and (2) the host appears in more than a second threshold number of host pairs within the second update period, and a second historical number of host pairs is smaller than the second threshold number by a second factor value.

2

2. The method of claim 1 wherein the first threshold number and the first factor value are adjustable.

3

3. The method of claim 2 wherein the first data structure is a current time-slice connection table and host-pair connection records are added to the current time slice connection table.

4

4. The method of claim 3 , further comprising: checking for ping scans at the end of the second update period; and indicating hosts which produced more than the second threshold number of new host pairs over the second update period.

5

5. The method of claim 1 further comprising: maintaining Address Resolution Protocol (ARP) packet statistics in the first data structure and for sparse subnets tracking the number of generated ARP requests that do not receive responses to detect scans on sparse sub-networks.

6

6. The method of claim 1 wherein the scanning attack is a ping scanning attack.

7

7. A computer implemented method of detecting port scanning attacks, the method comprises: retrieving from a first data structure stored on a computer readable medium logged values of protocols and ports in host-pair connection records added in the first data structure during a first update period; determining the number of ports associated with a host over the first update period based on the host-pair connection records in the first data structure; aggregating host-pair connection records from the first data structure into a second data structure which corresponds to a second update period that is greater than the first update period, wherein aggregating host-pair connection records involves partitioning hosts into groups that have similar connection habits; determining the number of ports associated with a host over the second update period based on the host-pair connection records in the second data structure; and reporting a host associated with a port scan when at least one of the following conditions is true: (1) the number of ports associated with the host within the first update period is greater than a first threshold number, and a first historical number of ports associated with the host is smaller than the first threshold number by a first factor value; and (2) the number of ports associated with the host within the second update period is greater than a second threshold number, and a second historical number of ports associated with the host is smaller than the second threshold number by a second factor value.

8

8. The method of claim 7 further comprising: assigning a severity level to the port scan and reporting the severity level of the port scan.

9

9. The method of claim 7 wherein the reported severity varies as a function of the deviation from historical norm.

10

10. The method of claim 7 further comprising: determining from accessing data in the first data structure, statistics about TCP reset (RST) packets and ICMP port-unreachable packets, to detect a spike in the number of RST packets and ICMP port-unreachable packets to determine the severity of a port scan event.

11

11. A computer program product residing on a computer readable medium for detecting scanning attacks, comprises instructions for causing a computer to: add host-pair connection records to a first data structure when a host accesses another host during a first update period; determine the number of new host pairs added to the first data structure over the first update period; aggregate host-pair connection records from the first data structure into a second data structure which corresponds to a second update period that is greater than the first update period, wherein aggregating host-pair connection records involves partitioning hosts into groups that have similar connection habits; determine the number of new host pairs added to the second data structure over the second update period; and indicate a host as a scanner when at least one of the following conditions is true: (1) the host appears in more than a first threshold number of host pairs within the first update period, and a first historical number of host pairs is smaller than the first threshold number by a first factor value; and (2) the host appears in more than a second threshold number of host pairs within the second update period, and a second historical number of host pairs is smaller than the second threshold number by a second factor value.

12

12. The computer program product of claim 11 wherein the first threshold number and the first factor value are adjustable.

13

13. The computer program product of claim 11 wherein the first data structure is a current time-slice connection table and host-pair connection records are added to the current time slice connection table.

14

14. The computer program product of claim 13 , further comprising instructions to: check for ping scans at the end of a the second update period; and indicate hosts which produced more than the second threshold number of new host pairs over the second update period.

15

15. The computer program product of claim 11 further comprising instructions to: maintain Address Resolution Protocol (ARP) packet statistics in the first data structure; and track the number of generated ARP requests that do not receive responses to detect scans on sparse sub-networks.

16

16. A computer program product residing on a computer readable medium for detecting port scanning attacks, the computer program product comprises instructions for causing a processor to: retrieve from a first data structure logged values of protocols and ports in host-pair connection records in the first data structure during a first update period; determine the number of ports associated with a host over the first update period based on the host-pair connection records in the first data structure; aggregate host-pair connection records from the first data structure into a second data structure which corresponds to a second update period that is greater than the first update period, wherein aggregating host-pair connection records involves partitioning hosts into groups that have similar connection habits; determine the number of ports associated with a host over the second update period based on the host-pair connection records in the second data structure; and report a host associated with a port scan when at least one of the following conditions is true: (1) the number of ports associated with the host within the first update period is greater than a first threshold number, and a first historical number of ports associated with the host is smaller than the first threshold number by a first factor value; and (2) the number of ports associated with the host within the second update period is greater than a second threshold number, and a second historical number of ports associated with the host is smaller than the second threshold number by a second factor value.

17

17. The computer program product of claim 16 further comprising instructions to: assign a severity level to the port scan and report the severity level of the port scan.

18

18. The computer program product of claim 17 wherein the reported severity varies as a function of the deviation from historical norm.

19

19. The computer program product of claim 17 further comprising instructions to: determine from the first data structure statistics about TCP reset (RST) packets and ICMP port-unreachable packets to detect a spike in the number of RST packets and ICMP port-unreachable packets to determine the severity of a port scan event.

20

20. Apparatus comprising: circuitry for detecting scanning attacks, comprising: circuitry to add host-pair connection records to a first data structure when a host accesses another host during a first update period; circuitry to determine the number of new host pairs added to the first data structure over a first update period; circuitry to aggregate host-pair connection records from the first data structure into a second data structure which corresponds to a second update period that is greater than the first update period, wherein aggregating host-pair connection records involves partitioning hosts into groups that have similar connection habits; circuitry to determine the number of new host pairs added to the second data structure over the second update period; and circuitry to indicate a host as a scanner when at least one of the following conditions is true: (1) the host appears in more than a first threshold number of host pairs within the first update period, and a first historical number of host pairs is smaller than the first threshold number by a first factor value; and (2) the host appears in more than a second threshold number of host pairs within the second update period, and a second historical number of host pairs is smaller than the second threshold number by a second factor value.

21

21. The apparatus of claim 20 wherein the first threshold number and the first factor value are adjustable.

22

22. The apparatus of claim 20 wherein the first data structure is a current time-slice connection table and host-pair connection records are added to the current time slice connection table.

23

23. The apparatus of claim 20 , further comprising: circuitry to check for ping scans at the end of a second update period; and circuitry to indicate hosts which produced more than the second threshold number of new host pairs over the second update period.

24

24. Apparatus comprising: a processing device; and a computer readable medium tangible embodying a computer program product for detecting scanning attacks, the computer program product comprising instructions for causing the processing device to: add host-pair connection records to a first data structure when a host accesses another host during a first update period; determine the number of new host pairs added to the first data structure over the first update period; aggregate host-pair connection records from the first data structure into a second data structure which corresponds to a second update period that is greater than the first update period, wherein aggregating host-pair connection records involves partitioning hosts into groups that have similar connection habits; determine the number of new host pairs added to the second data structure over the second update period; and indicate a host as a scanner when at least one of the following conditions is true: (1) the host appears in more than a first threshold number of host pairs within the first update period, and a first historical number of host pairs is smaller than the first threshold number by a first factor value; and (2) the host appears in more than a second threshold number of host pairs within the second update period, and a second historical number of host pairs is smaller than the second threshold number by a second factor value.

25

25. The apparatus of claim 24 wherein the first threshold number and the first factor value are adjustable.

26

26. The apparatus of claim 24 wherein the first data structure is a current time-slice connection table and host-pair connection records are added to the current time slice connection table.

27

27. The apparatus of claim 24 , wherein the computer program product further comprises instructions to: check for ping scans at the end of a second update period; and indicate hosts which produced more than second threshold number of new host pairs over the second update period.

28

28. Apparatus comprising: a processing device; a computer readable medium tangibly embodying a computer program product for detecting port scanning attacks, the computer program product comprises instructions for causing a processor to: retrieve from a first data structure logged values of protocols and ports in host-pair connection records in the first data structure during a first update period; determine the number of ports associated with a host over the first update period based on the host-pair connection records in the first data structure; aggregate host-pair connection records from the first data structure into a second data structure which corresponds to a second update period that is greater than the first update period, wherein aggregating host-pair connection records involves partitioning hosts into groups that have similar connection habits; determine the number of ports associated with a host over the second update period based on the host-pair connection records in the second data structure; and report a host associated with a port scan when at least one of the following conditions is true: (1) the number of ports associated with the host within the first update period is greater than a first threshold number, and a first historical number of ports associated with the host is smaller than the first threshold number by a first factor value; and (2) the number of ports associated with the host within the second update period is greater than a second threshold number, and a second historical number of ports associated with the host is smaller than the second threshold number by a second factor value.

29

29. The apparatus of claim 28 further comprising instructions to: assign a severity level to the port scan and report the severity level of the port scan.

30

30. The apparatus of claim 29 wherein the reported severity varies as a function of the deviation from a historical norm.

31

31. The apparatus of claim 29 further comprising instructions to: determine from the first data structure statistics about TCP reset (RST) packets and ICMP port-unreachable packets to detect a spike in the number of RST packets and ICMP port-unreachable packets to determine the severity of a port scan event.

32

32. A computer implemented method of detecting scanning attacks, comprises: adding host-pair connection records to a first data structure stored on a computer readable medium when a host accesses another host during a first update period; determining the number of new host pairs added to the first data structure over the first update period; aggregating host-pair connection records from the first data structure into a second data structure which corresponds to a second update period that is greater than the first update period, wherein aggregating host-pair connection records involves partitioning hosts into groups that have similar connection habits; determining the number of new host pairs added to the second data structure over the second update period; and indicating a host as a scanner when the host appears in more than a first threshold number of host pairs within the first update period, and a first historical number of host pairs is smaller than the first threshold number by a first factor value.

33

33. A computer implemented method of detecting scanning attacks, comprises: adding host-pair connection records to a first data structure stored on a computer readable medium when a host accesses another host during a first update period; determining the number of new host pairs added to the first data structure over the first update period; aggregating host-pair connection records from the first data structure into a second data structure which corresponds to a second update period that is greater than the first update period, wherein aggregating host-pair connection records involves partitioning hosts into groups that have similar connection habits; determining the number of new host pairs added to the second data structure over the second update period; and indicating a host as a scanner when the host appears in more than a second threshold number of host pairs within the second update period, and a second historical number of host pairs is smaller than the second threshold number by a second factor value.

34

34. A computer implemented method of detecting port scanning attacks, the method comprises: retrieving from a first data structure stored on a computer readable medium logged values of protocols and ports in host-pair connection records added in the first data structure during a first update period; determining the number of ports associated with a host over the first update period based on the host-pair connection records in the first data structure; aggregating host-pair connection records from the first data structure into a second data structure which corresponds to a second update period that is greater than the first update period, wherein aggregating host-pair connection records involves partitioning hosts into groups that have similar connection habits; determining the number of ports associated with a host over the second update period based on the host-pair connection records in the second data structure; and reporting a host associated with a port scan when the number of ports associated with the host within the first update period is greater than a first threshold number, and a first historical number of ports associated with the host is smaller than the first threshold number by a first factor value.

35

35. A computer implemented method of detecting port scanning attacks, the method comprises: retrieving from a first data structure stored on a computer readable medium logged values of protocols and ports in host-pair connection records added in the first data structure during a first update period; determining the number of ports associated with a host over the first update period based on the host-pair connection records in the first data structure; aggregating host-pair connection records from the first data structure into a second data structure which corresponds to a second update period that is greater than the first update period, wherein aggregating host-pair connection records involves partitioning hosts into groups that have similar connection habits; determining the number of ports associated with a host over the second update period based on the host-pair connection records in the second data structure; and reporting a host associated with a port scan when the number of ports associated with the host within the second update period is greater than a second threshold number, and a second historical number of ports associated with the host is smaller than the second threshold number by a second factor value.

Patent Metadata

Filing Date

Unknown

Publication Date

May 11, 2010

Inventors

Benjamin Wilken
Massimiliano Antonio Poletto

Want to explore more patents?

Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.

Citation & reuse

Analysis on this page is generated by Patentable — an AI-powered patent intelligence platform. AI-generated summaries, explanations, and analysis may be reused with attribution and a visible link back to the canonical URL below. Patent abstracts and claims are USPTO public domain.

Cite as: Patentable. “CONNECTION BASED DETECTION OF SCANNING ATTACKS” (7716737). https://patentable.app/patents/7716737

© 2026 Patentable. All rights reserved.

Patentable is a research and drafting-assistant tool, not a law firm, and does not provide legal advice. Documents we generate are drafts for review by a licensed patent attorney.