Firewall penetration testing methodology: phases and the standards behind it

A firewall penetration test checks whether the policy and configuration in front of your networks do what the policy says, and whether traffic can get past them. This page explains the phases, the NIST guidance behind them and what to ask a provider before you sign.

On this page

Why firewall penetration testing is commissioned and what it answers

A firewall penetration test shows whether the traffic a firewall actually passes matches what the organization intended it to pass, and whether an attacker can use the gaps to reach systems they should not. It is usually commissioned because a compliance assessor, a customer security questionnaire, a product launch, an insurer or an acquirer asks for evidence that perimeter and inter-zone controls were tested in practice, not only documented. Before commissioning one, confirm with the requester exactly which control they need evidence for, since a PCI DSS segmentation request, a customer's perimeter question and an insurer's renewal form each lead to a different scope.

NIST SP 800-41 Rev. 1, Guidelines on Firewalls and Firewall Policy, describes firewalls as devices or programs that control the flow of network traffic between networks or hosts with different security postures. That framing explains the two questions a buyer should separate. A rule base review compares the firewall policy, rule order, object groups, NAT and logging settings against what the organization says it allows. A penetration test asks what traffic really crosses each boundary, including traffic that a reviewed rule base permits by accident, through a management interface, an overlooked host-based firewall or a route that bypasses the device. Buyers should expect both, and should ask the provider to show how each finding was reached.

The practical decision is which boundaries to test and from where. Name each firewall type in scope, such as network, host-based, personal, proxy and perimeter devices, and list the zones on each side, including the cardholder or regulated data environment if one exists. Agree in writing whether the test starts from the internet, from a partner network or from an internal segment, because the answer changes what the test can prove. Confirm with the provider how the findings will map to the controls your assessor uses, and do not assume that a report alone satisfies an assessor or customer.

Which firewalls and rule sets a scope should name

A firewall test is only as good as its scope. NIST SP 800-41 Rev. 1 names the firewall types a buyer should list, and the cards below cover the decisions that sit around them: which rule bases, consoles, segments and environments are in, and how the test is run and governed.

Network firewalls and perimeter security

List every device that sits between networks of different trust, including internet edge, data center, partner and branch firewalls. SP 800-41 Rev. 1 groups these under network firewalls and perimeter security, so a scope that names only the internet edge leaves internal control points untested. Ask the provider to confirm the device make, model and firmware for each, because the results depend on them.

SP 800-41 Rev. 1

Host-based and personal firewalls

Host firewalls on servers, endpoints and administrative workstations decide what a compromised host can reach. Scope them when they protect systems in the test, and agree whether the test samples a fleet or covers named hosts. SP 800-41 Rev. 1 treats host-based and personal firewalls as distinct from network devices, so both need explicit listing.

Packet filtering and proxy components

Packet filters, stateful inspection and application-layer proxies enforce different rules and fail in different ways. Name each type in the scope, since a proxy can hide traffic that a packet filter would show. Ask the provider which of these it will test and how it will confirm that traffic follows the intended path.

Rule bases, consoles and change history

Scope the rule base as exported configuration, the management console and any central policy server. Ask for the change history for the review period, including who approved each rule and which rules are temporary, because stale exceptions are a common finding. Confirm read-only access to configurations and whether the tester may change anything.

Segmentation boundaries

Define which zones the firewall is supposed to separate, such as the cardholder data environment or the management network, and test the boundary itself. For PCI DSS scope, segmentation testing is a separate requirement (11.4.5), so name the boundaries that the test must prove. Illustrative example: a rule permitting a corporate VLAN to reach a payment zone should be listed as a boundary to challenge.

Cloud and virtual firewalls

Security groups, network access control lists, virtual appliances and cloud-native firewalls often hold rules that differ from the physical estate. List them separately, and confirm the provider's testing rules for each cloud platform before testing begins. Ownership matters too: the client must control the accounts and the segments in scope.

Overt or covert testing and rules of engagement

NIST SP 800-115 describes overt testing as less expensive, carrying less risk and more common, while covert testing is done without IT staff knowledge but with upper management's permission. Decide which applies, record it in the rules of engagement, and agree intrusiveness limits, testing windows, emergency contacts and who approves changes to production rules.

SP 800-115

How the engagement moves through planning, discovery, attack and reporting

The sequence turns a firewall scope into agreed rules, tested evidence and a report the client can act on, with SP 800-41 policy and configuration review running alongside the technical phases. Each step closes with a named output so the buyer can see when it is finished.

  1. Agree scope, rules and management approval

    The provider and client name the firewalls, firewall types and management consoles in scope, such as network firewalls, host-based firewalls, proxies and perimeter devices. The parties then document the rules of engagement, using the template in Appendix B of NIST SP 800-115 as the starting structure, and record who approved the testing in writing. Confirm with the provider which IP ranges, rule sets and change windows are covered, and whether any device belongs to a managed service provider that must also consent. The step is complete when a signed rules of engagement document and named contacts for emergencies are in place.

  2. Review firewall policy and configuration

    Before or alongside active testing, the reviewer checks the firewall policy against the guidance in NIST SP 800-41 Rev. 1, which covers policy establishment, selection, configuration, testing, deployment and management of firewalls. The review examines rule ordering, default-deny posture, rule justification, administrative access paths, logging settings and change records. It is a document and configuration review, so it draws on exported rule sets and interviews with the rule owners rather than on traffic sent to the device. The output is a list of policy and configuration observations, each tied to a rule or setting.

  3. Discover hosts, services and filtering behavior

    In the discovery phase, the tester identifies which hosts, ports and services are reachable through each firewall, using the target identification and analysis techniques described in NIST SP 800-115. This covers network discovery, port and service identification and, where agreed, vulnerability scanning. The aim is to compare what the policy says should be reachable with what is actually reachable from each side of the device. The step closes with a reachability map and a list of differences between the documented policy and observed behavior, which feed the attack phase.

  4. Validate weaknesses through controlled attack

    The attack phase tests whether the weaknesses found in discovery can be used to get past the firewall within the agreed limits. Under SP 800-115, this is the target vulnerability validation stage, which may include penetration testing and application security testing where those are in scope. Testers record each attempt, stop at the boundary the rules of engagement set, and avoid actions that the client has excluded, such as denial of service on production devices. The step is complete when each finding is either confirmed with evidence, marked as not exploitable, or left unconfirmed with the reason stated.

  5. Document findings, evidence and risk ratings

    Reporting turns the work into findings the client can use. Each finding states the affected firewall or rule, the observed behavior, the evidence collected, the risk rating and the recommended fix, along with the policy gap it reflects. The report should also show the scope actually tested, any limits imposed during testing, and any activity that was blocked or stopped. Confirm with the provider how risk ratings are assigned and whether the report includes a remediation priority order. The step is complete when the draft has been checked against the rules of engagement and the client has received the final report.

  6. Retest fixes and close the cycle

    After the client changes rules or configuration, the provider retests the affected findings to confirm the fix works and that no new path has opened. The retest is normally scoped to the findings and changed rule sets, not a full repeat of the engagement, and the provider should state in writing what is retested and what is not. Ask the provider whether retest is included in the quote, how it is requested, and what evidence the retest report will contain. The cycle closes when each retested finding is marked as resolved, still open or partly addressed, with the reason recorded.

How policy review, testing and retest connect

The flow starts with scope and rules of engagement, which set what the tester may touch and who approves it. Policy and configuration review under SP 800-41 runs first, so the rule set is checked against the stated firewall policy before any packets are sent. Technical testing under SP 800-115 then covers discovery and validation, and reporting feeds remediation and retest. A scope change sends the work back to planning, so check that a change in targets or intrusiveness is re-approved in writing.

Testing phases loop back to planning whenever scope changes.

Weakness categories a firewall test looks for and why they matter

This table lists the weakness categories a firewall penetration test examines, what each one tends to look like on a firewall or its management plane, and why it matters to the business. Read it as a checklist for reviewing a provider's scope, not as a list of techniques, since the test confirms exposure and impact without exploitation steps. The main takeaway is that most firewall findings come from policy and configuration drift as much as from software flaws, so the policy review and the technical test should be scoped together.

Weakness categoryWhat it looks like in this targetWhy it matters
Overly permissive rulesBroad source, destination or service objects, and rules that allow any-to-any traffic between zonesPermits more traffic than any documented business need, widening what an attacker reaches after a single foothold
Stale or unowned rulesRules tied to decommissioned hosts, expired projects or no named owner or review dateLeaves open paths nobody monitors or can justify, and makes change approval unreliable
Management interfaces reachable from untrusted networksAdministrative web, SSH or API access exposed on internet-facing or guest-facing interfacesGives an external party a route to the control plane of the security boundary itself
Weak administrative authenticationShared or local administrator accounts, missing multi-factor authentication on admin access, or outdated authentication settingsA compromised firewall administrator account can silently change policy across every zone it protects
Rule ordering and shadowingEarlier broad rules that hide later specific rules, or rules that never match because of placementWritten policy and enforced policy diverge, so reviewers approve controls that do not actually run
Segmentation gaps between zonesFlat paths between production, cardholder, management and user zones, or routes that bypass the intended inspection pointSegmentation is often the control that limits scope for compliance and limits blast radius for incidents
Logging and alerting gapsDeny logs disabled, short retention, logs not forwarded to a monitoring platform, or no alerts on policy or admin changesWithout reliable logs, a provider cannot prove what was exposed and an incident team cannot reconstruct events
Unpatched firmwareFirewall operating system or VPN feature versions that lag behind vendor security advisoriesKnown vulnerabilities in the boundary device itself can bypass every rule written on it

Which compliance frameworks expect firewall testing and what they require

PCI DSS sets the most specific testing cadence for firewalls among the frameworks buyers usually meet. Requirement 11.4.1 defines internal penetration testing as testing from inside the network, including inside the cardholder data environment (CDE) and into it from trusted and untrusted internal networks. External testing covers the exposed perimeter and critical systems reachable from public networks. Requirements 11.4.2 and 11.4.3 require both types at least once every 12 months and after any significant infrastructure or application change. The tester must be a qualified internal resource or a qualified external third party with organizational independence, and that tester does not need to be a QSA or ASV. Confirm with your assessor which internal staff qualify and how independence will be documented before you assign the work.

Firewalls matter most under requirement 11.4.5, which requires penetration testing of segmentation controls at least every 12 months and after changes. The test must confirm that segmentation isolates the CDE from all out-of-scope systems. Requirement 11.4.6 raises this cadence to every six months for service providers. For a firewall test, this means the rules between zones must be tested for actual reachability, and a document review alone will not satisfy the requirement. Ask the provider which zones were tested, from which starting points, and whether testing followed each firewall rule change. Confirm with your assessor whether your organization's status makes the six-month cadence apply.

CIS Controls v8.1 reaches similar ground through Safeguard 18.2, which asks for external penetration tests at least annually, including enterprise and environmental reconnaissance, and Safeguard 18.5, which asks for internal tests at least annually. Both safeguards allow clear box or opaque box testing, so the scope document should state which approach applies to each perimeter firewall, edge device and internal boundary. A firewall test produces much of the evidence these safeguards look for. DeployOpen prepares systems, controls and evidence for assessments, but it does not issue audit reports, attestations or certifications. Independent auditors, QSAs and certification bodies make those determinations, so agree the evidence format with your assessor early. The CIS Controls Assessment Specification describes Control 18 in detail.

How firewall testing changes between perimeter, internal and cloud designs

Perimeter firewalls sit between the organization and the internet, and they are usually the first control an external test measures. The test asks what an outside party can reach through the device, including management interfaces, VPN and remote access services published through the firewall, and rules that expose more hosts or ports than the business needs. Scope is normally agreed by public IP range and by the exact services behind each address, and the tester's activity is governed by written intrusiveness limits and approval windows. Evidence is usually the exposed service inventory, the rule-level findings and the configuration review of policy objects, with logs or packet captures used to confirm what was actually permitted.

  • Exposed surface: the tester maps which addresses and ports answer from the internet and compares them with the approved rule base.
  • Management access: the test checks whether administrative interfaces are reachable from untrusted networks and which authentication methods they accept.
  • Rule review: overly broad source, destination or service objects, stale rules and shadowed entries are assessed against the written policy.
  • Change control: the client confirms whether rule changes made during the engagement will be frozen or recorded, since they affect results.
  • Evidence: the report ties each finding to the rule, interface or service involved, not only to a scan result.

Before commissioning, confirm the IP ranges, cloud edges and any third-party hosted firewall in scope, and ask how the provider will keep rule changes from distorting the findings.

What the client receives and whether it satisfies an auditor or customer

A firewall test produces a set of linked deliverables: a summary for leadership, a rule base review, technical results, and evidence that a fix worked. Each part should trace back to a finding, and each finding should trace back to a stated test method and scope.

Executive summary and scope statement

The summary states which firewalls, policies, management consoles and network zones were tested, the dates, the testing approach and the overall exposure. It should also restate the rules of engagement and any limits that applied, such as excluded rule sets or changes made during testing. Ask whether the scope matches the firewall types named in the statement of work, since a summary that omits a device class leaves an auditor with an incomplete picture.

SP 800-41 Rev. 1

Rule base and configuration findings

This section maps findings to the policy and configuration topics in Guidelines on Firewalls and Firewall Policy, including packet filtering, proxies, perimeter security and host-based firewalls. Each finding should name the rule, object or setting involved, such as an overly broad any-to-any rule, a stale rule without an owner, or a management interface reachable from user networks. Ask for the exported rule base or a rule-by-rule table so your team can verify the review.

Technical test results and logs

Technical results record what was reached, from which zone, over which protocol, and what the tester could do after that. The evidence should include scan output, packet captures or session logs where they support a finding, and timestamps that match the test window. Ask how sensitive captured data is stored and deleted, and whether logs are delivered to you or kept only by the provider.

Risk ratings and remediation guidance

Each finding should carry a severity rating with the criteria used, plus a remediation step specific to the device or policy, such as the rule to tighten or the setting to change. Ask whether ratings use a published scale and whether the provider explains how it adjusted a rating for your environment. Generic advice like "harden the firewall" does not give your operations team anything to change.

Retest result and closure evidence

A retest confirms which findings were fixed, which remain open, and which were accepted as risk with a named owner. The retest should reference the original finding identifiers and include new evidence for each closed item. Agree in advance whether retesting is included in the fixed fee and how long after the original report it remains available.

Acceptance letter and recipient decision

A letter for a customer or auditor summarizes the work performed, the scope and the outcome, but it does not certify the firewalls or make the organization compliant. The recipient decides whether the test meets its requirement, and some assessors ask for the full report rather than a summary. Confirm the wording and the intended recipient with your assessor or customer before the work starts.

What your team must prepare before testing starts

The most useful preparation is a complete picture of the firewall estate before the tester arrives. Gather the exported rule bases for every firewall in scope, including the object and group definitions that rules depend on, because a rule that looks permissive often becomes narrow once its address objects are resolved. Pair these with network diagrams and zone definitions that show which interfaces sit in which trust zone, and with change records covering the last several review cycles so the tester can see how rules were added, what justified them and which ones were never removed. Ask the provider which export formats it accepts and whether it will work from a read-only copy or needs live access.

Confirm the test boundaries in writing. Provide the approved IP ranges and hostnames for each firewall management interface, the public addresses that the perimeter devices are expected to expose, and any ranges that must not be touched, such as third-party hosting or payment processors. Name a technical contact who can answer rule-intent questions during the test, an operations contact who can act on an unexpected outage, and an emergency stop contact with authority to halt testing. Agree a change freeze window with the network team so that no rule or device changes land mid-test, and record which maintenance windows the provider may use for any intrusive checks. Access accounts for configuration review should be read-only, named, time-limited and logged, and you should confirm with the firewall vendor's testing rules which activities, such as management interface probing or testing on cloud-hosted firewall instances, the vendor permits.

Finally, obtain written approval from management before any packet is sent. The approval should name the systems, the test window, the permitted techniques and the people who may authorize changes to scope, and it should be the same document the provider uses as its rules of engagement. Ask whether the test will be overt or covert, since NIST SP 800-115 treats covert testing as a question of management permission and not of technical method. Plan for the hand-off as well: the team that receives the findings must be able to map each rule finding back to a change record and an owner, so decide before testing who will verify fixes and whether a retest is included in the quote.

Firewall penetration testing questions buyers ask before hiring

How long does a firewall penetration test take and what drives the time?

No public duration applies to every firewall test, so the length is set by the written scope. The main drivers are the number of firewalls and firewall types in scope, the number of rulesets and rule objects each device carries, how many network zones and segments the traffic crosses, whether the work includes a policy and configuration review under NIST SP 800-41 Rev. 1 alongside technical testing under SP 800-115, and how many rounds of validation the client wants. Ask the provider to break the estimate into planning, review, testing, reporting and retest, and to state which items depend on the client's response time. Any duration in a quote should be traceable to those items.

What does the client need to provide before a firewall test starts?

The tester needs enough information to avoid guessing about the environment. Expect to provide a firewall inventory with vendor, model, software version and management method, exported rulesets or read-only access for the review, network diagrams showing zones and segments, and a list of the systems behind each rule. For PCI DSS work, the cardholder data environment boundary and the segmentation controls must be documented. The client also needs to name a technical contact, set testing windows, agree which production systems may be affected, and sign a Rules of Engagement document that records approvals. Missing inputs usually extend the schedule more than the testing itself.

Can our own team run a firewall penetration test, and what independence does PCI DSS require?

An internal team can test firewalls if it has the skills, tools and separation needed to produce a credible result, and the rules of engagement allow it. PCI DSS requirements 11.4.2 and 11.4.3 allow testing by a qualified internal resource or a qualified external third party, but the tester must have organizational independence, meaning it must not be the team that manages or administers the firewall under test. The standard does not require the tester to be a QSA or ASV. Confirm with your assessor how independence is documented, because the answer depends on reporting lines, not only on job title. External firms can provide this separation and a neutral view of configuration drift.

Is a firewall rule review enough, or do we need active testing?

A rule review and an active test answer different questions, so one does not replace the other. A review checks whether the policy matches the stated intent: unnecessary any-to-any rules, overly broad source or destination objects, stale rules tied to retired systems, weak management access, and missing logging. Active testing checks what the device actually permits and whether the segmentation holds when traffic is sent across the boundary. NIST SP 800-41 Rev. 1 covers policy and configuration, while SP 800-115 covers technical testing methods. For PCI DSS segmentation, the standard requires testing of the controls themselves, so a review on its own will not meet that need.

How is retesting scoped after a firewall penetration test?

Retesting should be defined in the original statement of work so the client knows what is covered and what it costs. The usual approach is to retest only the findings marked as fixed, confirm each fix against the original evidence, and record the result in an updated report. Retest scope grows when the client changes firewall software, adds rules across zones, or makes a significant infrastructure change, because a changed environment may need new testing. Ask the provider whether retest effort is included or quoted separately, how many retest rounds are allowed, and how changes made between test and retest are handled.

What should we check in a sample firewall penetration test report?

A useful sample report shows how the work was done and whether the findings can be acted on. Look for an executive summary that states scope and overall risk, a section that records the firewalls, rulesets and zones tested with their versions, a policy and configuration review section tied to the policy and configuration guidance in NIST SP 800-41 Rev. 1, and a technical testing section that follows the phases in NIST SP 800-115. Each finding should include evidence, affected rules or interfaces, a risk rating with its method, specific remediation, and a retest status. Check that the report states what was not tested and why. If your auditor needs a particular format, confirm that before testing begins.

What does a firewall penetration test cost and what should the quote include?

No public rate applies, so cost depends on the written scope. The main components are tester time for planning and rules review, configuration review, technical testing, reporting, a debrief and any retest, plus project management where it is quoted. Cost rises with the number of devices, rulesets, zones and segmentation checks, and with the need for out-of-hours testing or on-site work. Ask the quote to list each component separately, state what is one-time and what recurs, such as an annual or post-change test, and name any assumptions about client inputs. DeployOpen does not publish a price list, and a quote follows from the written scope.

How to check a firewall testing provider's method before you sign

Before you sign, ask the provider for a written method that shows how a firewall test will be planned, run and reported. The starting point is the planning phase in NIST SP 800-115, which expects the rules of the test to be identified and management approval to be documented. Ask for a rules of engagement document built on the template in Appendix B of that guide. It should name the firewalls, management consoles, VPN concentrators and cloud firewall policies in scope, the source addresses the testers will use, the hours of testing, the change freeze window, the people who can stop the work, and the emergency contacts on both sides. If a provider cannot show you a draft of this document before work starts, treat that as a finding about their process.

Next, confirm the method covers two different kinds of work. The first is policy and configuration review against NIST SP 800-41 Rev. 1, Guidelines on Firewalls and Firewall Policy, which addresses how firewall policy is established and how firewalls are selected, configured, tested and managed. The reviewer should check rule sets for overly broad allow rules, stale rules, unclear ownership and missing default-deny logic, and compare them with the business purpose each rule serves. The second is technical testing under SP 800-115, covering discovery, port and service identification and validation of whether the rules behave as written. A method that only runs a scanner against the perimeter has skipped the policy review, and a method that only reads the configuration has skipped validation. Ask which firewall types the provider will name in scope, such as network, host-based, personal and proxy controls, because each changes the test.

How DeployOpen works on this

DeployOpen scopes firewall engagements in writing before testing starts, using the firewall types and policy areas that NIST SP 800-41 Rev. 1 describes. The work combines a policy and configuration review with technical testing that follows the phases in NIST SP 800-115, and the result is a report, fix guidance and a retest.

How we scope

  • The written scope names each firewall type in use, such as network, host-based, personal, packet filtering, proxy and perimeter devices.
  • Scope records the rules of engagement, approved test windows, intrusiveness limits and the named contacts who can halt testing.
  • Engagements are fixed-scope, so deliverables and timelines are agreed in writing before any work begins.

How we build

  • Planning confirms the firewall policy, rule base and management interfaces that the review will examine against the client's documented policy.
  • Technical testing covers discovery, port and service identification and validation of exposed rules, following the phases in SP 800-115.
  • Findings are checked for false positives and for whether a rule weakness actually allows unintended traffic between segments.

How we hand over

  • The report maps each finding to the affected firewall, rule or interface, with a risk rating, evidence and specific remediation steps.
  • Clients receive the test logs and configuration evidence behind each finding so their own security and audit teams can verify it.
  • A walkthrough explains which findings to fix first and how the results fit into existing change and risk registers.

How we support

  • After fixes are applied, DeployOpen retests the affected rules and interfaces and documents whether each finding is closed.
  • Clients can ask which regulatory or customer requests the evidence answers, such as segmentation testing questions, and confirm that scope with their assessor first.
  • Ongoing support, upgrades and continuous testing are available as a retainer for firewalls that change frequently.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.