Intrusion Policy

Cisco Secure Firewall Snort 2 and Snort 3 Intrusion Policy Guidance

Language: English | 日本語

Introduction

This document discusses the key components of Cisco Secure Firewall’s intrusion detection and prevention features and provides best practice guidance for configuration. It covers both Snort 2 and Snort 3 policies.

The walkthrough retains the illustrated 7.3-era Snort 2/Snort 3 interface and engine-specific labels. Engine availability, menu paths, and migration behavior vary by release; use the version-specific configuration guides and the applicable Snort 3 Intrusion Policies guide for your deployment.

Policy Overview

The intrusion policy consists of a set of configurations that control Snort’s traffic inspection. This primarily consists of which rules are enabled and whether they are set to Alert or Drop/Block. Snort rules can be used to detect security or policy violations as well as malicious inbound or outbound traffic. In inline deployments, the system can also block malicious traffic. Intrusion policy is implemented for various traffic flows via Allow rules in the Access Control policy.

The Network Analysis Policy is another policy that impacts Snort. If you were to look at an open-source Snort installation, you would not find two policies. Instead, you would find one or more configuration files. These configuration files control all the settings used by Snort. However, in the Secure Firewall, these configurations have been separated into Network Analysis and Intrusion policies.

The Network Analysis Policy controls the more advanced settings such as preprocessors (Snort 2) or Inspectors (Snort 3). These components are critical to the detection/inspection process because they decode and normalize network traffic. The primary purpose is to present the packet/flow data to the Snort rules engine so rule writers don’t have to deal with evasions or various types of data encoding.

This guide recommends selecting corresponding base policies for Network Analysis and Intrusion so their inspection settings are aligned. The illustrated workflow offers the same four Talos base-policy choices for both policy types. Review the available choices and any customizations for the engine and release you deploy.

As mentioned above, the Intrusion policy consists mainly of enabled rules and their action upon matching traffic. We will first create a Network Analysis Policy, which uses the same base policy as the Intrusion policy. After that, we will move on to the Intrusion policy, which is the primary focus of this document.

New in Release 7.3

The Secure Firewall Release 7.3 brings new extended group capability to the Snort 3 Intrusion policy. This expands the previous rule group capability and adds hierarchy to the group structure to facilitate more detailed policy configurations and enable admins to create finer grained and targeted rule sets.

The new extended groups organize rules according to the MITRE ATT&CK (Adversary Tactics Techniques and Common Knowledge) framework. This allows users to customize policies according to specific attacker tactics and techniques.

MITRE Categories

MITRE Categories

MITRE Tactics

MITRE Tactics

MITRE Techniques

MITRE Techniques

Along with these policy changes, there are two new fields available in an intrusion event - MITRE and Rule Group. These fields contain the MITRE technique that is associated with the rule as well as the rule group.

Intrusion Event Table View

Intrusion Event Table View

Network Analysis Policy Creation

To create a Network Analysis policy, login to your Firewall Management Center (FMC) and follow the steps below.

Step 1: Navigate to Policies > Intrusion and then click the Network Analysis Policies tab.

Step 2: Click Create Policy. The Create Network Analysis Policy window appears.

**Figure 1:** Create Network Analysis Policy

Figure 1: Create Network Analysis Policy

Step 3: Enter a unique Name. Optionally, enter a Description.

Step 4: Select an Inspection Mode. For an inline deployment select Prevention. For a passive deployment or if you do not want to allow the policy to drop traffic select Detection.

Step 5: Choose an initial Base Policy. Start with a base policy that reflects the company’s security posture. If you plan to use Balanced Security and Connectivity as the base policy for the intrusion policy, also choose Balanced Security and Connectivity in the Network Analysis policy.

Step 6: Save your policy

In the illustrated workflow, this creates Snort 2 and Snort 3 policy versions. When you finish creating your Network Analysis and Intrusion policies, use the Access Control Policy rules to select the traffic and intrusion policy to use. Check engine support and policy availability for the target release.

For now, add your new Network Analysis policy to your existing Access Control policy

Step 7: Navigate to Policies > Access Control. Edit your existing Access Control policy.

Step 8: Click the Advanced tab and click the pencil icon by Network Analysis and Intrusion Policies.

**Figure 2:** Advanced Tab

Figure 2: Advanced Tab

There are two important configurations on this page. The first is Intrusion Policy used before Access Control rule is determined. Here, you specify an intrusion policy to inspect traffic while the system is performing application identification. This is important if you plan on using any Application Identification rules in your Access Control policy. Even if you are not planning this now, Cisco recommends selecting an Intrusion policy in case you decide to add Application rules in the future.

The second configuration is to select your custom Network Analysis policy.

Step 9: Select your desired base policy in the Intrusion Policy used before Access Control rule is determined drop down. If in doubt, select Balanced Security and Connectivity.

Step 10: In the Default Network Analysis Policy drop down, select the Network Analysis policy you created above. Click OK and save your Access Control policy changes.

In this example, the only Network Analysis Policy customization is the Base Policy selection. The example aligns the Network Analysis and Intrusion base policies. Further Network Analysis Policy customization can be appropriate, but is beyond the scope of this document.

Intrusion Policy Creation

The Intrusion policy consists of active Snort rules along with their actions. A rule action triggers when the inspected traffic matches all the keyword parameters in a rule. Snort rules can merely alert on the presence of certain traffic, or they can block or even modify traffic as it passes through the device. The primary considerations for an Intrusion policy are which rules should be enabled and what action should they take?

Generally speaking, the more rules enabled in a policy, the more traffic inspection occurs. That may seem obvious but it’s not as simple as saying more rules equals better security. As with many security devices, Intrusion policy configuration represents a balance of security and connectivity. This balance should drive your decision-making as you configure and tune the Intrusion policy.

The Cisco Secure Firewall provides several methods to make policy configuration easier than attempting to go through the entire rule set one at a time and decide whether each rule should be enabled or not.

Step 1: Navigate to Policies > Intrusion.

Step 2: Click Create Policy. The Create Intrusion Policy window appears.

**Figure 3:** Create Intrusion Policy

Figure 3: Create Intrusion Policy

Step 3: Give your policy a Name and optional Description.

Step 4: Select a Base Policy (see description below) and Save your new policy.

Base Policy Selection

The first, and most important decision, is the base policy selection. The Secure Firewall includes several default base policies; each provides a different balance of security and connectivity. These are continuously updated by the Cisco Talos Intelligence Group based on the current worldwide threat landscape.

Select the policy that reflects your organization’s priorities for security and connectivity. Keep in mind that policies with more enabled rules will likely require more tuning after deployment to reduce False Positive alerts.

The number of enabled rules varies with the engine and rule-package revision. The descriptions below express the intended balance, rather than fixed rule counts.

The base policies are:

  1. Connectivity Over Security
    A policy that favors connectivity, with a relatively limited set of enabled Snort rules.

  2. Balanced Security and Connectivity
    A policy that balances security and connectivity.

  3. Security Over Connectivity
    A policy that emphasizes security and may require more time tuning false positive alerts. Its inspection workload can affect firewall throughput.

  4. Maximum Detection
    A broad detection policy that can require substantial tuning and capacity assessment. This guide recommends validating its alert volume, performance, and effect on traffic in a test environment before a production deployment; this is deployment advice, not a product prohibition.

As with the Network Analysis policy, you have now created two Intrusion policies, one for Snort 2 and one for Snort 3. When you deploy to your devices, they will receive the Intrusion and Network Analysis policy specific to the Snort version running. Each device can only run one Snort version.

When migrating between Snort engines or upgrading releases, review the generated policy mappings, custom-rule conversion, inspection mode, and effective rule states. Similar base-policy names do not establish identical detection behavior or equivalent protection across engines. Validate the policies for the devices and release in use.

The two policy versions will be discussed separately below.

Variable Sets

A common component of both Snort versions is variables. Variables have existed since Snort was just a lowly intrusion detection system and sensor interfaces were always in passive promiscuous mode. Because there was no way to filter traffic sent to the Snort process, variables were used to ensure rules only inspected traffic for which they were designed. For example, a rule intended to detect inbound attacks against your web servers can use variables to restrict its matching scope. This provided benefits like reduced false positives and improved inspection efficiency.

Variables are used in the Snort rule header as criteria for traffic inspection to control aspects such as the source/destination IP and port(s) that the rule inspects. While the Snort 3 header can now use application protocols like HTTP, Snort 3 rules still use variables in the same way as Snort 2 rules. In addition, variables are still important today. This is true even though we use Access Control rules to specify traffic for intrusion inspection rather than always using a promiscuous interface. A Variable Set is simply a collection of variables.

You will find Variable Sets on the FMC under Objects > Object Management > Variable Set. Here you can edit the Default-Set or create your own custom Variable Sets.

**Figure 4:** Variable Set

Figure 4: Variable Set

The default variable set contains several variables. Two commonly used variables are $HOME_NET and $EXTERNAL_NET; other variables can also be based on them. They are defined as follows:

  • $HOME_NET – the protected network, your network, the target of threat actors
  • $EXTERNAL_NET – location of the threat, the source or destination of threat traffic

Many rules use these variables to identify traffic targeting or originating from protected hosts. The following examples are illustrative rule-header fragments; a complete Snort rule also needs its rule options:

alert tcp $HOME_NET any -> $EXTERNAL_NET $HTTP_PORTS

You know that this rule is designed to inspect traffic outbound from your network. (Source is $HOME_NET and destination is $EXTERNAL_NET) Rules with headers such as:

alert tcp $EXTERNAL_NET any -> $HOME_NET any

Are designed to inspect traffic targeting hosts on your home network.

In the illustrated default variable set, both variables use any, meaning any IPv4 or IPv6 address. This broadens the addresses that can match those header fields; it does not guarantee that all traffic is inspected. Consider defining variables for the networks relevant to your policies.

$HOME_NET

The most important configuration is to ensure that $HOME_NET includes your protected hosts. Since a variable set can be configured in each Access Control Allow rule, the $HOME_NET can differ for different rules even if the Intrusion policy is the same. However, to reduce complexity, most customers use a single Variable Set for all rules on a device, and many use a single Variable Set across their entire deployment.

To do this, many customers simply include the system object group IPv4-Private-All-RFC1918 in their $HOME_NET variable. This is appropriate assuming you do not use any public address space in your networks. For a firewall protecting a DMZ, you might also include any public address space assigned to your DMZ hosts.

Define $HOME_NET from the perspective of the device and the protected hosts. Different devices can protect different address ranges. Choose the breadth of the definition for the actual topology; including all RFC1918 ranges is an option when those ranges represent the intended protected networks, rather than a universal requirement.

For example, IPv4-Private-All-RFC1918 includes more than a network using only 192.168.0.0/16. It also includes 10.0.0.0/8 if that range is later introduced. This changes the scope of rules that use the variable; it does not by itself establish protection or guarantee unchanged performance. Review rule matching, alert volume, and processing impact, and see the variable guidance.

$EXTERNAL_NET

Two common choices for $EXTERNAL_NET are to retain any or to exclude $HOME_NET. Select the value after defining the protected networks and reviewing the relevant rule headers.

With any, the variable includes the protected network itself. Rules that use $EXTERNAL_NET can therefore remain eligible to match internal-to-internal flows, subject to all their other conditions and the traffic visible to the device. A broader matching scope can also change alert volume.

Excluding $HOME_NET narrows the header matches that use $EXTERNAL_NET. Other rules with any in the relevant header fields may still match internal traffic, but do not assume that every lateral-attack rule uses any or that exclusions cannot cause False Negative detections.

Review the actual rules and test representative traffic before choosing or changing either definition. Neither choice makes traffic visible when it does not pass through the inspection point.

Recommendations

The Recommendations feature proposes Snort rule-state changes based on host data collected through passive discovery. How does this work? First, the Management Center builds a database of hosts on your network including IP address, hostname, operating system, services, users and client applications. Second, based on this information, the system maps vulnerabilities to each discovered host. The Recommendations feature uses this host database to determine which Snort rules apply to your environment.

Depending on the settings and available host data, recommendations can propose enabling or disabling rules. Review the proposed changes before applying them, and deploy policy changes to activate them on devices. Explicit rule overrides have higher priority than the recommendation layer; see the editing workflow. Consider the following points when using this feature.

  1. You need accurate host data.
    Passive discovery depends on the traffic the inspection point can observe. Place sensors where they can see relevant host traffic. Edge-only visibility can leave internal host profiles incomplete; consider an additional observation point or supported host-input integration where appropriate. Closer placement alone does not guarantee complete inventory or vulnerability data.

  2. You should update Recommendations periodically.
    If you do decide to use the Recommendations feature, you should keep it updated. Recommendations are based on dynamic data such as Snort rules, vulnerabilities and host attributes. As each of these changes, your Recommendations should keep pace by updating your Recommendations periodically. You can create a scheduled task to update recommendations automatically.

Configure Cisco Recommendations (Snort 2 policy)

To configure Cisco Recommendations for a Snort 2 policy, follow the
steps below:

Step 1: On the FMC, navigate to Policies > Intrusion. Click on the Snort 2 Version link for the policy you want to edit.

Step 2: Click Cisco Recommendations on the left under Policy Information

**Figure 5:** Cisco Recommendations

Figure 5: Cisco Recommendations

Step 3: Expand Advanced Settings

This expands the Cisco Recommended Rules Configuration options

**Figure 6:** Cisco Recommended Rules Configuration

Figure 6: Cisco Recommended Rules Configuration

Leave Networks to Examine blank. This means Recommendations consider all the hosts in your network map. If your policy will be deployed to device(s) located in a non-standard network segment you can limit recommendations to hosts in these networks by entering subnet ranges here. However, most often considering all hosts is the best choice.

The Recommendation Threshold slider allows you to select the rule set on which to base Recommendations. The slider settings correspond with Talos base policies (rule sets).

  • None – No Rules Active
  • Low – Connectivity Over Security
  • Medium – Balanced Security and Connectivity
  • High – Security Over Connectivity

The screenshot uses Medium, corresponding to Balanced Security and Connectivity. A threshold matching the current base policy does not expand consideration to a higher Talos policy. Generate and review the actual differences rather than assuming there will be no rule-state changes.

📘

Note

Generated changes depend on the engine, rule package, policy settings, and host data. A matching threshold is not a guarantee of zero changes; inspect the proposed rules and their effective states.

If you wanted Recommendations to enable additional rules, move the slider to High, in this case, to consider active rules in the Security Over Connectivity policy to enable additional rules from this policy based on vulnerabilities found in your host database.

The Accept Recommendations to Disable Rules option permits recommendations to disable eligible rules for vulnerabilities not identified in the host data. This guide recommends enabling it only after reviewing discovery coverage, the proposed disabled rules, and the effect on protection. A missing host observation is not proof that a vulnerability is absent, and explicit rule overrides retain their higher priority.

Step 4: Once you have configured recommendations, use Generate Recommendations to generate and review candidate changes without using the recommendation layer. Generate and Use Recommendations generates and activates the layer in the FMC policy above the base layer. Device activation still requires deployment.

Step 5: Once your Recommendations are generated, review the added/removed rules to ensure your policy still provides the desired level of protection. You will see a summary of the rule state changes on the Recommendations screen. Click the View links on the right to see which rules are now set to generate, drop and generate, or disabled.

**Figure 7:** Cisco Recommended Rules

Figure 7: Cisco Recommended Rules

📘

Note

In the illustrated Snort 2 workflow, newly recommended rules use Generate events (alert). Review the effective rule states and the Detection/Prevention mode before expecting traffic to be dropped. A recommendation alone is not evidence that blocking is active.

Step 6: When you are finished reviewing, click on Policy Information in the upper left corner and then click the Commit Changes button to save the policy.

Step 7: Deploy the reviewed policy configuration changes to the managed devices.

Step 8: To effectively use Recommendations they should be updated periodically. To do so, navigate to System (gear icon) > Tools > Scheduling. Click Add Task and add a Job Type of Cisco Recommended Rules as shown below.

**Figure 8:** Sample Recommended Rules Task

Figure 8: Sample Recommended Rules Task

Schedule this job to run every one or two weeks as appropriate for changes to your hosts, rules, and vulnerability data. Review generated changes and deploy approved policy changes through your deployment process.

Configure Recommendations (Snort 3 policy)

🚧

Warning

Recommendations is an FMC in release 7.1 or higher supported feature for Snort 3, and it is not available in release 7.0.

To configure Recommendations for a Snort 3 policy, follow the steps below:

Step 1: On the FMC, navigate to Policies > Intrusion. Click on the Snort 3 Version link for the policy you want to edit.

Step 2: Click the Not in use button next to the Recommendations layer near the top of the policy.

You will see the Secure Firewall Rule Recommendations dialog.

**Figure 9:** Snort 3 Rule Recommendations

Figure 9: Snort 3 Rule Recommendations

Recommendations operate largely the same in Snort 3 as in Snort 2. There are a few minor differences noted below.

Snort 3 recommendations use Security Level; the Snort 2 example above uses Recommendation Threshold. Security levels correspond with Talos policies as follows:

  • Level 1 – Connectivity Over Security
  • Level 2 – Balanced Security and Connectivity
  • Level 3 – Security Over Connectivity
  • Level 4 – Maximum Detection
📘

Note

The two differences from Snort 2 Recommendations. First, the No Rules Active option has been removed as it would result in zero recommendations, and second, the Maximum Detection rule set is available as Security Level 4.

The other options for Recommendations work the same as in Snort 2. For a complete explanation, refer to the Snort 2 Recommendations section above. As with Snort 2, leaving the Protected Networks blank includes all IPv4 and IPv6 addresses.

You have the option to Generate or Generate and Apply from this dialog. Selecting either will generate recommendations, while the Generate and Apply will add the Recommendations layer to the policy.

Note the message below the Security Level which informs you if your selection will impact the rule set. In the example above, the policy uses the Balanced Security and Connectivity rule set. Selecting Security Level 2 does not extend consideration beyond that base policy. Generate and inspect the proposed changes for the package and host data in use.

**Figure 10:** Security Level Message

Figure 10: Security Level Message

By selecting the Security Over Connectivity policy (Security Level 3) you can now see the message indicates this will result in increased security (more enabled rules). Of course, this is dependent on the hosts in your network map and their associated vulnerabilities.

Another difference between Snort 2 and Snort 3 is that additional rules enabled by Recommendations will inherit their rule state from the Talos policy rather than always being set to Generate (alert), as is the case with the Snort 2 policy. The resulting alert or drop behavior depends on the selected policy, effective rule states, inspection mode, and deployment. Review and validate the result rather than assuming stronger or equivalent protection from the engine choice alone.

You may see other messages depending on how you configure your Recommendations parameters.

Security LevelDisable Recommendations?Message
Same as current base policyCheckedHigher Efficiency
UncheckedNo Impact
Higher than current base policyCheckedFocused Security
UncheckedIncreased Security
Lower than current base policyCheckedLower Security
UncheckedNo Impact

Table 1: Recommendations Messages

By experimenting with the various settings, you can arrive at a Recommendations configuration that fits your security and efficiency goals.

Step 3: Once you have decided which settings to apply, click the Generate or Generate and Apply buttons.

After generation, select the Recommendations layer to inspect the proposed rule states. Its active or inactive state depends on Generate versus Generate and Apply, or on a subsequent Accept action.

**Figure 11:** Recommendations Layer

Figure 11: Recommendations Layer

In this workflow, Generate leaves the layer (Not in use); Generate and Apply makes it (In use) in the FMC policy. Selecting this layer displays some additional controls in the upper right.

**Figure 12:** Additional Group Controls

Figure 12: Additional Group Controls

These controls provide the following functions:

  • Accept – activate the Recommendations layer
  • Refresh – update Recommendations using existing settings
  • Edit – display the Recommendations dialog to adjust settings
  • Discard – remove the Recommendations layer
📘

Note

The Accept button will only be available if you select Generate. This activates the layer in the FMC policy. Deploy approved configuration changes to apply them on devices. Otherwise, if you select Generate and Apply the layer is already active.

Step 4: Once you select the Recommendations layer, review the rule states and determine if they are appropriate for your policy. You can then use the Accept, Refresh, Edit or Discard buttons as desired.

Step 5: Deploy the reviewed policy configuration changes to the managed devices.

Step 6: To effectively use Recommendations they should be updated periodically. To do so, navigate to System (gear icon) > Tools > Scheduling. Click Add Task and add a Job Type of Cisco Recommended Rules as shown below.

**Figure 13:** Cisco Recommended Rules Task

Figure 13: Cisco Recommended Rules Task

Schedule this job to run every one or two weeks as appropriate for changes to your hosts, rules, and vulnerability data. Review generated changes and deploy approved policy changes through your deployment process.

Snort 3 Intrusion Policy Specific Features

Rule Group Overrides

One of the new Snort 3 features is rule group security levels. Snort 3 rules can be grouped according to several criteria. As mentioned above, the 7.3 release brings a new extended rule grouping feature and adds MITRE groups. There are also Rule Categories such as Browser, Server, Malware, Operating System, etc. Within these sections are the groups. For example, in the Browser section, you’ll find groups like Webkit, Firefox, Chrome, and Internet Explorer.

Each of these groups has an associated Security Level (1-4). These security levels correspond with the base policies mentioned above.

**Figure 14:** Rule Group Security Levels

Figure 14: Rule Group Security Levels

Each Rule Group is set to the same security level as the base on initial policy creation. For example, if you selected the Balanced Security and Connectivity policy as your base, all your rule groups would be set to Security Level 2.

Rule Groups not only provide a way to view similar rules but they also allow you to customize the security level for a group. For example, if your organization does not use Internet Explorer, you could reduce the security level for that rule group. This means fewer Internet Explorer specific rules will be enabled. If you use the Balanced policy as your base, you could reduce the Internet Explorer Rule Group Security Level from two to one. You could also remove the group from your policy altogether if desired. At the same time, if your organization standardizes on the Chrome browser you may want to increase the security level for that rule group.

Modifying a group Security Level lets you customize protection while retaining Talos defaults for individual rule states. The illustrated Snort 2 workflow instead uses individual rule-state overrides. An overridden state is not replaced by a Talos update to the default state; this does not stop rule-definition updates. Revert the override when you want the rule to follow its default state again. See Intrusion Rule States.

Individual Rule Overrides

After using one or more of the methods above to build your policy, you may still need to enable or disable individual rules. This is often the case if you have a specific rule that is frequently generating false positive alerts and you determine that the rule does not apply to your environment. You can edit your policy and override a specific rule state in these cases to enable a rule (set it to block, drop, alert, etc.) or disable it as needed. The overridden rule state remains in the policy until you change or revert it; a Talos default-state update does not overwrite it. If you manually enable rules, you should revisit them regularly to ensure they are still needed based on the current threats in your network.

**Figure 15:** Rule Action

Figure 15: Rule Action

📘

Note

The image above illustrates the 7.3-era rule-action interface. Check the actions and inspection-mode behavior supported by your deployed release.

Summary

This document provided a short overview of Intrusion policy configuration and best practices for the Cisco Secure Firewall Threat Defense. It should help intrusion/firewall administrators quickly configure basic Intrusion policies for their deployments.

📚 Additional Resources

For more information about the Cisco Secure Firewall, please see the following resources:


Did this page help you?
Title of the document The current suggested release is 7.6.6 Release 10.1 is live!