# US 2014/0208412 A1 · Firewall event reduction for rule use counting

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2014/0208412 A1
- Document ID: US20140208412A1
- Status: Published application
- Kind: A1
- Application number: 14/222,128
- Filed: 2014-03-21
- Published: 2014-07-24
- Earliest claimed: 2012-12-11
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Rory F. Bray; Cezar P. Grzelak; Jason D. Keirstead
- Web page: https://patentgrep.com/patent/US20140208412A1

## CPC

- H04L 63/0263: {Rule management}
- H04L 43/06: Generation of reports
- H04L 63/02: {for separating internal from external traffic, e.g. firewalls}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

An illustrative embodiment of a method for firewall rule use counting receives log messages comprising one or more log data sets from each firewall rule in a particular network whose counts are to be tracked in a log collector, generates a network trie for each reference database in a set of databases and a device source trie and a device destination trie for each firewall device in a plurality of devices of the particular network, a source port and protocol list and a destination port and protocol list for each respective device, a unique object for each log data set received; a mapping database comprising an entry for each log data set received associated with the unique object; and feeds each entry in the mapping database through a topology model to also generate a reference to a unique firewall rule on a respective device in the plurality of devices. A count associated with the unique firewall rule is incremented using a count of logs stored associated with the respective unique object and a report is generated.

## Claims

### Claim 1

A method for firewall rule use counting, the method comprising:
receiving log messages comprising one or more log data sets from each firewall rule in a particular network whose counts are to be tracked in a log collector;
generating a network trie for each reference database in a set of databases and a device source trie and a device destination trie for each firewall device in a plurality of devices of the particular network;
generating a source port and protocol list and a destination port and protocol list for each respective device in the plurality of devices;
generating a unique object for each log data set received;
generating a mapping database comprising an entry for each log data set received associated with the unique object;
feeding each entry in the mapping database through a topology model representative of the particular network;
generating a reference to a unique firewall rule on a respective device in the plurality of devices;
incrementing a count associated with the unique firewall rule using a count of logs stored associated with the respective unique object; and
generating a report.

### Claim 2 (depends on 1)

The method of claim 1 wherein the set of databases further comprises:
a rule database containing a record of all firewall rules from each firewall rule whose counts are to be tracked, a route database containing a record of all routing rules from each firewall and each router in a network, a subnet database containing a record of all subnets used on interfaces of each firewall and each router in the network.

### Claim 3 (depends on 1)

The method of claim 1 wherein generating a network trie for each reference database further comprises:
reading all entries in a routing database, a rules database, and a subnet database, to populate several network tries, wherein a trie is created for each classless inter-domain routing (CIDR) addresses used in a destination field of routes to form a route trie, CIDR addresses present in the subnet database to form an interface trie, for each firewall device, creating a device source trie containing all CIDR addresses used in sources of firewall rules, and destination trie containing all CIDR addresses used in the destination of firewall rules;
reading all entries in the rules database, to create a list for each firewall device of source ports and list of protocols used in rules of the respective device; and
reading all entries in the rules database, to create a list for each firewall device of destination ports and list of protocols used in rules of the respective device.

### Claim 4 (depends on 1)

The method of claim 1 wherein generating a unique object for each log data set received further comprises;
creating a unique object as each firewall log enters the system, using attributes of a narrowest CIDR network of results from a source IP address lookup in the route trie, the interface trie, and the device source trie; a narrowest CIDR network of results from a destination IP address lookup in the route trie, the interface trie, and the device destination trie;
determining whether the source port and/or protocol are present in the log and are also present in the list of ports and protocols used in rules for this device;
responsive to a positive determination the source port and/or protocol added to the unique object; and
responsive to a negative determination a null value is added to the unique object.

### Claim 5 (depends on 1)

The method of claim 1 wherein generating a reference to a unique firewall rule on a respective device in the plurality of devices further comprises:
reading all entries in a database mapping unique objects to log counts into the topological model, wherein a reference to a unique firewall rule on a given device is identified; and

### Claim 6 (depends on 1)

The method of claim 1 wherein incrementing a count associated with the unique firewall rule using a count of logs stored associated with the respective unique object further comprises:
determining whether a count of logs associated with the unique object exists in a database mapping unique objects to log counts;
responsive to the count of logs associated with the unique object exists, incrementing a count of events associated with the unique object; and
responsive to the count of logs associated with the unique object does not exist, creating a count of logs associated with the unique object.

### Claim 7 (depends on 1)

The method of claim 1 wherein feeding each entry in the mapping database through a topology model representative of the particular network further comprises:
creating the topological model using all routes, devices, and firewall rules on the particular network, such that a given Internet protocol packet constructed and fed into the topological model behaves as it would on the particular network.
