Verified iptables Firewall Analysis and Verification
Open Access
- 3 January 2018
- journal article
- research article
- Published by Springer Nature in Journal of Automated Reasoning
- Vol. 61 (1-4) , 191-242
Abstract
This article summarizes our efforts around the formally verified static analysis of iptables rulesets using Isabelle/HOL. We build our work around a formal semantics of the behavior of iptables firewalls. This semantics is tailored to the specifics of the filter table and supports arbitrary match expressions, even new ones that may be added in the future. Around that, we organize a set of simplification procedures and their correctness proofs: we include procedures that can unfold calls to user-defined chains, simplify match expressions, and construct approximations removing unknown or unwanted match expressions. For analysis purposes, we describe a simplified model of firewalls that only supports a single list of rules with limited expressiveness. We provide and verify procedures that translate from the complex iptables language into this simple model. Based on that, we implement the verified generation of IP space partitions and minimal service matrices. An evaluation of our work on a large set of real-world firewall rulesets shows that our framework provides interesting results in many situations, and can both help and out-compete other static analysis frameworks found in related work.Keywords
Funding Information
- European Commission (653884)
- BMBF (16BP12304, 16KIS0472)
This publication has 46 references indexed in Scilit:
- Directed Security Policies: A Stateful Network ImplementationElectronic Proceedings in Theoretical Computer Science, 2014
- OpenStateACM SIGCOMM Computer Communication Review, 2014
- Verifying Security Policies Using Host Attributes2014
- Automatic Data Refinement2013
- Making middleboxes someone else's problemACM SIGCOMM Computer Communication Review, 2012
- Applying Data Refinement for Monadic Programs to Hopcroft’s Algorithm2012
- Code Generation via Higher-Order Rewrite Systems2010
- Model-Based Development of firewall rule sets: Diagnosing model inconsistenciesInformation and Software Technology, 2009
- Model-Based Firewall Conformance Testing2008
- The use and usability of direction-based filtering in firewallsComputers & Security, 2004