Professional Documents
Culture Documents
Cisco Firepower
NGIPS Tuning and
Best Practices
John Wise
Security Instructor
BRKCRT-2215
#CLUS
Cisco Webex Teams
Questions?
Use Cisco Webex Teams (formerly Cisco Spark)
to chat with the speaker after the session
How
1 Find this session in the Cisco Events App
2 Click “Join the Discussion”
3 Install Webex Teams or go directly to the team space
4 Enter messages/questions in the team space
#CLUS © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 3
Complete your online session evaluation
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 4
Security
Instructor:
Cisco High
Touch
Delivery
Your Speaker
Started with
Sourcefire
many many
years back!
#CLUS © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
Reference Slides
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 7
Firepower Platforms
Dedicated NGIPS
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 9
Cisco ASA 5500-X with FirePOWER Services
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 10
Firepower Threat Defense – 2100 NGFW
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 11
Firepower Threat Defense – 4100 NGFW
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 12
Firepower Threat Defense – 9300 NGFW
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 13
Software Availability
Classic Device 5.x/6.x Firepower Threat Defense (FTD) 6.x
• FTDv
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 14
Managed by the Firepower Management Center
FMC
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 15
• 6.x code
• What Implementation
• FTD or Classic Device
Does this Session Help Software
With?
• Utilizing Firepower’s security
inspection capabilities
BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 16
Security Inspection Path
Firepower Security Inspections
• Inspect, Block,
Store files
• Detect and
Block known or
suspected
Malware
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 18
Firepower Threat Defense Packet Flow
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 19
Network Discovery
What is Network Discovery?
To Build
Host
Profiles
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 21
Is Your Network Discovery Policy Defined?
Firepower will automatically build Host Profiles Based on your Network
Discovery Policy
When you define this, Firepower builds these
automatically
Network Vulnerabilities
Discovery
Services Protocols
Policy
Applications Ports
Operating Systems
Managed Device
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 22
Network Discovery Policy Processing Order
Discovery occurs here
Intrusion
Policy
If traffic does not reach this inspection point no discovery information is captured!
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 23
Enabling Network Discovery Policy
You must go in and define this
policy to match your protected network
Caution! Not defining your Network Discovery Policy can cause you to
exceed your host limits!
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 24
Define By Discover And Exclude
This is how
you enable
• Discover – build host profile information Network
• Your internal network – what you are protecting Discovery
• Note: Prior to 6.x this was on by default
• Exclude – don’t build host profile information
• Load Balancers, NAT Devices, anything you don’t want to build host profiles on
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 25
Network Discovery Discover Rule
Notice only Private IP spaces? This has been changed to represent
only internal IP addresses. By default its all IPs, and you need to
change this! Otherwise you will build host profiles for public hosts.
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 26
Common Configuration
Mistakes and Tuning
Opportunities
URL Filtering
URL Filtering
URL Filtering
Category Reputation License
required!
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 29
URL Filtering– How does it work?
URL Database
• Ensure you have a URL Filtering
license and enable it in the FMC
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 30
URL Filtering with SSL
URL Filtering For Well-Known Sites
Consider not decrypting well—known sites
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 32
URL Filtering To Prevent Decrypting Financial
Do not decrypt Financial websites
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 33
URL Filtering For Uncategorized Websites
Decrypt all uncategorized websites
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 34
URL Filtering with Security Inspections
Uncategorized websites are suspicious – consider inspecting for malware
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 35
Identifying Traffic to not
inspect
Understanding Trust
• In Firepower Trust means do not inspect
• Voice Traffic
• Backup Traffic
• Scanner Traffic
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 37
Why Trust?
• Certain types of traffic can cause issues in Firepower:
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 38
Fast Path
Try to ‘Fast Path’ Trusted Traffic
You can also block at this point in the flow on certain platforms
Fast-pathed traffic is
trusted here
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 40
Fast Pathing on Different Platforms
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 41
Fast Path on the ASA with FirePOWER Services
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 42
Fast Path on the 8000 Series Appliance
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 43
Rule Promotion in FirePOWER 7000/8000 Series
VLAN Security
Zone
IP Port
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 44
How to Promote Rules on the 7000/8000 Series
They must:
1. Trust or Block Action Example:
2. Contain only IP, Port, VLAN, Sec Zone conditions The first two rules will be promoted
3. Be placed above all other rules
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 45
Promoted Rule Processing
The rules are promoted and processed here once you deploy the Policy
In the GUI, however, you will still see the rules in your ACP
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 46
Fast Pathing with Firepower Threat Defense
You can Trust and Block here, using the same network-based
conditions. In addition, you can also log the traffic.
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 47
Prefilter Policy in FTD
Prefilter Policy in
GUI
Action of Fastpath
for trusting
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 48
Firepower Threat Defense Packet Flow
Prefiltering
occurs here
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 49
Connection Events
Connection Event Logging
In Firepower, a ’Connection Event’ is any packet seen going through the
device.
All events are
FMC stored here
‘Event Viewer’ refers to your FMC
Event
data
Managed
Device
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 51
Logging Options
Should I log at beginning or the end?
Log at beginning only if Cisco
you are tying this event recommends
to an alert! logging at the
end of the
connection.
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 52
Automatic Connection Event Logging
Security Events will automatically log connection events!
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 53
EStreamer
EStreamer is Firepower’s proprietary tool for streaming events to a SIEM
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 54
You Will Need to Tune Connection Events
In most environments you do not have the option to log every connection
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 55
How Do I Tune?
Use your ACP rules to create rules to tune connection logging
Choose ‘Log at
End’ unless you are
tying this to an
event you wish to
see immediately
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 56
DNS No Logging Rule Example
DNS request rule to reduce logging
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 57
Database Settings in Your FMC
You can adjust the retention amount in your FMC
Under System-Configuration-Database you can
adjust how many events you retain…
Caution! It is not
recommended to
change these
settings unless
recommended by
support!
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 58
Malware and File Policy
Strategies
Mapping ACP to Your Malware and File Policy
Map your Access Control Policy to the Protocols to the Malware/File Policy
Intrusion
Policy Malware/File
Policy
SafeSearch YouTube
EDU Logging
Application Protocols
available in your
Malware/File Policy
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 60
Malware Blocking Behavior
Test the behavior when Blocking Malware in Email Protocols
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 61
File Storage This stores the
File on the
Don’t be overzealous with storing files Managed Device,
and selecting all
The 8000, 2100/4100/9300 all have an optional Malware Storage Pack for this!
might over-
burden the
device
Consider
instead storing
only Unknown
so you can
submit them
later for
analysis
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 62
Pop Quiz!
How many packets of a 10 packet file do we need to see
to determine if it’s malware?
Misc. Firepower
Settings
Automatic Application Bypass
AAB
• Available in all
Classic Device
versions
• Available in FTD
effective 6.2.1
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 65
Automatic Application Bypass Settings
Disabled by Default, consider enabling!
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 66
SNORT Performance Thresholds
Firepower has two threshold settings
Latency-Based Rule-Based
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 67
Latency Threshold Alerting
By default you are not alerted when these are triggered
Consider alerting on these – select the ‘Generate Events’ to
generate an Intrusion Event
Packet-
latency time
exceeded
Rule disabled
Rule re-
enabled
Base Policies
Connectivity Balanced Security Security
over and over
Security Connectivity Connectivity
-1,000 rules enabled +- 8,000 rules enabled +- 12,000 rules enabled
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 70
Intrusion Policy Key Points to Remember
For each Managed Device, you can have only one ACP, however:
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 71
Less Common Base Intrusion Policies
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 72
Firepower Recommendations
Disable Enable
• SNORT
No CVE seen in CVE seen in host Rules
Host Profiles? Turns profile but rule is
rule with this CVE off? Turns rule with
OFF. this CVE ON.
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 73
Firepower Recommendations Gone Wrong
Scenario 1:
• Network Discovery ON, but left to Any/Any for Discovery (the default)
• Remember this MUST define only your protected network, and all of the network
spaces you are protecting
What would happen? It would enable rules that are not part of your network, and would likely
oversubscribe the box
Scenario 2:
• Network Discovery ON, but host profiles are not identifying host
information correctly because of Asymmetric Routing
• If Firepower does not see all parts of the conversation, it cannot properly identify
host data, and would cause this feature to be completely inaccurate
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 74
Firepower Recommendations Tips
Make sure this
matches your
Network Discovery!
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 75
Variables
Variables in your SNORT Rules
Rule Header
Rule header determines what traffic the enabled rules will run against
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 77
Variables in the Flow 1) Packet 2) It’s an
matches ’Allow’ rule,
the ACP and sends the
rule traffic to the
specified
Intrusion Policy
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 78
Default-Set
In your Objects, you will find your ‘Default-Set’ Variable set. This is what is used for all
variable definitions unless otherwise specified.
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 79
HOME_NET Variable Tuning
• You will need to ensure you have
defined HOME_NET
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 80
How to Define HOME_NET Variable
Define Your
HOME_NET as all
RFC1918 Private IP
spaces and any
public spaces you
own
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 81
EXTERNAL_NET Variable
EXTERNAL_NET is
defined as ‘any’ by
default
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 82
Defining EXTERNAL_NET
If it is an internal to internal attack, the rule will not be run against that traffic!
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 83
Consider Two Definitions of EXTERNAL_NET
This set will be for all internal to This set will be for all external to
internal traffic internal traffic
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 84
Use Security Zones To Identify Inbound Traffic
In this example, you are using Security Zones to identify external to internal traffic
The EXTERNAL_NET
definition is excluding
HOME_NET
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 85
Internally Sourced Traffic EXTERNAL_NET
The EXTERNAL_NET
definition is left to ANY for the
Default Set
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 86
Advanced Variable Tuning Caution
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 87
Tuning False Positives
False Positive Tuning
Intrusion Events can generate False Positives
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 89
False Positive Example
Consider this example:
You can’t change how the
A server at 10.2.2.3 has an in-house application operates, so you
application triggering a SNORT rule that need to address the rule is
drops the packet and breaks the breaking the application.
application
X
SNORT drops
the packet 10.2.2.3
because it
Internet matched the
rule
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 90
False Positive Option 1
Suppress or Threshold the event
FMC FMC
Intrusion Event
generated and
sent to FMC
when SNORT Suppression
rule fires
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 92
False Positive Option 3
Use your ACP and a new Intrusion Policy to fix this
Here you see a rule written
just for the traffic destined to
that server
Technically this
solution would
work, but is not
what Cisco
recommends!
A big solution to a
small problem.
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 93
False Positive Option 4
Rewrite the SNORT rule
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 94
False Positive Option 5
Write a Pass Rule
A Pass Rule is a rule designed match on specific traffic conditions that when
met, pass the respective packet through SNORT.
Pass rules are
processed first!
Intrusion Intrusion
Pass Rules Rules
A Pass rule can be written to identify just the traffic destined to that server, and if it
matches the rule, it passes the traffic through SNORT without being inspected by the
other rule that was dropping the packet.
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 95
Steps to Writing a Pass Rule
Identify the SNORT Rule causing the issue
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 96
Identify the Rule Header
The rule header is what we change in writing a pass rule
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 97
Identify the Rule Header Modification Needed
The header destination IP is what needs to be changed in our example
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 98
Locate the Rule in your FMC
Remember all your SNORT rules are in your FMC
Click ‘edit’
SID is 40134
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 99
Change the Rule Header to Match as Required
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 101
Find The Rule in Your Intrusion Policy
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 102
Set The Rule to Generate Events
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 103
Optionally Add a Suppression
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 104
Use a New Variable For Frequent Changes
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 105
Commit Changes and Deploy
Once deployed traffic destined to that IP that matches the rule will be
processed by the Pass rule, and will not match on the unmodified rule!
All Done!
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 106
Pass Rule Logic
Intrusion
Rules
All other
traffic
Triggers SID
Traffic to 1,000,000
10.2.2.3
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 107
Where To Go Next
Support Documentation
Cisco’s Support Page
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 109
Find the Appliances You Have
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 110
Download the Correct FMC User Guide
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 111
Understand Your Managed Devices
‘Classic’ refers to the 7000/8000, NGIPSv,
and the ASA/FP module
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 112
Product Updates Perspective
Remember
Classic FTD there are
two
• 5.4 software
• 6.0 types
• 6.0
• 6.0.1 available!
• 6.0.1
• 6.1
• 6.1
• 6.2
• 6.2
• 6.2.1 FTD software
• 6.2.1 updates have
• 6.2.2
• 6.2.2 significant
• 6.2.3 new features
• 6.2.3
available since
it is bringing
over ASA
features!
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 113
Cisco Firepower Training
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 114
Win the Book!
Complete your online session evaluation
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 116
Continue
your Demos in
the Cisco
Walk-in
self-paced
Meet the
engineer
Related
sessions
education campus labs 1:1
meetings
#CLUS BRKCRT-2215 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 117
Thank you
#CLUS
Q&A
#CLUS